@umbraco-ui/uui 1.5.0-rc.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uui.min.js +556 -52
- package/dist/uui.min.js.map +1 -1
- package/package.json +83 -83
package/dist/uui.min.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(a,ke){typeof exports=="object"&&typeof module<"u"?ke(exports):typeof define=="function"&&define.amd?define(["exports"],ke):(a=typeof globalThis<"u"?globalThis:a||self,ke(a.uui={}))})(this,function(a){"use strict";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const ke=window,
|
|
5
|
+
*/const ke=window,Di=ke.ShadowRoot&&(ke.ShadyCSS===void 0||ke.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vi=Symbol(),hr=new WeakMap;let dr=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Vi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Di&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=hr.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&hr.set(t,e))}return e}toString(){return this.cssText}};const Y=i=>new dr(typeof i=="string"?i:i+"",void 0,Vi),p=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[n+1],i[0]);return new dr(t,i,Vi)},pl=(i,e)=>{Di?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const r=document.createElement("style"),o=ke.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)})},pr=Di?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Y(t)})(i):i;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var
|
|
9
|
+
*/var Hi;const Gt=window,br=Gt.trustedTypes,bl=br?br.emptyScript:"",mr=Gt.reactiveElementPolyfillSupport,Bi={toAttribute(i,e){switch(e){case Boolean:i=i?bl:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},vr=(i,e)=>e!==i&&(e==e||i==i),Ri={attribute:!0,type:String,converter:Bi,reflect:!1,hasChanged:vr},Fi="finalized";let Qe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,r)=>{const o=this._$Ep(r,t);o!==void 0&&(this._$Ev.set(o,r),e.push(o))}),e}static createProperty(e,t=Ri){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(o){const n=this[e];this[t]=o,this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ri}static finalize(){if(this.hasOwnProperty(Fi))return!1;this[Fi]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of r)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(pr(o))}else e!==void 0&&t.push(pr(e));return t}static _$Ep(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return pl(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Ri){var o;const n=this.constructor._$Ep(e,r);if(n!==void 0&&r.reflect===!0){const s=(((o=r.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?r.converter:Bi).toAttribute(t,r.type);this._$El=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(e,t){var r;const o=this.constructor,n=o._$Ev.get(e);if(n!==void 0&&this._$El!==n){const s=o.getPropertyOptions(n),h=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?s.converter:Bi;this._$El=n,this[n]=h.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,r){let o=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||vr)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,n)=>this[n]=o),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var n;return(n=o.hostUpdate)===null||n===void 0?void 0:n.call(o)}),this.update(r)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdated)===null||o===void 0?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,r)=>this._$EO(r,this[r],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Qe[Fi]=!0,Qe.elementProperties=new Map,Qe.elementStyles=[],Qe.shadowRootOptions={mode:"open"},mr?.({ReactiveElement:Qe}),((Hi=Gt.reactiveElementVersions)!==null&&Hi!==void 0?Hi:Gt.reactiveElementVersions=[]).push("1.6.3");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var
|
|
14
|
-
\f\r]`,Ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g")
|
|
13
|
+
*/var Gi;const qt=window,Je=qt.trustedTypes,gr=Je?Je.createPolicy("lit-html",{createHTML:i=>i}):void 0,Wt="$lit$",he=`lit$${(Math.random()+"").slice(9)}$`,qi="?"+he,ml=`<${qi}>`,Oe=document,kt=()=>Oe.createComment(""),It=i=>i===null||typeof i!="object"&&typeof i!="function",fr=Array.isArray,yr=i=>fr(i)||typeof i?.[Symbol.iterator]=="function",Wi=`[
|
|
14
|
+
\f\r]`,Ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_r=/-->/g,wr=/>/g,Ae=RegExp(`>|${Wi}(?:([^\\s"'>=/]+)(${Wi}*=${Wi}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),$r=/'/g,Ur=/"/g,Er=/^(?:script|style|textarea|title)$/i,xr=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),u=xr(1),_=xr(2),V=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),kr=new WeakMap,Le=Oe.createTreeWalker(Oe,129,null,!1);function Ir(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return gr!==void 0?gr.createHTML(e):e}const Cr=(i,e)=>{const t=i.length-1,r=[];let o,n=e===2?"<svg>":"",s=Ct;for(let h=0;h<t;h++){const c=i[h];let d,v,f=-1,y=0;for(;y<c.length&&(s.lastIndex=y,v=s.exec(c),v!==null);)y=s.lastIndex,s===Ct?v[1]==="!--"?s=_r:v[1]!==void 0?s=wr:v[2]!==void 0?(Er.test(v[2])&&(o=RegExp("</"+v[2],"g")),s=Ae):v[3]!==void 0&&(s=Ae):s===Ae?v[0]===">"?(s=o??Ct,f=-1):v[1]===void 0?f=-2:(f=s.lastIndex-v[2].length,d=v[1],s=v[3]===void 0?Ae:v[3]==='"'?Ur:$r):s===Ur||s===$r?s=Ae:s===_r||s===wr?s=Ct:(s=Ae,o=void 0);const $=s===Ae&&i[h+1].startsWith("/>")?" ":"";n+=s===Ct?c+ml:f>=0?(r.push(d),c.slice(0,f)+Wt+c.slice(f)+he+$):c+he+(f===-2?(r.push(void 0),h):$)}return[Ir(i,n+(i[t]||"<?>")+(e===2?"</svg>":"")),r]};let Ki=class hl{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,s=0;const h=e.length-1,c=this.parts,[d,v]=Cr(e,t);if(this.el=hl.createElement(d,r),Le.currentNode=this.el.content,t===2){const f=this.el.content,y=f.firstChild;y.remove(),f.append(...y.childNodes)}for(;(o=Le.nextNode())!==null&&c.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const f=[];for(const y of o.getAttributeNames())if(y.endsWith(Wt)||y.startsWith(he)){const $=v[s++];if(f.push(y),$!==void 0){const E=o.getAttribute($.toLowerCase()+Wt).split(he),x=/([.?@])?(.*)/.exec($);c.push({type:1,index:n,name:x[2],strings:E,ctor:x[1]==="."?Pr:x[1]==="?"?Sr:x[1]==="@"?Or:zt})}else c.push({type:6,index:n})}for(const y of f)o.removeAttribute(y)}if(Er.test(o.tagName)){const f=o.textContent.split(he),y=f.length-1;if(y>0){o.textContent=Je?Je.emptyScript:"";for(let $=0;$<y;$++)o.append(f[$],kt()),Le.nextNode(),c.push({type:2,index:++n});o.append(f[y],kt())}}}else if(o.nodeType===8)if(o.data===qi)c.push({type:2,index:n});else{let f=-1;for(;(f=o.data.indexOf(he,f+1))!==-1;)c.push({type:7,index:n}),f+=he.length-1}n++}}static createElement(e,t){const r=Oe.createElement("template");return r.innerHTML=e,r}};function je(i,e,t=i,r){var o,n,s,h;if(e===V)return e;let c=r!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[r]:t._$Cl;const d=It(e)?void 0:e._$litDirective$;return c?.constructor!==d&&((n=c?._$AO)===null||n===void 0||n.call(c,!1),d===void 0?c=void 0:(c=new d(i),c._$AT(i,t,r)),r!==void 0?((s=(h=t)._$Co)!==null&&s!==void 0?s:h._$Co=[])[r]=c:t._$Cl=c),c!==void 0&&(e=je(i,c._$AS(i,e.values),c,r)),e}let zr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:o}=this._$AD,n=((t=e?.creationScope)!==null&&t!==void 0?t:Oe).importNode(r,!0);Le.currentNode=n;let s=Le.nextNode(),h=0,c=0,d=o[0];for(;d!==void 0;){if(h===d.index){let v;d.type===2?v=new Kt(s,s.nextSibling,this,e):d.type===1?v=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(v=new Ar(s,this,e)),this._$AV.push(v),d=o[++c]}h!==d?.index&&(s=Le.nextNode(),h++)}return Le.currentNode=Oe,n}v(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},Kt=class dl{constructor(e,t,r,o){var n;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cp=(n=o?.isConnected)===null||n===void 0||n}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=je(this,e,t),It(e)?e===U||e==null||e===""?(this._$AH!==U&&this._$AR(),this._$AH=U):e!==this._$AH&&e!==V&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):yr(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==U&&It(this._$AH)?this._$AA.nextSibling.data=e:this.$(Oe.createTextNode(e)),this._$AH=e}g(e){var t;const{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ki.createElement(Ir(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===n)this._$AH.v(r);else{const s=new zr(n,this),h=s.u(this.options);s.v(r),this.$(h),this._$AH=s}}_$AC(e){let t=kr.get(e.strings);return t===void 0&&kr.set(e.strings,t=new Ki(e)),t}T(e){fr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of e)o===t.length?t.push(r=new dl(this.k(kt()),this.k(kt()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},zt=class{constructor(e,t,r,o,n){this.type=1,this._$AH=U,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const n=this.strings;let s=!1;if(n===void 0)e=je(this,e,t,0),s=!It(e)||e!==this._$AH&&e!==V,s&&(this._$AH=e);else{const h=e;let c,d;for(e=n[0],c=0;c<n.length-1;c++)d=je(this,h[r+c],t,c),d===V&&(d=this._$AH[c]),s||(s=!It(d)||d!==this._$AH[c]),d===U?e=U:e!==U&&(e+=(d??"")+n[c+1]),this._$AH[c]=d}s&&!o&&this.j(e)}j(e){e===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Pr=class extends zt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===U?void 0:e}};const vl=Je?Je.emptyScript:"";let Sr=class extends zt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==U?this.element.setAttribute(this.name,vl):this.element.removeAttribute(this.name)}},Or=class extends zt{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){var r;if((e=(r=je(this,e,t,0))!==null&&r!==void 0?r:U)===V)return;const o=this._$AH,n=e===U&&o!==U||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==U&&(o===U||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}},Ar=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){je(this,e)}};const gl={O:Wt,P:he,A:qi,C:1,M:Cr,L:zr,R:yr,D:je,I:Kt,V:zt,H:Sr,N:Or,U:Pr,F:Ar},Lr=qt.litHtmlPolyfillSupport;Lr?.(Ki,Kt),((Gi=qt.litHtmlVersions)!==null&&Gi!==void 0?Gi:qt.litHtmlVersions=[]).push("2.8.0");const fl=(i,e,t)=>{var r,o;const n=(r=t?.renderBefore)!==null&&r!==void 0?r:e;let s=n._$litPart$;if(s===void 0){const h=(o=t?.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=s=new Kt(e.insertBefore(kt(),h),h,void 0,t??{})}return s._$AI(i),s};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/var Yi
|
|
19
|
+
*/var Xi,Yi;let m=class extends Qe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const r=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=r.firstChild),r}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=fl(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return V}};m.finalized=!0,m._$litElement$=!0,(Xi=globalThis.litElementHydrateSupport)===null||Xi===void 0||Xi.call(globalThis,{LitElement:m});const jr=globalThis.litElementPolyfillSupport;jr?.({LitElement:m}),((Yi=globalThis.litElementVersions)!==null&&Yi!==void 0?Yi:globalThis.litElementVersions=[]).push("3.3.3");var yl=`.uui-text {
|
|
20
20
|
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
21
21
|
font-size: 15px;
|
|
22
22
|
line-height: calc(var(--uui-size-2,6px) * 4);
|
|
@@ -184,11 +184,11 @@
|
|
|
184
184
|
margin-top: var(--uui-size-layout-1,24px);
|
|
185
185
|
margin-bottom: var(--uui-size-layout-1,24px);
|
|
186
186
|
}
|
|
187
|
-
`;const
|
|
187
|
+
`;const _l=Y(yl);/**
|
|
188
188
|
* @license
|
|
189
189
|
* Copyright 2017 Google LLC
|
|
190
190
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
191
|
-
*/const
|
|
191
|
+
*/const Zi=i=>e=>typeof e=="function"?((t,r)=>(customElements.define(t,r),r))(i,e):((t,r)=>{const{kind:o,elements:n}=r;return{kind:o,elements:n,finisher(s){customElements.define(t,s)}}})(i,e);/**
|
|
192
192
|
* @license
|
|
193
193
|
* Copyright 2017 Google LLC
|
|
194
194
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -200,24 +200,192 @@
|
|
|
200
200
|
* @license
|
|
201
201
|
* Copyright 2017 Google LLC
|
|
202
202
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
203
|
-
*/const
|
|
203
|
+
*/const Qi=({finisher:i,descriptor:e})=>(t,r)=>{var o;if(r===void 0){const n=(o=t.originalKey)!==null&&o!==void 0?o:t.key,s=e!=null?{kind:"method",placement:"prototype",key:n,descriptor:e(t.key)}:{...t,key:n};return i!=null&&(s.finisher=function(h){i(h,n)}),s}{const n=t.constructor;e!==void 0&&Object.defineProperty(t,r,e(r)),i?.(n,r)}};/**
|
|
204
204
|
* @license
|
|
205
205
|
* Copyright 2017 Google LLC
|
|
206
206
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
207
|
-
*/function C(i,e){return
|
|
207
|
+
*/function C(i,e){return Qi({descriptor:t=>{const r={get(){var o,n;return(n=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(i))!==null&&n!==void 0?n:null},enumerable:!0,configurable:!0};if(e){const o=typeof t=="symbol"?Symbol():"__"+t;r.get=function(){var n,s;return this[o]===void 0&&(this[o]=(s=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(i))!==null&&s!==void 0?s:null),this[o]}}return r}})}/**
|
|
208
208
|
* @license
|
|
209
209
|
* Copyright 2017 Google LLC
|
|
210
210
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
211
|
-
*/function Ul(i){return
|
|
211
|
+
*/function Ul(i){return Qi({descriptor:e=>({get(){var t,r;return(r=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelectorAll(i))!==null&&r!==void 0?r:[]},enumerable:!0,configurable:!0})})}/**
|
|
212
212
|
* @license
|
|
213
213
|
* Copyright 2021 Google LLC
|
|
214
214
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
215
|
-
*/var eo;const El=((eo=window.HTMLSlotElement)===null||eo===void 0?void 0:eo.prototype.assignedElements)!=null?(i,e)=>i.assignedElements(e):(i,e)=>i.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);function xe(i){const{slot:e,selector:t}=i??{};return Ji({descriptor:r=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),a=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(n),h=a!=null?El(a,i):[];return t?h.filter(c=>c.matches(t)):h},enumerable:!0,configurable:!0})})}const kl=p`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,Il=Ie("uui-blink 0.9s infinite both"),xl=p`@keyframes pulse{0%{-webkit-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{-webkit-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{-webkit-transform:translate(-50%,-50%) scale(2.2);transform:translate(-50%,-50%) scale(2.2);opacity:0}}`,Cl=Ie("pulse 0.8s ease-in-out infinite both"),Pl=p`@keyframes uui-horizontal-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(1px)}30%,50%,70%{transform:translateX(-2px)}40%,60%{transform:translateX(2px)}}`,Sl=Ie("uui-horizontal-shake 600ms ease backwards");var Ol=Object.defineProperty,Tr=Object.getOwnPropertySymbols,zl=Object.prototype.hasOwnProperty,Al=Object.prototype.propertyIsEnumerable,Mr=(i,e,t)=>e in i?Ol(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ll=(i,e)=>{for(var t in e||(e={}))zl.call(e,t)&&Mr(i,t,e[t]);if(Tr)for(var t of Tr(e))Al.call(e,t)&&Mr(i,t,e[t]);return i};let to=class extends Event{constructor(e,t={}){super(e,Ll({},t)),this.detail=t.detail||{}}};var jl=Object.defineProperty,Dr=Object.getOwnPropertySymbols,Nl=Object.prototype.hasOwnProperty,Tl=Object.prototype.propertyIsEnumerable,Vr=(i,e,t)=>e in i?jl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Hr=(i,e)=>{for(var t in e||(e={}))Nl.call(e,t)&&Vr(i,t,e[t]);if(Dr)for(var t of Dr(e))Tl.call(e,t)&&Vr(i,t,e[t]);return i};let Ne=class extends to{constructor(e,t={}){super(e,Hr(Hr({},{bubbles:!0}),t))}};Ne.VALID="valid",Ne.INVALID="invalid";var Ml=Object.defineProperty,Br=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable,Rr=(i,e,t)=>e in i?Ml(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Fr=(i,e)=>{for(var t in e||(e={}))Dl.call(e,t)&&Rr(i,t,e[t]);if(Br)for(var t of Br(e))Vl.call(e,t)&&Rr(i,t,e[t]);return i};let Te=class extends to{constructor(e,t={}){super(e,Fr(Fr({},{bubbles:!0,cancelable:!0}),t))}};Te.SELECTED="selected",Te.DESELECTED="deselected";var Hl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,Rl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bl(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hl(e,t,o),o};const Fl=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Rl([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Gl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Gr=(i,e,t,r)=>{for(var o=r>1?void 0:r?ql(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gl(e,t,o),o};const Wl=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Gr([l({type:String})],t.prototype,"label",2),Gr([g()],t.prototype,"_labelSlotHasContent",2),t};var Kl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,qr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xl(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Kl(e,t,o),o};const Yl=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{if(this.selectableTarget===this){if(o.key!==" "&&o.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget||this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new Te(Te.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new Te(Te.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return qr([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),qr([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Zl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,Jl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ql(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zl(e,t,o),o};const eu=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return Jl([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var tu=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,Me=(i,e,t,r)=>{for(var o=r>1?void 0:r?iu(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tu(e,t,o),o};const ou=i=>{class e extends i{constructor(...r){super(...r),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(r){const o=this._value;this._value=r,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",o)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(r,o,n){const a={flagKey:r,getMessageMethod:o,checkMethod:n};return this._validators.push(a),a}removeValidator(r){const o=this._validators.indexOf(r);o!==-1&&this._validators.splice(o,1)}addFormControlElement(r){this._formCtrlElements.push(r)}setCustomValidity(r){this._customValidityObject&&this.removeValidator(this._customValidityObject),r!=null&&r!==""&&(this._customValidityObject=this.addValidator("customError",()=>r,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(o=>{for(const n in o.validity)n!=="valid"&&o.validity[n]&&(this._validityState[n]=!0,this._internals.setValidity(this._validityState,o.validationMessage,o))}),this._validators.forEach(o=>{o.checkMethod()&&(this._validityState[o.flagKey]=!0,this._internals.setValidity(this._validityState,o.getMessageMethod(),this.getFormElement()))});const r=Object.values(this._validityState).includes(!0);this._validityState.valid=!r,r?this.dispatchEvent(new Ne(Ne.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new Ne(Ne.VALID)))}updated(r){super.updated(r),this._runValidators()}submit(){var r;(r=this._form)==null||r.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var r;for(const o in this._formCtrlElements)if(this._formCtrlElements[o].checkValidity()===!1)return!1;return(r=this._internals)==null?void 0:r.checkValidity()}get validity(){return this._validityState}get validationMessage(){var r;return(r=this._internals)==null?void 0:r.validationMessage}}return e.formAssociated=!0,Me([l({type:String})],e.prototype,"name",2),Me([l()],e.prototype,"value",1),Me([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),Me([l({type:Boolean,reflect:!0})],e.prototype,"required",2),Me([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),Me([l({type:Boolean,reflect:!0})],e.prototype,"error",2),Me([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};let ru=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const nu=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},su=(i,e)=>{function t(o){const n=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,h=n.left+a.scrollX,c=n.top+a.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const v=d.pageX-h,f=d.pageY-c;e!=null&&e.onMove&&e.onMove(v,f)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e!=null&&e.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e!=null&&e.initialEvent&&t(e.initialEvent)},au=(i,e,t)=>Math.min(Math.max(i,e),t),lu=(i,e,t)=>t+e-i,uu=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e},Wr=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,n=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(n)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||null}return null};var cu=Object.defineProperty,hu=Object.getOwnPropertyDescriptor,du=(i,e,t,r)=>{for(var o=r>1?void 0:r?hu(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&cu(e,t,o),o},Kr=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Xr=(i,e,t)=>(Kr(i,e,"read from private field"),t?t.call(i):e.get(i)),Yr=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},pu=(i,e,t,r)=>(Kr(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t);const bu=i=>{var e,t;class r extends i{constructor(...n){super(...n),Yr(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=Wr(this,"id",this.popoverContainerElement);a&&(Xr(this,e)?a.hidePopover():a.showPopover())},Yr(this,t,a=>{requestAnimationFrame(()=>{pu(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",Xr(this,t))}}return e=new WeakMap,t=new WeakMap,du([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};function mu(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}const vu=["default","primary","secondary","outline","placeholder"],gu=["default","positive","warning","danger"],fu=["h1","h2","h3","h4","h5","h6"];function b(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}var yu=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,wu=(i,e,t,r)=>{for(var o=r>1?void 0:r?_u(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&yu(e,t,o),o};s.UUIButtonGroupElement=class extends m{render(){return u`<slot></slot>`}},s.UUIButtonGroupElement.styles=[p`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted([look=outline]:not(:first-child)){--uui-button-merge-border-left:1}::slotted([look=placeholder]:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(uui-popover){width:unset;--uui-popover-toggle-slot-button-border-radius:0}::slotted(uui-popover:not(:first-child)){--uui-popover-toggle-slot-button-merge-border-left:1}::slotted(uui-popover:first-child){--uui-popover-toggle-slot-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(uui-popover:last-child){--uui-popover-toggle-slot-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],s.UUIButtonGroupElement=wu([b("uui-button-group")],s.UUIButtonGroupElement);var $u=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,Eu=(i,e,t,r)=>{for(var o=r>1?void 0:r?Uu(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$u(e,t,o),o};s.UUIActionBarElement=class extends s.UUIButtonGroupElement{},s.UUIActionBarElement.styles=[...s.UUIButtonGroupElement.styles,p`::slotted(*){--uui-button-padding-left-factor:0.5;--uui-button-padding-right-factor:0.5}::slotted(uui-button:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:2}::slotted(uui-button:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:2}::slotted(uui-button:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:2;--uui-button-padding-right-factor:2}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}`],s.UUIActionBarElement=Eu([b("uui-action-bar")],s.UUIActionBarElement);var ku=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,Yt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Iu(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ku(e,t,o),o};s.UUIAvatarGroupElement=class extends m{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(e){e.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((e,t)=>{e.style.display=t<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?u`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}},s.UUIAvatarGroupElement.styles=[p`:host{display:inline-flex;align-items:center;padding-left:3px;padding-right:3px}::slotted(uui-avatar){margin-left:-.2em;margin-right:-.2em;border:.1em solid var(--uui-avatar-border-color)}#overflow-indication{margin-left:6px}`],Yt([xe({selector:"uui-avatar, [uui-avatar]",flatten:!0})],s.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Yt([g()],s.UUIAvatarGroupElement.prototype,"_avatarArray",2),Yt([l({type:Number,attribute:!0})],s.UUIAvatarGroupElement.prototype,"limit",2),s.UUIAvatarGroupElement=Yt([b("uui-avatar-group")],s.UUIAvatarGroupElement);var xu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,et=(i,e,t,r)=>{for(var o=r>1?void 0:r?Cu(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xu(e,t,o),o};s.UUIAvatarElement=class extends m{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(e){const t=this._name;this._name=e,this.initials=this.createInitials(this._name),this.requestUpdate("title",t)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(e){let t="";if(!e)return t;const r=e.match(/(\w+)/g);return r!=null&&r.length?(t=r[0].substring(0,1),r.length>1&&(t+=r[r.length-1].substring(0,1)),t.toUpperCase()):t}renderImage(){return u`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.name}">`}render(){return u`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}},s.UUIAvatarElement.styles=[p`:host{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;overflow:hidden;border-radius:50%;font-weight:700;-webkit-font-smoothing:subpixel-antialiased;width:calc(2em + 4px);height:calc(2em + 4px);user-select:none;aspect-ratio:1;background-color:var(--uui-palette-spanish-pink,#f5c1bc);color:var(--uui-palette-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],et([l({type:Boolean,attribute:!0,reflect:!0})],s.UUIAvatarElement.prototype,"overflow",2),et([l({type:String,attribute:"img-src"})],s.UUIAvatarElement.prototype,"imgSrc",2),et([l({type:String,attribute:"img-srcset"})],s.UUIAvatarElement.prototype,"imgSrcset",2),et([l({type:String,reflect:!0})],s.UUIAvatarElement.prototype,"name",1),et([g()],s.UUIAvatarElement.prototype,"initials",2),s.UUIAvatarElement=et([b("uui-avatar")],s.UUIAvatarElement);var Pu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,Zt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Su(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Pu(e,t,o),o};s.UUIBadgeElement=class extends m{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},s.UUIBadgeElement.styles=[p`:host{position:var(--uui-badge-position,absolute);display:flex;justify-content:center;align-items:center;padding:var(--uui-size-1,3px) var(--uui-size-2,6px);inset:var(--uui-badge-inset,-8px -8px auto auto);text-align:center;font-size:var(--uui-badge-font-size,var(--uui-type-small-size,12px));font-weight:900;line-height:1;margin-right:0;min-width:var(--uui-size-8,24px);min-height:var(--uui-size-8,24px);box-sizing:border-box;border-radius:var(--uui-size-4,12px);border:1px solid transparent}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#1f9554);--color-standalone:var(--uui-color-positive-standalone,#19864a);--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}::slotted(uui-icon){margin-left:-.2em;margin-right:-.2em}@keyframes --uui-badge-bounce{0%{transform:translateY(0)}20%{transform:translateY(-6px)}40%{transform:translateY(0)}55%{transform:translateY(-3px)}70%{transform:translateY(0)}100%{transform:translateY(0)}}:host([attention]){animation-duration:1.4s;animation-iteration-count:infinite;animation-name:--uui-badge-bounce;animation-timing-function:ease}@media (prefers-reduced-motion){:host([attention]){animation:none}}`],Zt([l({reflect:!0})],s.UUIBadgeElement.prototype,"color",2),Zt([l({reflect:!0})],s.UUIBadgeElement.prototype,"look",2),Zt([l({type:Boolean,reflect:!0})],s.UUIBadgeElement.prototype,"attention",2),s.UUIBadgeElement=Zt([b("uui-badge")],s.UUIBadgeElement);var Ou=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Au=(i,e,t,r)=>{for(var o=r>1?void 0:r?zu(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ou(e,t,o),o};const St=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Au([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Lu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,Zr=(i,e,t,r)=>{for(var o=r>1?void 0:r?ju(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lu(e,t,o),o};const J=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Zr([l({type:String})],t.prototype,"label",2),Zr([g()],t.prototype,"_labelSlotHasContent",2),t};var Nu=Object.defineProperty,Qr=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable,Jr=(i,e,t)=>e in i?Nu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Du=(i,e)=>{for(var t in e||(e={}))Tu.call(e,t)&&Jr(i,t,e[t]);if(Qr)for(var t of Qr(e))Mu.call(e,t)&&Jr(i,t,e[t]);return i};let Vu=class extends Event{constructor(e,t={}){super(e,Du({},t)),this.detail=t.detail||{}}};var Hu=Object.defineProperty,en=Object.getOwnPropertySymbols,Bu=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,tn=(i,e,t)=>e in i?Hu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,on=(i,e)=>{for(var t in e||(e={}))Bu.call(e,t)&&tn(i,t,e[t]);if(en)for(var t of en(e))Ru.call(e,t)&&tn(i,t,e[t]);return i};let tt=class extends Vu{constructor(e,t={}){super(e,on(on({},{bubbles:!0,cancelable:!0}),t))}};tt.SELECTED="selected",tt.DESELECTED="deselected";var Fu=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,rn=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gu(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fu(e,t,o),o};const it=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{if(this.selectableTarget===this){if(o.key!==" "&&o.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget||this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new tt(tt.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new tt(tt.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return rn([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),rn([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Ku=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wu(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qu(e,t,o),o};const Qt=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return Ku([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var Xu=Object.defineProperty,nn=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,sn=(i,e,t)=>e in i?Xu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qu=(i,e)=>{for(var t in e||(e={}))Yu.call(e,t)&&sn(i,t,e[t]);if(nn)for(var t of nn(e))Zu.call(e,t)&&sn(i,t,e[t]);return i};let an=class extends Event{constructor(e,t={}){super(e,Qu({},t)),this.detail=t.detail||{}}};var Ju=Object.defineProperty,ln=Object.getOwnPropertySymbols,ec=Object.prototype.hasOwnProperty,tc=Object.prototype.propertyIsEnumerable,un=(i,e,t)=>e in i?Ju(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,cn=(i,e)=>{for(var t in e||(e={}))ec.call(e,t)&&un(i,t,e[t]);if(ln)for(var t of ln(e))tc.call(e,t)&&un(i,t,e[t]);return i};let ot=class extends an{constructor(e,t={}){super(e,cn(cn({},{bubbles:!0}),t))}};ot.VALID="valid",ot.INVALID="invalid";var ic=Object.defineProperty,hn=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,rc=Object.prototype.propertyIsEnumerable,dn=(i,e,t)=>e in i?ic(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,pn=(i,e)=>{for(var t in e||(e={}))oc.call(e,t)&&dn(i,t,e[t]);if(hn)for(var t of hn(e))rc.call(e,t)&&dn(i,t,e[t]);return i};let bn=class extends an{constructor(e,t={}){super(e,pn(pn({},{bubbles:!0,cancelable:!0}),t))}};bn.SELECTED="selected",bn.DESELECTED="deselected";var nc=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,De=(i,e,t,r)=>{for(var o=r>1?void 0:r?sc(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nc(e,t,o),o};const ee=i=>{class e extends i{constructor(...r){super(...r),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(r){const o=this._value;this._value=r,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",o)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(r,o,n){const a={flagKey:r,getMessageMethod:o,checkMethod:n};return this._validators.push(a),a}removeValidator(r){const o=this._validators.indexOf(r);o!==-1&&this._validators.splice(o,1)}addFormControlElement(r){this._formCtrlElements.push(r)}setCustomValidity(r){this._customValidityObject&&this.removeValidator(this._customValidityObject),r!=null&&r!==""&&(this._customValidityObject=this.addValidator("customError",()=>r,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(o=>{for(const n in o.validity)n!=="valid"&&o.validity[n]&&(this._validityState[n]=!0,this._internals.setValidity(this._validityState,o.validationMessage,o))}),this._validators.forEach(o=>{o.checkMethod()&&(this._validityState[o.flagKey]=!0,this._internals.setValidity(this._validityState,o.getMessageMethod(),this.getFormElement()))});const r=Object.values(this._validityState).includes(!0);this._validityState.valid=!r,r?this.dispatchEvent(new ot(ot.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new ot(ot.VALID)))}updated(r){super.updated(r),this._runValidators()}submit(){var r;(r=this._form)==null||r.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var r;for(const o in this._formCtrlElements)if(this._formCtrlElements[o].checkValidity()===!1)return!1;return(r=this._internals)==null?void 0:r.checkValidity()}get validity(){return this._validityState}get validationMessage(){var r;return(r=this._internals)==null?void 0:r.validationMessage}}return e.formAssociated=!0,De([l({type:String})],e.prototype,"name",2),De([l()],e.prototype,"value",1),De([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),De([l({type:Boolean,reflect:!0})],e.prototype,"required",2),De([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),De([l({type:Boolean,reflect:!0})],e.prototype,"error",2),De([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e},ac=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,n=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(n)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||null}return null};var lc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,cc=(i,e,t,r)=>{for(var o=r>1?void 0:r?uc(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lc(e,t,o),o},mn=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},vn=(i,e,t)=>(mn(i,e,"read from private field"),t?t.call(i):e.get(i)),gn=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},hc=(i,e,t,r)=>(mn(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t);const dc=i=>{var e,t;class r extends i{constructor(...n){super(...n),gn(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=ac(this,"id",this.popoverContainerElement);a&&(vn(this,e)?a.hidePopover():a.showPopover())},gn(this,t,a=>{requestAnimationFrame(()=>{hc(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",vn(this,t))}}return e=new WeakMap,t=new WeakMap,cc([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};var pc=Object.defineProperty,fn=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,yn=(i,e,t)=>e in i?pc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,vc=(i,e)=>{for(var t in e||(e={}))bc.call(e,t)&&yn(i,t,e[t]);if(fn)for(var t of fn(e))mc.call(e,t)&&yn(i,t,e[t]);return i};let P=class extends Event{constructor(e,t={}){super(e,vc({},t)),this.detail=t.detail||{}}};var gc=Object.defineProperty,_n=Object.getOwnPropertySymbols,fc=Object.prototype.hasOwnProperty,yc=Object.prototype.propertyIsEnumerable,wn=(i,e,t)=>e in i?gc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,$n=(i,e)=>{for(var t in e||(e={}))fc.call(e,t)&&wn(i,t,e[t]);if(_n)for(var t of _n(e))yc.call(e,t)&&wn(i,t,e[t]);return i};let rt=class extends P{constructor(e,t={}){super(e,$n($n({},{bubbles:!0}),t))}};rt.VALID="valid",rt.INVALID="invalid";var _c=Object.defineProperty,Un=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,$c=Object.prototype.propertyIsEnumerable,En=(i,e,t)=>e in i?_c(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,kn=(i,e)=>{for(var t in e||(e={}))wc.call(e,t)&&En(i,t,e[t]);if(Un)for(var t of Un(e))$c.call(e,t)&&En(i,t,e[t]);return i};let Ce=class extends P{constructor(e,t={}){super(e,kn(kn({},{bubbles:!0,cancelable:!0}),t))}};Ce.SELECTED="selected",Ce.DESELECTED="deselected";var Uc=Object.defineProperty,In=Object.getOwnPropertySymbols,Ec=Object.prototype.hasOwnProperty,kc=Object.prototype.propertyIsEnumerable,xn=(i,e,t)=>e in i?Uc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Cn=(i,e)=>{for(var t in e||(e={}))Ec.call(e,t)&&xn(i,t,e[t]);if(In)for(var t of In(e))kc.call(e,t)&&xn(i,t,e[t]);return i};let Jt=class extends P{constructor(e,t={}){super(e,Cn(Cn({},{bubbles:!0}),t))}};Jt.CHANGE="change";var Ic=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,ei=(i,e,t,r)=>{for(var o=r>1?void 0:r?xc(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ic(e,t,o),o};let te=class extends ee(J("",m)){constructor(e="checkbox"){super(),this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(e){const t=this._value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}getFormElement(){return this._input}_onKeypress(e){e.key=="Enter"&&this.submit()}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var t;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector("label");let o=!1;this._input.addEventListener("blur",()=>{o===!1&&this.style.setProperty("--uui-show-focus-outline","1"),o=!1}),r.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),o=!0}),r.addEventListener("mouseup",()=>{o=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new Jt(Jt.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}};te.styles=[p`:host{display:inline-block}label{cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}input{position:absolute;height:0;width:0;margin-top:-4px}:host([label-position=left]) label{flex-direction:row-reverse}:host([label-position=top]) label{gap:var(--uui-size-half-base-unit);flex-direction:column-reverse}:host([label-position=bottom]) label{gap:var(--uui-size-half-base-unit);flex-direction:column}:host([disabled]) .label{opacity:.5}`],ei([l({type:String,attribute:"label-position",reflect:!0})],te.prototype,"labelPosition",2),ei([l({type:Boolean})],te.prototype,"checked",1),ei([l({type:Boolean,reflect:!0})],te.prototype,"disabled",2),ei([C("#input")],te.prototype,"_input",2);/**
|
|
215
|
+
*/var Ji;const El=((Ji=window.HTMLSlotElement)===null||Ji===void 0?void 0:Ji.prototype.assignedElements)!=null?(i,e)=>i.assignedElements(e):(i,e)=>i.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);function Ie(i){const{slot:e,selector:t}=i??{};return Qi({descriptor:r=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(n),h=s!=null?El(s,i):[];return t?h.filter(c=>c.matches(t)):h},enumerable:!0,configurable:!0})})}const xl=p`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,kl=Y("uui-blink 0.9s infinite both"),Il=p`@keyframes pulse{0%{-webkit-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{-webkit-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{-webkit-transform:translate(-50%,-50%) scale(2.2);transform:translate(-50%,-50%) scale(2.2);opacity:0}}`,Cl=Y("pulse 0.8s ease-in-out infinite both"),zl=p`@keyframes uui-horizontal-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(1px)}30%,50%,70%{transform:translateX(-2px)}40%,60%{transform:translateX(2px)}}`,Pl=Y("uui-horizontal-shake 600ms ease backwards");var Sl=Object.defineProperty,Nr=Object.getOwnPropertySymbols,Ol=Object.prototype.hasOwnProperty,Al=Object.prototype.propertyIsEnumerable,Tr=(i,e,t)=>e in i?Sl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ll=(i,e)=>{for(var t in e||(e={}))Ol.call(e,t)&&Tr(i,t,e[t]);if(Nr)for(var t of Nr(e))Al.call(e,t)&&Tr(i,t,e[t]);return i};let eo=class extends Event{constructor(e,t={}){super(e,Ll({},t)),this.detail=t.detail||{}}};var jl=Object.defineProperty,Mr=Object.getOwnPropertySymbols,Nl=Object.prototype.hasOwnProperty,Tl=Object.prototype.propertyIsEnumerable,Dr=(i,e,t)=>e in i?jl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Vr=(i,e)=>{for(var t in e||(e={}))Nl.call(e,t)&&Dr(i,t,e[t]);if(Mr)for(var t of Mr(e))Tl.call(e,t)&&Dr(i,t,e[t]);return i};let Ne=class extends eo{constructor(e,t={}){super(e,Vr(Vr({},{bubbles:!0}),t))}};Ne.VALID="valid",Ne.INVALID="invalid";var Ml=Object.defineProperty,Hr=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable,Br=(i,e,t)=>e in i?Ml(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Rr=(i,e)=>{for(var t in e||(e={}))Dl.call(e,t)&&Br(i,t,e[t]);if(Hr)for(var t of Hr(e))Vl.call(e,t)&&Br(i,t,e[t]);return i};let Te=class extends eo{constructor(e,t={}){super(e,Rr(Rr({},{bubbles:!0,cancelable:!0}),t))}};Te.SELECTED="selected",Te.DESELECTED="deselected";var Hl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,Rl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bl(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Hl(e,t,o),o};const Fl=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Rl([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Gl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Fr=(i,e,t,r)=>{for(var o=r>1?void 0:r?ql(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Gl(e,t,o),o};const Wl=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Fr([l({type:String})],t.prototype,"label",2),Fr([g()],t.prototype,"_labelSlotHasContent",2),t};var Kl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Gr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xl(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Kl(e,t,o),o};const Yl=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{if(this.selectableTarget===this){if(o.key!==" "&&o.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget||this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new Te(Te.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new Te(Te.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return Gr([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Gr([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Zl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,Jl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ql(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Zl(e,t,o),o};const eu=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return Jl([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var tu=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,Me=(i,e,t,r)=>{for(var o=r>1?void 0:r?iu(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&tu(e,t,o),o};const ou=i=>{class e extends i{constructor(...r){super(...r),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(r){const o=this._value;this._value=r,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",o)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(r,o,n){const s={flagKey:r,getMessageMethod:o,checkMethod:n};return this._validators.push(s),s}removeValidator(r){const o=this._validators.indexOf(r);o!==-1&&this._validators.splice(o,1)}addFormControlElement(r){this._formCtrlElements.push(r)}setCustomValidity(r){this._customValidityObject&&this.removeValidator(this._customValidityObject),r!=null&&r!==""&&(this._customValidityObject=this.addValidator("customError",()=>r,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(o=>{for(const n in o.validity)n!=="valid"&&o.validity[n]&&(this._validityState[n]=!0,this._internals.setValidity(this._validityState,o.validationMessage,o))}),this._validators.forEach(o=>{o.checkMethod()&&(this._validityState[o.flagKey]=!0,this._internals.setValidity(this._validityState,o.getMessageMethod(),this.getFormElement()))});const r=Object.values(this._validityState).includes(!0);this._validityState.valid=!r,r?this.dispatchEvent(new Ne(Ne.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new Ne(Ne.VALID)))}updated(r){super.updated(r),this._runValidators()}submit(){var r;(r=this._form)==null||r.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var r;for(const o in this._formCtrlElements)if(this._formCtrlElements[o].checkValidity()===!1)return!1;return(r=this._internals)==null?void 0:r.checkValidity()}get validity(){return this._validityState}get validationMessage(){var r;return(r=this._internals)==null?void 0:r.validationMessage}}return e.formAssociated=!0,Me([l({type:String})],e.prototype,"name",2),Me([l()],e.prototype,"value",1),Me([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),Me([l({type:Boolean,reflect:!0})],e.prototype,"required",2),Me([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),Me([l({type:Boolean,reflect:!0})],e.prototype,"error",2),Me([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};let ru=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const nu=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},au=(i,e)=>{function t(o){const n=i.getBoundingClientRect(),s=i.ownerDocument.defaultView,h=n.left+s.scrollX,c=n.top+s.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const v=d.pageX-h,f=d.pageY-c;e!=null&&e.onMove&&e.onMove(v,f)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e!=null&&e.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e!=null&&e.initialEvent&&t(e.initialEvent)},su=(i,e,t)=>Math.min(Math.max(i,e),t),lu=(i,e,t)=>t+e-i,uu=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e},qr=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,n=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(n)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||null}return null};var cu=Object.defineProperty,hu=Object.getOwnPropertyDescriptor,du=(i,e,t,r)=>{for(var o=r>1?void 0:r?hu(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&cu(e,t,o),o},Wr=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Kr=(i,e,t)=>(Wr(i,e,"read from private field"),t?t.call(i):e.get(i)),Xr=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},pu=(i,e,t,r)=>(Wr(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t);const bu=i=>{var e,t;class r extends i{constructor(...n){super(...n),Xr(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const s=qr(this,"id",this.popoverContainerElement);s&&(Kr(this,e)?s.hidePopover():s.showPopover())},Xr(this,t,s=>{requestAnimationFrame(()=>{pu(this,e,s.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",Kr(this,t))}}return e=new WeakMap,t=new WeakMap,du([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};function mu(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}const vu=["default","primary","secondary","outline","placeholder"],gu=["default","positive","warning","danger"],fu=["h1","h2","h3","h4","h5","h6"];function b(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}var yu=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,wu=(i,e,t,r)=>{for(var o=r>1?void 0:r?_u(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&yu(e,t,o),o};a.UUIButtonGroupElement=class extends m{render(){return u`<slot></slot>`}},a.UUIButtonGroupElement.styles=[p`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted([look=outline]:not(:first-child)){--uui-button-merge-border-left:1}::slotted([look=placeholder]:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(uui-popover){width:unset;--uui-popover-toggle-slot-button-border-radius:0}::slotted(uui-popover:not(:first-child)){--uui-popover-toggle-slot-button-merge-border-left:1}::slotted(uui-popover:first-child){--uui-popover-toggle-slot-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(uui-popover:last-child){--uui-popover-toggle-slot-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],a.UUIButtonGroupElement=wu([b("uui-button-group")],a.UUIButtonGroupElement);var $u=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,Eu=(i,e,t,r)=>{for(var o=r>1?void 0:r?Uu(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&$u(e,t,o),o};a.UUIActionBarElement=class extends a.UUIButtonGroupElement{},a.UUIActionBarElement.styles=[...a.UUIButtonGroupElement.styles,p`::slotted(*){--uui-button-padding-left-factor:0.5;--uui-button-padding-right-factor:0.5}::slotted(uui-button:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:2}::slotted(uui-button:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:2}::slotted(uui-button:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:2;--uui-button-padding-right-factor:2}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}`],a.UUIActionBarElement=Eu([b("uui-action-bar")],a.UUIActionBarElement);var xu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,Xt=(i,e,t,r)=>{for(var o=r>1?void 0:r?ku(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&xu(e,t,o),o};a.UUIAvatarGroupElement=class extends m{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(e){e.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((e,t)=>{e.style.display=t<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?u`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}},a.UUIAvatarGroupElement.styles=[p`:host{display:inline-flex;align-items:center;padding-left:3px;padding-right:3px}::slotted(uui-avatar){margin-left:-.2em;margin-right:-.2em;border:.1em solid var(--uui-avatar-border-color)}#overflow-indication{margin-left:6px}`],Xt([Ie({selector:"uui-avatar, [uui-avatar]",flatten:!0})],a.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Xt([g()],a.UUIAvatarGroupElement.prototype,"_avatarArray",2),Xt([l({type:Number,attribute:!0})],a.UUIAvatarGroupElement.prototype,"limit",2),a.UUIAvatarGroupElement=Xt([b("uui-avatar-group")],a.UUIAvatarGroupElement);var Iu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,et=(i,e,t,r)=>{for(var o=r>1?void 0:r?Cu(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Iu(e,t,o),o};a.UUIAvatarElement=class extends m{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(e){const t=this._name;this._name=e,this.initials=this.createInitials(this._name),this.requestUpdate("title",t)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(e){let t="";if(!e)return t;const r=e.match(/(\w+)/g);return r!=null&&r.length?(t=r[0].substring(0,1),r.length>1&&(t+=r[r.length-1].substring(0,1)),t.toUpperCase()):t}renderImage(){return u`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.name}">`}render(){return u`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}},a.UUIAvatarElement.styles=[p`:host{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;overflow:hidden;border-radius:50%;font-weight:700;-webkit-font-smoothing:subpixel-antialiased;width:calc(2em + 4px);height:calc(2em + 4px);user-select:none;aspect-ratio:1;background-color:var(--uui-palette-spanish-pink,#f5c1bc);color:var(--uui-palette-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],et([l({type:Boolean,attribute:!0,reflect:!0})],a.UUIAvatarElement.prototype,"overflow",2),et([l({type:String,attribute:"img-src"})],a.UUIAvatarElement.prototype,"imgSrc",2),et([l({type:String,attribute:"img-srcset"})],a.UUIAvatarElement.prototype,"imgSrcset",2),et([l({type:String,reflect:!0})],a.UUIAvatarElement.prototype,"name",1),et([g()],a.UUIAvatarElement.prototype,"initials",2),a.UUIAvatarElement=et([b("uui-avatar")],a.UUIAvatarElement);var zu=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,Yt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pu(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&zu(e,t,o),o};a.UUIBadgeElement=class extends m{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},a.UUIBadgeElement.styles=[p`:host{position:var(--uui-badge-position,absolute);display:flex;justify-content:center;align-items:center;padding:var(--uui-size-1,3px) var(--uui-size-2,6px);inset:var(--uui-badge-inset,-8px -8px auto auto);text-align:center;font-size:var(--uui-badge-font-size,var(--uui-type-small-size,12px));font-weight:900;line-height:1;margin-right:0;min-width:var(--uui-size-8,24px);min-height:var(--uui-size-8,24px);box-sizing:border-box;border-radius:var(--uui-size-4,12px);border:1px solid transparent}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#1f9554);--color-standalone:var(--uui-color-positive-standalone,#19864a);--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}::slotted(uui-icon){margin-left:-.2em;margin-right:-.2em}@keyframes --uui-badge-bounce{0%{transform:translateY(0)}20%{transform:translateY(-6px)}40%{transform:translateY(0)}55%{transform:translateY(-3px)}70%{transform:translateY(0)}100%{transform:translateY(0)}}:host([attention]){animation-duration:1.4s;animation-iteration-count:infinite;animation-name:--uui-badge-bounce;animation-timing-function:ease}@media (prefers-reduced-motion){:host([attention]){animation:none}}`],Yt([l({reflect:!0})],a.UUIBadgeElement.prototype,"color",2),Yt([l({reflect:!0})],a.UUIBadgeElement.prototype,"look",2),Yt([l({type:Boolean,reflect:!0})],a.UUIBadgeElement.prototype,"attention",2),a.UUIBadgeElement=Yt([b("uui-badge")],a.UUIBadgeElement);var Su=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,Au=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ou(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Su(e,t,o),o};const Pt=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Au([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Lu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,Yr=(i,e,t,r)=>{for(var o=r>1?void 0:r?ju(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Lu(e,t,o),o};const ee=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Yr([l({type:String})],t.prototype,"label",2),Yr([g()],t.prototype,"_labelSlotHasContent",2),t};var Nu=Object.defineProperty,Zr=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable,Qr=(i,e,t)=>e in i?Nu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Du=(i,e)=>{for(var t in e||(e={}))Tu.call(e,t)&&Qr(i,t,e[t]);if(Zr)for(var t of Zr(e))Mu.call(e,t)&&Qr(i,t,e[t]);return i};let Vu=class extends Event{constructor(e,t={}){super(e,Du({},t)),this.detail=t.detail||{}}};var Hu=Object.defineProperty,Jr=Object.getOwnPropertySymbols,Bu=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,en=(i,e,t)=>e in i?Hu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,tn=(i,e)=>{for(var t in e||(e={}))Bu.call(e,t)&&en(i,t,e[t]);if(Jr)for(var t of Jr(e))Ru.call(e,t)&&en(i,t,e[t]);return i};let tt=class extends Vu{constructor(e,t={}){super(e,tn(tn({},{bubbles:!0,cancelable:!0}),t))}};tt.SELECTED="selected",tt.DESELECTED="deselected";var Fu=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,on=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gu(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Fu(e,t,o),o};const it=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{if(this.selectableTarget===this){if(o.key!==" "&&o.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget||this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new tt(tt.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new tt(tt.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return on([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),on([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Ku=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wu(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&qu(e,t,o),o};const Zt=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return Ku([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var Xu=Object.defineProperty,rn=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,nn=(i,e,t)=>e in i?Xu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qu=(i,e)=>{for(var t in e||(e={}))Yu.call(e,t)&&nn(i,t,e[t]);if(rn)for(var t of rn(e))Zu.call(e,t)&&nn(i,t,e[t]);return i};let an=class extends Event{constructor(e,t={}){super(e,Qu({},t)),this.detail=t.detail||{}}};var Ju=Object.defineProperty,sn=Object.getOwnPropertySymbols,ec=Object.prototype.hasOwnProperty,tc=Object.prototype.propertyIsEnumerable,ln=(i,e,t)=>e in i?Ju(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,un=(i,e)=>{for(var t in e||(e={}))ec.call(e,t)&&ln(i,t,e[t]);if(sn)for(var t of sn(e))tc.call(e,t)&&ln(i,t,e[t]);return i};let ot=class extends an{constructor(e,t={}){super(e,un(un({},{bubbles:!0}),t))}};ot.VALID="valid",ot.INVALID="invalid";var ic=Object.defineProperty,cn=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,rc=Object.prototype.propertyIsEnumerable,hn=(i,e,t)=>e in i?ic(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,dn=(i,e)=>{for(var t in e||(e={}))oc.call(e,t)&&hn(i,t,e[t]);if(cn)for(var t of cn(e))rc.call(e,t)&&hn(i,t,e[t]);return i};let pn=class extends an{constructor(e,t={}){super(e,dn(dn({},{bubbles:!0,cancelable:!0}),t))}};pn.SELECTED="selected",pn.DESELECTED="deselected";var nc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,De=(i,e,t,r)=>{for(var o=r>1?void 0:r?ac(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&nc(e,t,o),o};const te=i=>{class e extends i{constructor(...r){super(...r),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(r){const o=this._value;this._value=r,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",o)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(r,o,n){const s={flagKey:r,getMessageMethod:o,checkMethod:n};return this._validators.push(s),s}removeValidator(r){const o=this._validators.indexOf(r);o!==-1&&this._validators.splice(o,1)}addFormControlElement(r){this._formCtrlElements.push(r)}setCustomValidity(r){this._customValidityObject&&this.removeValidator(this._customValidityObject),r!=null&&r!==""&&(this._customValidityObject=this.addValidator("customError",()=>r,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(o=>{for(const n in o.validity)n!=="valid"&&o.validity[n]&&(this._validityState[n]=!0,this._internals.setValidity(this._validityState,o.validationMessage,o))}),this._validators.forEach(o=>{o.checkMethod()&&(this._validityState[o.flagKey]=!0,this._internals.setValidity(this._validityState,o.getMessageMethod(),this.getFormElement()))});const r=Object.values(this._validityState).includes(!0);this._validityState.valid=!r,r?this.dispatchEvent(new ot(ot.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new ot(ot.VALID)))}updated(r){super.updated(r),this._runValidators()}submit(){var r;(r=this._form)==null||r.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var r;for(const o in this._formCtrlElements)if(this._formCtrlElements[o].checkValidity()===!1)return!1;return(r=this._internals)==null?void 0:r.checkValidity()}get validity(){return this._validityState}get validationMessage(){var r;return(r=this._internals)==null?void 0:r.validationMessage}}return e.formAssociated=!0,De([l({type:String})],e.prototype,"name",2),De([l()],e.prototype,"value",1),De([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),De([l({type:Boolean,reflect:!0})],e.prototype,"required",2),De([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),De([l({type:Boolean,reflect:!0})],e.prototype,"error",2),De([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e},sc=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,n=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(n)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||null}return null};var lc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,cc=(i,e,t,r)=>{for(var o=r>1?void 0:r?uc(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&lc(e,t,o),o},bn=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},mn=(i,e,t)=>(bn(i,e,"read from private field"),t?t.call(i):e.get(i)),vn=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},hc=(i,e,t,r)=>(bn(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t);const dc=i=>{var e,t;class r extends i{constructor(...n){super(...n),vn(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const s=sc(this,"id",this.popoverContainerElement);s&&(mn(this,e)?s.hidePopover():s.showPopover())},vn(this,t,s=>{requestAnimationFrame(()=>{hc(this,e,s.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",mn(this,t))}}return e=new WeakMap,t=new WeakMap,cc([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};var pc=Object.defineProperty,gn=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,fn=(i,e,t)=>e in i?pc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,vc=(i,e)=>{for(var t in e||(e={}))bc.call(e,t)&&fn(i,t,e[t]);if(gn)for(var t of gn(e))mc.call(e,t)&&fn(i,t,e[t]);return i};let z=class extends Event{constructor(e,t={}){super(e,vc({},t)),this.detail=t.detail||{}}};var gc=Object.defineProperty,yn=Object.getOwnPropertySymbols,fc=Object.prototype.hasOwnProperty,yc=Object.prototype.propertyIsEnumerable,_n=(i,e,t)=>e in i?gc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,wn=(i,e)=>{for(var t in e||(e={}))fc.call(e,t)&&_n(i,t,e[t]);if(yn)for(var t of yn(e))yc.call(e,t)&&_n(i,t,e[t]);return i};let rt=class extends z{constructor(e,t={}){super(e,wn(wn({},{bubbles:!0}),t))}};rt.VALID="valid",rt.INVALID="invalid";var _c=Object.defineProperty,$n=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,$c=Object.prototype.propertyIsEnumerable,Un=(i,e,t)=>e in i?_c(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,En=(i,e)=>{for(var t in e||(e={}))wc.call(e,t)&&Un(i,t,e[t]);if($n)for(var t of $n(e))$c.call(e,t)&&Un(i,t,e[t]);return i};let Ce=class extends z{constructor(e,t={}){super(e,En(En({},{bubbles:!0,cancelable:!0}),t))}};Ce.SELECTED="selected",Ce.DESELECTED="deselected";var Uc=Object.defineProperty,xn=Object.getOwnPropertySymbols,Ec=Object.prototype.hasOwnProperty,xc=Object.prototype.propertyIsEnumerable,kn=(i,e,t)=>e in i?Uc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,In=(i,e)=>{for(var t in e||(e={}))Ec.call(e,t)&&kn(i,t,e[t]);if(xn)for(var t of xn(e))xc.call(e,t)&&kn(i,t,e[t]);return i};let Qt=class extends z{constructor(e,t={}){super(e,In(In({},{bubbles:!0}),t))}};Qt.CHANGE="change";var kc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,Jt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ic(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&kc(e,t,o),o};let ie=class extends te(ee("",m)){constructor(e="checkbox"){super(),this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(e){const t=this._value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}getFormElement(){return this._input}_onKeypress(e){e.key=="Enter"&&this.submit()}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var t;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector("label");let o=!1;this._input.addEventListener("blur",()=>{o===!1&&this.style.setProperty("--uui-show-focus-outline","1"),o=!1}),r.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),o=!0}),r.addEventListener("mouseup",()=>{o=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new Qt(Qt.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}};ie.styles=[p`:host{display:inline-block}label{cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}input{position:absolute;height:0;width:0;margin-top:-4px}:host([label-position=left]) label{flex-direction:row-reverse}:host([label-position=top]) label{gap:var(--uui-size-half-base-unit);flex-direction:column-reverse}:host([label-position=bottom]) label{gap:var(--uui-size-half-base-unit);flex-direction:column}:host([disabled]) .label{opacity:.5}`],Jt([l({type:String,attribute:"label-position",reflect:!0})],ie.prototype,"labelPosition",2),Jt([l({type:Boolean})],ie.prototype,"checked",1),Jt([l({type:Boolean,reflect:!0})],ie.prototype,"disabled",2),Jt([C("#input")],ie.prototype,"_input",2);var Cc=`.uui-text {
|
|
216
|
+
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
217
|
+
font-size: 15px;
|
|
218
|
+
line-height: calc(var(--uui-size-2,6px) * 4);
|
|
219
|
+
-webkit-font-smoothing: antialiased;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.uui-text h1,
|
|
223
|
+
.uui-text .uui-h1 {
|
|
224
|
+
font-size: var(--uui-type-h1-size,60px);
|
|
225
|
+
line-height: var(--uui-size-layout-4,66px);
|
|
226
|
+
font-weight: 300;
|
|
227
|
+
margin-left: -5px;
|
|
228
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
229
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
230
|
+
}
|
|
231
|
+
.uui-text p + h1,
|
|
232
|
+
.uui-text p + .uui-h1 {
|
|
233
|
+
margin-top: var(--uui-size-layout-4,66px);
|
|
234
|
+
}
|
|
235
|
+
.uui-text h1.--no-top-margin,
|
|
236
|
+
.uui-text h1:first-child,
|
|
237
|
+
.uui-text .uui-h1.--no-top-margin,
|
|
238
|
+
.uui-text .uui-h1:first-child {
|
|
239
|
+
margin-top: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.uui-text h2,
|
|
243
|
+
.uui-text .uui-h2 {
|
|
244
|
+
font-size: var(--uui-type-h2-size,42px);
|
|
245
|
+
line-height: var(--uui-size-layout-3,42px);
|
|
246
|
+
font-weight: 300;
|
|
247
|
+
margin-left: -3px;
|
|
248
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
249
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
250
|
+
}
|
|
251
|
+
.uui-text p + h2,
|
|
252
|
+
.uui-text p + .uui-h2 {
|
|
253
|
+
margin-top: var(--uui-size-layout-3,42px);
|
|
254
|
+
}
|
|
255
|
+
.uui-text h2.--no-top-margin,
|
|
256
|
+
.uui-text h2:first-child,
|
|
257
|
+
.uui-text .uui-h2.--no-top-margin,
|
|
258
|
+
.uui-text .uui-h2:first-child {
|
|
259
|
+
margin-top: 0;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.uui-text h3,
|
|
263
|
+
.uui-text .uui-h3 {
|
|
264
|
+
font-size: var(--uui-type-h3-size,30px);
|
|
265
|
+
line-height: var(--uui-size-large);
|
|
266
|
+
font-weight: 300;
|
|
267
|
+
margin-left: -2px;
|
|
268
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
269
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
270
|
+
}
|
|
271
|
+
.uui-text h3.--no-top-margin,
|
|
272
|
+
.uui-text h3:first-child,
|
|
273
|
+
.uui-text .uui-h3.--no-top-margin,
|
|
274
|
+
.uui-text .uui-h3:first-child {
|
|
275
|
+
margin-top: 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.uui-text h4,
|
|
279
|
+
.uui-text .uui-h4 {
|
|
280
|
+
font-size: var(--uui-type-h4-size,21px);
|
|
281
|
+
line-height: 21px;
|
|
282
|
+
font-weight: 400;
|
|
283
|
+
margin-left: -1px;
|
|
284
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
285
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
286
|
+
}
|
|
287
|
+
.uui-text h4.--no-top-margin,
|
|
288
|
+
.uui-text h4:first-child,
|
|
289
|
+
.uui-text .uui-h4.--no-top-margin,
|
|
290
|
+
.uui-text .uui-h4:first-child {
|
|
291
|
+
margin-top: 0;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.uui-text h5,
|
|
295
|
+
.uui-text .uui-h5 {
|
|
296
|
+
font-size: var(--uui-type-h5-size,15px);
|
|
297
|
+
line-height: inherit;
|
|
298
|
+
font-weight: 700;
|
|
299
|
+
margin-left: 0;
|
|
300
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
301
|
+
margin-bottom: 0;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.uui-text h5.--no-top-margin,
|
|
305
|
+
.uui-text h5:first-child,
|
|
306
|
+
.uui-text .uui-h5.--no-top-margin,
|
|
307
|
+
.uui-text .uui-h5:first-child {
|
|
308
|
+
margin-top: 0;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.uui-text p {
|
|
312
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
313
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
314
|
+
}
|
|
315
|
+
.uui-text p.uui-lead {
|
|
316
|
+
font-size: var(--uui-size-6,18px);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.uui-text a {
|
|
320
|
+
color: var(--uui-color-interactive,#1b264f);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.uui-text a:link,
|
|
324
|
+
.uui-text a:active {
|
|
325
|
+
color: var(--uui-color-interactive,#1b264f);
|
|
326
|
+
}
|
|
327
|
+
.uui-text a:hover {
|
|
328
|
+
color: var(--uui-color-interactive-emphasis,#3544b1);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.uui-text small {
|
|
332
|
+
display: inline-block;
|
|
333
|
+
font-size: var(--uui-type-small-size,12px);
|
|
334
|
+
line-height: calc(var(--uui-size-2,6px) * 3);
|
|
335
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.uui-text blockquote {
|
|
339
|
+
float: right;
|
|
340
|
+
font-size: 15px;
|
|
341
|
+
font-weight: 700;
|
|
342
|
+
font-style: italic;
|
|
343
|
+
margin-top: 0;
|
|
344
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
345
|
+
margin-right: -0.035em;
|
|
346
|
+
max-width: 16em;
|
|
347
|
+
quotes: '\u201C' '\u201D' '\u2018' '\u2019';
|
|
348
|
+
line-height: inherit;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.uui-text blockquote:before {
|
|
352
|
+
content: open-quote;
|
|
353
|
+
margin-left: -0.4em;
|
|
354
|
+
margin-right: 0.08em;
|
|
355
|
+
vertical-align: bottom;
|
|
356
|
+
font-weight: 400;
|
|
357
|
+
font-size: 2em;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.uui-text blockquote:after {
|
|
361
|
+
content: close-quote;
|
|
362
|
+
margin-left: 0.04em;
|
|
363
|
+
margin-right: -0.4em;
|
|
364
|
+
vertical-align: bottom;
|
|
365
|
+
font-weight: 400;
|
|
366
|
+
font-size: 2em;
|
|
367
|
+
margin-bottom: -2px;
|
|
368
|
+
display: inline-block;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.uui-text ul {
|
|
372
|
+
list-style-type: square;
|
|
373
|
+
padding-left: var(--uui-size-layout-1,24px);
|
|
374
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
375
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.uui-text ol {
|
|
379
|
+
padding-left: var(--uui-size-layout-1,24px);
|
|
380
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
381
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
382
|
+
}
|
|
383
|
+
`;const zc=Y(Cc);/**
|
|
216
384
|
* @license
|
|
217
385
|
* Copyright 2020 Google LLC
|
|
218
386
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
219
|
-
*/const
|
|
220
|
-
take care to ensure page security.`)})(r)+i[o+1],i[0]),r:
|
|
387
|
+
*/const to=Symbol.for(""),Pc=i=>{if(i?.r===to)return i?._$litStatic$},Sc=i=>({_$litStatic$:i,r:to}),Cn=(i,...e)=>({_$litStatic$:e.reduce((t,r,o)=>t+(n=>{if(n._$litStatic$!==void 0)return n._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${n}. Use 'unsafeStatic' to pass non-literal values, but
|
|
388
|
+
take care to ensure page security.`)})(r)+i[o+1],i[0]),r:to}),zn=new Map,Oc=i=>(e,...t)=>{const r=t.length;let o,n;const s=[],h=[];let c,d=0,v=!1;for(;d<r;){for(c=e[d];d<r&&(n=t[d],(o=Pc(n))!==void 0);)c+=o+e[++d],v=!0;d!==r&&h.push(n),s.push(c),d++}if(d===r&&s.push(e[r]),v){const f=s.join("$$lit$$");(e=zn.get(f))===void 0&&(s.raw=s,zn.set(f,e=s)),t=h}return i(e,...t)},Pn=Oc(u);var Ac=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,nt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lc(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Ac(e,t,o),o};a.UUIBoxElement=class extends m{constructor(){super(...arguments),this.headline=null,this._headlineVariantTag=Cn`h5`,this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._headerSlotHasContent=!1,this._headerSlotChanged=e=>{this._headerSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}set headlineVariant(e){e?this._headlineVariantTag=Sc(e):this._headlineVariantTag=Cn`h5`}renderHeader(){return Pn`<div
|
|
221
389
|
id="header"
|
|
222
390
|
class="uui-text"
|
|
223
391
|
style=${this._headerSlotHasContent||this._headlineSlotHasContent||this.headline!==null?"":"display: none"}>
|
|
@@ -229,10 +397,10 @@
|
|
|
229
397
|
<slot name="headline" @slotchange=${this._headlineSlotChanged}></slot>
|
|
230
398
|
</${this._headlineVariantTag}>
|
|
231
399
|
<slot name="header" @slotchange=${this._headerSlotChanged}></slot>
|
|
232
|
-
</div>`}render(){return
|
|
400
|
+
</div>`}render(){return Pn`
|
|
233
401
|
${this.renderHeader()}
|
|
234
402
|
<slot></slot>
|
|
235
|
-
`}},
|
|
403
|
+
`}},a.UUIBoxElement.styles=[zc,p`
|
|
236
404
|
:host {
|
|
237
405
|
display: block;
|
|
238
406
|
box-shadow: var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,0.12) , 0 1px 2px rgba(0,0,0,0.24));
|
|
@@ -250,34 +418,34 @@
|
|
|
250
418
|
display: block;
|
|
251
419
|
padding: var(--uui-box-default-padding, var(--uui-size-space-5,18px));
|
|
252
420
|
}
|
|
253
|
-
`],nt([l({type:String})],
|
|
421
|
+
`],nt([l({type:String})],a.UUIBoxElement.prototype,"headline",2),nt([l({attribute:"headline-variant"})],a.UUIBoxElement.prototype,"headlineVariant",1),nt([g()],a.UUIBoxElement.prototype,"_headlineVariantTag",2),nt([g()],a.UUIBoxElement.prototype,"_headlineSlotHasContent",2),nt([g()],a.UUIBoxElement.prototype,"_headerSlotHasContent",2),a.UUIBoxElement=nt([b("uui-box")],a.UUIBoxElement);var jc=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,io=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nc(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&jc(e,t,o),o};a.UUIBreadcrumbItemElement=class extends m{constructor(){super(...arguments),this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){return u`<a id="link" href="${this.href}"><slot></slot></a><span part="separator"></span>`}renderCurrent(){return u`<span id="last-item"><slot></slot></span>`}render(){return u`${this.lastItem?this.renderCurrent():this.renderLinkAndSeparator()}`}},a.UUIBreadcrumbItemElement.styles=[p`:host{font-size:var(--uui-type-small-size,12px);color:currentColor}a,a:visited{color:currentColor}a:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}a:focus{color:var(--uui-color-focus,#3879ff)}[part=separator]::after{content:'/';speak:never;position:relative;top:1px;margin:-3px 1px 0;color:var(--uui-color-border,#d8d7d9)}#last-item,#link{padding:0 4px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#link{cursor:pointer}`],io([l()],a.UUIBreadcrumbItemElement.prototype,"href",2),io([l({type:Boolean,attribute:"last-item"})],a.UUIBreadcrumbItemElement.prototype,"lastItem",2),a.UUIBreadcrumbItemElement=io([b("uui-breadcrumb-item")],a.UUIBreadcrumbItemElement);var Tc=Object.defineProperty,Mc=Object.getOwnPropertyDescriptor,Sn=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mc(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Tc(e,t,o),o};a.UUIBreadcrumbsElement=class extends m{elementIsBreadcrumbItem(e){return e instanceof a.UUIBreadcrumbItemElement}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const e=this.slotNodes[this.slotNodes.length-1];e.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(e)&&(e.lastItem=!0)}}render(){return u`<ol id="breadcrumbs-list"><slot @slotchange="${this.handleSlotChange}"></slot></ol>`}},a.UUIBreadcrumbsElement.styles=[p`:host{display:flex}#breadcrumbs-list{display:flex;list-style-type:decimal;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}`],Sn([Ie({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],a.UUIBreadcrumbsElement.prototype,"slotNodes",2),a.UUIBreadcrumbsElement=Sn([b("uui-breadcrumbs")],a.UUIBreadcrumbsElement);const Dc=p`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,Vc=Y("uui-blink 0.9s infinite both"),Hc=p`@keyframes pulse{0%{-webkit-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{-webkit-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{-webkit-transform:translate(-50%,-50%) scale(2.2);transform:translate(-50%,-50%) scale(2.2);opacity:0}}`;Y("pulse 0.8s ease-in-out infinite both");const ei=p`@keyframes uui-horizontal-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(1px)}30%,50%,70%{transform:translateX(-2px)}40%,60%{transform:translateX(2px)}}`,ti=Y("uui-horizontal-shake 600ms ease backwards");/**
|
|
254
422
|
* @license
|
|
255
423
|
* Copyright 2017 Google LLC
|
|
256
424
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
257
|
-
*/const
|
|
425
|
+
*/const Z={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},at=i=>(...e)=>({_$litDirective$:i,values:e});let st=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
|
|
258
426
|
* @license
|
|
259
427
|
* Copyright 2018 Google LLC
|
|
260
428
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
261
|
-
*/const An="important",Vc=" !"+An,ie=st(class extends at{constructor(i){var e;if(super(i),i.type!==Y.ATTRIBUTE||i.name!=="style"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((e,t)=>{const r=i[t];return r==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(i,[e]){const{style:t}=i.element;if(this.ht===void 0){this.ht=new Set;for(const r in e)this.ht.add(r);return this.render(e)}this.ht.forEach(r=>{e[r]==null&&(this.ht.delete(r),r.includes("-")?t.removeProperty(r):t[r]="")});for(const r in e){const o=e[r];if(o!=null){this.ht.add(r);const n=typeof o=="string"&&o.endsWith(Vc);r.includes("-")||n?t.setProperty(r,n?o.slice(0,-11):o,n?An:""):t[r]=o}}return V}});var Hc=Object.defineProperty,Ln=Object.getOwnPropertySymbols,Bc=Object.prototype.hasOwnProperty,Rc=Object.prototype.propertyIsEnumerable,jn=(i,e,t)=>e in i?Hc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Nn=(i,e)=>{for(var t in e||(e={}))Bc.call(e,t)&&jn(i,t,e[t]);if(Ln)for(var t of Ln(e))Rc.call(e,t)&&jn(i,t,e[t]);return i};let oi=class extends P{constructor(e,t={}){super(e,Nn(Nn({},{bubbles:!0,composed:!0}),t))}};oi.CLICK="click";var Fc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,ri=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gc(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fc(e,t,o),o};s.UUIButtonInlineCreateElement=class extends m{constructor(){super(...arguments),this._position=0,this.vertical=!1}_onMouseMove(e){this._position=this.vertical?e.offsetY:e.offsetX}_handleClick(e){e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new oi(oi.CLICK))}render(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}"><div id="plus" style="${ie({left:this.vertical?"":this._position+"px",top:this.vertical?this._position+"px":""})}"><svg id="plus-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg></div></button>`}},s.UUIButtonInlineCreateElement.styles=[Tc,p`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-10px 0}:host([vertical]){height:100%;width:20px;margin:0 -10px}#button-wrapper{display:flex;justify-content:center;align-items:center;position:absolute;z-index:1;outline:0;transition:opacity .24s;display:inline-flex;width:100%;border:none;height:100%;padding:0;text-decoration:none;background:0 0;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;opacity:0}:host(:focus) #button-wrapper,:host(:focus-within) #button-wrapper,:host(:hover) #button-wrapper{opacity:1}:host(:focus) #button-wrapper:before,:host(:focus-within) #button-wrapper:before,:host(:hover) #button-wrapper:before{animation:${Mc};background-color:var(--uui-color-interactive-emphasis,#3544b1);border-color:var(--uui-color-surface,#fff)!important}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:transparent;border-top:1px solid transparent;border-bottom:1px solid transparent;border-radius:2px;pointer-events:none;transition:background-color 720ms ease-out,border-color 240ms}:host(:not([vertical])) #button-wrapper:before{top:50%;transform:translateY(-50%)}:host([vertical]) #button-wrapper:before{height:100%;width:2px;left:50%;transform:translateX(-50%);border-top:none;border-bottom:none;border-left:1px solid transparent;border-right:1px solid transparent}:host(:not([vertical]):not(:hover)) #plus:not(:focus){left:calc(50% - 2px)!important}:host([vertical]:not(:hover)) #plus:not(:focus){top:calc(50% - 2px)!important}#plus{position:absolute;display:flex;justify-content:center;align-items:center;pointer-events:none;box-sizing:border-box;width:28px;height:28px;border-radius:3em;font-size:14px;border:2px solid var(--uui-color-interactive-emphasis,#3544b1);color:var(--uui-color-interactive-emphasis,#3544b1);background-color:var(--uui-color-surface,#fff);opacity:0;transform:scale(0);transition:transform 240ms ease-in,opacity 240ms,left .1s linear 150ms,top .1s linear 150ms}:host(:focus) #plus,:host(:focus-within) #plus,:host(:hover) #plus{opacity:1;transform:scale(1);transition:transform 240ms cubic-bezier(.175,.885,.32,1.275),opacity 80ms,box-shadow 240ms cubic-bezier(.175,.885,.32,1.275);box-shadow:0 0 0 2px var(--uui-color-surface,#fff)}:host(:not([vertical])) #plus{margin-left:-21px}:host([vertical]) #plus{left:-4px;margin-top:-21px}#button-wrapper:focus #plus{border:2px solid var(--uui-color-focus,#3879ff);color:var(--uui-color-focus,#3879ff)}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],ri([g()],s.UUIButtonInlineCreateElement.prototype,"_position",2),ri([l({type:String})],s.UUIButtonInlineCreateElement.prototype,"label",2),ri([l({type:Boolean,reflect:!0})],s.UUIButtonInlineCreateElement.prototype,"vertical",2),s.UUIButtonInlineCreateElement=ri([b("uui-button-inline-create")],s.UUIButtonInlineCreateElement);let qc=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const w=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},Tn=(i,e)=>{function t(o){const n=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,h=n.left+a.scrollX,c=n.top+a.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const v=d.pageX-h,f=d.pageY-c;e!=null&&e.onMove&&e.onMove(v,f)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e!=null&&e.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e!=null&&e.initialEvent&&t(e.initialEvent)},S=(i,e,t)=>Math.min(Math.max(i,e),t),Mn=(i,e,t)=>t+e-i,Wc=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,n=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(n)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||null}return null},ni=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,Kc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,Xc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"/></svg>`,Yc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,Dn=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,Zc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,Qc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"/></svg>`,Jc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,Vn=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;/**
|
|
429
|
+
*/const On="important",Bc=" !"+On,oe=at(class extends st{constructor(i){var e;if(super(i),i.type!==Z.ATTRIBUTE||i.name!=="style"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((e,t)=>{const r=i[t];return r==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(i,[e]){const{style:t}=i.element;if(this.ht===void 0){this.ht=new Set;for(const r in e)this.ht.add(r);return this.render(e)}this.ht.forEach(r=>{e[r]==null&&(this.ht.delete(r),r.includes("-")?t.removeProperty(r):t[r]="")});for(const r in e){const o=e[r];if(o!=null){this.ht.add(r);const n=typeof o=="string"&&o.endsWith(Bc);r.includes("-")||n?t.setProperty(r,n?o.slice(0,-11):o,n?On:""):t[r]=o}}return V}});var Rc=Object.defineProperty,An=Object.getOwnPropertySymbols,Fc=Object.prototype.hasOwnProperty,Gc=Object.prototype.propertyIsEnumerable,Ln=(i,e,t)=>e in i?Rc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,jn=(i,e)=>{for(var t in e||(e={}))Fc.call(e,t)&&Ln(i,t,e[t]);if(An)for(var t of An(e))Gc.call(e,t)&&Ln(i,t,e[t]);return i};let ii=class extends z{constructor(e,t={}){super(e,jn(jn({},{bubbles:!0,composed:!0}),t))}};ii.CLICK="click";var qc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,oi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wc(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&qc(e,t,o),o};a.UUIButtonInlineCreateElement=class extends m{constructor(){super(...arguments),this._position=0,this.vertical=!1}_onMouseMove(e){this._position=this.vertical?e.offsetY:e.offsetX}_handleClick(e){e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new ii(ii.CLICK))}render(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}"><div id="plus" style="${oe({left:this.vertical?"":this._position+"px",top:this.vertical?this._position+"px":""})}"><svg id="plus-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg></div></button>`}},a.UUIButtonInlineCreateElement.styles=[Dc,p`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-10px 0}:host([vertical]){height:100%;width:20px;margin:0 -10px}#button-wrapper{display:flex;justify-content:center;align-items:center;position:absolute;z-index:1;outline:0;transition:opacity .24s;display:inline-flex;width:100%;border:none;height:100%;padding:0;text-decoration:none;background:0 0;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;opacity:0}:host(:focus) #button-wrapper,:host(:focus-within) #button-wrapper,:host(:hover) #button-wrapper{opacity:1}:host(:focus) #button-wrapper:before,:host(:focus-within) #button-wrapper:before,:host(:hover) #button-wrapper:before{animation:${Vc};background-color:var(--uui-color-interactive-emphasis,#3544b1);border-color:var(--uui-color-surface,#fff)!important}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:transparent;border-top:1px solid transparent;border-bottom:1px solid transparent;border-radius:2px;pointer-events:none;transition:background-color 720ms ease-out,border-color 240ms}:host(:not([vertical])) #button-wrapper:before{top:50%;transform:translateY(-50%)}:host([vertical]) #button-wrapper:before{height:100%;width:2px;left:50%;transform:translateX(-50%);border-top:none;border-bottom:none;border-left:1px solid transparent;border-right:1px solid transparent}:host(:not([vertical]):not(:hover)) #plus:not(:focus){left:calc(50% - 2px)!important}:host([vertical]:not(:hover)) #plus:not(:focus){top:calc(50% - 2px)!important}#plus{position:absolute;display:flex;justify-content:center;align-items:center;pointer-events:none;box-sizing:border-box;width:28px;height:28px;border-radius:3em;font-size:14px;border:2px solid var(--uui-color-interactive-emphasis,#3544b1);color:var(--uui-color-interactive-emphasis,#3544b1);background-color:var(--uui-color-surface,#fff);opacity:0;transform:scale(0);transition:transform 240ms ease-in,opacity 240ms,left .1s linear 150ms,top .1s linear 150ms}:host(:focus) #plus,:host(:focus-within) #plus,:host(:hover) #plus{opacity:1;transform:scale(1);transition:transform 240ms cubic-bezier(.175,.885,.32,1.275),opacity 80ms,box-shadow 240ms cubic-bezier(.175,.885,.32,1.275);box-shadow:0 0 0 2px var(--uui-color-surface,#fff)}:host(:not([vertical])) #plus{margin-left:-21px}:host([vertical]) #plus{left:-4px;margin-top:-21px}#button-wrapper:focus #plus{border:2px solid var(--uui-color-focus,#3879ff);color:var(--uui-color-focus,#3879ff)}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],oi([g()],a.UUIButtonInlineCreateElement.prototype,"_position",2),oi([l({type:String})],a.UUIButtonInlineCreateElement.prototype,"label",2),oi([l({type:Boolean,reflect:!0})],a.UUIButtonInlineCreateElement.prototype,"vertical",2),a.UUIButtonInlineCreateElement=oi([b("uui-button-inline-create")],a.UUIButtonInlineCreateElement);let Kc=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const w=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},Nn=(i,e)=>{function t(o){const n=i.getBoundingClientRect(),s=i.ownerDocument.defaultView,h=n.left+s.scrollX,c=n.top+s.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const v=d.pageX-h,f=d.pageY-c;e!=null&&e.onMove&&e.onMove(v,f)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e!=null&&e.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e!=null&&e.initialEvent&&t(e.initialEvent)},P=(i,e,t)=>Math.min(Math.max(i,e),t),Tn=(i,e,t)=>t+e-i,Xc=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,n=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(n)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||null}return null},ri=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,Yc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,Zc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"/></svg>`,Qc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,Mn=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,Jc=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,eh=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"/></svg>`,th=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,Dn=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;/**
|
|
262
430
|
* @license
|
|
263
431
|
* Copyright 2018 Google LLC
|
|
264
432
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
265
|
-
*/const I=i=>i??U;var eh=Object.defineProperty,th=Object.getOwnPropertyDescriptor,oe=(i,e,t,r)=>{for(var o=r>1?void 0:r?th(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&eh(e,t,o),o};s.UUIButtonElement=class extends ee(J("",dc(m))){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}_onHostClick(e){var t;if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if((t=this._internals)!=null&&t.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}this._togglePopover()}updated(e){super.updated(e),e.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let e;switch(this.state){case"waiting":w(this,"uui-loader-circle"),e=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":w(this,"uui-icon"),e=u`<uui-icon name="check" .fallback="${ni.strings[0]}"></uui-icon>`;break;case"failed":w(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${Vn.strings[0]}"></uui-icon>`;break;default:return U}return u`<div id="state">${e}</div>`}render(){return this.href?u`<a id="button" aria-label="${this.label}" href="${I(this.disabled?void 0:this.href)}" target="${I(this.target||void 0)}" rel="${I(this.target==="_blank"?"noopener noreferrer":void 0)}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button id="button" ?disabled="${this.disabled}" aria-label="${this.label}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},s.UUIButtonElement.styles=[ti,p`:host{position:relative;display:inline-flex;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-padding-left-factor:3;--uui-button-padding-right-factor:3;--uui-button-padding-top-factor:1;--uui-button-padding-bottom-factor:1;min-height:var(--uui-button-height,var(--uui-size-11,33px));max-height:100%;cursor:pointer;text-align:center;font-size:var(--uui-button-font-size,inherit);font-weight:var(--uui-button-font-weight,500);transition:background-color 80ms,border-color 80ms,color 80ms}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0}.label{line-height:normal;display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards;display:flex;justify-content:center;width:100%;height:100%;align-items:center}#button{width:100%;background-color:transparent;color:inherit;font-size:inherit;border-radius:inherit;font-family:inherit;font-weight:inherit;text-align:inherit;border:none;cursor:inherit;display:inline-flex;align-items:center;justify-content:var(--uui-button-content-align,center);text-decoration:none;color:currentColor;line-height:inherit;border-width:var(--uui-button-border-width,1px);border-style:solid;border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;padding:calc(var(--uui-size-2,6px) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));box-shadow:none}a:not([href]):active,button[disabled]:active{animation:${ii}}#icon-check,#icon-wrong{fill:currentColor;display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}:host(:not([color]):not([look=primary])),:host([color='']:not([look=primary])),:host([color=default]:not([look=primary])){--uui-button-contrast-hover:var(--uui-color-default-emphasis,#3544b1)}:host([color=warning][look=outline]) #button,:host([color=warning][look=placeholder]) #button{--uui-button-contrast-hover:var(--color-standalone)}#button{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-emphasis:var(--uui-color-default-emphasis,#3544b1);--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]) #button{--color:var(--uui-color-positive,#1f9554);--color-standalone:var(--uui-color-positive-standalone,#19864a);--color-emphasis:var(--uui-color-positive-emphasis,#2ca964);--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) #button{--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-emphasis:var(--uui-color-warning-emphasis,rgb(251, 224, 101));--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]) #button{--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-emphasis:var(--uui-color-danger-emphasis,rgb(226, 60, 107));--color-contrast:var(--uui-color-danger-contrast,white)}:host([disabled]) #button{--color:var(--uui-color-disabled,#f3f3f5);--color-standalone:var(--uui-color-disabled-contrast,#c4c4c4);--color-emphasis:var(--uui-color-disabled,#f3f3f5);--color-contrast:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent)}:host(:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,transparent)}:host([look=primary]) #button{background-color:var(--uui-button-background-color,var(--color));color:var(--uui-button-contrast,var(--color-contrast));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=primary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--color-emphasis));color:var(--uui-button-contrast-hover,var(--color-contrast));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=primary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=secondary]) #button{background-color:var(--uui-button-background-color,var(--uui-color-surface-alt,#f3f3f5));color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=secondary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=secondary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=outline]) #button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2));font-weight:var(--uui-button-font-weight,700)}:host([look=outline]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=outline][disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}:host([look=placeholder]) #button{border-style:dashed;background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2))}:host([look=placeholder]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=placeholder][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}`],oe([l({type:String,reflect:!0})],s.UUIButtonElement.prototype,"type",2),oe([l({type:Boolean,reflect:!0})],s.UUIButtonElement.prototype,"disabled",2),oe([l({reflect:!0})],s.UUIButtonElement.prototype,"look",2),oe([l({reflect:!0})],s.UUIButtonElement.prototype,"color",2),oe([l({type:Boolean,reflect:!0})],s.UUIButtonElement.prototype,"compact",2),oe([l({type:String,reflect:!0})],s.UUIButtonElement.prototype,"state",2),oe([l({type:String})],s.UUIButtonElement.prototype,"href",2),oe([l({type:String})],s.UUIButtonElement.prototype,"target",2),oe([C("#button")],s.UUIButtonElement.prototype,"_button",2),s.UUIButtonElement=oe([b("uui-button")],s.UUIButtonElement);let lt=class extends P{};lt.OPEN="open";var ih=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,Ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?oh(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ih(e,t,o),o};s.UUICardElement=class extends Qt(it(m)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new lt(lt.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new lt(lt.OPEN)))}render(){return u`<slot></slot>`}},s.UUICardElement.styles=[p`:host{position:relative;display:flex;width:100%;justify-content:center;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));border-radius:var(--uui-border-radius,3px);min-height:var(--uui-layout-medium);background-color:var(--uui-color-surface,#fff);--uui-card-border-width:3px;transition:box-shadow .1s ease-out}:host(*) *{outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(:focus){outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}:host([error])::before{content:'';position:absolute;pointer-events:none;inset:0;width:100%;height:100%;z-index:1;box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-danger,#d42054);border-radius:var(--uui-border-radius,3px)}:host([selectable]){cursor:pointer}:host([disabled]){background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([selectable])::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-card-border-width) * -1);width:calc(100% + calc(var(--uui-card-border-width) * 2));height:calc(100% + calc(var(--uui-card-border-width) * 2));box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-card-border-width));transition:opacity .1s ease-out;opacity:0}:host([selectable]:hover)::after{opacity:.33}:host([selectable][selected]:hover)::after{opacity:.66}:host([selectable][selected])::after{opacity:1}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}a{text-decoration:none;color:inherit}`],Ot([l({type:Boolean,reflect:!0,attribute:"disabled"})],s.UUICardElement.prototype,"disabled",2),Ot([l({type:Boolean,reflect:!0})],s.UUICardElement.prototype,"error",2),Ot([l({type:String})],s.UUICardElement.prototype,"href",2),Ot([l({type:String})],s.UUICardElement.prototype,"target",2),s.UUICardElement=Ot([b("uui-card")],s.UUICardElement);var rh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,ro=(i,e,t,r)=>{for(var o=r>1?void 0:r?nh(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rh(e,t,o),o},sh=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Hn=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Bn=(i,e,t)=>(sh(i,e,"access private method"),t),no,Rn,so,Fn;s.UUICardContentNodeElement=class extends s.UUICardElement{constructor(){super(...arguments),Hn(this,no),Hn(this,so),this.name="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return w(this,"uui-icon"),u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`${this.href?Bn(this,so,Fn).call(this):Bn(this,no,Rn).call(this)}<div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},no=new WeakSet,Rn=function(){return u`<div id="open-part" tabindex="${this.disabled?U:0}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></div>`},so=new WeakSet,Fn=function(){return u`<a id="open-part" tabindex="${this.disabled?U:0}" href="${I(this.disabled?void 0:this.href)}" target="${I(this.target||void 0)}" rel="${I(this.target==="_blank"?"noopener noreferrer":void 0)}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></a>`},s.UUICardContentNodeElement.styles=[...s.UUICardElement.styles,p`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px) var(--uui-size-4,12px)}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name]){display:block;margin:var(--uui-size-1,3px);margin-top:var(--uui-size-3,9px)}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:calc(2 * var(--uui-size-3,9px))}#icon{font-size:1.2em;margin-right:var(--uui-size-1,3px)}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer}:host([disabled]) #open-part{pointer-events:none}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}#name{margin-top:4px}`],ro([l({type:String})],s.UUICardContentNodeElement.prototype,"name",2),ro([g()],s.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),s.UUICardContentNodeElement=ro([b("uui-card-content-node")],s.UUICardContentNodeElement);var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,uh=(i,e,t,r)=>{for(var o=r>1?void 0:r?lh(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ah(e,t,o),o};s.UUISymbolFolderElement=class extends m{render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M450.962 169.833v-19.248c0-23.398-19.035-42.436-42.434-42.436H257.306c-5.885-16.926-21.99-29.1-40.885-29.1h-89.758c-20.545 0-37.795 14.391-42.191 33.623-13.891 7.016-23.486 21.45-23.486 37.912V169.897c-7.148 7.774-11.443 18.122-11.443 29.287v.956l.062.953c.045.704 4.639 70.713 5.469 95.492l3.137 93.62c.033 6.024.682 14.788 5.271 23.301 6.564 12.175 19.002 19.442 33.273 19.442h318.49c14.273 0 26.713-7.268 33.275-19.445 4.588-8.512 5.236-17.275 5.271-23.298l3.135-93.62c.832-24.782 5.424-94.788 5.471-95.492l.061-.953v-.956c0-11.203-4.314-21.574-11.496-29.351zM90.093 150.585c0-7.281 5.84-13.189 13.09-13.318h-.125c5.324 0 9.441-9.694 9.441-13.382l-.006-1.562c0-7.824 6.344-14.168 14.17-14.168h89.758c7.826 0 14.166 6.344 14.166 14.168v1.562c0 3.663 4.062 13.239 9.332 13.37h168.609c7.363 0 13.328 5.969 13.328 13.33v9.201H90.093v-9.201zm337.744 145.028c-.854 25.538-3.15 94.062-3.15 94.062 0 7.825-1.617 14.171-9.441 14.171H96.755c-7.822 0-9.439-6.346-9.439-14.171l-3.152-94.062c-.855-25.538-5.516-96.428-5.516-96.428 0-6.893 4.926-12.631 11.445-13.9l331.764-.009c6.547 1.251 11.494 6.998 11.494 13.909 0 .001-4.657 70.89-5.514 96.428z"/></svg>`}},s.UUISymbolFolderElement.styles=[p`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-color-border,#d8d7d9)}`],s.UUISymbolFolderElement=uh([b("uui-symbol-folder")],s.UUISymbolFolderElement);var ch=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Gn=(i,e,t,r)=>{for(var o=r>1?void 0:r?hh(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ch(e,t,o),o};s.UUISymbolFileElement=class extends m{constructor(){super(...arguments),this.type=""}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg> ${this.type?u`<span id="file-type">${this.type.toUpperCase()}</span>`:""}`}},s.UUISymbolFileElement.styles=[p`:host{position:relative;display:block}#file-type{position:absolute;bottom:24%;left:25.5%;margin-left:calc(var(--uui-size-3,9px) * -1);padding:0 var(--uui-size-3,9px);font-weight:700;background-color:var(--uui-color-surface-alt,#f3f3f5);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#icon{fill:var(--uui-color-border-standalone,#c2c2c2)}`],Gn([l({type:String})],s.UUISymbolFileElement.prototype,"type",2),s.UUISymbolFileElement=Gn([b("uui-symbol-file")],s.UUISymbolFileElement);var dh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,si=(i,e,t,r)=>{for(var o=r>1?void 0:r?ph(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dh(e,t,o),o},bh=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},qn=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Wn=(i,e,t)=>(bh(i,e,"access private method"),t),ao,Kn,lo,Xn;s.UUICardMediaElement=class extends s.UUICardElement{constructor(){super(...arguments),qn(this,ao),qn(this,lo),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),w(this,"uui-symbol-folder"),w(this,"uui-symbol-file")}queryPreviews(e){this.hasPreview=e.composedPath()[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!0?"":this.fileExt===""?u`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:u`<uui-symbol-file id="file-symbol" type="${this.fileExt}"></uui-symbol-file>`}render(){return u`${this.renderMedia()}<slot @slotchange="${this.queryPreviews}"></slot>${this.href?Wn(this,lo,Xn).call(this):Wn(this,ao,Kn).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},ao=new WeakSet,Kn=function(){return u`<button id="open-part" tabindex="${this.disabled?U:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button>`},lo=new WeakSet,Xn=function(){return u`<a id="open-part" tabindex="${this.disabled?U:"0"}" href="${I(this.disabled?void 0:this.href)}" target="${I(this.target||void 0)}" rel="${I(this.target==="_blank"?"noopener noreferrer":void 0)}"><span>${this.name}</span></a>`},s.UUICardMediaElement.styles=[...s.UUICardElement.styles,p`#file-symbol,#folder-symbol{align-self:center;margin:var(--uui-size-14,42px);width:80%}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name])::slotted(*){align-self:center;border-radius:var(--uui-border-radius,3px);object-fit:cover;width:100%;height:100%}#open-part{position:absolute;bottom:0;width:100%;background-color:var(--uui-color-surface,#fff);color:var(--uui-color-interactive,#1b264f);border:none;cursor:pointer;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);display:flex;justify-content:flex-start;align-items:center;font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;padding:var(--uui-size-2,6px) var(--uui-size-4,12px)}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}`],si([l({type:String})],s.UUICardMediaElement.prototype,"name",2),si([l({type:String,attribute:"file-ext"})],s.UUICardMediaElement.prototype,"fileExt",2),si([g()],s.UUICardMediaElement.prototype,"hasPreview",2),s.UUICardMediaElement=si([b("uui-card-media")],s.UUICardMediaElement);var mh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,Yn=(i,e,t,r)=>{for(var o=r>1?void 0:r?vh(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&mh(e,t,o),o},gh=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Zn=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Qn=(i,e,t)=>(gh(i,e,"access private method"),t),uo,Jn,co,es;s.UUICardUserElement=class extends s.UUICardElement{constructor(){super(...arguments),Zn(this,uo),Zn(this,co),this.name=""}connectedCallback(){super.connectedCallback(),w(this,"uui-avatar")}render(){return u`<uui-avatar id="avatar" name="${this.name}" size="m"></uui-avatar>${this.href?Qn(this,co,es).call(this):Qn(this,uo,Jn).call(this)}<slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},uo=new WeakSet,Jn=function(){return u`<div id="open-part" tabindex="${this.disabled?U:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div>`},co=new WeakSet,es=function(){return u`<a id="open-part" tabindex="${this.disabled?U:"0"}" href="${I(this.disabled?void 0:this.href)}" target="${I(this.target||void 0)}" rel="${I(this.target==="_blank"?"noopener noreferrer":void 0)}"><span>${this.name}</span></a>`},s.UUICardUserElement.styles=[...s.UUICardElement.styles,p`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px);align-items:center}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:var(--uui-size-6,18px)}::slotted(*){text-align:center}slot[name=tag]{position:absolute;top:6px;right:6px;display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}#avatar{margin:var(--uui-size-3,9px)}slot[name=icon]::slotted(*){font-size:1.2em}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer;margin:0 0 3px 0}:host([disabled]) #open-part{pointer-events:none}#open-part>span{vertical-align:center;margin-top:3px}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}`],Yn([l({type:String})],s.UUICardUserElement.prototype,"name",2),s.UUICardUserElement=Yn([b("uui-card-user")],s.UUICardUserElement);var fh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,ts=(i,e,t,r)=>{for(var o=r>1?void 0:r?yh(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fh(e,t,o),o};s.UUICaretElement=class extends m{constructor(){super(),this.open=!1,console.error("\xB4uui-caret\xB4 is deprecated, please use \xB4uui-symbol-expand\xB4 or \xB4uui-symbol-sort\xB4")}render(){return u`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},s.UUICaretElement.styles=[p`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform-origin:50% 50%;transition:transform 280ms cubic-bezier(.17,-.88,.82,1.84)}:host([open]) svg{transform:rotate(180deg)}`],ts([l({type:Boolean,reflect:!0})],s.UUICaretElement.prototype,"open",2),s.UUICaretElement=ts([b("uui-caret")],s.UUICaretElement);var _h=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,$h=(i,e,t,r)=>{for(var o=r>1?void 0:r?wh(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_h(e,t,o),o};s.UUICheckboxElement=class extends te{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${ni}</div></div>`}},s.UUICheckboxElement.formAssociated=!0,s.UUICheckboxElement.styles=[...te.styles,ti,p`:host{--uui-checkbox-size:18px}#ticker{position:relative;grid-area:'input';display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;width:var(--uui-checkbox-size);height:var(--uui-checkbox-size);border-radius:var(--uui-checkbox-border-radius,var(--uui-border-radius,3px));color:var(--uui-toggle-color,var(--uui-color-selected-contrast,#fff));background-color:var(--uui-toggle-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-checkbox-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-checkbox-size) * .7)}label:hover input:not([disabled])+#ticker{border-color:var(--uui-checkbox-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}label:focus #ticker{border-color:var(--uui-checkbox-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked:not([disabled])+#ticker{border-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-check{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms,opacity 120ms;fill:var(--uui-color-selected-contrast,#fff);opacity:0}#ticker::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:calc(var(--uui-checkbox-border-radius,var(--uui-border-radius,3px)) * .5);background-color:var(--uui-color-selected,#3544b1);transition:transform 120ms ease,opacity 120ms,background-color 120ms;transform:scale(0);opacity:0}label:hover input:checked:not([disabled])+#ticker::before{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:checked+#ticker::before{transform:scale(1);opacity:1}input:checked+#ticker #icon-check{opacity:1}label:focus input:checked+#ticker{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:focus+#ticker{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled])) label:active input:checked+#ticker::before{transform:scale(.9)}:host(:not([pristine]):invalid) #ticker,:host(:not([pristine]):invalid) label:focus input:checked+#ticker,:host(:not([pristine]):invalid) label:hover #ticker,:host(:not([pristine]):invalid) label:hover input:checked:not([disabled])+#ticker,:host(:not([pristine])[internals-invalid]) #ticker,:host(:not([pristine])[internals-invalid]) label:focus input:checked+#ticker,:host(:not([pristine])[internals-invalid]) label:hover #ticker,:host(:not([pristine])[internals-invalid]) label:hover input:checked:not([disabled])+#ticker{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([disabled]) #ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) input:checked+#ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker::before{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #ticker{animation:${ii}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}`],s.UUICheckboxElement=$h([b("uui-checkbox")],s.UUICheckboxElement);/**
|
|
433
|
+
*/const k=i=>i??U;var ih=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,re=(i,e,t,r)=>{for(var o=r>1?void 0:r?oh(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&ih(e,t,o),o};a.UUIButtonElement=class extends te(ee("",dc(m))){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}_onHostClick(e){var t;if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if((t=this._internals)!=null&&t.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}this._togglePopover()}updated(e){super.updated(e),e.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let e;switch(this.state){case"waiting":w(this,"uui-loader-circle"),e=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":w(this,"uui-icon"),e=u`<uui-icon name="check" .fallback="${ri.strings[0]}"></uui-icon>`;break;case"failed":w(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${Dn.strings[0]}"></uui-icon>`;break;default:return U}return u`<div id="state">${e}</div>`}render(){return this.href?u`<a id="button" aria-label="${this.label}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.target==="_blank"?"noopener noreferrer":void 0)}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button id="button" ?disabled="${this.disabled}" aria-label="${this.label}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},a.UUIButtonElement.styles=[ei,p`:host{position:relative;display:inline-flex;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-padding-left-factor:3;--uui-button-padding-right-factor:3;--uui-button-padding-top-factor:1;--uui-button-padding-bottom-factor:1;min-height:var(--uui-button-height,var(--uui-size-11,33px));max-height:100%;cursor:pointer;text-align:center;font-size:var(--uui-button-font-size,inherit);font-weight:var(--uui-button-font-weight,500);transition:background-color 80ms,border-color 80ms,color 80ms}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0}.label{line-height:normal;display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards;display:flex;justify-content:center;width:100%;height:100%;align-items:center}#button{width:100%;background-color:transparent;color:inherit;font-size:inherit;border-radius:inherit;font-family:inherit;font-weight:inherit;text-align:inherit;border:none;cursor:inherit;display:inline-flex;align-items:center;justify-content:var(--uui-button-content-align,center);text-decoration:none;color:currentColor;line-height:inherit;border-width:var(--uui-button-border-width,1px);border-style:solid;border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;padding:calc(var(--uui-size-2,6px) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));box-shadow:none}a:not([href]):active,button[disabled]:active{animation:${ti}}#icon-check,#icon-wrong{fill:currentColor;display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}:host(:not([color]):not([look=primary])),:host([color='']:not([look=primary])),:host([color=default]:not([look=primary])){--uui-button-contrast-hover:var(--uui-color-default-emphasis,#3544b1)}:host([color=warning][look=outline]) #button,:host([color=warning][look=placeholder]) #button{--uui-button-contrast-hover:var(--color-standalone)}#button{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-emphasis:var(--uui-color-default-emphasis,#3544b1);--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]) #button{--color:var(--uui-color-positive,#1f9554);--color-standalone:var(--uui-color-positive-standalone,#19864a);--color-emphasis:var(--uui-color-positive-emphasis,#2ca964);--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) #button{--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-emphasis:var(--uui-color-warning-emphasis,rgb(251, 224, 101));--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]) #button{--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-emphasis:var(--uui-color-danger-emphasis,rgb(226, 60, 107));--color-contrast:var(--uui-color-danger-contrast,white)}:host([disabled]) #button{--color:var(--uui-color-disabled,#f3f3f5);--color-standalone:var(--uui-color-disabled-contrast,#c4c4c4);--color-emphasis:var(--uui-color-disabled,#f3f3f5);--color-contrast:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent)}:host(:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,transparent)}:host([look=primary]) #button{background-color:var(--uui-button-background-color,var(--color));color:var(--uui-button-contrast,var(--color-contrast));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=primary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--color-emphasis));color:var(--uui-button-contrast-hover,var(--color-contrast));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=primary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=secondary]) #button{background-color:var(--uui-button-background-color,var(--uui-color-surface-alt,#f3f3f5));color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=secondary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=secondary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=outline]) #button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2));font-weight:var(--uui-button-font-weight,700)}:host([look=outline]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=outline][disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}:host([look=placeholder]) #button{border-style:dashed;background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2))}:host([look=placeholder]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=placeholder][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}`],re([l({type:String,reflect:!0})],a.UUIButtonElement.prototype,"type",2),re([l({type:Boolean,reflect:!0})],a.UUIButtonElement.prototype,"disabled",2),re([l({reflect:!0})],a.UUIButtonElement.prototype,"look",2),re([l({reflect:!0})],a.UUIButtonElement.prototype,"color",2),re([l({type:Boolean,reflect:!0})],a.UUIButtonElement.prototype,"compact",2),re([l({type:String,reflect:!0})],a.UUIButtonElement.prototype,"state",2),re([l({type:String})],a.UUIButtonElement.prototype,"href",2),re([l({type:String})],a.UUIButtonElement.prototype,"target",2),re([C("#button")],a.UUIButtonElement.prototype,"_button",2),a.UUIButtonElement=re([b("uui-button")],a.UUIButtonElement);let lt=class extends z{};lt.OPEN="open";var rh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,St=(i,e,t,r)=>{for(var o=r>1?void 0:r?nh(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&rh(e,t,o),o};a.UUICardElement=class extends Zt(it(m)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new lt(lt.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new lt(lt.OPEN)))}render(){return u`<slot></slot>`}},a.UUICardElement.styles=[p`:host{position:relative;display:flex;width:100%;justify-content:center;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));border-radius:var(--uui-border-radius,3px);min-height:var(--uui-layout-medium);background-color:var(--uui-color-surface,#fff);--uui-card-border-width:3px;transition:box-shadow .1s ease-out}:host(*) *{outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(:focus){outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}:host([error])::before{content:'';position:absolute;pointer-events:none;inset:0;width:100%;height:100%;z-index:1;box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-danger,#d42054);border-radius:var(--uui-border-radius,3px)}:host([selectable]){cursor:pointer}:host([disabled]){background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([selectable])::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-card-border-width) * -1);width:calc(100% + calc(var(--uui-card-border-width) * 2));height:calc(100% + calc(var(--uui-card-border-width) * 2));box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-card-border-width));transition:opacity .1s ease-out;opacity:0}:host([selectable]:hover)::after{opacity:.33}:host([selectable][selected]:hover)::after{opacity:.66}:host([selectable][selected])::after{opacity:1}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}a{text-decoration:none;color:inherit}`],St([l({type:Boolean,reflect:!0,attribute:"disabled"})],a.UUICardElement.prototype,"disabled",2),St([l({type:Boolean,reflect:!0})],a.UUICardElement.prototype,"error",2),St([l({type:String})],a.UUICardElement.prototype,"href",2),St([l({type:String})],a.UUICardElement.prototype,"target",2),a.UUICardElement=St([b("uui-card")],a.UUICardElement);var ah=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,oo=(i,e,t,r)=>{for(var o=r>1?void 0:r?sh(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&ah(e,t,o),o},lh=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Vn=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Hn=(i,e,t)=>(lh(i,e,"access private method"),t),ro,Bn,no,Rn;a.UUICardContentNodeElement=class extends a.UUICardElement{constructor(){super(...arguments),Vn(this,ro),Vn(this,no),this.name="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return w(this,"uui-icon"),u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`${this.href?Hn(this,no,Rn).call(this):Hn(this,ro,Bn).call(this)}<div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},ro=new WeakSet,Bn=function(){return u`<div id="open-part" tabindex="${this.disabled?U:0}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></div>`},no=new WeakSet,Rn=function(){return u`<a id="open-part" tabindex="${this.disabled?U:0}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.target==="_blank"?"noopener noreferrer":void 0)}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></a>`},a.UUICardContentNodeElement.styles=[...a.UUICardElement.styles,p`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px) var(--uui-size-4,12px)}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name]){display:block;margin:var(--uui-size-1,3px);margin-top:var(--uui-size-3,9px)}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:calc(2 * var(--uui-size-3,9px))}#icon{font-size:1.2em;margin-right:var(--uui-size-1,3px)}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer}:host([disabled]) #open-part{pointer-events:none}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}#name{margin-top:4px}`],oo([l({type:String})],a.UUICardContentNodeElement.prototype,"name",2),oo([g()],a.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),a.UUICardContentNodeElement=oo([b("uui-card-content-node")],a.UUICardContentNodeElement);var uh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,hh=(i,e,t,r)=>{for(var o=r>1?void 0:r?ch(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&uh(e,t,o),o};a.UUISymbolFolderElement=class extends m{render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M450.962 169.833v-19.248c0-23.398-19.035-42.436-42.434-42.436H257.306c-5.885-16.926-21.99-29.1-40.885-29.1h-89.758c-20.545 0-37.795 14.391-42.191 33.623-13.891 7.016-23.486 21.45-23.486 37.912V169.897c-7.148 7.774-11.443 18.122-11.443 29.287v.956l.062.953c.045.704 4.639 70.713 5.469 95.492l3.137 93.62c.033 6.024.682 14.788 5.271 23.301 6.564 12.175 19.002 19.442 33.273 19.442h318.49c14.273 0 26.713-7.268 33.275-19.445 4.588-8.512 5.236-17.275 5.271-23.298l3.135-93.62c.832-24.782 5.424-94.788 5.471-95.492l.061-.953v-.956c0-11.203-4.314-21.574-11.496-29.351zM90.093 150.585c0-7.281 5.84-13.189 13.09-13.318h-.125c5.324 0 9.441-9.694 9.441-13.382l-.006-1.562c0-7.824 6.344-14.168 14.17-14.168h89.758c7.826 0 14.166 6.344 14.166 14.168v1.562c0 3.663 4.062 13.239 9.332 13.37h168.609c7.363 0 13.328 5.969 13.328 13.33v9.201H90.093v-9.201zm337.744 145.028c-.854 25.538-3.15 94.062-3.15 94.062 0 7.825-1.617 14.171-9.441 14.171H96.755c-7.822 0-9.439-6.346-9.439-14.171l-3.152-94.062c-.855-25.538-5.516-96.428-5.516-96.428 0-6.893 4.926-12.631 11.445-13.9l331.764-.009c6.547 1.251 11.494 6.998 11.494 13.909 0 .001-4.657 70.89-5.514 96.428z"/></svg>`}},a.UUISymbolFolderElement.styles=[p`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-color-border,#d8d7d9)}`],a.UUISymbolFolderElement=hh([b("uui-symbol-folder")],a.UUISymbolFolderElement);var dh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,Fn=(i,e,t,r)=>{for(var o=r>1?void 0:r?ph(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&dh(e,t,o),o};a.UUISymbolFileElement=class extends m{constructor(){super(...arguments),this.type=""}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg> ${this.type?u`<span id="file-type">${this.type.toUpperCase()}</span>`:""}`}},a.UUISymbolFileElement.styles=[p`:host{position:relative;display:block}#file-type{position:absolute;bottom:24%;left:25.5%;margin-left:calc(var(--uui-size-3,9px) * -1);padding:0 var(--uui-size-3,9px);font-weight:700;background-color:var(--uui-color-surface-alt,#f3f3f5);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#icon{fill:var(--uui-color-border-standalone,#c2c2c2)}`],Fn([l({type:String})],a.UUISymbolFileElement.prototype,"type",2),a.UUISymbolFileElement=Fn([b("uui-symbol-file")],a.UUISymbolFileElement);var bh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,ni=(i,e,t,r)=>{for(var o=r>1?void 0:r?mh(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&bh(e,t,o),o},vh=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Gn=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},qn=(i,e,t)=>(vh(i,e,"access private method"),t),ao,Wn,so,Kn;a.UUICardMediaElement=class extends a.UUICardElement{constructor(){super(...arguments),Gn(this,ao),Gn(this,so),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),w(this,"uui-symbol-folder"),w(this,"uui-symbol-file")}queryPreviews(e){this.hasPreview=e.composedPath()[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!0?"":this.fileExt===""?u`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:u`<uui-symbol-file id="file-symbol" type="${this.fileExt}"></uui-symbol-file>`}render(){return u`${this.renderMedia()}<slot @slotchange="${this.queryPreviews}"></slot>${this.href?qn(this,so,Kn).call(this):qn(this,ao,Wn).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},ao=new WeakSet,Wn=function(){return u`<button id="open-part" tabindex="${this.disabled?U:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button>`},so=new WeakSet,Kn=function(){return u`<a id="open-part" tabindex="${this.disabled?U:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.target==="_blank"?"noopener noreferrer":void 0)}"><span>${this.name}</span></a>`},a.UUICardMediaElement.styles=[...a.UUICardElement.styles,p`#file-symbol,#folder-symbol{align-self:center;margin:var(--uui-size-14,42px);width:80%}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name])::slotted(*){align-self:center;border-radius:var(--uui-border-radius,3px);object-fit:cover;width:100%;height:100%}#open-part{position:absolute;bottom:0;width:100%;background-color:var(--uui-color-surface,#fff);color:var(--uui-color-interactive,#1b264f);border:none;cursor:pointer;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);display:flex;justify-content:flex-start;align-items:center;font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;padding:var(--uui-size-2,6px) var(--uui-size-4,12px)}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}`],ni([l({type:String})],a.UUICardMediaElement.prototype,"name",2),ni([l({type:String,attribute:"file-ext"})],a.UUICardMediaElement.prototype,"fileExt",2),ni([g()],a.UUICardMediaElement.prototype,"hasPreview",2),a.UUICardMediaElement=ni([b("uui-card-media")],a.UUICardMediaElement);var gh=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,Xn=(i,e,t,r)=>{for(var o=r>1?void 0:r?fh(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&gh(e,t,o),o},yh=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Yn=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Zn=(i,e,t)=>(yh(i,e,"access private method"),t),lo,Qn,uo,Jn;a.UUICardUserElement=class extends a.UUICardElement{constructor(){super(...arguments),Yn(this,lo),Yn(this,uo),this.name=""}connectedCallback(){super.connectedCallback(),w(this,"uui-avatar")}render(){return u`<uui-avatar id="avatar" name="${this.name}" size="m"></uui-avatar>${this.href?Zn(this,uo,Jn).call(this):Zn(this,lo,Qn).call(this)}<slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},lo=new WeakSet,Qn=function(){return u`<div id="open-part" tabindex="${this.disabled?U:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div>`},uo=new WeakSet,Jn=function(){return u`<a id="open-part" tabindex="${this.disabled?U:"0"}" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.target==="_blank"?"noopener noreferrer":void 0)}"><span>${this.name}</span></a>`},a.UUICardUserElement.styles=[...a.UUICardElement.styles,p`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px);align-items:center}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:var(--uui-size-6,18px)}::slotted(*){text-align:center}slot[name=tag]{position:absolute;top:6px;right:6px;display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}#avatar{margin:var(--uui-size-3,9px)}slot[name=icon]::slotted(*){font-size:1.2em}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer;margin:0 0 3px 0}:host([disabled]) #open-part{pointer-events:none}#open-part>span{vertical-align:center;margin-top:3px}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}`],Xn([l({type:String})],a.UUICardUserElement.prototype,"name",2),a.UUICardUserElement=Xn([b("uui-card-user")],a.UUICardUserElement);var _h=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,ea=(i,e,t,r)=>{for(var o=r>1?void 0:r?wh(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&_h(e,t,o),o};a.UUICaretElement=class extends m{constructor(){super(),this.open=!1,console.error("\xB4uui-caret\xB4 is deprecated, please use \xB4uui-symbol-expand\xB4 or \xB4uui-symbol-sort\xB4")}render(){return u`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},a.UUICaretElement.styles=[p`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform-origin:50% 50%;transition:transform 280ms cubic-bezier(.17,-.88,.82,1.84)}:host([open]) svg{transform:rotate(180deg)}`],ea([l({type:Boolean,reflect:!0})],a.UUICaretElement.prototype,"open",2),a.UUICaretElement=ea([b("uui-caret")],a.UUICaretElement);var $h=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,Eh=(i,e,t,r)=>{for(var o=r>1?void 0:r?Uh(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&$h(e,t,o),o};a.UUICheckboxElement=class extends ie{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${ri}</div></div>`}},a.UUICheckboxElement.formAssociated=!0,a.UUICheckboxElement.styles=[...ie.styles,ei,p`:host{--uui-checkbox-size:18px}#ticker{position:relative;grid-area:'input';display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;width:var(--uui-checkbox-size);height:var(--uui-checkbox-size);border-radius:var(--uui-checkbox-border-radius,var(--uui-border-radius,3px));color:var(--uui-toggle-color,var(--uui-color-selected-contrast,#fff));background-color:var(--uui-toggle-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-checkbox-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-checkbox-size) * .7)}label:hover input:not([disabled])+#ticker{border-color:var(--uui-checkbox-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}label:focus #ticker{border-color:var(--uui-checkbox-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked:not([disabled])+#ticker{border-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-check{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms,opacity 120ms;fill:var(--uui-color-selected-contrast,#fff);opacity:0}#ticker::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:calc(var(--uui-checkbox-border-radius,var(--uui-border-radius,3px)) * .5);background-color:var(--uui-color-selected,#3544b1);transition:transform 120ms ease,opacity 120ms,background-color 120ms;transform:scale(0);opacity:0}label:hover input:checked:not([disabled])+#ticker::before{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:checked+#ticker::before{transform:scale(1);opacity:1}input:checked+#ticker #icon-check{opacity:1}label:focus input:checked+#ticker{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:focus+#ticker{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled])) label:active input:checked+#ticker::before{transform:scale(.9)}:host(:not([pristine]):invalid) #ticker,:host(:not([pristine]):invalid) label:focus input:checked+#ticker,:host(:not([pristine]):invalid) label:hover #ticker,:host(:not([pristine]):invalid) label:hover input:checked:not([disabled])+#ticker,:host(:not([pristine])[internals-invalid]) #ticker,:host(:not([pristine])[internals-invalid]) label:focus input:checked+#ticker,:host(:not([pristine])[internals-invalid]) label:hover #ticker,:host(:not([pristine])[internals-invalid]) label:hover input:checked:not([disabled])+#ticker{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([disabled]) #ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) input:checked+#ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker::before{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #ticker{animation:${ti}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}`],a.UUICheckboxElement=Eh([b("uui-checkbox")],a.UUICheckboxElement);/**
|
|
266
434
|
* @license
|
|
267
435
|
* Copyright 2018 Google LLC
|
|
268
436
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
269
|
-
*/const ai=st(class extends at{constructor(i){var e;if(super(i),i.type!==Y.ATTRIBUTE||i.name!=="class"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){var t,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in e)e[n]&&!(!((t=this.nt)===null||t===void 0)&&t.has(n))&&this.it.add(n);return this.render(e)}const o=i.element.classList;this.it.forEach(n=>{n in e||(o.remove(n),this.it.delete(n))});for(const n in e){const a=!!e[n];a===this.it.has(n)||!((r=this.nt)===null||r===void 0)&&r.has(n)||(a?(o.add(n),this.it.add(n)):(o.remove(n),this.it.delete(n)))}return V}});var Uh={grad:.9,turn:360,rad:360/(2*Math.PI)},he=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},L=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},q=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},is=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},os=function(i){return{r:q(i.r,0,255),g:q(i.g,0,255),b:q(i.b,0,255),a:q(i.a)}},ho=function(i){return{r:L(i.r),g:L(i.g),b:L(i.b),a:L(i.a,3)}},Eh=/^#([0-9a-f]{3,8})$/i,li=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},rs=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=Math.max(e,t,r),a=n-Math.min(e,t,r),h=a?n===e?(t-r)/a:n===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(h<0?h+6:h),s:n?a/n*100:0,v:n/255*100,a:o}},ns=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var n=Math.floor(e),a=r*(1-t),h=r*(1-(e-n)*t),c=r*(1-(1-e+n)*t),d=n%6;return{r:255*[r,h,a,a,c,r][d],g:255*[c,r,r,h,a,a][d],b:255*[a,a,c,r,r,h][d],a:o}},ss=function(i){return{h:is(i.h),s:q(i.s,0,100),l:q(i.l,0,100),a:q(i.a)}},as=function(i){return{h:L(i.h),s:L(i.s),l:L(i.l),a:L(i.a,3)}},ls=function(i){return ns((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},zt=function(i){return{h:(e=rs(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},kh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ih=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ch=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,us={string:[[function(i){var e=Eh.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?L(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?L(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=xh.exec(i)||Ch.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:os({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=kh.exec(i)||Ih.exec(i);if(!e)return null;var t,r,o=ss({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(Uh[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return ls(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=o===void 0?1:o;return he(e)&&he(t)&&he(r)?os({r:Number(e),g:Number(t),b:Number(r),a:Number(n)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,n=o===void 0?1:o;if(!he(e)||!he(t)||!he(r))return null;var a=ss({h:Number(e),s:Number(t),l:Number(r),a:Number(n)});return ls(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,n=o===void 0?1:o;if(!he(e)||!he(t)||!he(r))return null;var a=function(h){return{h:is(h.h),s:q(h.s,0,100),v:q(h.v,0,100),a:q(h.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(n)});return ns(a)},"hsv"]]},cs=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},Ph=function(i){return typeof i=="string"?cs(i.trim(),us.string):typeof i=="object"&&i!==null?cs(i,us.object):[null,void 0]},po=function(i,e){var t=zt(i);return{h:t.h,s:q(t.s+100*e,0,100),l:t.l,a:t.a}},bo=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},hs=function(i,e){var t=zt(i);return{h:t.h,s:t.s,l:q(t.l+100*e,0,100),a:t.a}},ds=function(){function i(e){this.parsed=Ph(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return L(bo(this.rgba),2)},i.prototype.isDark=function(){return bo(this.rgba)<.5},i.prototype.isLight=function(){return bo(this.rgba)>=.5},i.prototype.toHex=function(){return e=ho(this.rgba),t=e.r,r=e.g,o=e.b,a=(n=e.a)<1?li(L(255*n)):"","#"+li(t)+li(r)+li(o)+a;var e,t,r,o,n,a},i.prototype.toRgb=function(){return ho(this.rgba)},i.prototype.toRgbString=function(){return e=ho(this.rgba),t=e.r,r=e.g,o=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+o+", "+n+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,n},i.prototype.toHsl=function(){return as(zt(this.rgba))},i.prototype.toHslString=function(){return e=as(zt(this.rgba)),t=e.h,r=e.s,o=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+n+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,n},i.prototype.toHsv=function(){return e=rs(this.rgba),{h:L(e.h),s:L(e.s),v:L(e.v),a:L(e.a,3)};var e},i.prototype.invert=function(){return W({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),W(po(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),W(po(this.rgba,-e))},i.prototype.grayscale=function(){return W(po(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),W(hs(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),W(hs(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?W({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):L(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=zt(this.rgba);return typeof e=="number"?W({h:e,s:t.s,l:t.l,a:t.a}):L(t.h)},i.prototype.isEqual=function(e){return this.toHex()===W(e).toHex()},i}(),W=function(i){return i instanceof ds?i:new ds(i)},Sh=Object.defineProperty,ps=Object.getOwnPropertySymbols,Oh=Object.prototype.hasOwnProperty,zh=Object.prototype.propertyIsEnumerable,bs=(i,e,t)=>e in i?Sh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ms=(i,e)=>{for(var t in e||(e={}))Oh.call(e,t)&&bs(i,t,e[t]);if(ps)for(var t of ps(e))zh.call(e,t)&&bs(i,t,e[t]);return i};let ui=class extends P{constructor(e,t={}){super(e,ms(ms({},{bubbles:!0}),t))}};ui.CHANGE="change";var Ah=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,de=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lh(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ah(e,t,o),o};s.UUIColorAreaElement=class extends m{constructor(){super(...arguments),this.isDraggingGridHandle=!1,this.hue=0,this.saturation=0,this.lightness=0,this.brightness=0,this.alpha=100,this._value="#000",this.disabled=!1}get value(){return this._value}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t);try{const r=W(e);if(r.isValid()){const{h:o,s:n,l:a}=r.toHsl();this.hue=o,this.saturation=n,this.lightness=a,this.brightness=this.getBrightness(a)}}catch(r){console.error("Something went wrong parsing the color string.",r)}}handleGridDrag(e){if(this.disabled)return;const t=this.shadowRoot.querySelector(".color-area"),r=t.querySelector(".color-area__handle"),{width:o,height:n}=t.getBoundingClientRect();r.focus(),e.preventDefault(),e.stopPropagation(),this.isDraggingGridHandle=!0,Tn(t,{onMove:(a,h)=>{isNaN(a)||isNaN(h)||(this.saturation=S(a/o*100,0,100),this.brightness=S(100-h/n*100,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:e})}handleGridKeyDown(e){if(this.disabled)return;const t=e.shiftKey?10:1;e.key==="ArrowLeft"&&(e.preventDefault(),this.saturation=S(this.saturation-t,0,100),this.syncValues()),e.key==="ArrowRight"&&(e.preventDefault(),this.saturation=S(this.saturation+t,0,100),this.syncValues()),e.key==="ArrowUp"&&(e.preventDefault(),this.brightness=S(this.brightness+t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues()),e.key==="ArrowDown"&&(e.preventDefault(),this.brightness=S(this.brightness-t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())}getBrightness(e){return S(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return S((200-this.saturation)*e/100*5/10,0,100)}syncValues(){const e=W({h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha/100});this._value=e.toRgbString(),this.dispatchEvent(new ui(ui.CHANGE))}getHexString(e,t,r,o=100){const n=W(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return n.isValid()?n.toHex():""}render(){const e=this.saturation,t=100-this.brightness;return u`<div part="grid" class="color-area" style="${ie({backgroundColor:this.getHexString(this.hue,100,50)})}" @mousedown="${this.handleGridDrag}" @touchstart="${this.handleGridDrag}"><span part="grid-handle" class="${ai({"color-area__handle":!0,"color-area__handle--dragging":this.isDraggingGridHandle})}" style="${ie({top:`${t}%`,left:`${e}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.lightness,this.alpha)})}" role="application" tabindex="${I(this.disabled?void 0:"0")}" aria-label="HSB" @keydown="${this.handleGridKeyDown}"></span></div>`}},s.UUIColorAreaElement.styles=[p`:host{display:inline-block;width:280px;height:200px}:host([disabled]){cursor:not-allowed}:host([disabled]) .color-area{user-select:none;pointer-events:none;opacity:.55}.color-area{position:relative;height:100%;width:100%;background-image:linear-gradient(to bottom,rgba(0,0,0,0) 0,#000 100%),linear-gradient(to right,#fff 0,rgba(255,255,255,0) 100%);box-sizing:border-box;cursor:crosshair;forced-color-adjust:none}.color-area__handle{position:absolute;width:var(--uui-color-area-grid-handle-size,16px);height:var(--uui-color-area-grid-handle-size,16px);border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);border:solid 2px #fff;margin-top:calc(var(--uui-color-area-grid-handle-size,16px)/ -2);margin-left:calc(var(--uui-color-area-grid-handle-size,16px)/ -2);transition:150ms transform;box-sizing:inherit}.color-area__handle--dragging{cursor:none;transform:scale(1.5)}.color-area__handle--empty{display:none}`],de([g()],s.UUIColorAreaElement.prototype,"isDraggingGridHandle",2),de([l({type:Number})],s.UUIColorAreaElement.prototype,"hue",2),de([l({type:Number})],s.UUIColorAreaElement.prototype,"saturation",2),de([l({type:Number})],s.UUIColorAreaElement.prototype,"lightness",2),de([l({type:Number})],s.UUIColorAreaElement.prototype,"brightness",2),de([l({type:Number})],s.UUIColorAreaElement.prototype,"alpha",2),de([l({type:String})],s.UUIColorAreaElement.prototype,"value",1),de([l({type:Boolean,reflect:!0})],s.UUIColorAreaElement.prototype,"disabled",2),s.UUIColorAreaElement=de([b("uui-color-area")],s.UUIColorAreaElement);/**
|
|
437
|
+
*/const ai=at(class extends st{constructor(i){var e;if(super(i),i.type!==Z.ATTRIBUTE||i.name!=="class"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){var t,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in e)e[n]&&!(!((t=this.nt)===null||t===void 0)&&t.has(n))&&this.it.add(n);return this.render(e)}const o=i.element.classList;this.it.forEach(n=>{n in e||(o.remove(n),this.it.delete(n))});for(const n in e){const s=!!e[n];s===this.it.has(n)||!((r=this.nt)===null||r===void 0)&&r.has(n)||(s?(o.add(n),this.it.add(n)):(o.remove(n),this.it.delete(n)))}return V}});var xh={grad:.9,turn:360,rad:360/(2*Math.PI)},de=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},L=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},q=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},ta=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},ia=function(i){return{r:q(i.r,0,255),g:q(i.g,0,255),b:q(i.b,0,255),a:q(i.a)}},co=function(i){return{r:L(i.r),g:L(i.g),b:L(i.b),a:L(i.a,3)}},kh=/^#([0-9a-f]{3,8})$/i,si=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},oa=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=Math.max(e,t,r),s=n-Math.min(e,t,r),h=s?n===e?(t-r)/s:n===t?2+(r-e)/s:4+(e-t)/s:0;return{h:60*(h<0?h+6:h),s:n?s/n*100:0,v:n/255*100,a:o}},ra=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var n=Math.floor(e),s=r*(1-t),h=r*(1-(e-n)*t),c=r*(1-(1-e+n)*t),d=n%6;return{r:255*[r,h,s,s,c,r][d],g:255*[c,r,r,h,s,s][d],b:255*[s,s,c,r,r,h][d],a:o}},na=function(i){return{h:ta(i.h),s:q(i.s,0,100),l:q(i.l,0,100),a:q(i.a)}},aa=function(i){return{h:L(i.h),s:L(i.s),l:L(i.l),a:L(i.a,3)}},sa=function(i){return ra((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},Ot=function(i){return{h:(e=oa(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},Ih=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ch=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,zh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ph=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,la={string:[[function(i){var e=kh.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?L(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?L(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=zh.exec(i)||Ph.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:ia({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=Ih.exec(i)||Ch.exec(i);if(!e)return null;var t,r,o=na({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(xh[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return sa(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=o===void 0?1:o;return de(e)&&de(t)&&de(r)?ia({r:Number(e),g:Number(t),b:Number(r),a:Number(n)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,n=o===void 0?1:o;if(!de(e)||!de(t)||!de(r))return null;var s=na({h:Number(e),s:Number(t),l:Number(r),a:Number(n)});return sa(s)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,n=o===void 0?1:o;if(!de(e)||!de(t)||!de(r))return null;var s=function(h){return{h:ta(h.h),s:q(h.s,0,100),v:q(h.v,0,100),a:q(h.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(n)});return ra(s)},"hsv"]]},ua=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},Sh=function(i){return typeof i=="string"?ua(i.trim(),la.string):typeof i=="object"&&i!==null?ua(i,la.object):[null,void 0]},ho=function(i,e){var t=Ot(i);return{h:t.h,s:q(t.s+100*e,0,100),l:t.l,a:t.a}},po=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},ca=function(i,e){var t=Ot(i);return{h:t.h,s:t.s,l:q(t.l+100*e,0,100),a:t.a}},ha=function(){function i(e){this.parsed=Sh(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return L(po(this.rgba),2)},i.prototype.isDark=function(){return po(this.rgba)<.5},i.prototype.isLight=function(){return po(this.rgba)>=.5},i.prototype.toHex=function(){return e=co(this.rgba),t=e.r,r=e.g,o=e.b,s=(n=e.a)<1?si(L(255*n)):"","#"+si(t)+si(r)+si(o)+s;var e,t,r,o,n,s},i.prototype.toRgb=function(){return co(this.rgba)},i.prototype.toRgbString=function(){return e=co(this.rgba),t=e.r,r=e.g,o=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+o+", "+n+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,n},i.prototype.toHsl=function(){return aa(Ot(this.rgba))},i.prototype.toHslString=function(){return e=aa(Ot(this.rgba)),t=e.h,r=e.s,o=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+n+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,n},i.prototype.toHsv=function(){return e=oa(this.rgba),{h:L(e.h),s:L(e.s),v:L(e.v),a:L(e.a,3)};var e},i.prototype.invert=function(){return W({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),W(ho(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),W(ho(this.rgba,-e))},i.prototype.grayscale=function(){return W(ho(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),W(ca(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),W(ca(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?W({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):L(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=Ot(this.rgba);return typeof e=="number"?W({h:e,s:t.s,l:t.l,a:t.a}):L(t.h)},i.prototype.isEqual=function(e){return this.toHex()===W(e).toHex()},i}(),W=function(i){return i instanceof ha?i:new ha(i)},Oh=Object.defineProperty,da=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Lh=Object.prototype.propertyIsEnumerable,pa=(i,e,t)=>e in i?Oh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ba=(i,e)=>{for(var t in e||(e={}))Ah.call(e,t)&&pa(i,t,e[t]);if(da)for(var t of da(e))Lh.call(e,t)&&pa(i,t,e[t]);return i};let li=class extends z{constructor(e,t={}){super(e,ba(ba({},{bubbles:!0}),t))}};li.CHANGE="change";var jh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,pe=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nh(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&jh(e,t,o),o};a.UUIColorAreaElement=class extends m{constructor(){super(...arguments),this.isDraggingGridHandle=!1,this.hue=0,this.saturation=0,this.lightness=0,this.brightness=0,this.alpha=100,this._value="#000",this.disabled=!1}get value(){return this._value}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t);try{const r=W(e);if(r.isValid()){const{h:o,s:n,l:s}=r.toHsl();this.hue=o,this.saturation=n,this.lightness=s,this.brightness=this.getBrightness(s)}}catch(r){console.error("Something went wrong parsing the color string.",r)}}handleGridDrag(e){if(this.disabled)return;const t=this.shadowRoot.querySelector(".color-area"),r=t.querySelector(".color-area__handle"),{width:o,height:n}=t.getBoundingClientRect();r.focus(),e.preventDefault(),e.stopPropagation(),this.isDraggingGridHandle=!0,Nn(t,{onMove:(s,h)=>{isNaN(s)||isNaN(h)||(this.saturation=P(s/o*100,0,100),this.brightness=P(100-h/n*100,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:e})}handleGridKeyDown(e){if(this.disabled)return;const t=e.shiftKey?10:1;e.key==="ArrowLeft"&&(e.preventDefault(),this.saturation=P(this.saturation-t,0,100),this.syncValues()),e.key==="ArrowRight"&&(e.preventDefault(),this.saturation=P(this.saturation+t,0,100),this.syncValues()),e.key==="ArrowUp"&&(e.preventDefault(),this.brightness=P(this.brightness+t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues()),e.key==="ArrowDown"&&(e.preventDefault(),this.brightness=P(this.brightness-t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())}getBrightness(e){return P(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return P((200-this.saturation)*e/100*5/10,0,100)}syncValues(){const e=W({h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha/100});this._value=e.toRgbString(),this.dispatchEvent(new li(li.CHANGE))}getHexString(e,t,r,o=100){const n=W(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return n.isValid()?n.toHex():""}render(){const e=this.saturation,t=100-this.brightness;return u`<div part="grid" class="color-area" style="${oe({backgroundColor:this.getHexString(this.hue,100,50)})}" @mousedown="${this.handleGridDrag}" @touchstart="${this.handleGridDrag}"><span part="grid-handle" class="${ai({"color-area__handle":!0,"color-area__handle--dragging":this.isDraggingGridHandle})}" style="${oe({top:`${t}%`,left:`${e}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.lightness,this.alpha)})}" role="application" tabindex="${k(this.disabled?void 0:"0")}" aria-label="HSB" @keydown="${this.handleGridKeyDown}"></span></div>`}},a.UUIColorAreaElement.styles=[p`:host{display:inline-block;width:280px;height:200px}:host([disabled]){cursor:not-allowed}:host([disabled]) .color-area{user-select:none;pointer-events:none;opacity:.55}.color-area{position:relative;height:100%;width:100%;background-image:linear-gradient(to bottom,rgba(0,0,0,0) 0,#000 100%),linear-gradient(to right,#fff 0,rgba(255,255,255,0) 100%);box-sizing:border-box;cursor:crosshair;forced-color-adjust:none}.color-area__handle{position:absolute;width:var(--uui-color-area-grid-handle-size,16px);height:var(--uui-color-area-grid-handle-size,16px);border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);border:solid 2px #fff;margin-top:calc(var(--uui-color-area-grid-handle-size,16px)/ -2);margin-left:calc(var(--uui-color-area-grid-handle-size,16px)/ -2);transition:150ms transform;box-sizing:inherit}.color-area__handle--dragging{cursor:none;transform:scale(1.5)}.color-area__handle--empty{display:none}`],pe([g()],a.UUIColorAreaElement.prototype,"isDraggingGridHandle",2),pe([l({type:Number})],a.UUIColorAreaElement.prototype,"hue",2),pe([l({type:Number})],a.UUIColorAreaElement.prototype,"saturation",2),pe([l({type:Number})],a.UUIColorAreaElement.prototype,"lightness",2),pe([l({type:Number})],a.UUIColorAreaElement.prototype,"brightness",2),pe([l({type:Number})],a.UUIColorAreaElement.prototype,"alpha",2),pe([l({type:String})],a.UUIColorAreaElement.prototype,"value",1),pe([l({type:Boolean,reflect:!0})],a.UUIColorAreaElement.prototype,"disabled",2),a.UUIColorAreaElement=pe([b("uui-color-area")],a.UUIColorAreaElement);/**
|
|
270
438
|
* @license
|
|
271
439
|
* Copyright 2020 Google LLC
|
|
272
440
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
273
|
-
*/const{I:
|
|
441
|
+
*/const{I:Th}=gl,ma=i=>i.strings===void 0,va=()=>document.createComment(""),At=(i,e,t)=>{var r;const o=i._$AA.parentNode,n=e===void 0?i._$AB:e._$AA;if(t===void 0){const s=o.insertBefore(va(),n),h=o.insertBefore(va(),n);t=new Th(s,h,i,i.options)}else{const s=t._$AB.nextSibling,h=t._$AM,c=h!==i;if(c){let d;(r=t._$AQ)===null||r===void 0||r.call(t,i),t._$AM=i,t._$AP!==void 0&&(d=i._$AU)!==h._$AU&&t._$AP(d)}if(s!==n||c){let d=t._$AA;for(;d!==s;){const v=d.nextSibling;o.insertBefore(d,n),d=v}}}return t},Ve=(i,e,t=i)=>(i._$AI(e,t),i),Mh={},ga=(i,e=Mh)=>i._$AH=e,Dh=i=>i._$AH,bo=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let t=i._$AA;const r=i._$AB.nextSibling;for(;t!==r;){const o=t.nextSibling;t.remove(),t=o}};/**
|
|
274
442
|
* @license
|
|
275
443
|
* Copyright 2020 Google LLC
|
|
276
444
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
277
|
-
*/const Mh=st(class extends at{constructor(i){if(super(i),i.type!==Y.PROPERTY&&i.type!==Y.ATTRIBUTE&&i.type!==Y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!vs(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===V||e===U)return e;const t=i.element,r=i.name;if(i.type===Y.PROPERTY){if(e===t[r])return V}else if(i.type===Y.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return V}else if(i.type===Y.ATTRIBUTE&&t.getAttribute(r)===e+"")return V;return fs(i),e}});var Dh={grad:.9,turn:360,rad:360/(2*Math.PI)},pe=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},j=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},K=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},ys=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},_s=function(i){return{r:K(i.r,0,255),g:K(i.g,0,255),b:K(i.b,0,255),a:K(i.a)}},vo=function(i){return{r:j(i.r),g:j(i.g),b:j(i.b),a:j(i.a,3)}},Vh=/^#([0-9a-f]{3,8})$/i,ci=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},ws=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=Math.max(e,t,r),a=n-Math.min(e,t,r),h=a?n===e?(t-r)/a:n===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(h<0?h+6:h),s:n?a/n*100:0,v:n/255*100,a:o}},$s=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var n=Math.floor(e),a=r*(1-t),h=r*(1-(e-n)*t),c=r*(1-(1-e+n)*t),d=n%6;return{r:255*[r,h,a,a,c,r][d],g:255*[c,r,r,h,a,a][d],b:255*[a,a,c,r,r,h][d],a:o}},Us=function(i){return{h:ys(i.h),s:K(i.s,0,100),l:K(i.l,0,100),a:K(i.a)}},Es=function(i){return{h:j(i.h),s:j(i.s),l:j(i.l),a:j(i.a,3)}},ks=function(i){return $s((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},Lt=function(i){return{h:(e=ws(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},Hh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Bh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,go={string:[[function(i){var e=Vh.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?j(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?j(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=Rh.exec(i)||Fh.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:_s({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=Hh.exec(i)||Bh.exec(i);if(!e)return null;var t,r,o=Us({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(Dh[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return ks(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=o===void 0?1:o;return pe(e)&&pe(t)&&pe(r)?_s({r:Number(e),g:Number(t),b:Number(r),a:Number(n)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,n=o===void 0?1:o;if(!pe(e)||!pe(t)||!pe(r))return null;var a=Us({h:Number(e),s:Number(t),l:Number(r),a:Number(n)});return ks(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,n=o===void 0?1:o;if(!pe(e)||!pe(t)||!pe(r))return null;var a=function(h){return{h:ys(h.h),s:K(h.s,0,100),v:K(h.v,0,100),a:K(h.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(n)});return $s(a)},"hsv"]]},Is=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},Gh=function(i){return typeof i=="string"?Is(i.trim(),go.string):typeof i=="object"&&i!==null?Is(i,go.object):[null,void 0]},fo=function(i,e){var t=Lt(i);return{h:t.h,s:K(t.s+100*e,0,100),l:t.l,a:t.a}},yo=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},xs=function(i,e){var t=Lt(i);return{h:t.h,s:t.s,l:K(t.l+100*e,0,100),a:t.a}},hi=function(){function i(e){this.parsed=Gh(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return j(yo(this.rgba),2)},i.prototype.isDark=function(){return yo(this.rgba)<.5},i.prototype.isLight=function(){return yo(this.rgba)>=.5},i.prototype.toHex=function(){return e=vo(this.rgba),t=e.r,r=e.g,o=e.b,a=(n=e.a)<1?ci(j(255*n)):"","#"+ci(t)+ci(r)+ci(o)+a;var e,t,r,o,n,a},i.prototype.toRgb=function(){return vo(this.rgba)},i.prototype.toRgbString=function(){return e=vo(this.rgba),t=e.r,r=e.g,o=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+o+", "+n+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,n},i.prototype.toHsl=function(){return Es(Lt(this.rgba))},i.prototype.toHslString=function(){return e=Es(Lt(this.rgba)),t=e.h,r=e.s,o=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+n+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,n},i.prototype.toHsv=function(){return e=ws(this.rgba),{h:j(e.h),s:j(e.s),v:j(e.v),a:j(e.a,3)};var e},i.prototype.invert=function(){return re({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),re(fo(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),re(fo(this.rgba,-e))},i.prototype.grayscale=function(){return re(fo(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),re(xs(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),re(xs(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?re({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):j(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=Lt(this.rgba);return typeof e=="number"?re({h:e,s:t.s,l:t.l,a:t.a}):j(t.h)},i.prototype.isEqual=function(e){return this.toHex()===re(e).toHex()},i}(),re=function(i){return i instanceof hi?i:new hi(i)},Cs=[],qh=function(i){i.forEach(function(e){Cs.indexOf(e)<0&&(e(hi,go),Cs.push(e))})};function Wh(i,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in t)r[t[o]]=o;var n={};i.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var h,c,d=r[this.toHex()];if(d)return d;if(a!=null&&a.closest){var v=this.toRgb(),f=1/0,y="black";if(!n.length)for(var $ in t)n[$]=new i(t[$]).toRgb();for(var E in t){var k=(h=v,c=n[E],Math.pow(h.r-c.r,2)+Math.pow(h.g-c.g,2)+Math.pow(h.b-c.b,2));k<f&&(f=k,y=E)}return y}},e.string.push([function(a){var h=a.toLowerCase(),c=h==="transparent"?"#0000":t[h];return c?new i(c).toRgb():null},"name"])}var Kh=Object.defineProperty,Ps=Object.getOwnPropertySymbols,Xh=Object.prototype.hasOwnProperty,Yh=Object.prototype.propertyIsEnumerable,Ss=(i,e,t)=>e in i?Kh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Os=(i,e)=>{for(var t in e||(e={}))Xh.call(e,t)&&Ss(i,t,e[t]);if(Ps)for(var t of Ps(e))Yh.call(e,t)&&Ss(i,t,e[t]);return i};let di=class extends P{constructor(e,t={}){super(e,Os(Os({},{bubbles:!0}),t))}};di.CHANGE="change";var Zh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,z=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qh(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zh(e,t,o),o};qh([Wh]);const zs="EyeDropper"in window;s.UUIColorPickerElement=class extends J("label",m){constructor(){super(...arguments),this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=100,this._colord=re("hsl(0, 0%, 0%)"),this.value="",this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}connectedCallback(){super.connectedCallback(),this.value?this.setColor(this.value):this.setColor("#000"),w(this,"uui-icon"),w(this,"uui-icon-registry-essential"),w(this,"uui-input"),w(this,"uui-button"),w(this,"uui-button-group"),w(this,"uui-popover"),w(this,"uui-color-swatches"),w(this,"uui-color-swatch"),w(this,"uui-color-area"),w(this,"uui-color-slider")}getFormattedValue(e){const t=this.opacity?`${e}a`:e,r=this._colord.toHex(),o=r.length>7?r.substring(0,r.length-2):r,{r:n,g:a,b:h}=this._colord.toRgb(),{h:c,s:d,l:v}=this._colord.toHsl(),{v:f}=this._colord.toHsv(),y=this._colord.alpha();switch(t){case"hex":return this.setLetterCase(o);case"hexa":return this.setLetterCase(r);case"rgb":return this.setLetterCase(`rgb(${n}, ${a}, ${h})`);case"rgba":return this.setLetterCase(this._colord.toRgbString());case"hsl":return this.setLetterCase(`hsl(${c}, ${d}%, ${v}%)`);case"hsla":return this.setLetterCase(this._colord.toHslString());case"hsv":return this.setLetterCase(`hsv(${c}, ${d}%, ${v}%)`);case"hsva":return this.setLetterCase(`hsva(${c}, ${d}%, ${f}%, ${y})`);default:return""}}getBrightness(e){return S(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return S((200-this.saturation)*e/100*5/10,0,100)}handleFormatToggle(){const e=["hex","rgb","hsl","hsv"],t=(e.indexOf(this.format)+1)%e.length;this.format=e[t],this._syncValues()}handleAlphaChange(e){var t;e.stopPropagation(),(t=this._swatches)==null||t.resetSelection();const r=e.target,o={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(r.value)/100};this.setColor(o)}handleHueChange(e){var t;e.stopPropagation(),(t=this._swatches)==null||t.resetSelection();const r={h:e.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(r)}handleGridChange(e){var t;e.stopPropagation(),(t=this._swatches)==null||t.resetSelection();const r=e.target,o={h:this.hue,s:r.saturation,l:r.lightness,a:this.alpha/100};this.setColor(o)}handleInputChange(e){var t;(t=this._swatches)==null||t.resetSelection();const r=e.target;r.value?(this.setColor(r.value),r.value=this.value):this.setColor("#000"),e.stopPropagation()}handleInputKeyDown(e){var t;e.key==="Enter"&&(this.inputValue?(this.setColor(this.inputValue),(t=this._swatches)==null||t.resetSelection(),this.inputValue=this.value,setTimeout(()=>this._input.select())):this.setColor("#000"))}handleColorSwatchChange(e){e.stopImmediatePropagation();const t=e.target;t.value?this.setColor(t.value):this.setColor("#000")}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}openColorPicker(e){e.stopImmediatePropagation();const t=e.target,r=t.parentElement;r.open=!(r!=null&&r.open),t.setAttribute("aria-expanded",r.open.toString())}closeColorPicker(e){const t=e.target.querySelector("button[part=trigger]");t&&t.setAttribute("aria-expanded","false")}handleEyeDropper(){zs&&new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(e){this._colord=new hi(e);const{h:t,l:r,s:o,a:n}=this._colord.toHsl();return this.hue=t,this.saturation=o,this.lightness=r,this.alpha=this.opacity?n*100:100,this._syncValues(),this.dispatchEvent(new di(di.CHANGE)),!0}setLetterCase(e){return typeof e!="string"?"":this.uppercase?e.toUpperCase():e.toLowerCase()}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this.value=this.inputValue}_renderColorPicker(){return u`<div class="${ai({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled})}" aria-disabled="${this.disabled?"true":"false"}"><uui-color-area .value="${this.value}" ?disabled="${this.disabled}" @change="${this.handleGridChange}"></uui-color-area><div class="color-picker__controls"><div class="color-picker__sliders"><uui-color-slider label="hue" class="hue-slider" .value="${Math.round(this.hue)}" ?disabled="${this.disabled}" @change="${this.handleHueChange}"></uui-color-slider>${this.opacity?u`<uui-color-slider label="alpha" class="opacity-slider" .value="${Math.round(this.alpha)}" type="opacity" .color="${this.value}" ?disabled="${this.disabled}" @change="${this.handleAlphaChange}"></uui-color-slider>`:""}</div><button type="button" part="preview" class="color-picker__preview color-picker__transparent-bg" title="Copy" aria-label="Copy" style="${ie({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" @click="${this.handleCopy}"></button></div><div class="color-picker__user-input" aria-live="polite"><uui-input label="label" type="text" part="input" name="${this.name}" autocomplete="off" autocapitalize="off" spellcheck="false" .value="${Mh(this.inputValue)}" ?disabled="${this.disabled}" @keydown="${this.handleInputKeyDown}" @change="${this.handleInputChange}"></uui-input><uui-button-group>${this.noFormatToggle?"":u`<uui-button label="Toggle color format" @click="${this.handleFormatToggle}" class="color-picker__toggle-format" ?disabled="${this.disabled}" compact="compact"><span>${this.format}</span></uui-button>`} ${zs?u`<uui-button label="Select a color" ?disabled="${this.disabled}" @click="${this.handleEyeDropper}" compact="compact"><uui-icon-registry-essential><uui-icon name="colorpicker"></uui-icon></uui-icon-registry-essential></uui-button>`:""}</uui-button-group></div>${this._renderSwatches()}</div>`}_renderSwatches(){return this.swatches?u`<uui-color-swatches id="swatches" class="color-picker__swatches" ?disabled="${this.disabled}" @change="${this.handleColorSwatchChange}">${this.swatches.map(e=>u`<uui-color-swatch label="${e}" .value="${e}"></uui-color-swatch>`)}</uui-color-swatches>`:U}_renderPreviewButton(){return u`<uui-popover placement="bottom-start" @close="${this.closeColorPicker}"><button type="button" part="trigger" slot="trigger" aria-label="${this.label||"Open Color picker"}" class="${ai({"color-picker__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":this.size==="small","color-dropdown__trigger--medium":this.size==="medium","color-dropdown__trigger--large":this.size==="large","color-picker__transparent-bg":!0})}" style="${ie({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" ?disabled="${this.disabled}" @click="${this.openColorPicker}" aria-haspopup="true" aria-expanded="false"></button><div slot="popover">${this._renderColorPicker()}</div></uui-popover>`}render(){return this.inline?this._renderColorPicker():this._renderPreviewButton()}},s.UUIColorPickerElement.styles=[p`:host{--uui-look-outline-border:#ddd;--uui-look-outline-border-hover:#aaa;font-size:.8rem;display:block;width:var(--uui-color-picker-width,280px)}.color-picker{width:100%;background-color:#fff;user-select:none;border:solid 1px #e4e4e7}.color-picker__user-input{display:flex;padding:0 .75rem .75rem .75rem}.color-picker__user-input uui-button{border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));border-left:none}.color-picker__preview,.color-picker__trigger{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;position:relative;width:2.25rem;height:2.25rem;border:none;border-radius:50%;background:0 0}.color-picker__preview{cursor:copy;margin-left:.75rem;border-radius:50%}.color-picker__trigger[disabled]{cursor:not-allowed;opacity:.5}.color-picker__preview::before,.color-picker__trigger::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);background-color:var(--preview-color)}.color-dropdown__trigger--empty::before{background-color:transparent}.color-picker__transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-picker__preview-color--copied{animation:pulse .75s}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--uui-palette-space-cadet-light,#26356e)}70%{box-shadow:0 0 0 .5rem transparent}100%{box-shadow:0 0 0 0 transparent}}.color-picker__controls{padding:.75rem;display:flex;align-items:center}.color-picker__sliders{flex:1 1 auto}uui-color-slider:not(:last-of-type){margin-bottom:1rem}.color-picker__toggle-format{min-width:45px;--uui-button-font-size:0.8rem}.color-picker__toggle-format>span{text-transform:uppercase}uui-color-swatches{border-top:solid 1px #d4d4d8;padding:.75rem}button[slot=trigger]{border-radius:50%;cursor:pointer;width:36px;height:36px}uui-popover{display:block;width:100%;margin:5px 0}uui-input{font-size:.85rem;box-sizing:content-box;flex:1}uui-color-area{width:100%}`],z([C('[part="input"]')],s.UUIColorPickerElement.prototype,"_input",2),z([C(".color-picker__preview")],s.UUIColorPickerElement.prototype,"_previewButton",2),z([C("#swatches")],s.UUIColorPickerElement.prototype,"_swatches",2),z([g()],s.UUIColorPickerElement.prototype,"inputValue",2),z([g()],s.UUIColorPickerElement.prototype,"hue",2),z([g()],s.UUIColorPickerElement.prototype,"saturation",2),z([g()],s.UUIColorPickerElement.prototype,"lightness",2),z([g()],s.UUIColorPickerElement.prototype,"alpha",2),z([g()],s.UUIColorPickerElement.prototype,"_colord",2),z([l()],s.UUIColorPickerElement.prototype,"value",2),z([l()],s.UUIColorPickerElement.prototype,"format",2),z([l()],s.UUIColorPickerElement.prototype,"name",2),z([l()],s.UUIColorPickerElement.prototype,"size",2),z([l({attribute:"no-format-toggle",type:Boolean})],s.UUIColorPickerElement.prototype,"noFormatToggle",2),z([l({type:Boolean,reflect:!0})],s.UUIColorPickerElement.prototype,"inline",2),z([l({type:Boolean,reflect:!0})],s.UUIColorPickerElement.prototype,"disabled",2),z([l({type:Boolean})],s.UUIColorPickerElement.prototype,"opacity",2),z([l({type:Boolean})],s.UUIColorPickerElement.prototype,"uppercase",2),z([l({attribute:!1})],s.UUIColorPickerElement.prototype,"swatches",2),s.UUIColorPickerElement=z([b("uui-color-picker")],s.UUIColorPickerElement);var Jh=Object.defineProperty,As=Object.getOwnPropertySymbols,ed=Object.prototype.hasOwnProperty,td=Object.prototype.propertyIsEnumerable,Ls=(i,e,t)=>e in i?Jh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,js=(i,e)=>{for(var t in e||(e={}))ed.call(e,t)&&Ls(i,t,e[t]);if(As)for(var t of As(e))td.call(e,t)&&Ls(i,t,e[t]);return i};let pi=class extends P{constructor(e,t={}){super(e,js(js({},{bubbles:!0}),t))}};pi.CHANGE="change";var id=Object.defineProperty,od=Object.getOwnPropertyDescriptor,be=(i,e,t,r)=>{for(var o=r>1?void 0:r?od(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&id(e,t,o),o};s.UUIColorSliderElement=class extends J("label",m){constructor(){super(...arguments),this.type="hue",this.color="",this.min=0,this.max=100,this.precision=1,this.vertical=!1,this.value=0,this.disabled=!1}willUpdate(e){e.has("type")&&(this.type==="hue"?(this.max=360,this.precision=1):this.type==="opacity"&&(this.max=100,this.precision=1))}firstUpdated(){this.container=this.shadowRoot.querySelector("#color-slider"),this.handle=this.container.querySelector("#color-slider__handle")}handleDrag(e){if(this.disabled||!this.container||!this.handle)return;const{width:t,height:r}=this.container.getBoundingClientRect();this.handle.focus(),e.preventDefault(),Tn(this.container,{onMove:(o,n)=>{this.vertical?this.value=Mn(S(n/r*this.max,this.min,this.max),this.min,this.max):this.value=S(o/t*this.max,this.min,this.max),this.syncValues()},initialEvent:e})}handleClick(e){this.disabled||(this.value=this.getValueFromMousePosition(e),this.syncValues())}handleKeyDown(e){const t=e.shiftKey?10:1;e.key==="ArrowLeft"?(e.preventDefault(),this.value=S(this.value-t,this.min,this.max),this.syncValues()):e.key==="ArrowRight"?(e.preventDefault(),this.value=S(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowUp"?(e.preventDefault(),this.value=S(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowDown"?(e.preventDefault(),this.value=S(this.value-t,this.min,this.max),this.syncValues()):e.key==="Home"?(e.preventDefault(),this.value=this.min,this.syncValues()):e.key==="End"&&(e.preventDefault(),this.value=this.max,this.syncValues())}getValueFromMousePosition(e){return this.vertical?this.getValueFromYCoordinate(e.clientY):this.getValueFromXCoordinate(e.clientX)}getValueFromTouchPosition(e){return this.vertical?this.getValueFromYCoordinate(e.touches[0].clientY):this.getValueFromXCoordinate(e.touches[0].clientX)}getValueFromXCoordinate(e){const{left:t,width:r}=this.container.getBoundingClientRect();return S(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}getValueFromYCoordinate(e){const{top:t,height:r}=this.container.getBoundingClientRect();return S(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}roundToPrecision(e){const t=1/this.precision;return Math.ceil(e*t)/t}syncValues(){this.dispatchEvent(new pi(pi.CHANGE))}get ccsPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/Mn(this.value,this.min,this.max):this.max/this.value)}render(){return u`<div part="slider" id="color-slider" role="slider" aria-label="${this.label}" aria-orientation="${this.vertical?"vertical":"horizontal"}" aria-valuemin="${Math.round(this.min)}" aria-valuemax="${Math.round(this.max)}" aria-valuenow="${Math.round(this.value)}" @click="${this.handleClick}" @mousedown="${this.handleDrag}" @touchstart="${this.handleDrag}" @keydown="${this.handleKeyDown}">${this.type==="opacity"?u`<div id="current-hue" style="${ie({backgroundImage:`linear-gradient(to ${this.vertical?"top":"right"},
|
|
445
|
+
*/const Vh=at(class extends st{constructor(i){if(super(i),i.type!==Z.PROPERTY&&i.type!==Z.ATTRIBUTE&&i.type!==Z.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ma(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===V||e===U)return e;const t=i.element,r=i.name;if(i.type===Z.PROPERTY){if(e===t[r])return V}else if(i.type===Z.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return V}else if(i.type===Z.ATTRIBUTE&&t.getAttribute(r)===e+"")return V;return ga(i),e}});var Hh={grad:.9,turn:360,rad:360/(2*Math.PI)},be=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},j=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},K=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},fa=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},ya=function(i){return{r:K(i.r,0,255),g:K(i.g,0,255),b:K(i.b,0,255),a:K(i.a)}},mo=function(i){return{r:j(i.r),g:j(i.g),b:j(i.b),a:j(i.a,3)}},Bh=/^#([0-9a-f]{3,8})$/i,ui=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},_a=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=Math.max(e,t,r),s=n-Math.min(e,t,r),h=s?n===e?(t-r)/s:n===t?2+(r-e)/s:4+(e-t)/s:0;return{h:60*(h<0?h+6:h),s:n?s/n*100:0,v:n/255*100,a:o}},wa=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var n=Math.floor(e),s=r*(1-t),h=r*(1-(e-n)*t),c=r*(1-(1-e+n)*t),d=n%6;return{r:255*[r,h,s,s,c,r][d],g:255*[c,r,r,h,s,s][d],b:255*[s,s,c,r,r,h][d],a:o}},$a=function(i){return{h:fa(i.h),s:K(i.s,0,100),l:K(i.l,0,100),a:K(i.a)}},Ua=function(i){return{h:j(i.h),s:j(i.s),l:j(i.l),a:j(i.a,3)}},Ea=function(i){return wa((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},Lt=function(i){return{h:(e=_a(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},Rh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,qh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vo={string:[[function(i){var e=Bh.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?j(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?j(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=Gh.exec(i)||qh.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:ya({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=Rh.exec(i)||Fh.exec(i);if(!e)return null;var t,r,o=$a({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(Hh[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Ea(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=o===void 0?1:o;return be(e)&&be(t)&&be(r)?ya({r:Number(e),g:Number(t),b:Number(r),a:Number(n)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,n=o===void 0?1:o;if(!be(e)||!be(t)||!be(r))return null;var s=$a({h:Number(e),s:Number(t),l:Number(r),a:Number(n)});return Ea(s)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,n=o===void 0?1:o;if(!be(e)||!be(t)||!be(r))return null;var s=function(h){return{h:fa(h.h),s:K(h.s,0,100),v:K(h.v,0,100),a:K(h.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(n)});return wa(s)},"hsv"]]},xa=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},Wh=function(i){return typeof i=="string"?xa(i.trim(),vo.string):typeof i=="object"&&i!==null?xa(i,vo.object):[null,void 0]},go=function(i,e){var t=Lt(i);return{h:t.h,s:K(t.s+100*e,0,100),l:t.l,a:t.a}},fo=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},ka=function(i,e){var t=Lt(i);return{h:t.h,s:t.s,l:K(t.l+100*e,0,100),a:t.a}},ci=function(){function i(e){this.parsed=Wh(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return j(fo(this.rgba),2)},i.prototype.isDark=function(){return fo(this.rgba)<.5},i.prototype.isLight=function(){return fo(this.rgba)>=.5},i.prototype.toHex=function(){return e=mo(this.rgba),t=e.r,r=e.g,o=e.b,s=(n=e.a)<1?ui(j(255*n)):"","#"+ui(t)+ui(r)+ui(o)+s;var e,t,r,o,n,s},i.prototype.toRgb=function(){return mo(this.rgba)},i.prototype.toRgbString=function(){return e=mo(this.rgba),t=e.r,r=e.g,o=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+o+", "+n+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,n},i.prototype.toHsl=function(){return Ua(Lt(this.rgba))},i.prototype.toHslString=function(){return e=Ua(Lt(this.rgba)),t=e.h,r=e.s,o=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+n+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,n},i.prototype.toHsv=function(){return e=_a(this.rgba),{h:j(e.h),s:j(e.s),v:j(e.v),a:j(e.a,3)};var e},i.prototype.invert=function(){return ne({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),ne(go(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),ne(go(this.rgba,-e))},i.prototype.grayscale=function(){return ne(go(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),ne(ka(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),ne(ka(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?ne({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):j(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=Lt(this.rgba);return typeof e=="number"?ne({h:e,s:t.s,l:t.l,a:t.a}):j(t.h)},i.prototype.isEqual=function(e){return this.toHex()===ne(e).toHex()},i}(),ne=function(i){return i instanceof ci?i:new ci(i)},Ia=[],Kh=function(i){i.forEach(function(e){Ia.indexOf(e)<0&&(e(ci,vo),Ia.push(e))})};function Xh(i,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in t)r[t[o]]=o;var n={};i.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var h,c,d=r[this.toHex()];if(d)return d;if(s!=null&&s.closest){var v=this.toRgb(),f=1/0,y="black";if(!n.length)for(var $ in t)n[$]=new i(t[$]).toRgb();for(var E in t){var x=(h=v,c=n[E],Math.pow(h.r-c.r,2)+Math.pow(h.g-c.g,2)+Math.pow(h.b-c.b,2));x<f&&(f=x,y=E)}return y}},e.string.push([function(s){var h=s.toLowerCase(),c=h==="transparent"?"#0000":t[h];return c?new i(c).toRgb():null},"name"])}var Yh=Object.defineProperty,Ca=Object.getOwnPropertySymbols,Zh=Object.prototype.hasOwnProperty,Qh=Object.prototype.propertyIsEnumerable,za=(i,e,t)=>e in i?Yh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Pa=(i,e)=>{for(var t in e||(e={}))Zh.call(e,t)&&za(i,t,e[t]);if(Ca)for(var t of Ca(e))Qh.call(e,t)&&za(i,t,e[t]);return i};let hi=class extends z{constructor(e,t={}){super(e,Pa(Pa({},{bubbles:!0}),t))}};hi.CHANGE="change";var Jh=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,O=(i,e,t,r)=>{for(var o=r>1?void 0:r?ed(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Jh(e,t,o),o};Kh([Xh]);const Sa="EyeDropper"in window;a.UUIColorPickerElement=class extends ee("label",m){constructor(){super(...arguments),this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=100,this._colord=ne("hsl(0, 0%, 0%)"),this.value="",this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}connectedCallback(){super.connectedCallback(),this.value?this.setColor(this.value):this.setColor("#000"),w(this,"uui-icon"),w(this,"uui-icon-registry-essential"),w(this,"uui-input"),w(this,"uui-button"),w(this,"uui-button-group"),w(this,"uui-popover"),w(this,"uui-color-swatches"),w(this,"uui-color-swatch"),w(this,"uui-color-area"),w(this,"uui-color-slider")}getFormattedValue(e){const t=this.opacity?`${e}a`:e,r=this._colord.toHex(),o=r.length>7?r.substring(0,r.length-2):r,{r:n,g:s,b:h}=this._colord.toRgb(),{h:c,s:d,l:v}=this._colord.toHsl(),{v:f}=this._colord.toHsv(),y=this._colord.alpha();switch(t){case"hex":return this.setLetterCase(o);case"hexa":return this.setLetterCase(r);case"rgb":return this.setLetterCase(`rgb(${n}, ${s}, ${h})`);case"rgba":return this.setLetterCase(this._colord.toRgbString());case"hsl":return this.setLetterCase(`hsl(${c}, ${d}%, ${v}%)`);case"hsla":return this.setLetterCase(this._colord.toHslString());case"hsv":return this.setLetterCase(`hsv(${c}, ${d}%, ${v}%)`);case"hsva":return this.setLetterCase(`hsva(${c}, ${d}%, ${f}%, ${y})`);default:return""}}getBrightness(e){return P(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return P((200-this.saturation)*e/100*5/10,0,100)}handleFormatToggle(){const e=["hex","rgb","hsl","hsv"],t=(e.indexOf(this.format)+1)%e.length;this.format=e[t],this._syncValues()}handleAlphaChange(e){var t;e.stopPropagation(),(t=this._swatches)==null||t.resetSelection();const r=e.target,o={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(r.value)/100};this.setColor(o)}handleHueChange(e){var t;e.stopPropagation(),(t=this._swatches)==null||t.resetSelection();const r={h:e.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(r)}handleGridChange(e){var t;e.stopPropagation(),(t=this._swatches)==null||t.resetSelection();const r=e.target,o={h:this.hue,s:r.saturation,l:r.lightness,a:this.alpha/100};this.setColor(o)}handleInputChange(e){var t;(t=this._swatches)==null||t.resetSelection();const r=e.target;r.value?(this.setColor(r.value),r.value=this.value):this.setColor("#000"),e.stopPropagation()}handleInputKeyDown(e){var t;e.key==="Enter"&&(this.inputValue?(this.setColor(this.inputValue),(t=this._swatches)==null||t.resetSelection(),this.inputValue=this.value,setTimeout(()=>this._input.select())):this.setColor("#000"))}handleColorSwatchChange(e){e.stopImmediatePropagation();const t=e.target;t.value?this.setColor(t.value):this.setColor("#000")}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}openColorPicker(e){e.stopImmediatePropagation();const t=e.target,r=t.parentElement;r.open=!(r!=null&&r.open),t.setAttribute("aria-expanded",r.open.toString())}closeColorPicker(e){const t=e.target.querySelector("button[part=trigger]");t&&t.setAttribute("aria-expanded","false")}handleEyeDropper(){Sa&&new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(e){this._colord=new ci(e);const{h:t,l:r,s:o,a:n}=this._colord.toHsl();return this.hue=t,this.saturation=o,this.lightness=r,this.alpha=this.opacity?n*100:100,this._syncValues(),this.dispatchEvent(new hi(hi.CHANGE)),!0}setLetterCase(e){return typeof e!="string"?"":this.uppercase?e.toUpperCase():e.toLowerCase()}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this.value=this.inputValue}_renderColorPicker(){return u`<div class="${ai({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled})}" aria-disabled="${this.disabled?"true":"false"}"><uui-color-area .value="${this.value}" ?disabled="${this.disabled}" @change="${this.handleGridChange}"></uui-color-area><div class="color-picker__controls"><div class="color-picker__sliders"><uui-color-slider label="hue" class="hue-slider" .value="${Math.round(this.hue)}" ?disabled="${this.disabled}" @change="${this.handleHueChange}"></uui-color-slider>${this.opacity?u`<uui-color-slider label="alpha" class="opacity-slider" .value="${Math.round(this.alpha)}" type="opacity" .color="${this.value}" ?disabled="${this.disabled}" @change="${this.handleAlphaChange}"></uui-color-slider>`:""}</div><button type="button" part="preview" class="color-picker__preview color-picker__transparent-bg" title="Copy" aria-label="Copy" style="${oe({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" @click="${this.handleCopy}"></button></div><div class="color-picker__user-input" aria-live="polite"><uui-input label="label" type="text" part="input" name="${this.name}" autocomplete="off" autocapitalize="off" spellcheck="false" .value="${Vh(this.inputValue)}" ?disabled="${this.disabled}" @keydown="${this.handleInputKeyDown}" @change="${this.handleInputChange}"></uui-input><uui-button-group>${this.noFormatToggle?"":u`<uui-button label="Toggle color format" @click="${this.handleFormatToggle}" class="color-picker__toggle-format" ?disabled="${this.disabled}" compact="compact"><span>${this.format}</span></uui-button>`} ${Sa?u`<uui-button label="Select a color" ?disabled="${this.disabled}" @click="${this.handleEyeDropper}" compact="compact"><uui-icon-registry-essential><uui-icon name="colorpicker"></uui-icon></uui-icon-registry-essential></uui-button>`:""}</uui-button-group></div>${this._renderSwatches()}</div>`}_renderSwatches(){return this.swatches?u`<uui-color-swatches id="swatches" class="color-picker__swatches" ?disabled="${this.disabled}" @change="${this.handleColorSwatchChange}">${this.swatches.map(e=>u`<uui-color-swatch label="${e}" .value="${e}"></uui-color-swatch>`)}</uui-color-swatches>`:U}_renderPreviewButton(){return u`<uui-popover placement="bottom-start" @close="${this.closeColorPicker}"><button type="button" part="trigger" slot="trigger" aria-label="${this.label||"Open Color picker"}" class="${ai({"color-picker__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":this.size==="small","color-dropdown__trigger--medium":this.size==="medium","color-dropdown__trigger--large":this.size==="large","color-picker__transparent-bg":!0})}" style="${oe({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" ?disabled="${this.disabled}" @click="${this.openColorPicker}" aria-haspopup="true" aria-expanded="false"></button><div slot="popover">${this._renderColorPicker()}</div></uui-popover>`}render(){return this.inline?this._renderColorPicker():this._renderPreviewButton()}},a.UUIColorPickerElement.styles=[p`:host{--uui-look-outline-border:#ddd;--uui-look-outline-border-hover:#aaa;font-size:.8rem;display:block;width:var(--uui-color-picker-width,280px)}.color-picker{width:100%;background-color:#fff;user-select:none;border:solid 1px #e4e4e7}.color-picker__user-input{display:flex;padding:0 .75rem .75rem .75rem}.color-picker__user-input uui-button{border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));border-left:none}.color-picker__preview,.color-picker__trigger{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;position:relative;width:2.25rem;height:2.25rem;border:none;border-radius:50%;background:0 0}.color-picker__preview{cursor:copy;margin-left:.75rem;border-radius:50%}.color-picker__trigger[disabled]{cursor:not-allowed;opacity:.5}.color-picker__preview::before,.color-picker__trigger::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);background-color:var(--preview-color)}.color-dropdown__trigger--empty::before{background-color:transparent}.color-picker__transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-picker__preview-color--copied{animation:pulse .75s}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--uui-palette-space-cadet-light,#26356e)}70%{box-shadow:0 0 0 .5rem transparent}100%{box-shadow:0 0 0 0 transparent}}.color-picker__controls{padding:.75rem;display:flex;align-items:center}.color-picker__sliders{flex:1 1 auto}uui-color-slider:not(:last-of-type){margin-bottom:1rem}.color-picker__toggle-format{min-width:45px;--uui-button-font-size:0.8rem}.color-picker__toggle-format>span{text-transform:uppercase}uui-color-swatches{border-top:solid 1px #d4d4d8;padding:.75rem}button[slot=trigger]{border-radius:50%;cursor:pointer;width:36px;height:36px}uui-popover{display:block;width:100%;margin:5px 0}uui-input{font-size:.85rem;box-sizing:content-box;flex:1}uui-color-area{width:100%}`],O([C('[part="input"]')],a.UUIColorPickerElement.prototype,"_input",2),O([C(".color-picker__preview")],a.UUIColorPickerElement.prototype,"_previewButton",2),O([C("#swatches")],a.UUIColorPickerElement.prototype,"_swatches",2),O([g()],a.UUIColorPickerElement.prototype,"inputValue",2),O([g()],a.UUIColorPickerElement.prototype,"hue",2),O([g()],a.UUIColorPickerElement.prototype,"saturation",2),O([g()],a.UUIColorPickerElement.prototype,"lightness",2),O([g()],a.UUIColorPickerElement.prototype,"alpha",2),O([g()],a.UUIColorPickerElement.prototype,"_colord",2),O([l()],a.UUIColorPickerElement.prototype,"value",2),O([l()],a.UUIColorPickerElement.prototype,"format",2),O([l()],a.UUIColorPickerElement.prototype,"name",2),O([l()],a.UUIColorPickerElement.prototype,"size",2),O([l({attribute:"no-format-toggle",type:Boolean})],a.UUIColorPickerElement.prototype,"noFormatToggle",2),O([l({type:Boolean,reflect:!0})],a.UUIColorPickerElement.prototype,"inline",2),O([l({type:Boolean,reflect:!0})],a.UUIColorPickerElement.prototype,"disabled",2),O([l({type:Boolean})],a.UUIColorPickerElement.prototype,"opacity",2),O([l({type:Boolean})],a.UUIColorPickerElement.prototype,"uppercase",2),O([l({attribute:!1})],a.UUIColorPickerElement.prototype,"swatches",2),a.UUIColorPickerElement=O([b("uui-color-picker")],a.UUIColorPickerElement);var td=Object.defineProperty,Oa=Object.getOwnPropertySymbols,id=Object.prototype.hasOwnProperty,od=Object.prototype.propertyIsEnumerable,Aa=(i,e,t)=>e in i?td(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,La=(i,e)=>{for(var t in e||(e={}))id.call(e,t)&&Aa(i,t,e[t]);if(Oa)for(var t of Oa(e))od.call(e,t)&&Aa(i,t,e[t]);return i};let di=class extends z{constructor(e,t={}){super(e,La(La({},{bubbles:!0}),t))}};di.CHANGE="change";var rd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,me=(i,e,t,r)=>{for(var o=r>1?void 0:r?nd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&rd(e,t,o),o};a.UUIColorSliderElement=class extends ee("label",m){constructor(){super(...arguments),this.type="hue",this.color="",this.min=0,this.max=100,this.precision=1,this.vertical=!1,this.value=0,this.disabled=!1}willUpdate(e){e.has("type")&&(this.type==="hue"?(this.max=360,this.precision=1):this.type==="opacity"&&(this.max=100,this.precision=1))}firstUpdated(){this.container=this.shadowRoot.querySelector("#color-slider"),this.handle=this.container.querySelector("#color-slider__handle")}handleDrag(e){if(this.disabled||!this.container||!this.handle)return;const{width:t,height:r}=this.container.getBoundingClientRect();this.handle.focus(),e.preventDefault(),Nn(this.container,{onMove:(o,n)=>{this.vertical?this.value=Tn(P(n/r*this.max,this.min,this.max),this.min,this.max):this.value=P(o/t*this.max,this.min,this.max),this.syncValues()},initialEvent:e})}handleClick(e){this.disabled||(this.value=this.getValueFromMousePosition(e),this.syncValues())}handleKeyDown(e){const t=e.shiftKey?10:1;e.key==="ArrowLeft"?(e.preventDefault(),this.value=P(this.value-t,this.min,this.max),this.syncValues()):e.key==="ArrowRight"?(e.preventDefault(),this.value=P(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowUp"?(e.preventDefault(),this.value=P(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowDown"?(e.preventDefault(),this.value=P(this.value-t,this.min,this.max),this.syncValues()):e.key==="Home"?(e.preventDefault(),this.value=this.min,this.syncValues()):e.key==="End"&&(e.preventDefault(),this.value=this.max,this.syncValues())}getValueFromMousePosition(e){return this.vertical?this.getValueFromYCoordinate(e.clientY):this.getValueFromXCoordinate(e.clientX)}getValueFromTouchPosition(e){return this.vertical?this.getValueFromYCoordinate(e.touches[0].clientY):this.getValueFromXCoordinate(e.touches[0].clientX)}getValueFromXCoordinate(e){const{left:t,width:r}=this.container.getBoundingClientRect();return P(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}getValueFromYCoordinate(e){const{top:t,height:r}=this.container.getBoundingClientRect();return P(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}roundToPrecision(e){const t=1/this.precision;return Math.ceil(e*t)/t}syncValues(){this.dispatchEvent(new di(di.CHANGE))}get ccsPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/Tn(this.value,this.min,this.max):this.max/this.value)}render(){return u`<div part="slider" id="color-slider" role="slider" aria-label="${this.label}" aria-orientation="${this.vertical?"vertical":"horizontal"}" aria-valuemin="${Math.round(this.min)}" aria-valuemax="${Math.round(this.max)}" aria-valuenow="${Math.round(this.value)}" @click="${this.handleClick}" @mousedown="${this.handleDrag}" @touchstart="${this.handleDrag}" @keydown="${this.handleKeyDown}">${this.type==="opacity"?u`<div id="current-hue" style="${oe({backgroundImage:`linear-gradient(to ${this.vertical?"top":"right"},
|
|
278
446
|
transparent 0%,
|
|
279
447
|
${this.color} 100%
|
|
280
|
-
)`})}"></div>`:""} <span id="color-slider__handle" style="--current-value:${this.ccsPropCurrentValue}" tabindex="${
|
|
448
|
+
)`})}"></div>`:""} <span id="color-slider__handle" style="--current-value:${this.ccsPropCurrentValue}" tabindex="${k(this.disabled?void 0:"0")}"></span></div>${Math.round(this.value)}`}},a.UUIColorSliderElement.styles=[p`:host{--uui-slider-height:15px;--uui-slider-handle-size:17px;--uui-slider-background-image:#fff;--uui-slider-background-size:100%;--uui-slider-background-position:top left;display:block}:host([type=hue]){--uui-slider-background-image:linear-gradient(
|
|
281
449
|
to right,
|
|
282
450
|
rgb(255, 0, 0) 0%,
|
|
283
451
|
rgb(255, 255, 0) 17%,
|
|
@@ -299,23 +467,23 @@
|
|
|
299
467
|
45deg,
|
|
300
468
|
var(--uui-palette-grey,#c4c4c4) 25%,
|
|
301
469
|
transparent 25%
|
|
302
|
-
),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, var(--uui-palette-grey,#c4c4c4) 25%, transparent 25%);--uui-slider-background-size:10px 10px;--uui-slider-background-position:0 0,0 0,-5px -5px,5px 5px}#color-slider{position:relative;background-image:var(--uui-slider-background-image);background-size:var(--uui-slider-background-size);background-position:var(--uui-slider-background-position);border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:100%;height:var(--uui-slider-height)}:host([vertical]) #color-slider{width:var(--uui-slider-height);height:300px}:host([disabled]){cursor:not-allowed}:host([disabled]) #color-slider{user-select:none;pointer-events:none;opacity:.55}#color-slider__handle{position:absolute;top:calc(50% - var(--uui-slider-handle-size)/ 2);width:var(--uui-slider-handle-size);height:var(--uui-slider-handle-size);background-color:#fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);margin-left:calc(var(--uui-slider-handle-size)/ -2);left:var(--current-value,0)}:host([vertical]) #color-slider__handle{left:unset;top:var(--current-value,100%);margin-left:-1px;margin-top:calc(var(--uui-slider-handle-size)/ -2)}::slotted(:first-child){border-radius:3px;position:absolute;top:0;left:0;width:100%;height:100%}#current-hue{border-radius:3px;position:absolute;inset:0}`],be([l({reflect:!0})],s.UUIColorSliderElement.prototype,"type",2),be([l()],s.UUIColorSliderElement.prototype,"color",2),be([l({type:Number})],s.UUIColorSliderElement.prototype,"min",2),be([l({type:Number})],s.UUIColorSliderElement.prototype,"max",2),be([l({type:Number})],s.UUIColorSliderElement.prototype,"precision",2),be([l({type:Boolean,reflect:!0})],s.UUIColorSliderElement.prototype,"vertical",2),be([l()],s.UUIColorSliderElement.prototype,"value",2),be([l({type:Boolean,reflect:!0})],s.UUIColorSliderElement.prototype,"disabled",2),s.UUIColorSliderElement=be([b("uui-color-slider")],s.UUIColorSliderElement);var rd={grad:.9,turn:360,rad:360/(2*Math.PI)},me=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},N=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},X=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},Ns=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Ts=function(i){return{r:X(i.r,0,255),g:X(i.g,0,255),b:X(i.b,0,255),a:X(i.a)}},_o=function(i){return{r:N(i.r),g:N(i.g),b:N(i.b),a:N(i.a,3)}},nd=/^#([0-9a-f]{3,8})$/i,bi=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},Ms=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=Math.max(e,t,r),a=n-Math.min(e,t,r),h=a?n===e?(t-r)/a:n===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(h<0?h+6:h),s:n?a/n*100:0,v:n/255*100,a:o}},Ds=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var n=Math.floor(e),a=r*(1-t),h=r*(1-(e-n)*t),c=r*(1-(1-e+n)*t),d=n%6;return{r:255*[r,h,a,a,c,r][d],g:255*[c,r,r,h,a,a][d],b:255*[a,a,c,r,r,h][d],a:o}},Vs=function(i){return{h:Ns(i.h),s:X(i.s,0,100),l:X(i.l,0,100),a:X(i.a)}},Hs=function(i){return{h:N(i.h),s:N(i.s),l:N(i.l),a:N(i.a,3)}},Bs=function(i){return Ds((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},jt=function(i){return{h:(e=Ms(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},sd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ad=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ld=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ud=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rs={string:[[function(i){var e=nd.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?N(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?N(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=ld.exec(i)||ud.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ts({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=sd.exec(i)||ad.exec(i);if(!e)return null;var t,r,o=Vs({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(rd[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Bs(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=o===void 0?1:o;return me(e)&&me(t)&&me(r)?Ts({r:Number(e),g:Number(t),b:Number(r),a:Number(n)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,n=o===void 0?1:o;if(!me(e)||!me(t)||!me(r))return null;var a=Vs({h:Number(e),s:Number(t),l:Number(r),a:Number(n)});return Bs(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,n=o===void 0?1:o;if(!me(e)||!me(t)||!me(r))return null;var a=function(h){return{h:Ns(h.h),s:X(h.s,0,100),v:X(h.v,0,100),a:X(h.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(n)});return Ds(a)},"hsv"]]},Fs=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},cd=function(i){return typeof i=="string"?Fs(i.trim(),Rs.string):typeof i=="object"&&i!==null?Fs(i,Rs.object):[null,void 0]},wo=function(i,e){var t=jt(i);return{h:t.h,s:X(t.s+100*e,0,100),l:t.l,a:t.a}},$o=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},Gs=function(i,e){var t=jt(i);return{h:t.h,s:t.s,l:X(t.l+100*e,0,100),a:t.a}},Uo=function(){function i(e){this.parsed=cd(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return N($o(this.rgba),2)},i.prototype.isDark=function(){return $o(this.rgba)<.5},i.prototype.isLight=function(){return $o(this.rgba)>=.5},i.prototype.toHex=function(){return e=_o(this.rgba),t=e.r,r=e.g,o=e.b,a=(n=e.a)<1?bi(N(255*n)):"","#"+bi(t)+bi(r)+bi(o)+a;var e,t,r,o,n,a},i.prototype.toRgb=function(){return _o(this.rgba)},i.prototype.toRgbString=function(){return e=_o(this.rgba),t=e.r,r=e.g,o=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+o+", "+n+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,n},i.prototype.toHsl=function(){return Hs(jt(this.rgba))},i.prototype.toHslString=function(){return e=Hs(jt(this.rgba)),t=e.h,r=e.s,o=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+n+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,n},i.prototype.toHsv=function(){return e=Ms(this.rgba),{h:N(e.h),s:N(e.s),v:N(e.v),a:N(e.a,3)};var e},i.prototype.invert=function(){return ve({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),ve(wo(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),ve(wo(this.rgba,-e))},i.prototype.grayscale=function(){return ve(wo(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),ve(Gs(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),ve(Gs(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?ve({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):N(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=jt(this.rgba);return typeof e=="number"?ve({h:e,s:t.s,l:t.l,a:t.a}):N(t.h)},i.prototype.isEqual=function(e){return this.toHex()===ve(e).toHex()},i}(),ve=function(i){return i instanceof Uo?i:new Uo(i)},hd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,mi=(i,e,t,r)=>{for(var o=r>1?void 0:r?dd(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&hd(e,t,o),o};s.UUIColorSwatchElement=class extends J("label",it(St(m))){constructor(){super(),this._value="",this.disabled=!1,this.showLabel=!1,this._color=null,this.addEventListener("click",this._setAriaAttributes)}get value(){var e;return this._value?this._value:((e=this.textContent)==null?void 0:e.trim())||""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get color(){return this._color}set color(e){}get isLight(){var e,t;return(t=(e=this.color)==null?void 0:e.isLight())!=null?t:!1}_initializeColor(){var e;this._color=new Uo((e=this.value)!=null?e:""),this._color.isValid()||(this.disabled=!0,console.error(`Invalid color provided to uui-color-swatch: ${this.value}`))}_setAriaAttributes(){this.selectable&&this.setAttribute("aria-checked",this.selected.toString())}firstUpdated(){this._initializeColor(),this._setAriaAttributes()}willUpdate(e){e.has("value")&&this._initializeColor(),e.has("disabled")&&this.selectable&&(this.selectable=!this.disabled,this.deselectable=!this.disabled),(e.has("selectable")||e.has("selected"))&&this._setAriaAttributes()}render(){return u`<button id="swatch" aria-label="${this.label}" aria-disabled="${this.disabled}" title="${this.label}"><div class="${ai({"color-swatch":!0,"color-swatch--transparent-bg":!0,"color-swatch--light":this.isLight,"color-swatch--big":this.showLabel})}"><div class="color-swatch__color" style="${ie({backgroundColor:this.value})}"></div><div class="color-swatch__check">${ni}</div></div>${this._renderWithLabel()}</button>`}_renderWithLabel(){return this.showLabel?u`<div class="color-swatch__label"><strong>${this.renderLabel()}</strong> ${this.value}</div>`:U}},s.UUIColorSwatchElement.styles=[p`:host{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;transition:box-shadow .1s ease-out;flex-direction:column}*,:host(*){outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(:focus-within:not([disabled])){outline:0}:host(:focus:not([disabled])) #swatch{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-swatch-border-width,1px);outline-style:solid;outline-offset:var(--uui-swatch-border-width,1px)}:host([selectable]) #swatch{cursor:pointer}:host([disabled]){cursor:not-allowed;opacity:.5}#swatch{cursor:inherit;outline:0;background:0 0;border:none;padding:0;margin:0;text-align:left;border-radius:3px}:host(:not([selectable])) #swatch:focus{outline:0}:host([selectable]) #swatch::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-swatch-border-width,1px) * -1);width:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));height:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));box-sizing:border-box;border:var(--uui-swatch-border-width,1px) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-swatch-border-width,1px));transition:opacity .1s ease-out;opacity:0}:host([selectable]:not([disabled]):hover) #swatch::after{opacity:.33}:host([selectable][selected]:not([disabled]):hover) #swatch::after{opacity:.66}:host([selectable][selected]:not([disabled])) #swatch::after{opacity:1}.color-swatch{position:relative;width:var(--uui-swatch-size,25px);height:var(--uui-swatch-size,25px);border-radius:3px;display:flex;flex-direction:column;justify-content:center;align-items:center}.color-swatch--transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-swatch__color{width:100%;height:100%;border:1px solid rgba(0,0,0,.125);border-radius:inherit;box-sizing:border-box}.color-swatch--big .color-swatch__color{border-radius:3px 3px 0 0}.color-swatch__check{position:absolute;vertical-align:middle;width:calc(var(--uui-swatch-size,25px)/ 2);height:calc(var(--uui-swatch-size,25px)/ 2);line-height:0;transition:fill 120ms,opacity 120ms;fill:#fff;pointer-events:none;opacity:0}.color-swatch--light .color-swatch__check{fill:#000}:host([selected]) .color-swatch__check{opacity:1}.label,slot[name=label]::slotted(*){font-size:var(--uui-size-4,12px)}.color-swatch--big{width:120px;height:50px}.color-swatch__label{max-width:120px;box-sizing:border-box;padding:var(--uui-size-space-1,3px) var(--uui-size-space-2,6px);line-height:1.5;display:flex;flex-direction:column;background:#fff;border:1px solid var(--uui-color-border,#d8d7d9);border-radius:0 0 3px 3px;font-size:var(--uui-size-4,12px)}.color-swatch__label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}`],mi([l()],s.UUIColorSwatchElement.prototype,"value",1),mi([l({type:Boolean,reflect:!0})],s.UUIColorSwatchElement.prototype,"disabled",2),mi([l({type:Boolean,attribute:"show-label"})],s.UUIColorSwatchElement.prototype,"showLabel",2),s.UUIColorSwatchElement=mi([b("uui-color-swatch")],s.UUIColorSwatchElement);var pd=Object.defineProperty,qs=Object.getOwnPropertySymbols,bd=Object.prototype.hasOwnProperty,md=Object.prototype.propertyIsEnumerable,Ws=(i,e,t)=>e in i?pd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ks=(i,e)=>{for(var t in e||(e={}))bd.call(e,t)&&Ws(i,t,e[t]);if(qs)for(var t of qs(e))md.call(e,t)&&Ws(i,t,e[t]);return i};let ut=class extends P{constructor(e,t={}){super(e,Ks(Ks({},{bubbles:!0}),t))}};ut.CHANGE="change";var vd=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,vi=(i,e,t,r)=>{for(var o=r>1?void 0:r?gd(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vd(e,t,o),o};s.UUIColorSwatchesElement=class extends J("label",m){constructor(){super(),this.value="",this.disabled=!1,this._onSelected=e=>{const t=e.target;this.swatches.includes(t)&&(this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t,this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.dispatchEvent(new ut(ut.CHANGE)))},this._onDeselected=e=>{const t=e.target;this.swatches.includes(t)&&(this._activeElement===t&&(this._activeElement=void 0),this._selectedElement===t&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0,this.value="",this.dispatchEvent(new ut(ut.CHANGE))))},this.addEventListener(Ce.SELECTED,this._onSelected),this.addEventListener(Ce.DESELECTED,this._onDeselected)}get _activeElement(){return this.__activeElement}set _activeElement(e){this.__activeElement&&(this.__activeElement.active=!1),e&&(e.active=!0,this.__activeElement=e)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}willUpdate(e){e.has("label")&&this.setAttribute("aria-label",this.label)}_handleSlotChange(){!this.swatches||this.swatches.length===0||this.swatches.forEach(e=>{var t;e.setAttribute("aria-checked","false"),e.setAttribute("role","radio"),this.disabled?e.setAttribute("disabled",""):e.setAttribute("selectable","selectable"),this.value!==""&&(t=e.color)!=null&&t.isEqual(this.value)&&(e.selected=!0,e.setAttribute("aria-checked","true"),this._selectedElement=e,this._activeElement=this._selectedElement)})}resetSelection(){this.swatches.forEach(e=>{e.selected=!1,e.active=!1,e.selectable=!e.disabled}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},s.UUIColorSwatchesElement.styles=[p`:host{display:flex;flex-wrap:wrap;gap:.4rem}`],vi([l()],s.UUIColorSwatchesElement.prototype,"value",2),vi([l({type:Boolean,reflect:!0})],s.UUIColorSwatchesElement.prototype,"disabled",2),vi([xe({selector:"uui-color-swatch"})],s.UUIColorSwatchesElement.prototype,"swatches",2),s.UUIColorSwatchesElement=vi([b("uui-color-swatches")],s.UUIColorSwatchesElement);var fd=Object.defineProperty,Xs=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,_d=Object.prototype.propertyIsEnumerable,Ys=(i,e,t)=>e in i?fd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Zs=(i,e)=>{for(var t in e||(e={}))yd.call(e,t)&&Ys(i,t,e[t]);if(Xs)for(var t of Xs(e))_d.call(e,t)&&Ys(i,t,e[t]);return i};let Z=class extends P{constructor(e,t={}){super(e,Zs(Zs({},{bubbles:!0}),t))}};Z.CHANGE="change",Z.INNER_SLOT_CHANGE="inner-slot-change";var wd=Object.defineProperty,$d=Object.getOwnPropertyDescriptor,He=(i,e,t,r)=>{for(var o=r>1?void 0:r?$d(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wd(e,t,o),o};s.UUIComboboxListElement=class extends m{constructor(){super(...arguments),this.displayValue="",this._value="",this._onSlotChange=()=>{this._activeElement=void 0;for(let e=0;e<this._activeOptions.length;e++)e===0?this._activeElement=this._activeOptions[e]:this._activeOptions[e].active=!1;this._updateSelection(),this.dispatchEvent(new Z(Z.INNER_SLOT_CHANGE))},this._onSelected=e=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=e.composedPath()[0],this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new Z(Z.CHANGE))},this._onDeselected=e=>{const t=e.composedPath()[0];this._activeElement===t&&(this._activeElement=void 0),this._selectedElement===t&&(this.value="",this.displayValue="",this.dispatchEvent(new Z(Z.CHANGE)))},this._moveIndex=e=>{const t=Math.min(Math.max(this._getActiveIndex()+e,0),this._options.length-1);this._goToIndex(t)},this._onKeyDown=e=>{var t;if(!(this._options.length<=0))switch(e.key){case"ArrowUp":e.preventDefault(),e.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":e.preventDefault(),e.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{e.preventDefault(),this._goToIndex(0);break}case"Enter":{e.preventDefault(),(t=this._activeElement)==null||t.click();break}case"End":{e.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(e){if(this._value===e)return;const t=this._value;this._value=e,this._updateSelection(),this.requestUpdate("value",t)}get for(){return this._for}set for(e){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=e,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}get _activeElement(){return this.__activeElement}set _activeElement(e){this.__activeElement&&(this.__activeElement.active=!1),e&&(e.active=!0,this.__activeElement=e)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(Ce.SELECTED,this._onSelected),this.addEventListener(Ce.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(Ce.SELECTED,this._onSelected),this.removeEventListener(Ce.DESELECTED,this._onDeselected)}_updateSelection(){this.displayValue="";for(const e of this._options)e.value===this._value?(this.displayValue=e.displayValue||"",e.selected=!0):e.selected=!1}_getActiveIndex(){return this._activeElement?this._options.indexOf(this._activeElement):-1}_goToIndex(e){e=Math.min(Math.max(e,0),this._options.length-1),this._activeElement=this._options[e],this._activeElement&&this._activeElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>`}},s.UUIComboboxListElement.styles=[p`:host{display:flex;flex-direction:column;box-sizing:border-box}`],He([l()],s.UUIComboboxListElement.prototype,"value",1),He([l({type:String})],s.UUIComboboxListElement.prototype,"displayValue",2),He([l({attribute:!1})],s.UUIComboboxListElement.prototype,"for",1),He([xe({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],s.UUIComboboxListElement.prototype,"_options",2),He([xe({flatten:!0,selector:"uui-combobox-list-option[active]"})],s.UUIComboboxListElement.prototype,"_activeOptions",2),He([g()],s.UUIComboboxListElement.prototype,"_value",2),s.UUIComboboxListElement=He([b("uui-combobox-list")],s.UUIComboboxListElement);var Ud=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ed(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ud(e,t,o),o};s.UUIComboboxListOptionElement=class extends it(St(m)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.deselectable=!1}get value(){var e;return this._value?this._value:((e=this.textContent)==null?void 0:e.trim())||""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get displayValue(){var e;return this._displayValue?this._displayValue:((e=this.textContent)==null?void 0:e.trim())||""}set displayValue(e){const t=this._displayValue;this._displayValue=e,this.requestUpdate("displayValue",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.selectable=!this._disabled,this.requestUpdate("disabled",t)}render(){return u`<slot></slot>`}},s.UUIComboboxListOptionElement.styles=[p`:host{position:relative;cursor:pointer;margin:0 6px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px}:host(:first-child){margin-top:6px}:host(:last-child){margin-bottom:6px}:host([selected]):host([active])::after{display:block;content:'';position:absolute;inset:0;outline:var(--uui-color-surface,#fff) solid 2px;outline-offset:-4px}:host(:hover){background-color:var(--uui-color-surface-emphasis,#fafafa);color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]){cursor:auto;color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]:hover){background-color:var(--uui-color-disabled,#f3f3f5)}:host([active]){outline-color:var(--uui-color-focus,#3879ff)}:host([selected]){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected,#3544b1)}:host([selected]:hover){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([selected][disabled]){color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}`],ct([g()],s.UUIComboboxListOptionElement.prototype,"_disabled",2),ct([g()],s.UUIComboboxListOptionElement.prototype,"_displayValue",2),ct([l({type:String})],s.UUIComboboxListOptionElement.prototype,"value",1),ct([l({type:String,attribute:"display-value"})],s.UUIComboboxListOptionElement.prototype,"displayValue",1),ct([l({type:Boolean,reflect:!0})],s.UUIComboboxListOptionElement.prototype,"disabled",1),s.UUIComboboxListOptionElement=ct([b("uui-combobox-list-option")],s.UUIComboboxListOptionElement);var kd=Object.defineProperty,Qs=Object.getOwnPropertySymbols,Id=Object.prototype.hasOwnProperty,xd=Object.prototype.propertyIsEnumerable,Js=(i,e,t)=>e in i?kd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ea=(i,e)=>{for(var t in e||(e={}))Id.call(e,t)&&Js(i,t,e[t]);if(Qs)for(var t of Qs(e))xd.call(e,t)&&Js(i,t,e[t]);return i};let B=class extends P{constructor(e,t={}){super(e,ea(ea({},{bubbles:!0}),t))}};B.SEARCH="search",B.CHANGE="change";var Cd=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,Q=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pd(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Cd(e,t,o),o};s.UUIComboboxElement=class extends ee(m){constructor(){super(...arguments),this.open=!1,this.closeLabel="Close",this.disabled=!1,this._displayValue="",this._search="",this._isPhone=!1,this._onPhoneChange=()=>{this._isPhone=this.phoneMediaQuery.matches},this._onMouseDown=()=>requestAnimationFrame(()=>this._input.focus()),this._onBlur=()=>requestAnimationFrame(()=>{var e;(e=this.shadowRoot)!=null&&e.activeElement||this._onClose()}),this._onInput=e=>{e.preventDefault(),e.stopImmediatePropagation(),this.search=e.target.value,this.dispatchEvent(new B(B.SEARCH)),this._open()},this._onSlotChange=()=>{var e;this.value&&this.value!==((e=this._comboboxList)==null?void 0:e.value)&&this._updateValue(this.value)},this._onChange=()=>{var e;this.value=((e=this._comboboxList)==null?void 0:e.value)||"",this.search=this.value?this.search:"",this._onClose(),this.dispatchEvent(new B(B.CHANGE))},this._open=()=>{this.open||(this.open=!0)},this._onClose=()=>{this.open&&(this.open=!1,this.search="",this._input.value=this._displayValue,this.dispatchEvent(new B(B.SEARCH)))},this._onKeyDown=e=>{this.open===!1&&e.key==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation()),(e.key==="ArrowUp"||e.key==="ArrowDown")&&this._open(),(e.key==="Escape"||e.key==="Enter")&&this._onClose()},this._onClear=e=>{e.key&&e.key!=="Enter"||(e.preventDefault(),e.stopImmediatePropagation(),this.value="",this.search="",this._input.value=this._displayValue,this._input.focus(),this.dispatchEvent(new B(B.SEARCH)),this.dispatchEvent(new B(B.CHANGE)))},this._renderInput=()=>u`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" autocomplete="off" .disabled="${this.disabled}" @click="${this._open}" @input="${this._onInput}" @keydown="${this._onKeyDown}"><slot name="input-prepend" slot="prepend"></slot>${this.disabled?"":this._renderClearButton()} ${this._renderCaret()}<slot name="input-append" slot="append"></slot></uui-input>`,this._renderCaret=()=>u`<svg id="caret" slot="append" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`,this._renderClearButton=()=>this.value||this.search?u`<uui-button id="clear-button" @click="${this._onClear}" @keydown="${this._onClear}" label="clear" slot="append" compact="compact" style="height:100%"><uui-icon name="remove" .fallback="${Dn.strings[0]}"></uui-icon></uui-button>`:"",this._renderDropdown=()=>u`<div id="dropdown" slot="popover"><uui-scroll-container tabindex="-1" id="scroll-container"><slot></slot></uui-scroll-container></div>`}get value(){return this._value}set value(e){typeof e=="string"&&this._updateValue(e),super.value=e}get search(){return this._search}set search(e){if(this.search===e)return;const t=this._search;this._search=e,this.requestUpdate("search",t)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",this._onBlur),this.addEventListener("mousedown",this._onMouseDown),this.phoneMediaQuery=window.matchMedia("(max-width: 600px)"),this._onPhoneChange(),this.phoneMediaQuery.addEventListener("change",this._onPhoneChange),w(this,"uui-icon"),w(this,"uui-input"),w(this,"uui-button"),w(this,"uui-combobox-list"),w(this,"uui-scroll-container"),w(this,"uui-popover")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this._onBlur),this.removeEventListener("mousedown",this._onMouseDown),this.phoneMediaQuery.removeEventListener("change",this._onPhoneChange)}async firstUpdated(){var e;const t=(e=this._comboboxListElements)==null?void 0:e[0];t&&(this._comboboxList=t,this._comboboxList.for=this,this._comboboxList.addEventListener(Z.CHANGE,this._onChange),this._comboboxList.addEventListener(Z.INNER_SLOT_CHANGE,this._onSlotChange),await this.updateComplete,this._updateValue(this.value))}_updateValue(e){this._comboboxList&&(this._comboboxList.value=e,requestAnimationFrame(()=>this._displayValue=this._comboboxList.displayValue||""))}getFormElement(){return this._input}render(){return this._isPhone&&this.open?u`<div id="phone-wrapper"><uui-button label="close" look="primary" @click="${this._onClose}">${this.closeLabel}</uui-button>${this._renderInput()} ${this._renderDropdown()}</div>`:u`<uui-popover .open="${this.open}" .margin="${-1}" @close="${()=>this._onClose()}">${this._renderInput()} ${this._renderDropdown()}</uui-popover>`}},s.UUIComboboxElement.styles=[p`:host{display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#scroll-container{overflow-y:auto;width:100%;max-height:var(--uui-combobox-popover-max-height,500px)}#dropdown{overflow:hidden;z-index:-1;background-color:var(--uui-combobox-popover-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-color-border,#d8d7d9);border-radius:var(--uui-border-radius,3px);width:100%;height:100%;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23))}#caret{margin-right:var(--uui-size-3,9px);display:flex;width:1.15em;flex-shrink:0;margin-top:-1px}:host([disabled]) #caret{fill:var(--uui-color-disabled-contrast,#c4c4c4)}#phone-wrapper{position:fixed;inset:0;display:flex;flex-direction:column;z-index:1;font-size:1.1em}#phone-wrapper #dropdown{display:flex}#phone-wrapper #combobox-input{height:var(--uui-size-16,48px)}#phone-wrapper>uui-button{height:var(--uui-size-14,42px);width:100%}#phone-wrapper #scroll-container{max-height:unset}`],Q([l({attribute:"value",reflect:!0})],s.UUIComboboxElement.prototype,"value",1),Q([l({type:String})],s.UUIComboboxElement.prototype,"search",1),Q([l({type:Boolean})],s.UUIComboboxElement.prototype,"open",2),Q([l({type:String})],s.UUIComboboxElement.prototype,"closeLabel",2),Q([l({type:Boolean,reflect:!0})],s.UUIComboboxElement.prototype,"disabled",2),Q([C("#combobox-input")],s.UUIComboboxElement.prototype,"_input",2),Q([xe({flatten:!0,selector:"uui-combobox-list"})],s.UUIComboboxElement.prototype,"_comboboxListElements",2),Q([g()],s.UUIComboboxElement.prototype,"_displayValue",2),Q([g()],s.UUIComboboxElement.prototype,"_search",2),Q([g()],s.UUIComboboxElement.prototype,"_isPhone",2),s.UUIComboboxElement=Q([b("uui-combobox")],s.UUIComboboxElement);var Sd=Object.defineProperty,Od=Object.getOwnPropertyDescriptor,Eo=(i,e,t,r)=>{for(var o=r>1?void 0:r?Od(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sd(e,t,o),o};s.UUIDialogLayoutElement=class extends m{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return u`<h3 style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h3>`}renderContent(){return u`<slot></slot>`}renderActions(){return u`<slot id="actions" name="actions"></slot>`}render(){return u`${this.renderHeadline()} ${this.renderContent()} ${this.renderActions()}`}},s.UUIDialogLayoutElement.styles=[p`:host{display:block;padding:var(--uui-size-10,30px) var(--uui-size-14,42px);color:var(--uui-color-text,#060606)}#actions{margin-top:var(--uui-size-8,24px);display:flex;justify-content:end;gap:var(--uui-size-4,12px)}`],Eo([l({type:String})],s.UUIDialogLayoutElement.prototype,"headline",2),Eo([g()],s.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),s.UUIDialogLayoutElement=Eo([b("uui-dialog-layout")],s.UUIDialogLayoutElement);var zd=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,Ld=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ad(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zd(e,t,o),o};s.UUIDialogElement=class extends m{render(){return u`<slot></slot>`}},s.UUIDialogElement.styles=[p`:host{position:relative;display:block;max-width:580px;color:var(--uui-color-text,#060606);background-color:var(--uui-dialog-background-color,var(--uui-color-surface,#fff));box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22));border-radius:var(--uui-dialog-border-radius,calc(var(--uui-border-radius,3px) * 2))}`],s.UUIDialogElement=Ld([b("uui-dialog")],s.UUIDialogElement);var jd=Object.defineProperty,ta=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,Td=Object.prototype.propertyIsEnumerable,ia=(i,e,t)=>e in i?jd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,oa=(i,e)=>{for(var t in e||(e={}))Nd.call(e,t)&&ia(i,t,e[t]);if(ta)for(var t of ta(e))Td.call(e,t)&&ia(i,t,e[t]);return i};let ht=class extends P{constructor(e,t={}){super(e,oa(oa({},{bubbles:!0}),t))}};ht.CHANGE="change";var Md=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,Nt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Dd(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Md(e,t,o),o};s.UUIFileDropzoneElement=class extends J("",m){constructor(){super(),this._acceptedFileExtensions=[],this._acceptedMimeTypes=[],this.multiple=!1,this.addEventListener("dragenter",this._onDragEnter,!1),this.addEventListener("dragleave",this._onDragLeave,!1),this.addEventListener("dragover",this._onDragOver,!1),this.addEventListener("drop",this._onDrop,!1)}set accept(e){if(e){const t=[],r=[];e.split(",").forEach(o=>{o=o.trim().toLowerCase(),new RegExp("[a-z]+\\/[a-z*]","s").test(o)?t.push(o):r.push(o.replace(/^\./,""))}),this._acceptedMimeTypes=t,this._acceptedFileExtensions=r}else this._acceptedMimeTypes=[],this._acceptedFileExtensions=[]}browse(){this._input.click()}connectedCallback(){super.connectedCallback(),w(this,"uui-symbol-file-dropzone")}async _getAllFileEntries(e){const t=[],r=[...e];for(;r.length>0;){const o=r.shift();if(o.kind==="file"){const n=o.getAsFile();if(!n)continue;this._isAccepted(n)&&t.push(n)}else if(o.kind==="directory"){if(!("webkitGetAsEntry"in o))continue;const n=o.webkitGetAsEntry();r.push(...await this._readAllDirectoryEntries(n.createReader()))}}return t}async _readAllDirectoryEntries(e){const t=[];let r=await this._readEntriesPromise(e);for(;r.length>0;)t.push(...r),r=await this._readEntriesPromise(e);return t}async _readEntriesPromise(e){return new Promise((t,r)=>{try{e.readEntries(t,r)}catch(o){console.log(o),r(o)}})}_isAccepted(e){if(this._acceptedFileExtensions.length===0&&this._acceptedMimeTypes.length===0)return!0;const t=e.type.toLowerCase(),r=e.name.split(".").pop();if(r&&this._acceptedFileExtensions.includes(r.toLowerCase()))return!0;for(const o in this._acceptedMimeTypes)if(t===o||o.endsWith("/*")&&t.startsWith(o.replace("/*","")))return!0;return!1}async _onDrop(e){var t;e.preventDefault(),this._dropzone.classList.remove("hover");const r=(t=e.dataTransfer)==null?void 0:t.items;if(r){let o=await this._getAllFileEntries(r);this.multiple===!1&&o.length&&(o=[o[0]]),this.dispatchEvent(new ht(ht.CHANGE,{detail:{files:o}}))}}_onDragOver(e){e.preventDefault()}_onDragEnter(e){this._dropzone.classList.add("hover"),e.preventDefault()}_onDragLeave(e){this._dropzone.classList.remove("hover"),e.preventDefault()}_onFileInputChange(){const e=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new ht(ht.CHANGE,{detail:{files:e}}))}render(){return u`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${e=>e.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"><slot></slot></div>`}},s.UUIFileDropzoneElement.styles=[p`#dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;box-sizing:border-box;width:100%;height:100%;padding:var(--uui-size-4,12px);border:3px solid transparent;margin:-3px;backdrop-filter:blur(2px)}#dropzone.hover{border-color:var(--uui-color-default,#1b264f)}#dropzone.hover::before{content:'';position:absolute;inset:0;opacity:.2;border-color:var(--uui-color-default,#1b264f);background-color:var(--uui-color-default,#1b264f)}#symbol{color:var(--uui-color-default,#1b264f);max-width:100%;max-height:100%}#input{position:absolute;width:0;height:0;opacity:0;display:none}`],Nt([C("#input")],s.UUIFileDropzoneElement.prototype,"_input",2),Nt([C("#dropzone")],s.UUIFileDropzoneElement.prototype,"_dropzone",2),Nt([l({type:String})],s.UUIFileDropzoneElement.prototype,"accept",1),Nt([l({type:Boolean})],s.UUIFileDropzoneElement.prototype,"multiple",2),s.UUIFileDropzoneElement=Nt([b("uui-file-dropzone")],s.UUIFileDropzoneElement);let Vd=class{static humanFileSize(e,t=!1,r=1){const o=t?1e3:1024;if(Math.abs(e)<o)return e+" B";const n=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const h=10**r;do e/=o,++a;while(Math.round(Math.abs(e)*h)/h>=o&&a<n.length-1);return e.toFixed(r)+" "+n[a]}};var Hd=Object.defineProperty,Bd=Object.getOwnPropertyDescriptor,ne=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bd(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hd(e,t,o),o};s.UUIFilePreviewElement=class extends m{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(e){const t=this._file;e instanceof File&&(this._name=e.name.split(".")[0],this._extension=e.name.split(".")[1],this._isDirectory=!1,this._size=e.size,this._isFileAnImage(e)&&(this._isImage=!0,this._getThumbnail(e).then(r=>{this._src=r})),this.requestUpdate("file",t))}connectedCallback(){super.connectedCallback(),w(this,"uui-symbol-file-thumbnail"),w(this,"uui-symbol-folder"),w(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?u`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?u`<uui-symbol-file-thumbnail .src="${this._src}" .alt="${this._name}" id="file-symbol"></uui-symbol-file-thumbnail>`:u`<uui-symbol-file id="file-symbol" .type="${this._extension}"></uui-symbol-file>`}_renderLongName(){const e=this._name.substring(0,this._name.length-6),t=this._name.substring(this._name.length-6,this._name.length);return u`<span id="file-name" class="${this._url?"has-source":""}" @click="${()=>this._url?this._openSource():""}" @keydown="${()=>""}"><span id="file-name-start">${e}</span> <span id="file-name-end">${t}</span></span>`}_isFileAnImage(e){return e?e.type.split("/")[0]==="image":!1}async _getThumbnail(e){return await new Promise(t=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)}})}render(){return u`<slot id="actions" name="actions"></slot>${this._fileTypeTemplate()}<div id="file-info">${this._renderLongName()} <span id="file-size">${this._size&&!this._isDirectory?u`${Vd.humanFileSize(this._size,!0)}`:""}</span></div>`}},s.UUIFilePreviewElement.styles=[p`:host{position:relative;display:grid;grid-template-rows:100px 50px;width:150px;height:150px;box-sizing:border-box;aspect-ratio:1;color:var(--uui-color-text,#060606)}:host(:hover) slot[name=actions]::slotted(*){opacity:1}slot[name=actions]::slotted(*){position:absolute;top:8px;right:8px;max-width:100%;height:32px;font-size:13px;opacity:0;z-index:1;transition:opacity 150ms}#file-symbol{aspect-ratio:1/1;margin:auto;max-width:100%;max-height:100%}#file-info{min-width:0;display:flex;text-align:center;flex-direction:column;font-size:1rem}#file-name{display:flex;justify-content:center}#file-name-start{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#file-name-end{white-space:nowrap}#file-size{opacity:.6}.has-source:hover{text-decoration:underline;cursor:pointer}`],ne([g()],s.UUIFilePreviewElement.prototype,"_name",2),ne([g()],s.UUIFilePreviewElement.prototype,"_url",2),ne([g()],s.UUIFilePreviewElement.prototype,"_extension",2),ne([g()],s.UUIFilePreviewElement.prototype,"_src",2),ne([g()],s.UUIFilePreviewElement.prototype,"_size",2),ne([g()],s.UUIFilePreviewElement.prototype,"_isDirectory",2),ne([g()],s.UUIFilePreviewElement.prototype,"_file",2),ne([g()],s.UUIFilePreviewElement.prototype,"_isImage",2),ne([l({attribute:!1})],s.UUIFilePreviewElement.prototype,"file",1),s.UUIFilePreviewElement=ne([b("uui-file-preview")],s.UUIFilePreviewElement);var Rd=Object.defineProperty,Fd=Object.getOwnPropertyDescriptor,gi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fd(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rd(e,t,o),o};s.UUIFormLayoutItemElement=class extends m{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=e=>{this._labelSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=e=>{this._descriptionSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),w(this,"uui-form-validation-message")}render(){return u`<div id="label" style="${this._labelSlotHasContent?"":"display: none"}"><slot name="label" @slotchange="${this._labelSlotChanged}"></slot></div><div id="description" style="${this._descriptionSlotHasContent||this.description!==null?"":"display: none"}">${this.description}<slot name="description" @slotchange="${this._descriptionSlotChanged}"></slot></div><uui-form-validation-message><slot></slot><slot name="message" slot="message"></slot></uui-form-validation-message>`}},s.UUIFormLayoutItemElement.styles=[p`:host{position:relative;display:block;margin-top:var(--uui-size-space-5,18px);margin-bottom:var(--uui-size-space-5,18px)}#label{margin-top:-5px;margin-bottom:5px}#description{color:var(--uui-color-disabled-contrast,#c4c4c4);font-size:var(--uui-type-small-size,12px)}#label+#description{margin-top:-8px;min-height:8px}`],gi([l({type:String})],s.UUIFormLayoutItemElement.prototype,"description",2),gi([g()],s.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),gi([g()],s.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),s.UUIFormLayoutItemElement=gi([b("uui-form-layout-item")],s.UUIFormLayoutItemElement);/**
|
|
470
|
+
),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, var(--uui-palette-grey,#c4c4c4) 25%, transparent 25%);--uui-slider-background-size:10px 10px;--uui-slider-background-position:0 0,0 0,-5px -5px,5px 5px}#color-slider{position:relative;background-image:var(--uui-slider-background-image);background-size:var(--uui-slider-background-size);background-position:var(--uui-slider-background-position);border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:100%;height:var(--uui-slider-height)}:host([vertical]) #color-slider{width:var(--uui-slider-height);height:300px}:host([disabled]){cursor:not-allowed}:host([disabled]) #color-slider{user-select:none;pointer-events:none;opacity:.55}#color-slider__handle{position:absolute;top:calc(50% - var(--uui-slider-handle-size)/ 2);width:var(--uui-slider-handle-size);height:var(--uui-slider-handle-size);background-color:#fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);margin-left:calc(var(--uui-slider-handle-size)/ -2);left:var(--current-value,0)}:host([vertical]) #color-slider__handle{left:unset;top:var(--current-value,100%);margin-left:-1px;margin-top:calc(var(--uui-slider-handle-size)/ -2)}::slotted(:first-child){border-radius:3px;position:absolute;top:0;left:0;width:100%;height:100%}#current-hue{border-radius:3px;position:absolute;inset:0}`],me([l({reflect:!0})],a.UUIColorSliderElement.prototype,"type",2),me([l()],a.UUIColorSliderElement.prototype,"color",2),me([l({type:Number})],a.UUIColorSliderElement.prototype,"min",2),me([l({type:Number})],a.UUIColorSliderElement.prototype,"max",2),me([l({type:Number})],a.UUIColorSliderElement.prototype,"precision",2),me([l({type:Boolean,reflect:!0})],a.UUIColorSliderElement.prototype,"vertical",2),me([l()],a.UUIColorSliderElement.prototype,"value",2),me([l({type:Boolean,reflect:!0})],a.UUIColorSliderElement.prototype,"disabled",2),a.UUIColorSliderElement=me([b("uui-color-slider")],a.UUIColorSliderElement);var ad={grad:.9,turn:360,rad:360/(2*Math.PI)},ve=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},N=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},X=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},ja=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Na=function(i){return{r:X(i.r,0,255),g:X(i.g,0,255),b:X(i.b,0,255),a:X(i.a)}},yo=function(i){return{r:N(i.r),g:N(i.g),b:N(i.b),a:N(i.a,3)}},sd=/^#([0-9a-f]{3,8})$/i,pi=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},Ta=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=Math.max(e,t,r),s=n-Math.min(e,t,r),h=s?n===e?(t-r)/s:n===t?2+(r-e)/s:4+(e-t)/s:0;return{h:60*(h<0?h+6:h),s:n?s/n*100:0,v:n/255*100,a:o}},Ma=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var n=Math.floor(e),s=r*(1-t),h=r*(1-(e-n)*t),c=r*(1-(1-e+n)*t),d=n%6;return{r:255*[r,h,s,s,c,r][d],g:255*[c,r,r,h,s,s][d],b:255*[s,s,c,r,r,h][d],a:o}},Da=function(i){return{h:ja(i.h),s:X(i.s,0,100),l:X(i.l,0,100),a:X(i.a)}},Va=function(i){return{h:N(i.h),s:N(i.s),l:N(i.l),a:N(i.a,3)}},Ha=function(i){return Ma((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},jt=function(i){return{h:(e=Ta(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},ld=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ud=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,cd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ba={string:[[function(i){var e=sd.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?N(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?N(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=cd.exec(i)||hd.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Na({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=ld.exec(i)||ud.exec(i);if(!e)return null;var t,r,o=Da({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(ad[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Ha(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,n=o===void 0?1:o;return ve(e)&&ve(t)&&ve(r)?Na({r:Number(e),g:Number(t),b:Number(r),a:Number(n)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,n=o===void 0?1:o;if(!ve(e)||!ve(t)||!ve(r))return null;var s=Da({h:Number(e),s:Number(t),l:Number(r),a:Number(n)});return Ha(s)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,n=o===void 0?1:o;if(!ve(e)||!ve(t)||!ve(r))return null;var s=function(h){return{h:ja(h.h),s:X(h.s,0,100),v:X(h.v,0,100),a:X(h.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(n)});return Ma(s)},"hsv"]]},Ra=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},dd=function(i){return typeof i=="string"?Ra(i.trim(),Ba.string):typeof i=="object"&&i!==null?Ra(i,Ba.object):[null,void 0]},_o=function(i,e){var t=jt(i);return{h:t.h,s:X(t.s+100*e,0,100),l:t.l,a:t.a}},wo=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},Fa=function(i,e){var t=jt(i);return{h:t.h,s:t.s,l:X(t.l+100*e,0,100),a:t.a}},$o=function(){function i(e){this.parsed=dd(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return N(wo(this.rgba),2)},i.prototype.isDark=function(){return wo(this.rgba)<.5},i.prototype.isLight=function(){return wo(this.rgba)>=.5},i.prototype.toHex=function(){return e=yo(this.rgba),t=e.r,r=e.g,o=e.b,s=(n=e.a)<1?pi(N(255*n)):"","#"+pi(t)+pi(r)+pi(o)+s;var e,t,r,o,n,s},i.prototype.toRgb=function(){return yo(this.rgba)},i.prototype.toRgbString=function(){return e=yo(this.rgba),t=e.r,r=e.g,o=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+o+", "+n+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,n},i.prototype.toHsl=function(){return Va(jt(this.rgba))},i.prototype.toHslString=function(){return e=Va(jt(this.rgba)),t=e.h,r=e.s,o=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+n+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,n},i.prototype.toHsv=function(){return e=Ta(this.rgba),{h:N(e.h),s:N(e.s),v:N(e.v),a:N(e.a,3)};var e},i.prototype.invert=function(){return ge({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),ge(_o(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),ge(_o(this.rgba,-e))},i.prototype.grayscale=function(){return ge(_o(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),ge(Fa(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),ge(Fa(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?ge({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):N(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=jt(this.rgba);return typeof e=="number"?ge({h:e,s:t.s,l:t.l,a:t.a}):N(t.h)},i.prototype.isEqual=function(e){return this.toHex()===ge(e).toHex()},i}(),ge=function(i){return i instanceof $o?i:new $o(i)},pd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,bi=(i,e,t,r)=>{for(var o=r>1?void 0:r?bd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&pd(e,t,o),o};a.UUIColorSwatchElement=class extends ee("label",it(Pt(m))){constructor(){super(),this._value="",this.disabled=!1,this.showLabel=!1,this._color=null,this.addEventListener("click",this._setAriaAttributes)}get value(){var e;return this._value?this._value:((e=this.textContent)==null?void 0:e.trim())||""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get color(){return this._color}set color(e){}get isLight(){var e,t;return(t=(e=this.color)==null?void 0:e.isLight())!=null?t:!1}_initializeColor(){var e;this._color=new $o((e=this.value)!=null?e:""),this._color.isValid()||(this.disabled=!0,console.error(`Invalid color provided to uui-color-swatch: ${this.value}`))}_setAriaAttributes(){this.selectable&&this.setAttribute("aria-checked",this.selected.toString())}firstUpdated(){this._initializeColor(),this._setAriaAttributes()}willUpdate(e){e.has("value")&&this._initializeColor(),e.has("disabled")&&this.selectable&&(this.selectable=!this.disabled,this.deselectable=!this.disabled),(e.has("selectable")||e.has("selected"))&&this._setAriaAttributes()}render(){return u`<button id="swatch" aria-label="${this.label}" aria-disabled="${this.disabled}" title="${this.label}"><div class="${ai({"color-swatch":!0,"color-swatch--transparent-bg":!0,"color-swatch--light":this.isLight,"color-swatch--big":this.showLabel})}"><div class="color-swatch__color" style="${oe({backgroundColor:this.value})}"></div><div class="color-swatch__check">${ri}</div></div>${this._renderWithLabel()}</button>`}_renderWithLabel(){return this.showLabel?u`<div class="color-swatch__label"><strong>${this.renderLabel()}</strong> ${this.value}</div>`:U}},a.UUIColorSwatchElement.styles=[p`:host{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;transition:box-shadow .1s ease-out;flex-direction:column}*,:host(*){outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(:focus-within:not([disabled])){outline:0}:host(:focus:not([disabled])) #swatch{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-swatch-border-width,1px);outline-style:solid;outline-offset:var(--uui-swatch-border-width,1px)}:host([selectable]) #swatch{cursor:pointer}:host([disabled]){cursor:not-allowed;opacity:.5}#swatch{cursor:inherit;outline:0;background:0 0;border:none;padding:0;margin:0;text-align:left;border-radius:3px}:host(:not([selectable])) #swatch:focus{outline:0}:host([selectable]) #swatch::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-swatch-border-width,1px) * -1);width:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));height:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));box-sizing:border-box;border:var(--uui-swatch-border-width,1px) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-swatch-border-width,1px));transition:opacity .1s ease-out;opacity:0}:host([selectable]:not([disabled]):hover) #swatch::after{opacity:.33}:host([selectable][selected]:not([disabled]):hover) #swatch::after{opacity:.66}:host([selectable][selected]:not([disabled])) #swatch::after{opacity:1}.color-swatch{position:relative;width:var(--uui-swatch-size,25px);height:var(--uui-swatch-size,25px);border-radius:3px;display:flex;flex-direction:column;justify-content:center;align-items:center}.color-swatch--transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-swatch__color{width:100%;height:100%;border:1px solid rgba(0,0,0,.125);border-radius:inherit;box-sizing:border-box}.color-swatch--big .color-swatch__color{border-radius:3px 3px 0 0}.color-swatch__check{position:absolute;vertical-align:middle;width:calc(var(--uui-swatch-size,25px)/ 2);height:calc(var(--uui-swatch-size,25px)/ 2);line-height:0;transition:fill 120ms,opacity 120ms;fill:#fff;pointer-events:none;opacity:0}.color-swatch--light .color-swatch__check{fill:#000}:host([selected]) .color-swatch__check{opacity:1}.label,slot[name=label]::slotted(*){font-size:var(--uui-size-4,12px)}.color-swatch--big{width:120px;height:50px}.color-swatch__label{max-width:120px;box-sizing:border-box;padding:var(--uui-size-space-1,3px) var(--uui-size-space-2,6px);line-height:1.5;display:flex;flex-direction:column;background:#fff;border:1px solid var(--uui-color-border,#d8d7d9);border-radius:0 0 3px 3px;font-size:var(--uui-size-4,12px)}.color-swatch__label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}`],bi([l()],a.UUIColorSwatchElement.prototype,"value",1),bi([l({type:Boolean,reflect:!0})],a.UUIColorSwatchElement.prototype,"disabled",2),bi([l({type:Boolean,attribute:"show-label"})],a.UUIColorSwatchElement.prototype,"showLabel",2),a.UUIColorSwatchElement=bi([b("uui-color-swatch")],a.UUIColorSwatchElement);var md=Object.defineProperty,Ga=Object.getOwnPropertySymbols,vd=Object.prototype.hasOwnProperty,gd=Object.prototype.propertyIsEnumerable,qa=(i,e,t)=>e in i?md(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Wa=(i,e)=>{for(var t in e||(e={}))vd.call(e,t)&&qa(i,t,e[t]);if(Ga)for(var t of Ga(e))gd.call(e,t)&&qa(i,t,e[t]);return i};let ut=class extends z{constructor(e,t={}){super(e,Wa(Wa({},{bubbles:!0}),t))}};ut.CHANGE="change";var fd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,mi=(i,e,t,r)=>{for(var o=r>1?void 0:r?yd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&fd(e,t,o),o};a.UUIColorSwatchesElement=class extends ee("label",m){constructor(){super(),this.value="",this.disabled=!1,this._onSelected=e=>{const t=e.target;this.swatches.includes(t)&&(this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t,this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.dispatchEvent(new ut(ut.CHANGE)))},this._onDeselected=e=>{const t=e.target;this.swatches.includes(t)&&(this._activeElement===t&&(this._activeElement=void 0),this._selectedElement===t&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0,this.value="",this.dispatchEvent(new ut(ut.CHANGE))))},this.addEventListener(Ce.SELECTED,this._onSelected),this.addEventListener(Ce.DESELECTED,this._onDeselected)}get _activeElement(){return this.__activeElement}set _activeElement(e){this.__activeElement&&(this.__activeElement.active=!1),e&&(e.active=!0,this.__activeElement=e)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}willUpdate(e){e.has("label")&&this.setAttribute("aria-label",this.label)}_handleSlotChange(){!this.swatches||this.swatches.length===0||this.swatches.forEach(e=>{var t;e.setAttribute("aria-checked","false"),e.setAttribute("role","radio"),this.disabled?e.setAttribute("disabled",""):e.setAttribute("selectable","selectable"),this.value!==""&&(t=e.color)!=null&&t.isEqual(this.value)&&(e.selected=!0,e.setAttribute("aria-checked","true"),this._selectedElement=e,this._activeElement=this._selectedElement)})}resetSelection(){this.swatches.forEach(e=>{e.selected=!1,e.active=!1,e.selectable=!e.disabled}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},a.UUIColorSwatchesElement.styles=[p`:host{display:flex;flex-wrap:wrap;gap:.4rem}`],mi([l()],a.UUIColorSwatchesElement.prototype,"value",2),mi([l({type:Boolean,reflect:!0})],a.UUIColorSwatchesElement.prototype,"disabled",2),mi([Ie({selector:"uui-color-swatch"})],a.UUIColorSwatchesElement.prototype,"swatches",2),a.UUIColorSwatchesElement=mi([b("uui-color-swatches")],a.UUIColorSwatchesElement);var _d=Object.defineProperty,Ka=Object.getOwnPropertySymbols,wd=Object.prototype.hasOwnProperty,$d=Object.prototype.propertyIsEnumerable,Xa=(i,e,t)=>e in i?_d(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ya=(i,e)=>{for(var t in e||(e={}))wd.call(e,t)&&Xa(i,t,e[t]);if(Ka)for(var t of Ka(e))$d.call(e,t)&&Xa(i,t,e[t]);return i};let Q=class extends z{constructor(e,t={}){super(e,Ya(Ya({},{bubbles:!0}),t))}};Q.CHANGE="change",Q.INNER_SLOT_CHANGE="inner-slot-change";var Ud=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,He=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ed(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Ud(e,t,o),o};a.UUIComboboxListElement=class extends m{constructor(){super(...arguments),this.displayValue="",this._value="",this._onSlotChange=()=>{this._activeElement=void 0;for(let e=0;e<this._activeOptions.length;e++)e===0?this._activeElement=this._activeOptions[e]:this._activeOptions[e].active=!1;this._updateSelection(),this.dispatchEvent(new Q(Q.INNER_SLOT_CHANGE))},this._onSelected=e=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=e.composedPath()[0],this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new Q(Q.CHANGE))},this._onDeselected=e=>{const t=e.composedPath()[0];this._activeElement===t&&(this._activeElement=void 0),this._selectedElement===t&&(this.value="",this.displayValue="",this.dispatchEvent(new Q(Q.CHANGE)))},this._moveIndex=e=>{const t=Math.min(Math.max(this._getActiveIndex()+e,0),this._options.length-1);this._goToIndex(t)},this._onKeyDown=e=>{var t;if(!(this._options.length<=0))switch(e.key){case"ArrowUp":e.preventDefault(),e.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":e.preventDefault(),e.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{e.preventDefault(),this._goToIndex(0);break}case"Enter":{e.preventDefault(),(t=this._activeElement)==null||t.click();break}case"End":{e.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(e){if(this._value===e)return;const t=this._value;this._value=e,this._updateSelection(),this.requestUpdate("value",t)}get for(){return this._for}set for(e){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=e,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}get _activeElement(){return this.__activeElement}set _activeElement(e){this.__activeElement&&(this.__activeElement.active=!1),e&&(e.active=!0,this.__activeElement=e)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(Ce.SELECTED,this._onSelected),this.addEventListener(Ce.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(Ce.SELECTED,this._onSelected),this.removeEventListener(Ce.DESELECTED,this._onDeselected)}_updateSelection(){this.displayValue="";for(const e of this._options)e.value===this._value?(this.displayValue=e.displayValue||"",e.selected=!0):e.selected=!1}_getActiveIndex(){return this._activeElement?this._options.indexOf(this._activeElement):-1}_goToIndex(e){e=Math.min(Math.max(e,0),this._options.length-1),this._activeElement=this._options[e],this._activeElement&&this._activeElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>`}},a.UUIComboboxListElement.styles=[p`:host{display:flex;flex-direction:column;box-sizing:border-box}`],He([l()],a.UUIComboboxListElement.prototype,"value",1),He([l({type:String})],a.UUIComboboxListElement.prototype,"displayValue",2),He([l({attribute:!1})],a.UUIComboboxListElement.prototype,"for",1),He([Ie({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],a.UUIComboboxListElement.prototype,"_options",2),He([Ie({flatten:!0,selector:"uui-combobox-list-option[active]"})],a.UUIComboboxListElement.prototype,"_activeOptions",2),He([g()],a.UUIComboboxListElement.prototype,"_value",2),a.UUIComboboxListElement=He([b("uui-combobox-list")],a.UUIComboboxListElement);var xd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?kd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&xd(e,t,o),o};a.UUIComboboxListOptionElement=class extends it(Pt(m)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.deselectable=!1}get value(){var e;return this._value?this._value:((e=this.textContent)==null?void 0:e.trim())||""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get displayValue(){var e;return this._displayValue?this._displayValue:((e=this.textContent)==null?void 0:e.trim())||""}set displayValue(e){const t=this._displayValue;this._displayValue=e,this.requestUpdate("displayValue",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.selectable=!this._disabled,this.requestUpdate("disabled",t)}render(){return u`<slot></slot>`}},a.UUIComboboxListOptionElement.styles=[p`:host{position:relative;cursor:pointer;margin:0 6px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px}:host(:first-child){margin-top:6px}:host(:last-child){margin-bottom:6px}:host([selected]):host([active])::after{display:block;content:'';position:absolute;inset:0;outline:var(--uui-color-surface,#fff) solid 2px;outline-offset:-4px}:host(:hover){background-color:var(--uui-color-surface-emphasis,#fafafa);color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]){cursor:auto;color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]:hover){background-color:var(--uui-color-disabled,#f3f3f5)}:host([active]){outline-color:var(--uui-color-focus,#3879ff)}:host([selected]){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected,#3544b1)}:host([selected]:hover){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([selected][disabled]){color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}`],ct([g()],a.UUIComboboxListOptionElement.prototype,"_disabled",2),ct([g()],a.UUIComboboxListOptionElement.prototype,"_displayValue",2),ct([l({type:String})],a.UUIComboboxListOptionElement.prototype,"value",1),ct([l({type:String,attribute:"display-value"})],a.UUIComboboxListOptionElement.prototype,"displayValue",1),ct([l({type:Boolean,reflect:!0})],a.UUIComboboxListOptionElement.prototype,"disabled",1),a.UUIComboboxListOptionElement=ct([b("uui-combobox-list-option")],a.UUIComboboxListOptionElement);var Id=Object.defineProperty,Za=Object.getOwnPropertySymbols,Cd=Object.prototype.hasOwnProperty,zd=Object.prototype.propertyIsEnumerable,Qa=(i,e,t)=>e in i?Id(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ja=(i,e)=>{for(var t in e||(e={}))Cd.call(e,t)&&Qa(i,t,e[t]);if(Za)for(var t of Za(e))zd.call(e,t)&&Qa(i,t,e[t]);return i};let B=class extends z{constructor(e,t={}){super(e,Ja(Ja({},{bubbles:!0}),t))}};B.SEARCH="search",B.CHANGE="change";var Pd=Object.defineProperty,Sd=Object.getOwnPropertyDescriptor,J=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Pd(e,t,o),o};a.UUIComboboxElement=class extends te(m){constructor(){super(...arguments),this.open=!1,this.closeLabel="Close",this.disabled=!1,this._displayValue="",this._search="",this._isPhone=!1,this._onPhoneChange=()=>{this._isPhone=this.phoneMediaQuery.matches},this._onMouseDown=()=>requestAnimationFrame(()=>this._input.focus()),this._onBlur=()=>requestAnimationFrame(()=>{var e;(e=this.shadowRoot)!=null&&e.activeElement||this._onClose()}),this._onInput=e=>{e.preventDefault(),e.stopImmediatePropagation(),this.search=e.target.value,this.dispatchEvent(new B(B.SEARCH)),this._open()},this._onSlotChange=()=>{var e;this.value&&this.value!==((e=this._comboboxList)==null?void 0:e.value)&&this._updateValue(this.value)},this._onChange=()=>{var e;this.value=((e=this._comboboxList)==null?void 0:e.value)||"",this.search=this.value?this.search:"",this._onClose(),this.dispatchEvent(new B(B.CHANGE))},this._open=()=>{this.open||(this.open=!0)},this._onClose=()=>{this.open&&(this.open=!1,this.search="",this._input.value=this._displayValue,this.dispatchEvent(new B(B.SEARCH)))},this._onKeyDown=e=>{this.open===!1&&e.key==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation()),(e.key==="ArrowUp"||e.key==="ArrowDown")&&this._open(),(e.key==="Escape"||e.key==="Enter")&&this._onClose()},this._onClear=e=>{e.key&&e.key!=="Enter"||(e.preventDefault(),e.stopImmediatePropagation(),this.value="",this.search="",this._input.value=this._displayValue,this._input.focus(),this.dispatchEvent(new B(B.SEARCH)),this.dispatchEvent(new B(B.CHANGE)))},this._renderInput=()=>u`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" autocomplete="off" .disabled="${this.disabled}" @click="${this._open}" @input="${this._onInput}" @keydown="${this._onKeyDown}"><slot name="input-prepend" slot="prepend"></slot>${this.disabled?"":this._renderClearButton()} ${this._renderCaret()}<slot name="input-append" slot="append"></slot></uui-input>`,this._renderCaret=()=>u`<svg id="caret" slot="append" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`,this._renderClearButton=()=>this.value||this.search?u`<uui-button id="clear-button" @click="${this._onClear}" @keydown="${this._onClear}" label="clear" slot="append" compact="compact" style="height:100%"><uui-icon name="remove" .fallback="${Mn.strings[0]}"></uui-icon></uui-button>`:"",this._renderDropdown=()=>u`<div id="dropdown" slot="popover"><uui-scroll-container tabindex="-1" id="scroll-container"><slot></slot></uui-scroll-container></div>`}get value(){return this._value}set value(e){typeof e=="string"&&this._updateValue(e),super.value=e}get search(){return this._search}set search(e){if(this.search===e)return;const t=this._search;this._search=e,this.requestUpdate("search",t)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",this._onBlur),this.addEventListener("mousedown",this._onMouseDown),this.phoneMediaQuery=window.matchMedia("(max-width: 600px)"),this._onPhoneChange(),this.phoneMediaQuery.addEventListener("change",this._onPhoneChange),w(this,"uui-icon"),w(this,"uui-input"),w(this,"uui-button"),w(this,"uui-combobox-list"),w(this,"uui-scroll-container"),w(this,"uui-popover")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this._onBlur),this.removeEventListener("mousedown",this._onMouseDown),this.phoneMediaQuery.removeEventListener("change",this._onPhoneChange)}async firstUpdated(){var e;const t=(e=this._comboboxListElements)==null?void 0:e[0];t&&(this._comboboxList=t,this._comboboxList.for=this,this._comboboxList.addEventListener(Q.CHANGE,this._onChange),this._comboboxList.addEventListener(Q.INNER_SLOT_CHANGE,this._onSlotChange),await this.updateComplete,this._updateValue(this.value))}_updateValue(e){this._comboboxList&&(this._comboboxList.value=e,requestAnimationFrame(()=>this._displayValue=this._comboboxList.displayValue||""))}getFormElement(){return this._input}render(){return this._isPhone&&this.open?u`<div id="phone-wrapper"><uui-button label="close" look="primary" @click="${this._onClose}">${this.closeLabel}</uui-button>${this._renderInput()} ${this._renderDropdown()}</div>`:u`<uui-popover .open="${this.open}" .margin="${-1}" @close="${()=>this._onClose()}">${this._renderInput()} ${this._renderDropdown()}</uui-popover>`}},a.UUIComboboxElement.styles=[p`:host{display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#scroll-container{overflow-y:auto;width:100%;max-height:var(--uui-combobox-popover-max-height,500px)}#dropdown{overflow:hidden;z-index:-1;background-color:var(--uui-combobox-popover-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-color-border,#d8d7d9);border-radius:var(--uui-border-radius,3px);width:100%;height:100%;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23))}#caret{margin-right:var(--uui-size-3,9px);display:flex;width:1.15em;flex-shrink:0;margin-top:-1px}:host([disabled]) #caret{fill:var(--uui-color-disabled-contrast,#c4c4c4)}#phone-wrapper{position:fixed;inset:0;display:flex;flex-direction:column;z-index:1;font-size:1.1em}#phone-wrapper #dropdown{display:flex}#phone-wrapper #combobox-input{height:var(--uui-size-16,48px)}#phone-wrapper>uui-button{height:var(--uui-size-14,42px);width:100%}#phone-wrapper #scroll-container{max-height:unset}`],J([l({attribute:"value",reflect:!0})],a.UUIComboboxElement.prototype,"value",1),J([l({type:String})],a.UUIComboboxElement.prototype,"search",1),J([l({type:Boolean})],a.UUIComboboxElement.prototype,"open",2),J([l({type:String})],a.UUIComboboxElement.prototype,"closeLabel",2),J([l({type:Boolean,reflect:!0})],a.UUIComboboxElement.prototype,"disabled",2),J([C("#combobox-input")],a.UUIComboboxElement.prototype,"_input",2),J([Ie({flatten:!0,selector:"uui-combobox-list"})],a.UUIComboboxElement.prototype,"_comboboxListElements",2),J([g()],a.UUIComboboxElement.prototype,"_displayValue",2),J([g()],a.UUIComboboxElement.prototype,"_search",2),J([g()],a.UUIComboboxElement.prototype,"_isPhone",2),a.UUIComboboxElement=J([b("uui-combobox")],a.UUIComboboxElement);var Od=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,Uo=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ad(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Od(e,t,o),o};a.UUIDialogLayoutElement=class extends m{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return u`<h3 style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h3>`}renderContent(){return u`<slot></slot>`}renderActions(){return u`<slot id="actions" name="actions"></slot>`}render(){return u`${this.renderHeadline()} ${this.renderContent()} ${this.renderActions()}`}},a.UUIDialogLayoutElement.styles=[p`:host{display:block;padding:var(--uui-size-10,30px) var(--uui-size-14,42px);color:var(--uui-color-text,#060606)}#actions{margin-top:var(--uui-size-8,24px);display:flex;justify-content:end;gap:var(--uui-size-4,12px)}`],Uo([l({type:String})],a.UUIDialogLayoutElement.prototype,"headline",2),Uo([g()],a.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),a.UUIDialogLayoutElement=Uo([b("uui-dialog-layout")],a.UUIDialogLayoutElement);var Ld=Object.defineProperty,jd=Object.getOwnPropertyDescriptor,Nd=(i,e,t,r)=>{for(var o=r>1?void 0:r?jd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Ld(e,t,o),o};a.UUIDialogElement=class extends m{render(){return u`<slot></slot>`}},a.UUIDialogElement.styles=[p`:host{position:relative;display:block;max-width:580px;color:var(--uui-color-text,#060606);background-color:var(--uui-dialog-background-color,var(--uui-color-surface,#fff));box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22));border-radius:var(--uui-dialog-border-radius,calc(var(--uui-border-radius,3px) * 2))}`],a.UUIDialogElement=Nd([b("uui-dialog")],a.UUIDialogElement);var Td=Object.defineProperty,es=Object.getOwnPropertySymbols,Md=Object.prototype.hasOwnProperty,Dd=Object.prototype.propertyIsEnumerable,ts=(i,e,t)=>e in i?Td(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,is=(i,e)=>{for(var t in e||(e={}))Md.call(e,t)&&ts(i,t,e[t]);if(es)for(var t of es(e))Dd.call(e,t)&&ts(i,t,e[t]);return i};let ht=class extends z{constructor(e,t={}){super(e,is(is({},{bubbles:!0}),t))}};ht.CHANGE="change";var Vd=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,Nt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Vd(e,t,o),o};a.UUIFileDropzoneElement=class extends ee("",m){constructor(){super(),this._acceptedFileExtensions=[],this._acceptedMimeTypes=[],this.multiple=!1,this.addEventListener("dragenter",this._onDragEnter,!1),this.addEventListener("dragleave",this._onDragLeave,!1),this.addEventListener("dragover",this._onDragOver,!1),this.addEventListener("drop",this._onDrop,!1)}set accept(e){if(e){const t=[],r=[];e.split(",").forEach(o=>{o=o.trim().toLowerCase(),new RegExp("[a-z]+\\/[a-z*]","s").test(o)?t.push(o):r.push(o.replace(/^\./,""))}),this._acceptedMimeTypes=t,this._acceptedFileExtensions=r}else this._acceptedMimeTypes=[],this._acceptedFileExtensions=[]}browse(){this._input.click()}connectedCallback(){super.connectedCallback(),w(this,"uui-symbol-file-dropzone")}async _getAllFileEntries(e){const t=[],r=[...e];for(;r.length>0;){const o=r.shift();if(o.kind==="file"){const n=o.getAsFile();if(!n)continue;this._isAccepted(n)&&t.push(n)}else if(o.kind==="directory"){if(!("webkitGetAsEntry"in o))continue;const n=o.webkitGetAsEntry();r.push(...await this._readAllDirectoryEntries(n.createReader()))}}return t}async _readAllDirectoryEntries(e){const t=[];let r=await this._readEntriesPromise(e);for(;r.length>0;)t.push(...r),r=await this._readEntriesPromise(e);return t}async _readEntriesPromise(e){return new Promise((t,r)=>{try{e.readEntries(t,r)}catch(o){console.log(o),r(o)}})}_isAccepted(e){if(this._acceptedFileExtensions.length===0&&this._acceptedMimeTypes.length===0)return!0;const t=e.type.toLowerCase(),r=e.name.split(".").pop();if(r&&this._acceptedFileExtensions.includes(r.toLowerCase()))return!0;for(const o in this._acceptedMimeTypes)if(t===o||o.endsWith("/*")&&t.startsWith(o.replace("/*","")))return!0;return!1}async _onDrop(e){var t;e.preventDefault(),this._dropzone.classList.remove("hover");const r=(t=e.dataTransfer)==null?void 0:t.items;if(r){let o=await this._getAllFileEntries(r);this.multiple===!1&&o.length&&(o=[o[0]]),this.dispatchEvent(new ht(ht.CHANGE,{detail:{files:o}}))}}_onDragOver(e){e.preventDefault()}_onDragEnter(e){this._dropzone.classList.add("hover"),e.preventDefault()}_onDragLeave(e){this._dropzone.classList.remove("hover"),e.preventDefault()}_onFileInputChange(){const e=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new ht(ht.CHANGE,{detail:{files:e}}))}render(){return u`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${e=>e.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"><slot></slot></div>`}},a.UUIFileDropzoneElement.styles=[p`#dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;box-sizing:border-box;width:100%;height:100%;padding:var(--uui-size-4,12px);border:3px solid transparent;margin:-3px;backdrop-filter:blur(2px)}#dropzone.hover{border-color:var(--uui-color-default,#1b264f)}#dropzone.hover::before{content:'';position:absolute;inset:0;opacity:.2;border-color:var(--uui-color-default,#1b264f);background-color:var(--uui-color-default,#1b264f)}#symbol{color:var(--uui-color-default,#1b264f);max-width:100%;max-height:100%}#input{position:absolute;width:0;height:0;opacity:0;display:none}`],Nt([C("#input")],a.UUIFileDropzoneElement.prototype,"_input",2),Nt([C("#dropzone")],a.UUIFileDropzoneElement.prototype,"_dropzone",2),Nt([l({type:String})],a.UUIFileDropzoneElement.prototype,"accept",1),Nt([l({type:Boolean})],a.UUIFileDropzoneElement.prototype,"multiple",2),a.UUIFileDropzoneElement=Nt([b("uui-file-dropzone")],a.UUIFileDropzoneElement);let Bd=class{static humanFileSize(e,t=!1,r=1){const o=t?1e3:1024;if(Math.abs(e)<o)return e+" B";const n=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let s=-1;const h=10**r;do e/=o,++s;while(Math.round(Math.abs(e)*h)/h>=o&&s<n.length-1);return e.toFixed(r)+" "+n[s]}};var Rd=Object.defineProperty,Fd=Object.getOwnPropertyDescriptor,ae=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Rd(e,t,o),o};a.UUIFilePreviewElement=class extends m{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(e){const t=this._file;e instanceof File&&(this._name=e.name.split(".")[0],this._extension=e.name.split(".")[1],this._isDirectory=!1,this._size=e.size,this._isFileAnImage(e)&&(this._isImage=!0,this._getThumbnail(e).then(r=>{this._src=r})),this.requestUpdate("file",t))}connectedCallback(){super.connectedCallback(),w(this,"uui-symbol-file-thumbnail"),w(this,"uui-symbol-folder"),w(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?u`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?u`<uui-symbol-file-thumbnail .src="${this._src}" .alt="${this._name}" id="file-symbol"></uui-symbol-file-thumbnail>`:u`<uui-symbol-file id="file-symbol" .type="${this._extension}"></uui-symbol-file>`}_renderLongName(){const e=this._name.substring(0,this._name.length-6),t=this._name.substring(this._name.length-6,this._name.length);return u`<span id="file-name" class="${this._url?"has-source":""}" @click="${()=>this._url?this._openSource():""}" @keydown="${()=>""}"><span id="file-name-start">${e}</span> <span id="file-name-end">${t}</span></span>`}_isFileAnImage(e){return e?e.type.split("/")[0]==="image":!1}async _getThumbnail(e){return await new Promise(t=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)}})}render(){return u`<slot id="actions" name="actions"></slot>${this._fileTypeTemplate()}<div id="file-info">${this._renderLongName()} <span id="file-size">${this._size&&!this._isDirectory?u`${Bd.humanFileSize(this._size,!0)}`:""}</span></div>`}},a.UUIFilePreviewElement.styles=[p`:host{position:relative;display:grid;grid-template-rows:100px 50px;width:150px;height:150px;box-sizing:border-box;aspect-ratio:1;color:var(--uui-color-text,#060606)}:host(:hover) slot[name=actions]::slotted(*){opacity:1}slot[name=actions]::slotted(*){position:absolute;top:8px;right:8px;max-width:100%;height:32px;font-size:13px;opacity:0;z-index:1;transition:opacity 150ms}#file-symbol{aspect-ratio:1/1;margin:auto;max-width:100%;max-height:100%}#file-info{min-width:0;display:flex;text-align:center;flex-direction:column;font-size:1rem}#file-name{display:flex;justify-content:center}#file-name-start{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#file-name-end{white-space:nowrap}#file-size{opacity:.6}.has-source:hover{text-decoration:underline;cursor:pointer}`],ae([g()],a.UUIFilePreviewElement.prototype,"_name",2),ae([g()],a.UUIFilePreviewElement.prototype,"_url",2),ae([g()],a.UUIFilePreviewElement.prototype,"_extension",2),ae([g()],a.UUIFilePreviewElement.prototype,"_src",2),ae([g()],a.UUIFilePreviewElement.prototype,"_size",2),ae([g()],a.UUIFilePreviewElement.prototype,"_isDirectory",2),ae([g()],a.UUIFilePreviewElement.prototype,"_file",2),ae([g()],a.UUIFilePreviewElement.prototype,"_isImage",2),ae([l({attribute:!1})],a.UUIFilePreviewElement.prototype,"file",1),a.UUIFilePreviewElement=ae([b("uui-file-preview")],a.UUIFilePreviewElement);var Gd=Object.defineProperty,qd=Object.getOwnPropertyDescriptor,vi=(i,e,t,r)=>{for(var o=r>1?void 0:r?qd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Gd(e,t,o),o};a.UUIFormLayoutItemElement=class extends m{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=e=>{this._labelSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=e=>{this._descriptionSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),w(this,"uui-form-validation-message")}render(){return u`<div id="label" style="${this._labelSlotHasContent?"":"display: none"}"><slot name="label" @slotchange="${this._labelSlotChanged}"></slot></div><div id="description" style="${this._descriptionSlotHasContent||this.description!==null?"":"display: none"}">${this.description}<slot name="description" @slotchange="${this._descriptionSlotChanged}"></slot></div><uui-form-validation-message><slot></slot><slot name="message" slot="message"></slot></uui-form-validation-message>`}},a.UUIFormLayoutItemElement.styles=[p`:host{position:relative;display:block;margin-top:var(--uui-size-space-5,18px);margin-bottom:var(--uui-size-space-5,18px)}#label{margin-top:-5px;margin-bottom:5px}#description{color:var(--uui-color-disabled-contrast,#c4c4c4);font-size:var(--uui-type-small-size,12px)}#label+#description{margin-top:-8px;min-height:8px}`],vi([l({type:String})],a.UUIFormLayoutItemElement.prototype,"description",2),vi([g()],a.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),vi([g()],a.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),a.UUIFormLayoutItemElement=vi([b("uui-form-layout-item")],a.UUIFormLayoutItemElement);/**
|
|
303
471
|
* @license
|
|
304
472
|
* Copyright 2017 Google LLC
|
|
305
473
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
306
|
-
*/const
|
|
474
|
+
*/const os=(i,e,t)=>{const r=new Map;for(let o=e;o<=t;o++)r.set(i[o],o);return r},Eo=at(class extends st{constructor(i){if(super(i),i.type!==Z.CHILD)throw Error("repeat() can only be used in text expressions")}ct(i,e,t){let r;t===void 0?t=e:e!==void 0&&(r=e);const o=[],n=[];let s=0;for(const h of i)o[s]=r?r(h,s):s,n[s]=t(h,s),s++;return{values:n,keys:o}}render(i,e,t){return this.ct(i,e,t).values}update(i,[e,t,r]){var o;const n=Dh(i),{values:s,keys:h}=this.ct(e,t,r);if(!Array.isArray(n))return this.ut=h,s;const c=(o=this.ut)!==null&&o!==void 0?o:this.ut=[],d=[];let v,f,y=0,$=n.length-1,E=0,x=s.length-1;for(;y<=$&&E<=x;)if(n[y]===null)y++;else if(n[$]===null)$--;else if(c[y]===h[E])d[E]=Ve(n[y],s[E]),y++,E++;else if(c[$]===h[x])d[x]=Ve(n[$],s[x]),$--,x--;else if(c[y]===h[x])d[x]=Ve(n[y],s[x]),At(i,d[x+1],n[y]),y++,x--;else if(c[$]===h[E])d[E]=Ve(n[$],s[E]),At(i,n[y],n[$]),$--,E++;else if(v===void 0&&(v=os(h,E,x),f=os(c,y,$)),v.has(c[y]))if(v.has(c[$])){const A=f.get(h[E]),Ee=A!==void 0?n[A]:null;if(Ee===null){const xe=At(i,n[y]);Ve(xe,s[E]),d[E]=xe}else d[E]=Ve(Ee,s[E]),At(i,n[y],Ee),n[A]=null;E++}else bo(n[$]),$--;else bo(n[y]),y++;for(;E<=x;){const A=At(i,d[x+1]);Ve(A,s[E]),d[E++]=A}for(;y<=$;){const A=n[y++];A!==null&&bo(A)}return this.ut=h,ga(i,d),V}});var Wd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,rs=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Wd(e,t,o),o};a.UUIFormValidationMessageElement=class extends m{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=e=>{const t=e.composedPath()[0];t.pristine===!1?this._messages.set(t,t.validationMessage):this._messages.delete(t),this.requestUpdate()},this._onControlValid=e=>{const t=e.composedPath()[0];this._messages.delete(t),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(e){let t=null;if(typeof e=="string"){const n=this.getRootNode();t=n?.getElementById(e)}const r=t||this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(rt.INVALID,this._onControlInvalid),o.removeEventListener(rt.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(rt.INVALID,this._onControlInvalid),this._for.addEventListener(rt.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${Eo(this._messages,e=>u`<div>${e[1]}</div>`)}<slot name="message"></slot></div>`}},a.UUIFormValidationMessageElement.styles=[p`#messages{color:var(--uui-color-danger-standalone,#bf214e)}`],rs([l({reflect:!1,attribute:!0})],a.UUIFormValidationMessageElement.prototype,"for",1),a.UUIFormValidationMessageElement=rs([b("uui-form-validation-message")],a.UUIFormValidationMessageElement);var Xd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,Zd=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yd(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Xd(e,t,o),o};a.UUIFormElement=class extends m{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(e){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const t=e.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=t.length>0?t[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(e){if(e.target===null)return;const t=e.target;if(!t.checkValidity()){t.setAttribute("submit-invalid","");return}t.removeAttribute("submit-invalid")}_onReset(e){e.target!==null&&e.target.removeAttribute("submit-invalid")}render(){return u`<slot @slotchange="${this._onSlotChanged}"></slot>`}},a.UUIFormElement=Zd([b("uui-form")],a.UUIFormElement);/**
|
|
307
475
|
* @license
|
|
308
476
|
* Copyright 2017 Google LLC
|
|
309
477
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
310
|
-
*/class Io extends at{constructor(e){if(super(e),this.et=U,e.type!==Y.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===U||e==null)return this.ft=void 0,this.et=e;if(e===V)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Io.directiveName="unsafeHTML",Io.resultType=1;const xo=st(Io);var Yd=Object.defineProperty,sa=Object.getOwnPropertySymbols,Zd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable,aa=(i,e,t)=>e in i?Yd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,la=(i,e)=>{for(var t in e||(e={}))Zd.call(e,t)&&aa(i,t,e[t]);if(sa)for(var t of sa(e))Qd.call(e,t)&&aa(i,t,e[t]);return i};let dt=class extends P{constructor(e,t={}){super(e,la(la({},{bubbles:!0,composed:!0}),t)),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};dt.ICON_REQUEST="icon-request";var Jd=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,Be=(i,e,t,r)=>{for(var o=r>1?void 0:r?ep(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jd(e,t,o),o};s.UUIIconElement=class extends m{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.label="",this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(e){this._name=e,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const e=new dt(dt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(e),e.icon!==null?(this._retrievedNameIcon=!0,e.icon.then(t=>{this._useFallback=!1,this._nameSvg=t})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon(),typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:xo(this.fallback):this._nameSvg!==null?xo(this._nameSvg):this.svg!==null?xo(this.svg):u`<slot></slot>`}},s.UUIIconElement.styles=[p`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}::slotted(svg),:host svg{fill:var(--uui-icon-color,currentColor)}:host-context(div[slot=prepend]){margin-left:var(--uui-size-2,6px)}:host-context(div[slot=append]){margin-right:var(--uui-size-2,6px)}`],Be([g()],s.UUIIconElement.prototype,"_nameSvg",2),Be([l()],s.UUIIconElement.prototype,"label",2),Be([l()],s.UUIIconElement.prototype,"name",1),Be([l({attribute:!1})],s.UUIIconElement.prototype,"svg",2),Be([l({attribute:!1})],s.UUIIconElement.prototype,"fallback",2),Be([g()],s.UUIIconElement.prototype,"_useFallback",2),s.UUIIconElement=Be([b("uui-icon")],s.UUIIconElement);let Co=class{constructor(e){this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}},Po=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(dt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(dt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new Co(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Co}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var tp=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,ua=(i,e,t,r)=>{for(var o=r>1?void 0:r?ip(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tp(e,t,o),o};s.UUIIconRegistryElement=class extends m{constructor(){super(),this._icons={},this._registry=new Po,this._registry.attach(this)}get icons(){return this._icons}set icons(e){this._icons=e,this._registry&&Object.entries(this._icons).forEach(([t,r])=>this._registry.defineIcon(t,r))}get registry(){return this._registry}set registry(e){this.registry&&this.registry.detach(this),e.attach(this),this._registry=e}render(){return u`<slot></slot>`}},ua([l({attribute:!1})],s.UUIIconRegistryElement.prototype,"_icons",2),s.UUIIconRegistryElement=ua([b("uui-icon-registry")],s.UUIIconRegistryElement);const op=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg>`,rp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M255.399 66.934L36.38 444.893h438.036L255.399 66.934zm22.094 331.988h-46.29v-44.743h46.29v44.743zm-11.458-63.166h-23.068l-12.849-106.419v-57.846h48.458v57.846l-12.541 106.419z"/></svg>`,np=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M127.286 449.816c-21.564.006-43.317-8.494-59.885-25.062-16.578-16.575-25.083-38.336-25.079-59.897-.029-20.296 7.623-40.755 23.034-56.14l3.539-3.539 212.559-212.57c20.227-20.255 47.082-30.304 73.852-30.267 28.454-.012 57.219 11.208 79.179 33.159 21.937 21.949 33.153 50.698 33.147 79.151.028 26.779-10.016 53.627-30.268 73.865l-178.45 178.453-13.28 13.277-26.56-26.559 191.738-191.733c12.842-12.871 19.229-29.708 19.259-47.303-.004-18.645-7.323-37.759-22.152-52.592-14.834-14.838-33.958-22.152-52.613-22.165-17.588.034-34.423 6.418-47.284 19.266L95.447 331.734l-3.536 3.537c-8.011 8.031-11.994 18.482-12.029 29.585.014 11.761 4.614 23.877 14.079 33.345 9.455 9.446 21.562 14.043 33.326 14.056 11.102-.034 21.551-4.014 29.587-12.026l150.412-150.404 12.596-12.595c3.018-3.04 4.521-6.906 4.549-11.331 0-4.666-1.817-9.57-5.722-13.476-3.914-3.916-8.819-5.726-13.48-5.739-4.425.038-8.283 1.542-11.328 4.564L155.27 349.882l-26.561-26.56L267.33 184.703c10.408-10.44 24.289-15.604 37.897-15.57 14.468-.012 29.01 5.704 40.049 16.739 11.007 11.025 16.72 25.554 16.72 40.029.029 13.599-5.129 27.479-15.559 37.89l-12.601 12.595-150.41 150.41c-15.365 15.377-35.768 23.025-56.022 23.021l-.118-.001z"/></svg>`,sp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M475.88 151.615c-.583-.961-10.257-17.833-29.675-35.154-19.305-17.239-49.226-35.216-88.641-35.21-39.424-.02-69.047 18.022-87.958 35.329a162.852 162.852 0 0 0-14.814 15.459 167.873 167.873 0 0 0-15.325-15.578c-19.302-17.239-49.225-35.216-88.635-35.21-39.428-.02-69.049 18.022-87.962 35.329-19.041 17.4-28.3 34.322-28.873 35.328l-1.991 7.796v254.56l30.49 7.78.066.039c.423-.818 8.621-14.927 23.664-28.167 15.169-13.298 36.324-25.537 64.605-25.557 29.166.006 51.354 13.121 66.996 26.975a134.425 134.425 0 0 1 17.578 19.031 110.554 110.554 0 0 1 4.313 6.109 52.672 52.672 0 0 1 1.176 1.876l.008.006.006-.002c2.808 4.888 8.066 8.192 14.113 8.192 6.155 0 11.507-3.421 14.271-8.464h.002l.025-.049.008-.014c.617-1.129 8.778-15.029 23.632-28.104 15.169-13.298 36.327-25.537 64.603-25.557 29.178.006 51.36 13.121 67.002 26.975 7.752 6.894 13.677 13.88 17.576 19.031a110.974 110.974 0 0 1 4.312 6.109c.463.707.792 1.241.984 1.562.092.155.163.263.192.314l.004.006.029-.012 30.37-8.081v-254.56l-2.151-8.087zM150.832 335.806h-.062c-38.245 0-67.258 16.996-86.213 33.819V164.279c3.311-5.068 10.654-15.229 21.67-24.919 15.169-13.31 36.324-25.539 64.605-25.559 29.166 0 51.354 13.122 66.996 26.974a134.046 134.046 0 0 1 17.578 19.03 108.111 108.111 0 0 1 3.338 4.655v205.933c-19.321-17.044-48.976-34.587-87.912-34.587zm294.652 34.57c-19.324-17.04-48.99-34.57-87.92-34.57-38.292-.018-67.307 17.006-86.275 33.849V164.289c3.305-5.058 10.639-15.217 21.673-24.929 15.169-13.31 36.327-25.539 64.603-25.559 29.178 0 51.36 13.122 67.002 26.974 7.752 6.891 13.677 13.875 17.576 19.03a110.27 110.27 0 0 1 3.342 4.651v205.92z"/></svg>`,ap=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M342.391 352.428h-44.879v44.865h44.879v-44.865zm-63.234-120.071h-44.849v44.853h44.849v-44.853zm63.234 60.034h-44.879v44.859h44.879v-44.859zm63.174-60.034h-44.854v44.853h44.854v-44.853zm-126.408 60.034h-44.849v44.859h44.849v-44.859zm63.234-60.034h-44.879v44.853h44.879v-44.853zm63.174 60.034h-44.854v44.859h44.854v-44.859zm-252.803 60.037h-44.856v44.865h44.856v-44.865zm0-60.037h-44.856v44.859h44.856v-44.859zM394.024 74.208v19.691c7.737 6.847 12.642 16.825 12.642 27.969 0 20.634-16.732 37.367-37.369 37.367-20.642 0-37.367-16.733-37.367-37.367 0-11.147 4.903-21.124 12.643-27.969V74.208H169.97v19.691c7.739 6.847 12.643 16.825 12.643 27.969 0 20.634-16.732 37.367-37.369 37.367-20.64 0-37.367-16.733-37.367-37.367 0-11.147 4.904-21.124 12.642-27.969V74.208h-83.27v397.644h436.668V74.208h-79.893zm40.011 357.759H77.131V183.544h356.904v248.423zm-218.047-199.61h-44.881v44.853h44.881v-44.853zm0 120.071h-44.881v44.865h44.881v-44.865zm63.169 0h-44.849v44.865h44.849v-44.865zm-63.169-60.037h-44.881v44.859h44.881v-44.859zM145.245 143.64c10.273 0 18.603-8.326 18.603-18.599V58.035c0-10.267-8.329-18.6-18.603-18.6-10.274 0-18.602 8.333-18.602 18.6v67.006c0 10.272 8.328 18.599 18.602 18.599zm224.054 0c10.272 0 18.601-8.326 18.601-18.599V58.035c0-10.267-8.328-18.6-18.601-18.6-10.274 0-18.604 8.333-18.604 18.6v67.006c0 10.272 8.329 18.599 18.604 18.599z"/></svg>`,lp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,up=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M380.295 95.092h-68.479a54.17 54.17 0 00.097-3.321c0-30.805-24.948-55.743-55.722-55.743-30.803 0-55.756 24.938-55.756 55.743 0 1.112.065 2.208.098 3.321h-68.446v57.766h248.208V95.092zm-124.104 21.76c-13.865-.033-25.049-11.232-25.079-25.081.03-13.862 11.214-25.081 25.079-25.1 13.834.019 25.083 11.237 25.083 25.1 0 13.848-11.249 25.047-25.083 25.081zm149.053 13.787v48.676H107.172v-48.676H79.537v345.078h353.307V130.639h-27.6z"/></svg>`,cp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M38.299 255.395l137.255-137.248 46.782 46.789-90.458 90.459 90.458 90.46-46.782 46.792L38.299 255.395zm248.467 90.46l90.466-90.46-72.028-72.026-18.431-18.433 46.788-46.791 18.436 18.438L470.81 255.395 333.561 392.647l-46.795-46.792z"/></svg>`,hp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.5 78.244l-26.472-26.473c-16.867-16.868-44.216-16.865-61.083.003l-61.466 61.468-29.702-29.699-58.764 58.763 24.501 24.499L79.748 334.573C68.761 345.557 62.6 359.972 61.767 374.81l-9.766 9.764c-20.867 20.881-20.863 54.838.002 75.704 10.106 10.108 23.548 15.679 37.85 15.679 14.297 0 27.733-5.568 37.847-15.67l9.758-9.765c15.211-.821 29.394-7.139 40.248-17.99l167.771-167.767 24.493 24.495 58.765-58.764-29.698-29.699 61.465-61.466c16.87-16.869 16.87-44.218-.002-61.087zM150.574 405.398a23.298 23.298 0 01-16.532 6.846c-3.501 0-7.007-.782-10.231-2.343v.007l-23.242 23.236a15.092 15.092 0 01-10.716 4.439 15.1 15.1 0 01-10.715-4.439c-5.919-5.922-5.919-15.516-.002-21.436l23.233-23.238.008-.004c-4.226-8.725-2.741-19.518 4.503-26.761l167.769-167.768 43.695 43.693-167.77 167.768z"></path></svg>`,dp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M243.47 64.86l-7.335-7.333H36.725V474.23h298.07V156.187l-7.332-7.335L243.47 64.86zm66.287 384.329H61.761V82.566h141.615c37.203 0 19.276 88.18 19.276 88.18s86-20.9 87.104 18.53v259.913zm157.051-330.866l-81.266-81.268H258.938l25.043 25.038h71.481c.063 0 .12.01.185.01-.006.286-.023.547-.023.837 11.174 0 16.69 9.045 19.118 20.95 4.358 22.959-2.312 55.826-2.312 55.826s.137-.031.341-.082c-.114.602-.181.933-.181.933s67.129-16.325 75.793 10.732c.077.294.161.585.225.887.083.302.14.612.207.921.154.928.26 1.889.287 2.904v228.807h-87.998l.002 25.037h113.037V125.66l-7.335-7.337z"/></svg>`,pp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,bp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg>`,mp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.3,297.9v92.3H103.9v-92.3H73.2v122.9H439V297.9H408.3z M374.2,189.1h-77.7V90.8h-82.8v98.3h-77.6l119,144.2L374.2,189.1L374.2,189.1z"/></svg>`,vp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M412.656 38.477l-49.973 49.975 58.761 58.76 49.976-49.98-58.764-58.755zM177.421 338.155l-15.932-15.935 190.923-190.928-16.286-16.283L85.215 365.922l.186.185-47.919 106.778 106.309-48.383.182.182.482-.482.006-.003 250.424-250.432-26.537-26.537-190.927 190.925zm-39.26 59.052l-46.369 21.102 20.9-46.572 23.388-23.387 3.367 22.301 22.097 3.164-23.383 23.392z"/></svg>`,gp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.908 86.358c-55.975-26.379-122.761-2.379-149.132 53.615-1.831 3.885-3.421 8.767-4.813 14.428-1.391-5.661-2.984-10.543-4.814-14.428-26.373-55.994-93.143-79.994-149.135-53.615-55.959 26.371-79.969 93.122-53.597 149.113 26.369 55.989 207.502 216.478 207.502 216.478s.018-.203.042-.515l.043.515S436.139 291.46 462.506 235.471c26.373-55.991 2.397-122.742-53.598-149.113z"/></svg>`,fp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.211 169.501v-.316H52.564v.328c-7.956 1.548-13.959 8.547-13.959 16.955 0 0 5.683 86.463 6.726 117.611 1.045 31.147 3.844 114.728 3.844 114.728 0 9.544 1.973 17.281 11.514 17.281h388.458c9.543 0 11.514-7.737 11.514-17.281 0 0 2.804-83.58 3.845-114.728 1.044-31.147 6.727-117.611 6.727-117.611-.002-8.433-6.036-15.442-14.022-16.967zm0-42.313c0-8.98-7.277-16.256-16.258-16.256H235.305c-6.43-.161-11.384-11.842-11.384-16.311l.003-1.902c0-9.546-7.737-17.28-17.28-17.28H97.168c-9.544 0-17.281 7.734-17.281 17.28l.004 1.902c0 4.5-5.021 16.322-11.517 16.322h.155c-8.844.157-15.965 7.364-15.965 16.244v11.223h404.647v-11.222z"/></svg>`,yp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z"/></svg>`,_p=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 38.7C136 38.7 38.7 136 38.7 256S136 473.3 256 473.3 473.3 376 473.3 256 376 38.7 256 38.7zm18.1 326h-36.2V237.9h36.2v126.8zM256 192.6c-15 0-27.2-12.2-27.2-27.2s12.2-27.2 27.2-27.2 27.2 12.2 27.2 27.2-12.2 27.2-27.2 27.2z"/></svg>`,wp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M270.508 338.006c-27.316.03-54.696-10.671-75.323-31.318l-3.266-3.266 46.784-46.799 3.271 3.267c8.054 8.036 18.233 11.915 28.533 11.942 10.79-.043 21.088-3.93 29.123-11.942l76.701-76.701c8.024-8.05 11.909-18.306 11.945-28.895-.036-10.495-3.915-20.722-11.936-28.769l-3.268-3.266c-8.049-8.025-18.283-11.903-28.827-11.943-10.55.04-20.785 3.918-28.835 11.943l-31.537 31.543c-12.916 12.922-33.867 12.922-46.788 0-12.924-12.919-12.924-33.867-.005-46.789l31.542-31.544c20.794-20.821 48.361-31.36 75.623-31.327 27.256-.034 54.82 10.505 75.618 31.327l3.266 3.263a106.693 106.693 0 0131.319 75.561c.038 27.25-10.474 54.848-31.325 75.684l-76.704 76.7c-20.915 20.941-48.588 31.328-75.743 31.328l-.168.001zM163.966 468.393c-27.308.027-54.694-10.67-75.322-31.324l-3.264-3.26c-20.875-20.854-31.364-48.479-31.326-75.725-.033-27.27 10.556-54.782 31.326-75.518l76.704-76.707c20.794-20.821 48.361-31.366 75.623-31.327a106.798 106.798 0 0161.267 19.273 33.045 33.045 0 018.42 6.119l5.931 5.93 3.266 3.263h-.001l.001.003-46.781 46.798-.005-.006-3.266-3.266c-8.052-8.024-18.285-11.903-28.832-11.943-10.545.04-20.781 3.918-28.832 11.943l-76.711 76.712c-8.021 8.048-11.901 18.261-11.935 28.726.038 10.627 3.922 20.886 11.938 28.932l3.269 3.26c8.055 8.038 18.235 11.913 28.531 11.941 10.794-.043 21.092-3.928 29.13-11.941l33.051-33.051c12.923-12.915 33.872-12.915 46.788.006 12.921 12.917 12.921 33.863 0 46.787l-33.053 33.051c-20.914 20.938-48.592 31.324-75.745 31.324h-.172z"/></svg>`,$p=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"/></svg>`,Up=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M289.335 420.379V90.8h83.103v329.579h-83.103zm-152.737-.002V90.804h83.101v329.573h-83.101z"/></svg>`,Ep=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,kp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M397.727 256.048l-286.7 166.932V89.114z"/></svg>`,Ip=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,xp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M470.704 407.906l-2.691-2.689.006-.002-107.514-107.523c14.938-25.733 23.616-55.565 23.82-87.451.626-97.615-77.99-177.243-175.599-177.857l-1.168-.002c-97.06.005-176.067 78.392-176.692 175.598-.618 97.609 77.999 177.236 175.597 177.859.389.002.766.004 1.155.004 32.442 0 62.846-8.79 88.998-24.075L404.035 469.2l.01-.01 2.686 2.686c8.125 8.124 21.293 8.117 29.414 0l34.56-34.554c8.115-8.117 8.121-21.293-.001-29.416zm-263.956-67.135c-72.589-.466-131.271-59.907-130.812-132.502C76.4 136.14 135.45 77.457 207.561 77.453l.88.002c35.167.22 68.144 14.124 92.851 39.148 24.705 25.025 38.188 58.178 37.962 93.352-.222 35.015-14.027 67.893-38.867 92.564-24.834 24.67-57.78 38.252-92.768 38.252h-.871z"/></svg>`,Cp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,Pp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M469.92 279.717v-48.898l-6.906-2.256-52.35-17.091-13.971-33.728 26.852-56.814-34.586-34.581-6.477 3.288-49.1 24.937-33.721-13.971-21.198-59.171h-48.899l-2.253 6.912-17.091 52.352-33.712 13.966-56.833-26.849-34.573 34.58 3.287 6.474 24.933 49.116-13.96 33.707-59.182 21.189v48.909l6.914 2.253 52.352 17.094 13.966 33.718-26.845 56.82 34.567 34.587 6.484-3.294 49.103-24.931 33.719 13.968 21.188 59.165h48.902l2.26-6.908 17.094-52.35 33.721-13.967 56.818 26.855 34.584-34.59-3.286-6.48-24.937-49.094 13.969-33.726 59.167-21.191zM255.054 324.78c-37.819 0-68.478-30.657-68.478-68.479 0-37.819 30.659-68.481 68.478-68.481 37.819 0 68.475 30.662 68.475 68.481 0 37.822-30.656 68.479-68.475 68.479z"/></svg>`,Sp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M88.871 297.086v-83.1h332.084v83.1H88.871z"/></svg>`,Op=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M203.447 202.931l-54.568-54.566c27.503-27.173 65.183-43.913 106.927-43.913 42.13.014 79.972 16.983 107.622 44.577 27.594 27.648 44.561 65.492 44.578 107.629h66.177c-.024-120.624-97.761-218.361-218.376-218.386-59.897 0-114.277 24.203-153.724 63.295l-50.36-50.36.003 151.725h151.721zM363.991 363.67c-27.605 27.918-65.809 45.184-108.183 45.176-42.139-.008-79.978-16.981-107.623-44.574-27.601-27.645-44.565-65.482-44.582-107.614H37.436c.017 120.614 97.751 218.347 218.373 218.374 60.54-.008 115.433-24.73 154.979-64.562l48.997 49V311.423H311.742l52.249 52.247z"/></svg>`,zp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"/></svg>`,Ap=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,Lp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M306.997 124.391c8.992 0 16.277-7.286 16.277-16.276V57.184c.002-8.989-7.285-16.276-16.277-16.276-8.983 0-16.271 7.287-16.273 16.276v50.932c0 8.989 7.29 16.278 16.273 16.275zm80.752 23.244l36.015-36.017c6.356-6.357 6.353-16.662 0-23.015-6.357-6.356-16.662-6.356-23.019 0l-36.013 36.014c-6.356 6.356-6.358 16.661 0 23.018 6.354 6.356 16.661 6.353 23.017 0zm-161.066 2.552c6.354 6.353 16.663 6.353 23.018 0 6.353-6.356 6.353-16.662 0-23.018l-36.018-36.018c-6.355-6.353-16.661-6.353-23.015 0-6.359 6.356-6.359 16.662 0 23.018l36.015 36.018zm159.5 113.463c-6.356-6.357-16.663-6.357-23.02 0-6.354 6.355-6.354 16.661 0 23.018l36.015 36.014c6.356 6.356 16.663 6.356 23.018 0 6.358-6.356 6.358-16.658 0-23.015l-36.013-36.017zm-70.019-131.061L37.625 411.125l58.761 58.76 278.541-278.533-58.763-58.763zm-65.195 99.172l67.606-67.608 24.787 24.788-67.606 67.608-24.787-24.788zm205.2-41.684h-50.934c-8.99 0-16.275 7.289-16.275 16.275-.004 8.985 7.285 16.275 16.275 16.275h50.934c8.988 0 16.273-7.29 16.273-16.275 0-8.99-7.285-16.275-16.273-16.275z"></path></svg>`,jp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;let ca=class extends Po{constructor(){super(),this.defineIcon("add",op.strings[0]),this.defineIcon("alert",rp.strings[0]),this.defineIcon("attachment",np.strings[0]),this.defineIcon("book-alt",sp.strings[0]),this.defineIcon("calendar",ap.strings[0]),this.defineIcon("check",lp.strings[0]),this.defineIcon("clipboard",up.strings[0]),this.defineIcon("code",cp.strings[0]),this.defineIcon("colorpicker",hp.strings[0]),this.defineIcon("copy",dp.strings[0]),this.defineIcon("delete",pp.strings[0]),this.defineIcon("document",bp.strings[0]),this.defineIcon("download",mp.strings[0]),this.defineIcon("edit",vp.strings[0]),this.defineIcon("favorite",gp.strings[0]),this.defineIcon("folder",fp.strings[0]),this.defineIcon("forbidden",yp.strings[0]),this.defineIcon("info",_p.strings[0]),this.defineIcon("link",wp.strings[0]),this.defineIcon("lock",$p.strings[0]),this.defineIcon("pause",Up.strings[0]),this.defineIcon("picture",Ep.strings[0]),this.defineIcon("play",kp.strings[0]),this.defineIcon("remove",Ip.strings[0]),this.defineIcon("search",xp.strings[0]),this.defineIcon("see",Cp.strings[0]),this.defineIcon("settings",Pp.strings[0]),this.defineIcon("subtract",Sp.strings[0]),this.defineIcon("sync",Op.strings[0]),this.defineIcon("unlock",zp.strings[0]),this.defineIcon("unsee",Ap.strings[0]),this.defineIcon("wand",Lp.strings[0]),this.defineIcon("wrong",jp.strings[0])}};var Np=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,Mp=(i,e,t,r)=>{for(var o=r>1?void 0:r?Tp(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Np(e,t,o),o};s.UUIIconRegistryEssentialElement=class extends s.UUIIconRegistryElement{constructor(){super(),this.registry=new ca}},s.UUIIconRegistryEssentialElement=Mp([b("uui-icon-registry-essential")],s.UUIIconRegistryEssentialElement);var Dp=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vp(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dp(e,t,o),o};s.UUIInputFileElement=class extends ee(m){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=e=>{let t=[];for(const r of e)this.multiple?t.push(r):t=[r];this._files=t},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(e){if(super.value=e,e instanceof FormData){const t=this.multiple?e.getAll(this.name):[e.get(this.name)];this._updateFileWrappers(t);return}if(e instanceof File){this._updateFileWrappers([e]);return}}connectedCallback(){super.connectedCallback(),w(this,"uui-icon"),w(this,"uui-file-dropzone"),w(this,"uui-button"),w(this,"uui-action-bar"),w(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(e){e.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(e){const t=e.detail.files.filter(o=>o instanceof File||o.isFile);if(!this.multiple){const o=t[0],n=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=n;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,n),this._updateFileWrappers([n]);return}}let r=this.value;if(t.length>0&&!(this.value instanceof FormData)&&(r=new FormData),r instanceof FormData)for(const o of t){const n=o instanceof File;r.append(this.name,n?o:await this._getFile(o))}this.value=r}async _getFile(e){return await new Promise((t,r)=>e.file(t,r))}_removeFile(e){const t=this._files[e];if(this.value instanceof FormData){const r=this.value.getAll(this.name).filter(o=>o!==t);if(r.length===0)this.value="";else{this.value.delete(this.name);for(const o of r)this.value.append(this.name,o)}this._updateFileWrappers(r)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(e){e?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(e,t){return u`<uui-file-preview .file="${e}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(t)}" color="danger" label="${`Delete ${e.name}`}"><uui-icon name="delete" .fallback="${Kc.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${ko(this._files,e=>e.name+e.size,(e,t)=>this._renderFileItem(e,t))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()} ${this._files.length===0||this.multiple?u`<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button>`:U}</div>`}},s.UUIInputFileElement.styles=[p`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-color-border,#d8d7d9)}#input{position:absolute;width:0;height:0;opacity:0;display:none}#files{display:grid;box-sizing:border-box;justify-items:center;width:100%;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:min-content;gap:16px;padding:16px;overflow:auto;max-height:100%}#dropzone{display:none;position:absolute;inset:0;z-index:10;justify-content:center;align-items:center}#add-button{width:150px;height:150px;display:flex;padding:16px;box-sizing:border-box;justify-content:center;align-items:stretch}`],pt([C("#dropzone")],s.UUIInputFileElement.prototype,"_dropzone",2),pt([C("#dropzone")],s.UUIInputFileElement.prototype,"_dropZone",2),pt([l({type:String})],s.UUIInputFileElement.prototype,"accept",2),pt([l({type:Boolean})],s.UUIInputFileElement.prototype,"multiple",2),pt([g()],s.UUIInputFileElement.prototype,"_files",2),s.UUIInputFileElement=pt([b("uui-input-file")],s.UUIInputFileElement);var Hp=Object.defineProperty,ha=Object.getOwnPropertySymbols,Bp=Object.prototype.hasOwnProperty,Rp=Object.prototype.propertyIsEnumerable,da=(i,e,t)=>e in i?Hp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,pa=(i,e)=>{for(var t in e||(e={}))Bp.call(e,t)&&da(i,t,e[t]);if(ha)for(var t of ha(e))Rp.call(e,t)&&da(i,t,e[t]);return i};let Re=class extends P{constructor(e,t={}){super(e,pa(pa({},{bubbles:!0}),t))}};Re.CHANGE="change",Re.INPUT="input";var Fp=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,T=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gp(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fp(e,t,o),o};s.UUIInputElement=class extends ee(J("",m)){constructor(){super(),this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="",this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&String(this._value).length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&String(this._value).length>this.maxlength)}get type(){return this._type}set type(e){this._type=e}firstUpdated(e){super.firstUpdated(e),this.addFormControlElement(this._input)}_onKeypress(e){this.type!=="color"&&e.key=="Enter"&&this.submit()}blur(){this._input.blur()}focus(){this._input.focus()}select(){this._input.select()}getFormElement(){return this._input}onInput(e){e.stopPropagation(),this.value=e.target.value,this.dispatchEvent(new Re(Re.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Re(Re.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} ${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()} ${this.renderAppend()}`}renderInputWithAutoWidth(){return u`<div id="control">${this.renderInput()}${this.renderAutoWidthBackground()}</div>`}renderInput(){return u`<input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" pattern="${I(this.pattern)}" min="${I(this.min)}" max="${I(this.max)}" step="${I(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${I(this.autocomplete)}" placeholder="${I(this.placeholder)}" aria-label="${I(this.label)}" inputmode="${I(this.inputMode)}" ?disabled="${this.disabled}" ?autofocus="${this.autofocus}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">`}renderAutoWidthBackground(){return u`<div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return u`${this.value.length>0?this.value:this.placeholder}`}},s.UUIInputElement.formAssociated=!0,s.UUIInputElement.styles=[p`:host{position:relative;display:inline-flex;align-items:stretch;height:var(--uui-size-11,33px);text-align:left;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-color-surface,#fff));border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));--uui-button-height:100%;--auto-width-text-margin-right:0;--auto-width-text-margin-left:0}#control{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center}#auto{border:0 1px solid transparent;visibility:hidden;white-space:pre;z-index:-1;height:0;padding:0 var(--uui-size-space-3,9px);margin:0 var(--auto-width-text-margin-right) 0 var(--auto-width-text-margin-left)}:host([auto-width]) #input{width:10px;min-width:100%}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-color-border-standalone,#c2c2c2))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input{-webkit-text-fill-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([readonly]){background-color:var(--uui-input-background-color-readonly,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-color-danger,#d42054)}input{font-family:inherit;padding:var(--uui-size-1,3px) var(--uui-size-space-3,9px);font-size:inherit;color:inherit;border-radius:0;box-sizing:border-box;border:none;background:0 0;width:100%;text-align:inherit;outline:0}input::placeholder{transition:opacity 120ms}input[type=password]::-ms-reveal{display:none}:host(:not([readonly])) input:focus::placeholder{opacity:0}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input){height:100%;--uui-input-border-width:0}`],T([l()],s.UUIInputElement.prototype,"min",2),T([l({type:Number})],s.UUIInputElement.prototype,"minlength",2),T([l({type:String,attribute:"minlength-message"})],s.UUIInputElement.prototype,"minlengthMessage",2),T([l()],s.UUIInputElement.prototype,"max",2),T([l({type:Number})],s.UUIInputElement.prototype,"maxlength",2),T([l({type:String,attribute:"maxlength-message"})],s.UUIInputElement.prototype,"maxlengthMessage",2),T([l({type:Number})],s.UUIInputElement.prototype,"step",2),T([l({type:Boolean,reflect:!0})],s.UUIInputElement.prototype,"disabled",2),T([l({type:Boolean,reflect:!0})],s.UUIInputElement.prototype,"readonly",2),T([l()],s.UUIInputElement.prototype,"placeholder",2),T([l()],s.UUIInputElement.prototype,"autocomplete",2),T([l({type:Boolean,reflect:!0,attribute:"auto-width"})],s.UUIInputElement.prototype,"autoWidth",2),T([l({type:String})],s.UUIInputElement.prototype,"type",1),T([l({type:String})],s.UUIInputElement.prototype,"pattern",2),T([l({type:String})],s.UUIInputElement.prototype,"inputMode",2),T([C("#input")],s.UUIInputElement.prototype,"_input",2),s.UUIInputElement=T([b("uui-input")],s.UUIInputElement);var qp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,ba=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wp(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qp(e,t,o),o};s.UUIInputLockElement=class extends s.UUIInputElement{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),w(this,"uui-icon"),w(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${Xc.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${Qc.strings[0]}"></uui-icon>`}renderPrepend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onLockToggle}" compact="compact" id="lock" label="${this.locked?"Unlock input":"Lock input"}">${this.renderIcon()}</uui-button>`}},s.UUIInputLockElement.styles=[...s.UUIInputElement.styles,p`#lock{height:100%;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.55}`],ba([l({type:Boolean,reflect:!0})],s.UUIInputLockElement.prototype,"locked",2),s.UUIInputLockElement=ba([b("uui-input-lock")],s.UUIInputLockElement);var Kp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,So=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xp(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Kp(e,t,o),o};s.UUIInputPasswordElement=class extends s.UUIInputElement{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(e){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),w(this,"uui-icon"),w(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${Zc.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${Jc.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},s.UUIInputPasswordElement.styles=[...s.UUIInputElement.styles,p`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],So([g()],s.UUIInputPasswordElement.prototype,"passwordType",2),So([l()],s.UUIInputPasswordElement.prototype,"type",1),s.UUIInputPasswordElement=So([b("uui-input-password")],s.UUIInputPasswordElement);var Yp=Object.defineProperty,Zp=Object.getOwnPropertyDescriptor,Qp=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zp(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yp(e,t,o),o};s.UUIKeyboardShortcutElement=class extends m{render(){return u`<slot></slot>`}},s.UUIKeyboardShortcutElement.styles=[p`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px);color:var(--uui-color-text,#060606)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],s.UUIKeyboardShortcutElement=Qp([b("uui-keyboard-shortcut")],s.UUIKeyboardShortcutElement);var Jp=Object.defineProperty,e0=Object.getOwnPropertyDescriptor,t0=(i,e,t,r)=>{for(var o=r>1?void 0:r?e0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jp(e,t,o),o};s.UUIKeyElement=class extends m{render(){return u`<slot></slot>`}},s.UUIKeyElement.styles=[p`:host{background:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);color:var(--uui-color-text,#060606);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],s.UUIKeyElement=t0([b("uui-key")],s.UUIKeyElement);var i0=Object.defineProperty,o0=Object.getOwnPropertyDescriptor,fi=(i,e,t,r)=>{for(var o=r>1?void 0:r?o0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&i0(e,t,o),o};s.UUILabelElement=class extends m{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const e=this.getForElement();e&&(e.focus(),e.click())}getForElement(){if(typeof this.for=="string"){const e=this.getRootNode();return e?.getElementById(this.for)||null}return this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},s.UUILabelElement.styles=[p`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],fi([l({type:Boolean,reflect:!0})],s.UUILabelElement.prototype,"disabled",2),fi([l({reflect:!0,attribute:!0})],s.UUILabelElement.prototype,"for",2),fi([l({type:Boolean,reflect:!0})],s.UUILabelElement.prototype,"required",2),s.UUILabelElement=fi([b("uui-label")],s.UUILabelElement);var r0=Object.defineProperty,n0=Object.getOwnPropertyDescriptor,Oo=(i,e,t,r)=>{for(var o=r>1?void 0:r?n0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&r0(e,t,o),o};const s0=(i,e,t)=>Math.min(Math.max(i,e),t);s.UUILoaderBarElement=class extends m{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=s0(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}render(){return u`${this.progress?u`<div id="bar" style="max-width:${this.progress.toString()}"></div>`:""}<div id="bar-anim" class="${this.progress?"":"animate"}" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div>`}},s.UUILoaderBarElement.styles=[p`:host{position:relative;display:block;width:100%;height:4px;overflow:hidden;color:var(--uui-color-default,#1b264f)}#bar,#bar-anim,#bar-background{position:absolute;inset:0;height:100%}#bar,#bar-background{background:currentColor}#bar{transition:max-width 120ms ease}#bar-background{opacity:.3}#bar-anim{transform:scaleX(.4);animation:bar-loading 1s infinite linear;background:linear-gradient(-90deg,#fff 0,#fff 25%,transparent 100%)}#bar-anim.animate{background:linear-gradient(-90deg,currentColor 0,currentColor 25%,transparent 100%)}@keyframes bar-loading{0%{transform-origin:-175% 0}100%{transform-origin:175% 0}}`],Oo([l({type:Number})],s.UUILoaderBarElement.prototype,"progress",1),Oo([l({type:Number})],s.UUILoaderBarElement.prototype,"animationDuration",1),s.UUILoaderBarElement=Oo([b("uui-loader-bar")],s.UUILoaderBarElement);var a0=Object.defineProperty,l0=Object.getOwnPropertyDescriptor,zo=(i,e,t,r)=>{for(var o=r>1?void 0:r?l0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&a0(e,t,o),o};s.UUILoaderCircleElement=class extends m{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const e=this.clientHeight>=30;this._isLarge!=e&&(this._isLarge=e,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?u`<span id="progress-display">${this.progress}</span>`:""}render(){return u`<svg id="spinner" class="${this.progress?"":"animate"}" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="bg" cx="50%" cy="50%" r="16"/><g><circle id="circle" cx="50%" cy="50%" r="16" style="${ie(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},s.UUILoaderCircleElement.styles=[p`:host{vertical-align:middle;line-height:0;overflow:hidden;display:inline-flex;justify-content:center;align-items:center;position:relative;width:1em;height:1em;color:var(--uui-color-default,#1b264f)}#spinner{width:100%;height:100%}#spinner g{transform-origin:50% 50%;animation:18s linear infinite spinner-animation}#spinner.animate g{animation:.8s linear infinite spinner-animation}@keyframes spinner-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}#spinner.animate #circle{animation:1.4s ease-in infinite circle-animation}@keyframes circle-animation{0%{stroke-dashoffset:-55}38%{stroke-dashoffset:-88}100%{stroke-dashoffset:-55}}svg circle{fill:transparent;stroke:currentColor;stroke-width:6px}#bg{opacity:.5}#circle{stroke-linecap:round;stroke-dasharray:0 0;transform-origin:50% 50%;transform:rotate(-90deg);transition:stroke-dasharray 120ms ease}#progress-display{position:absolute;left:0;top:50%;right:0;stroke:currentColor;transform:translateY(-50%);font-size:.3em;font-weight:700;text-align:center;padding-top:.09em}`],zo([l({type:Number})],s.UUILoaderCircleElement.prototype,"progress",2),zo([l({type:Boolean,reflect:!0,attribute:"show-progress"})],s.UUILoaderCircleElement.prototype,"showProgress",2),s.UUILoaderCircleElement=zo([b("uui-loader-circle")],s.UUILoaderCircleElement);var u0=Object.defineProperty,c0=Object.getOwnPropertyDescriptor,h0=(i,e,t,r)=>{for(var o=r>1?void 0:r?c0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&u0(e,t,o),o};s.UUILoaderElement=class extends m{render(){return u`<div></div><div></div><div></div>`}},s.UUILoaderElement.styles=[p`:host{color:var(--uui-color-default,#1b264f)}div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){animation-delay:0s}div:nth-child(2n){animation-delay:.15s}div:nth-child(3n){animation-delay:.3s}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],s.UUILoaderElement=h0([b("uui-loader")],s.UUILoaderElement);/**
|
|
478
|
+
*/class xo extends st{constructor(e){if(super(e),this.et=U,e.type!==Z.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===U||e==null)return this.ft=void 0,this.et=e;if(e===V)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}xo.directiveName="unsafeHTML",xo.resultType=1;const ko=at(xo);var Qd=Object.defineProperty,ns=Object.getOwnPropertySymbols,Jd=Object.prototype.hasOwnProperty,ep=Object.prototype.propertyIsEnumerable,as=(i,e,t)=>e in i?Qd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ss=(i,e)=>{for(var t in e||(e={}))Jd.call(e,t)&&as(i,t,e[t]);if(ns)for(var t of ns(e))ep.call(e,t)&&as(i,t,e[t]);return i};let dt=class extends z{constructor(e,t={}){super(e,ss(ss({},{bubbles:!0,composed:!0}),t)),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};dt.ICON_REQUEST="icon-request";var tp=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,Be=(i,e,t,r)=>{for(var o=r>1?void 0:r?ip(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&tp(e,t,o),o};a.UUIIconElement=class extends m{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.label="",this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(e){this._name=e,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const e=new dt(dt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(e),e.icon!==null?(this._retrievedNameIcon=!0,e.icon.then(t=>{this._useFallback=!1,this._nameSvg=t})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon(),typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:ko(this.fallback):this._nameSvg!==null?ko(this._nameSvg):this.svg!==null?ko(this.svg):u`<slot></slot>`}},a.UUIIconElement.styles=[p`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}::slotted(svg),:host svg{fill:var(--uui-icon-color,currentColor)}:host-context(div[slot=prepend]){margin-left:var(--uui-size-2,6px)}:host-context(div[slot=append]){margin-right:var(--uui-size-2,6px)}`],Be([g()],a.UUIIconElement.prototype,"_nameSvg",2),Be([l()],a.UUIIconElement.prototype,"label",2),Be([l()],a.UUIIconElement.prototype,"name",1),Be([l({attribute:!1})],a.UUIIconElement.prototype,"svg",2),Be([l({attribute:!1})],a.UUIIconElement.prototype,"fallback",2),Be([g()],a.UUIIconElement.prototype,"_useFallback",2),a.UUIIconElement=Be([b("uui-icon")],a.UUIIconElement);let Io=class{constructor(e){this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}},Co=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(dt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(dt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new Io(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Io}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var op=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,ls=(i,e,t,r)=>{for(var o=r>1?void 0:r?rp(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&op(e,t,o),o};a.UUIIconRegistryElement=class extends m{constructor(){super(),this._icons={},this._registry=new Co,this._registry.attach(this)}get icons(){return this._icons}set icons(e){this._icons=e,this._registry&&Object.entries(this._icons).forEach(([t,r])=>this._registry.defineIcon(t,r))}get registry(){return this._registry}set registry(e){this.registry&&this.registry.detach(this),e.attach(this),this._registry=e}render(){return u`<slot></slot>`}},ls([l({attribute:!1})],a.UUIIconRegistryElement.prototype,"_icons",2),a.UUIIconRegistryElement=ls([b("uui-icon-registry")],a.UUIIconRegistryElement);const np=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg>`,ap=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M255.399 66.934L36.38 444.893h438.036L255.399 66.934zm22.094 331.988h-46.29v-44.743h46.29v44.743zm-11.458-63.166h-23.068l-12.849-106.419v-57.846h48.458v57.846l-12.541 106.419z"/></svg>`,sp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M127.286 449.816c-21.564.006-43.317-8.494-59.885-25.062-16.578-16.575-25.083-38.336-25.079-59.897-.029-20.296 7.623-40.755 23.034-56.14l3.539-3.539 212.559-212.57c20.227-20.255 47.082-30.304 73.852-30.267 28.454-.012 57.219 11.208 79.179 33.159 21.937 21.949 33.153 50.698 33.147 79.151.028 26.779-10.016 53.627-30.268 73.865l-178.45 178.453-13.28 13.277-26.56-26.559 191.738-191.733c12.842-12.871 19.229-29.708 19.259-47.303-.004-18.645-7.323-37.759-22.152-52.592-14.834-14.838-33.958-22.152-52.613-22.165-17.588.034-34.423 6.418-47.284 19.266L95.447 331.734l-3.536 3.537c-8.011 8.031-11.994 18.482-12.029 29.585.014 11.761 4.614 23.877 14.079 33.345 9.455 9.446 21.562 14.043 33.326 14.056 11.102-.034 21.551-4.014 29.587-12.026l150.412-150.404 12.596-12.595c3.018-3.04 4.521-6.906 4.549-11.331 0-4.666-1.817-9.57-5.722-13.476-3.914-3.916-8.819-5.726-13.48-5.739-4.425.038-8.283 1.542-11.328 4.564L155.27 349.882l-26.561-26.56L267.33 184.703c10.408-10.44 24.289-15.604 37.897-15.57 14.468-.012 29.01 5.704 40.049 16.739 11.007 11.025 16.72 25.554 16.72 40.029.029 13.599-5.129 27.479-15.559 37.89l-12.601 12.595-150.41 150.41c-15.365 15.377-35.768 23.025-56.022 23.021l-.118-.001z"/></svg>`,lp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M475.88 151.615c-.583-.961-10.257-17.833-29.675-35.154-19.305-17.239-49.226-35.216-88.641-35.21-39.424-.02-69.047 18.022-87.958 35.329a162.852 162.852 0 0 0-14.814 15.459 167.873 167.873 0 0 0-15.325-15.578c-19.302-17.239-49.225-35.216-88.635-35.21-39.428-.02-69.049 18.022-87.962 35.329-19.041 17.4-28.3 34.322-28.873 35.328l-1.991 7.796v254.56l30.49 7.78.066.039c.423-.818 8.621-14.927 23.664-28.167 15.169-13.298 36.324-25.537 64.605-25.557 29.166.006 51.354 13.121 66.996 26.975a134.425 134.425 0 0 1 17.578 19.031 110.554 110.554 0 0 1 4.313 6.109 52.672 52.672 0 0 1 1.176 1.876l.008.006.006-.002c2.808 4.888 8.066 8.192 14.113 8.192 6.155 0 11.507-3.421 14.271-8.464h.002l.025-.049.008-.014c.617-1.129 8.778-15.029 23.632-28.104 15.169-13.298 36.327-25.537 64.603-25.557 29.178.006 51.36 13.121 67.002 26.975 7.752 6.894 13.677 13.88 17.576 19.031a110.974 110.974 0 0 1 4.312 6.109c.463.707.792 1.241.984 1.562.092.155.163.263.192.314l.004.006.029-.012 30.37-8.081v-254.56l-2.151-8.087zM150.832 335.806h-.062c-38.245 0-67.258 16.996-86.213 33.819V164.279c3.311-5.068 10.654-15.229 21.67-24.919 15.169-13.31 36.324-25.539 64.605-25.559 29.166 0 51.354 13.122 66.996 26.974a134.046 134.046 0 0 1 17.578 19.03 108.111 108.111 0 0 1 3.338 4.655v205.933c-19.321-17.044-48.976-34.587-87.912-34.587zm294.652 34.57c-19.324-17.04-48.99-34.57-87.92-34.57-38.292-.018-67.307 17.006-86.275 33.849V164.289c3.305-5.058 10.639-15.217 21.673-24.929 15.169-13.31 36.327-25.539 64.603-25.559 29.178 0 51.36 13.122 67.002 26.974 7.752 6.891 13.677 13.875 17.576 19.03a110.27 110.27 0 0 1 3.342 4.651v205.92z"/></svg>`,up=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M342.391 352.428h-44.879v44.865h44.879v-44.865zm-63.234-120.071h-44.849v44.853h44.849v-44.853zm63.234 60.034h-44.879v44.859h44.879v-44.859zm63.174-60.034h-44.854v44.853h44.854v-44.853zm-126.408 60.034h-44.849v44.859h44.849v-44.859zm63.234-60.034h-44.879v44.853h44.879v-44.853zm63.174 60.034h-44.854v44.859h44.854v-44.859zm-252.803 60.037h-44.856v44.865h44.856v-44.865zm0-60.037h-44.856v44.859h44.856v-44.859zM394.024 74.208v19.691c7.737 6.847 12.642 16.825 12.642 27.969 0 20.634-16.732 37.367-37.369 37.367-20.642 0-37.367-16.733-37.367-37.367 0-11.147 4.903-21.124 12.643-27.969V74.208H169.97v19.691c7.739 6.847 12.643 16.825 12.643 27.969 0 20.634-16.732 37.367-37.369 37.367-20.64 0-37.367-16.733-37.367-37.367 0-11.147 4.904-21.124 12.642-27.969V74.208h-83.27v397.644h436.668V74.208h-79.893zm40.011 357.759H77.131V183.544h356.904v248.423zm-218.047-199.61h-44.881v44.853h44.881v-44.853zm0 120.071h-44.881v44.865h44.881v-44.865zm63.169 0h-44.849v44.865h44.849v-44.865zm-63.169-60.037h-44.881v44.859h44.881v-44.859zM145.245 143.64c10.273 0 18.603-8.326 18.603-18.599V58.035c0-10.267-8.329-18.6-18.603-18.6-10.274 0-18.602 8.333-18.602 18.6v67.006c0 10.272 8.328 18.599 18.602 18.599zm224.054 0c10.272 0 18.601-8.326 18.601-18.599V58.035c0-10.267-8.328-18.6-18.601-18.6-10.274 0-18.604 8.333-18.604 18.6v67.006c0 10.272 8.329 18.599 18.604 18.599z"/></svg>`,cp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,hp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M380.295 95.092h-68.479a54.17 54.17 0 00.097-3.321c0-30.805-24.948-55.743-55.722-55.743-30.803 0-55.756 24.938-55.756 55.743 0 1.112.065 2.208.098 3.321h-68.446v57.766h248.208V95.092zm-124.104 21.76c-13.865-.033-25.049-11.232-25.079-25.081.03-13.862 11.214-25.081 25.079-25.1 13.834.019 25.083 11.237 25.083 25.1 0 13.848-11.249 25.047-25.083 25.081zm149.053 13.787v48.676H107.172v-48.676H79.537v345.078h353.307V130.639h-27.6z"/></svg>`,dp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M38.299 255.395l137.255-137.248 46.782 46.789-90.458 90.459 90.458 90.46-46.782 46.792L38.299 255.395zm248.467 90.46l90.466-90.46-72.028-72.026-18.431-18.433 46.788-46.791 18.436 18.438L470.81 255.395 333.561 392.647l-46.795-46.792z"/></svg>`,pp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.5 78.244l-26.472-26.473c-16.867-16.868-44.216-16.865-61.083.003l-61.466 61.468-29.702-29.699-58.764 58.763 24.501 24.499L79.748 334.573C68.761 345.557 62.6 359.972 61.767 374.81l-9.766 9.764c-20.867 20.881-20.863 54.838.002 75.704 10.106 10.108 23.548 15.679 37.85 15.679 14.297 0 27.733-5.568 37.847-15.67l9.758-9.765c15.211-.821 29.394-7.139 40.248-17.99l167.771-167.767 24.493 24.495 58.765-58.764-29.698-29.699 61.465-61.466c16.87-16.869 16.87-44.218-.002-61.087zM150.574 405.398a23.298 23.298 0 01-16.532 6.846c-3.501 0-7.007-.782-10.231-2.343v.007l-23.242 23.236a15.092 15.092 0 01-10.716 4.439 15.1 15.1 0 01-10.715-4.439c-5.919-5.922-5.919-15.516-.002-21.436l23.233-23.238.008-.004c-4.226-8.725-2.741-19.518 4.503-26.761l167.769-167.768 43.695 43.693-167.77 167.768z"></path></svg>`,bp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M243.47 64.86l-7.335-7.333H36.725V474.23h298.07V156.187l-7.332-7.335L243.47 64.86zm66.287 384.329H61.761V82.566h141.615c37.203 0 19.276 88.18 19.276 88.18s86-20.9 87.104 18.53v259.913zm157.051-330.866l-81.266-81.268H258.938l25.043 25.038h71.481c.063 0 .12.01.185.01-.006.286-.023.547-.023.837 11.174 0 16.69 9.045 19.118 20.95 4.358 22.959-2.312 55.826-2.312 55.826s.137-.031.341-.082c-.114.602-.181.933-.181.933s67.129-16.325 75.793 10.732c.077.294.161.585.225.887.083.302.14.612.207.921.154.928.26 1.889.287 2.904v228.807h-87.998l.002 25.037h113.037V125.66l-7.335-7.337z"/></svg>`,mp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,vp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg>`,gp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.3,297.9v92.3H103.9v-92.3H73.2v122.9H439V297.9H408.3z M374.2,189.1h-77.7V90.8h-82.8v98.3h-77.6l119,144.2L374.2,189.1L374.2,189.1z"/></svg>`,fp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M412.656 38.477l-49.973 49.975 58.761 58.76 49.976-49.98-58.764-58.755zM177.421 338.155l-15.932-15.935 190.923-190.928-16.286-16.283L85.215 365.922l.186.185-47.919 106.778 106.309-48.383.182.182.482-.482.006-.003 250.424-250.432-26.537-26.537-190.927 190.925zm-39.26 59.052l-46.369 21.102 20.9-46.572 23.388-23.387 3.367 22.301 22.097 3.164-23.383 23.392z"/></svg>`,yp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.908 86.358c-55.975-26.379-122.761-2.379-149.132 53.615-1.831 3.885-3.421 8.767-4.813 14.428-1.391-5.661-2.984-10.543-4.814-14.428-26.373-55.994-93.143-79.994-149.135-53.615-55.959 26.371-79.969 93.122-53.597 149.113 26.369 55.989 207.502 216.478 207.502 216.478s.018-.203.042-.515l.043.515S436.139 291.46 462.506 235.471c26.373-55.991 2.397-122.742-53.598-149.113z"/></svg>`,_p=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.211 169.501v-.316H52.564v.328c-7.956 1.548-13.959 8.547-13.959 16.955 0 0 5.683 86.463 6.726 117.611 1.045 31.147 3.844 114.728 3.844 114.728 0 9.544 1.973 17.281 11.514 17.281h388.458c9.543 0 11.514-7.737 11.514-17.281 0 0 2.804-83.58 3.845-114.728 1.044-31.147 6.727-117.611 6.727-117.611-.002-8.433-6.036-15.442-14.022-16.967zm0-42.313c0-8.98-7.277-16.256-16.258-16.256H235.305c-6.43-.161-11.384-11.842-11.384-16.311l.003-1.902c0-9.546-7.737-17.28-17.28-17.28H97.168c-9.544 0-17.281 7.734-17.281 17.28l.004 1.902c0 4.5-5.021 16.322-11.517 16.322h.155c-8.844.157-15.965 7.364-15.965 16.244v11.223h404.647v-11.222z"/></svg>`,wp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z"/></svg>`,$p=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 38.7C136 38.7 38.7 136 38.7 256S136 473.3 256 473.3 473.3 376 473.3 256 376 38.7 256 38.7zm18.1 326h-36.2V237.9h36.2v126.8zM256 192.6c-15 0-27.2-12.2-27.2-27.2s12.2-27.2 27.2-27.2 27.2 12.2 27.2 27.2-12.2 27.2-27.2 27.2z"/></svg>`,Up=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M270.508 338.006c-27.316.03-54.696-10.671-75.323-31.318l-3.266-3.266 46.784-46.799 3.271 3.267c8.054 8.036 18.233 11.915 28.533 11.942 10.79-.043 21.088-3.93 29.123-11.942l76.701-76.701c8.024-8.05 11.909-18.306 11.945-28.895-.036-10.495-3.915-20.722-11.936-28.769l-3.268-3.266c-8.049-8.025-18.283-11.903-28.827-11.943-10.55.04-20.785 3.918-28.835 11.943l-31.537 31.543c-12.916 12.922-33.867 12.922-46.788 0-12.924-12.919-12.924-33.867-.005-46.789l31.542-31.544c20.794-20.821 48.361-31.36 75.623-31.327 27.256-.034 54.82 10.505 75.618 31.327l3.266 3.263a106.693 106.693 0 0131.319 75.561c.038 27.25-10.474 54.848-31.325 75.684l-76.704 76.7c-20.915 20.941-48.588 31.328-75.743 31.328l-.168.001zM163.966 468.393c-27.308.027-54.694-10.67-75.322-31.324l-3.264-3.26c-20.875-20.854-31.364-48.479-31.326-75.725-.033-27.27 10.556-54.782 31.326-75.518l76.704-76.707c20.794-20.821 48.361-31.366 75.623-31.327a106.798 106.798 0 0161.267 19.273 33.045 33.045 0 018.42 6.119l5.931 5.93 3.266 3.263h-.001l.001.003-46.781 46.798-.005-.006-3.266-3.266c-8.052-8.024-18.285-11.903-28.832-11.943-10.545.04-20.781 3.918-28.832 11.943l-76.711 76.712c-8.021 8.048-11.901 18.261-11.935 28.726.038 10.627 3.922 20.886 11.938 28.932l3.269 3.26c8.055 8.038 18.235 11.913 28.531 11.941 10.794-.043 21.092-3.928 29.13-11.941l33.051-33.051c12.923-12.915 33.872-12.915 46.788.006 12.921 12.917 12.921 33.863 0 46.787l-33.053 33.051c-20.914 20.938-48.592 31.324-75.745 31.324h-.172z"/></svg>`,Ep=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"/></svg>`,xp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M289.335 420.379V90.8h83.103v329.579h-83.103zm-152.737-.002V90.804h83.101v329.573h-83.101z"/></svg>`,kp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,Ip=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M397.727 256.048l-286.7 166.932V89.114z"/></svg>`,Cp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,zp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M470.704 407.906l-2.691-2.689.006-.002-107.514-107.523c14.938-25.733 23.616-55.565 23.82-87.451.626-97.615-77.99-177.243-175.599-177.857l-1.168-.002c-97.06.005-176.067 78.392-176.692 175.598-.618 97.609 77.999 177.236 175.597 177.859.389.002.766.004 1.155.004 32.442 0 62.846-8.79 88.998-24.075L404.035 469.2l.01-.01 2.686 2.686c8.125 8.124 21.293 8.117 29.414 0l34.56-34.554c8.115-8.117 8.121-21.293-.001-29.416zm-263.956-67.135c-72.589-.466-131.271-59.907-130.812-132.502C76.4 136.14 135.45 77.457 207.561 77.453l.88.002c35.167.22 68.144 14.124 92.851 39.148 24.705 25.025 38.188 58.178 37.962 93.352-.222 35.015-14.027 67.893-38.867 92.564-24.834 24.67-57.78 38.252-92.768 38.252h-.871z"/></svg>`,Pp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,Sp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M469.92 279.717v-48.898l-6.906-2.256-52.35-17.091-13.971-33.728 26.852-56.814-34.586-34.581-6.477 3.288-49.1 24.937-33.721-13.971-21.198-59.171h-48.899l-2.253 6.912-17.091 52.352-33.712 13.966-56.833-26.849-34.573 34.58 3.287 6.474 24.933 49.116-13.96 33.707-59.182 21.189v48.909l6.914 2.253 52.352 17.094 13.966 33.718-26.845 56.82 34.567 34.587 6.484-3.294 49.103-24.931 33.719 13.968 21.188 59.165h48.902l2.26-6.908 17.094-52.35 33.721-13.967 56.818 26.855 34.584-34.59-3.286-6.48-24.937-49.094 13.969-33.726 59.167-21.191zM255.054 324.78c-37.819 0-68.478-30.657-68.478-68.479 0-37.819 30.659-68.481 68.478-68.481 37.819 0 68.475 30.662 68.475 68.481 0 37.822-30.656 68.479-68.475 68.479z"/></svg>`,Op=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M88.871 297.086v-83.1h332.084v83.1H88.871z"/></svg>`,Ap=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M203.447 202.931l-54.568-54.566c27.503-27.173 65.183-43.913 106.927-43.913 42.13.014 79.972 16.983 107.622 44.577 27.594 27.648 44.561 65.492 44.578 107.629h66.177c-.024-120.624-97.761-218.361-218.376-218.386-59.897 0-114.277 24.203-153.724 63.295l-50.36-50.36.003 151.725h151.721zM363.991 363.67c-27.605 27.918-65.809 45.184-108.183 45.176-42.139-.008-79.978-16.981-107.623-44.574-27.601-27.645-44.565-65.482-44.582-107.614H37.436c.017 120.614 97.751 218.347 218.373 218.374 60.54-.008 115.433-24.73 154.979-64.562l48.997 49V311.423H311.742l52.249 52.247z"/></svg>`,Lp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"/></svg>`,jp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,Np=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M306.997 124.391c8.992 0 16.277-7.286 16.277-16.276V57.184c.002-8.989-7.285-16.276-16.277-16.276-8.983 0-16.271 7.287-16.273 16.276v50.932c0 8.989 7.29 16.278 16.273 16.275zm80.752 23.244l36.015-36.017c6.356-6.357 6.353-16.662 0-23.015-6.357-6.356-16.662-6.356-23.019 0l-36.013 36.014c-6.356 6.356-6.358 16.661 0 23.018 6.354 6.356 16.661 6.353 23.017 0zm-161.066 2.552c6.354 6.353 16.663 6.353 23.018 0 6.353-6.356 6.353-16.662 0-23.018l-36.018-36.018c-6.355-6.353-16.661-6.353-23.015 0-6.359 6.356-6.359 16.662 0 23.018l36.015 36.018zm159.5 113.463c-6.356-6.357-16.663-6.357-23.02 0-6.354 6.355-6.354 16.661 0 23.018l36.015 36.014c6.356 6.356 16.663 6.356 23.018 0 6.358-6.356 6.358-16.658 0-23.015l-36.013-36.017zm-70.019-131.061L37.625 411.125l58.761 58.76 278.541-278.533-58.763-58.763zm-65.195 99.172l67.606-67.608 24.787 24.788-67.606 67.608-24.787-24.788zm205.2-41.684h-50.934c-8.99 0-16.275 7.289-16.275 16.275-.004 8.985 7.285 16.275 16.275 16.275h50.934c8.988 0 16.273-7.29 16.273-16.275 0-8.99-7.285-16.275-16.273-16.275z"></path></svg>`,Tp=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;let us=class extends Co{constructor(){super(),this.defineIcon("add",np.strings[0]),this.defineIcon("alert",ap.strings[0]),this.defineIcon("attachment",sp.strings[0]),this.defineIcon("book-alt",lp.strings[0]),this.defineIcon("calendar",up.strings[0]),this.defineIcon("check",cp.strings[0]),this.defineIcon("clipboard",hp.strings[0]),this.defineIcon("code",dp.strings[0]),this.defineIcon("colorpicker",pp.strings[0]),this.defineIcon("copy",bp.strings[0]),this.defineIcon("delete",mp.strings[0]),this.defineIcon("document",vp.strings[0]),this.defineIcon("download",gp.strings[0]),this.defineIcon("edit",fp.strings[0]),this.defineIcon("favorite",yp.strings[0]),this.defineIcon("folder",_p.strings[0]),this.defineIcon("forbidden",wp.strings[0]),this.defineIcon("info",$p.strings[0]),this.defineIcon("link",Up.strings[0]),this.defineIcon("lock",Ep.strings[0]),this.defineIcon("pause",xp.strings[0]),this.defineIcon("picture",kp.strings[0]),this.defineIcon("play",Ip.strings[0]),this.defineIcon("remove",Cp.strings[0]),this.defineIcon("search",zp.strings[0]),this.defineIcon("see",Pp.strings[0]),this.defineIcon("settings",Sp.strings[0]),this.defineIcon("subtract",Op.strings[0]),this.defineIcon("sync",Ap.strings[0]),this.defineIcon("unlock",Lp.strings[0]),this.defineIcon("unsee",jp.strings[0]),this.defineIcon("wand",Np.strings[0]),this.defineIcon("wrong",Tp.strings[0])}};var Mp=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,Vp=(i,e,t,r)=>{for(var o=r>1?void 0:r?Dp(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Mp(e,t,o),o};a.UUIIconRegistryEssentialElement=class extends a.UUIIconRegistryElement{constructor(){super(),this.registry=new us}},a.UUIIconRegistryEssentialElement=Vp([b("uui-icon-registry-essential")],a.UUIIconRegistryEssentialElement);var Hp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bp(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Hp(e,t,o),o};a.UUIInputFileElement=class extends te(m){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=e=>{let t=[];for(const r of e)this.multiple?t.push(r):t=[r];this._files=t},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(e){if(super.value=e,e instanceof FormData){const t=this.multiple?e.getAll(this.name):[e.get(this.name)];this._updateFileWrappers(t);return}if(e instanceof File){this._updateFileWrappers([e]);return}}connectedCallback(){super.connectedCallback(),w(this,"uui-icon"),w(this,"uui-file-dropzone"),w(this,"uui-button"),w(this,"uui-action-bar"),w(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(e){e.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(e){const t=e.detail.files.filter(o=>o instanceof File||o.isFile);if(!this.multiple){const o=t[0],n=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=n;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,n),this._updateFileWrappers([n]);return}}let r=this.value;if(t.length>0&&!(this.value instanceof FormData)&&(r=new FormData),r instanceof FormData)for(const o of t){const n=o instanceof File;r.append(this.name,n?o:await this._getFile(o))}this.value=r}async _getFile(e){return await new Promise((t,r)=>e.file(t,r))}_removeFile(e){const t=this._files[e];if(this.value instanceof FormData){const r=this.value.getAll(this.name).filter(o=>o!==t);if(r.length===0)this.value="";else{this.value.delete(this.name);for(const o of r)this.value.append(this.name,o)}this._updateFileWrappers(r)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(e){e?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(e,t){return u`<uui-file-preview .file="${e}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(t)}" color="danger" label="${`Delete ${e.name}`}"><uui-icon name="delete" .fallback="${Yc.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${Eo(this._files,e=>e.name+e.size,(e,t)=>this._renderFileItem(e,t))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()} ${this._files.length===0||this.multiple?u`<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button>`:U}</div>`}},a.UUIInputFileElement.styles=[p`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-color-border,#d8d7d9)}#input{position:absolute;width:0;height:0;opacity:0;display:none}#files{display:grid;box-sizing:border-box;justify-items:center;width:100%;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:min-content;gap:16px;padding:16px;overflow:auto;max-height:100%}#dropzone{display:none;position:absolute;inset:0;z-index:10;justify-content:center;align-items:center}#add-button{width:150px;height:150px;display:flex;padding:16px;box-sizing:border-box;justify-content:center;align-items:stretch}`],pt([C("#dropzone")],a.UUIInputFileElement.prototype,"_dropzone",2),pt([C("#dropzone")],a.UUIInputFileElement.prototype,"_dropZone",2),pt([l({type:String})],a.UUIInputFileElement.prototype,"accept",2),pt([l({type:Boolean})],a.UUIInputFileElement.prototype,"multiple",2),pt([g()],a.UUIInputFileElement.prototype,"_files",2),a.UUIInputFileElement=pt([b("uui-input-file")],a.UUIInputFileElement);var Rp=Object.defineProperty,cs=Object.getOwnPropertySymbols,Fp=Object.prototype.hasOwnProperty,Gp=Object.prototype.propertyIsEnumerable,hs=(i,e,t)=>e in i?Rp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ds=(i,e)=>{for(var t in e||(e={}))Fp.call(e,t)&&hs(i,t,e[t]);if(cs)for(var t of cs(e))Gp.call(e,t)&&hs(i,t,e[t]);return i};let Re=class extends z{constructor(e,t={}){super(e,ds(ds({},{bubbles:!0}),t))}};Re.CHANGE="change",Re.INPUT="input";var qp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,T=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wp(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&qp(e,t,o),o};a.UUIInputElement=class extends te(ee("",m)){constructor(){super(),this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="",this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&String(this._value).length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&String(this._value).length>this.maxlength)}get type(){return this._type}set type(e){this._type=e}firstUpdated(e){super.firstUpdated(e),this.addFormControlElement(this._input)}_onKeypress(e){this.type!=="color"&&e.key=="Enter"&&this.submit()}blur(){this._input.blur()}focus(){this._input.focus()}select(){this._input.select()}getFormElement(){return this._input}onInput(e){e.stopPropagation(),this.value=e.target.value,this.dispatchEvent(new Re(Re.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Re(Re.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} ${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()} ${this.renderAppend()}`}renderInputWithAutoWidth(){return u`<div id="control">${this.renderInput()}${this.renderAutoWidthBackground()}</div>`}renderInput(){return u`<input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" pattern="${k(this.pattern)}" min="${k(this.min)}" max="${k(this.max)}" step="${k(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${k(this.autocomplete)}" placeholder="${k(this.placeholder)}" aria-label="${k(this.label)}" inputmode="${k(this.inputMode)}" ?disabled="${this.disabled}" ?autofocus="${this.autofocus}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">`}renderAutoWidthBackground(){return u`<div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return u`${this.value.length>0?this.value:this.placeholder}`}},a.UUIInputElement.formAssociated=!0,a.UUIInputElement.styles=[p`:host{position:relative;display:inline-flex;align-items:stretch;height:var(--uui-size-11,33px);text-align:left;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-color-surface,#fff));border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));--uui-button-height:100%;--auto-width-text-margin-right:0;--auto-width-text-margin-left:0}#control{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center}#auto{border:0 1px solid transparent;visibility:hidden;white-space:pre;z-index:-1;height:0;padding:0 var(--uui-size-space-3,9px);margin:0 var(--auto-width-text-margin-right) 0 var(--auto-width-text-margin-left)}:host([auto-width]) #input{width:10px;min-width:100%}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-color-border-standalone,#c2c2c2))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input{-webkit-text-fill-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([readonly]){background-color:var(--uui-input-background-color-readonly,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-color-danger,#d42054)}input{font-family:inherit;padding:var(--uui-size-1,3px) var(--uui-size-space-3,9px);font-size:inherit;color:inherit;border-radius:0;box-sizing:border-box;border:none;background:0 0;width:100%;text-align:inherit;outline:0}input::placeholder{transition:opacity 120ms}input[type=password]::-ms-reveal{display:none}:host(:not([readonly])) input:focus::placeholder{opacity:0}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input){height:100%;--uui-input-border-width:0}`],T([l()],a.UUIInputElement.prototype,"min",2),T([l({type:Number})],a.UUIInputElement.prototype,"minlength",2),T([l({type:String,attribute:"minlength-message"})],a.UUIInputElement.prototype,"minlengthMessage",2),T([l()],a.UUIInputElement.prototype,"max",2),T([l({type:Number})],a.UUIInputElement.prototype,"maxlength",2),T([l({type:String,attribute:"maxlength-message"})],a.UUIInputElement.prototype,"maxlengthMessage",2),T([l({type:Number})],a.UUIInputElement.prototype,"step",2),T([l({type:Boolean,reflect:!0})],a.UUIInputElement.prototype,"disabled",2),T([l({type:Boolean,reflect:!0})],a.UUIInputElement.prototype,"readonly",2),T([l()],a.UUIInputElement.prototype,"placeholder",2),T([l()],a.UUIInputElement.prototype,"autocomplete",2),T([l({type:Boolean,reflect:!0,attribute:"auto-width"})],a.UUIInputElement.prototype,"autoWidth",2),T([l({type:String})],a.UUIInputElement.prototype,"type",1),T([l({type:String})],a.UUIInputElement.prototype,"pattern",2),T([l({type:String})],a.UUIInputElement.prototype,"inputMode",2),T([C("#input")],a.UUIInputElement.prototype,"_input",2),a.UUIInputElement=T([b("uui-input")],a.UUIInputElement);var Kp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,ps=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xp(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Kp(e,t,o),o};a.UUIInputLockElement=class extends a.UUIInputElement{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),w(this,"uui-icon"),w(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${Zc.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${eh.strings[0]}"></uui-icon>`}renderPrepend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onLockToggle}" compact="compact" id="lock" label="${this.locked?"Unlock input":"Lock input"}">${this.renderIcon()}</uui-button>`}},a.UUIInputLockElement.styles=[...a.UUIInputElement.styles,p`#lock{height:100%;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.55}`],ps([l({type:Boolean,reflect:!0})],a.UUIInputLockElement.prototype,"locked",2),a.UUIInputLockElement=ps([b("uui-input-lock")],a.UUIInputLockElement);var Yp=Object.defineProperty,Zp=Object.getOwnPropertyDescriptor,zo=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zp(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Yp(e,t,o),o};a.UUIInputPasswordElement=class extends a.UUIInputElement{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(e){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),w(this,"uui-icon"),w(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${Jc.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${th.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},a.UUIInputPasswordElement.styles=[...a.UUIInputElement.styles,p`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],zo([g()],a.UUIInputPasswordElement.prototype,"passwordType",2),zo([l()],a.UUIInputPasswordElement.prototype,"type",1),a.UUIInputPasswordElement=zo([b("uui-input-password")],a.UUIInputPasswordElement);var Qp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,e0=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jp(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Qp(e,t,o),o};a.UUIKeyboardShortcutElement=class extends m{render(){return u`<slot></slot>`}},a.UUIKeyboardShortcutElement.styles=[p`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px);color:var(--uui-color-text,#060606)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],a.UUIKeyboardShortcutElement=e0([b("uui-keyboard-shortcut")],a.UUIKeyboardShortcutElement);var t0=Object.defineProperty,i0=Object.getOwnPropertyDescriptor,o0=(i,e,t,r)=>{for(var o=r>1?void 0:r?i0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&t0(e,t,o),o};a.UUIKeyElement=class extends m{render(){return u`<slot></slot>`}},a.UUIKeyElement.styles=[p`:host{background:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);color:var(--uui-color-text,#060606);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],a.UUIKeyElement=o0([b("uui-key")],a.UUIKeyElement);var r0=Object.defineProperty,n0=Object.getOwnPropertyDescriptor,gi=(i,e,t,r)=>{for(var o=r>1?void 0:r?n0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&r0(e,t,o),o};a.UUILabelElement=class extends m{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const e=this.getForElement();e&&(e.focus(),e.click())}getForElement(){if(typeof this.for=="string"){const e=this.getRootNode();return e?.getElementById(this.for)||null}return this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},a.UUILabelElement.styles=[p`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],gi([l({type:Boolean,reflect:!0})],a.UUILabelElement.prototype,"disabled",2),gi([l({reflect:!0,attribute:!0})],a.UUILabelElement.prototype,"for",2),gi([l({type:Boolean,reflect:!0})],a.UUILabelElement.prototype,"required",2),a.UUILabelElement=gi([b("uui-label")],a.UUILabelElement);var a0=Object.defineProperty,s0=Object.getOwnPropertyDescriptor,Po=(i,e,t,r)=>{for(var o=r>1?void 0:r?s0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&a0(e,t,o),o};const l0=(i,e,t)=>Math.min(Math.max(i,e),t);a.UUILoaderBarElement=class extends m{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=l0(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}render(){return u`${this.progress?u`<div id="bar" style="max-width:${this.progress.toString()}"></div>`:""}<div id="bar-anim" class="${this.progress?"":"animate"}" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div>`}},a.UUILoaderBarElement.styles=[p`:host{position:relative;display:block;width:100%;height:4px;overflow:hidden;color:var(--uui-color-default,#1b264f)}#bar,#bar-anim,#bar-background{position:absolute;inset:0;height:100%}#bar,#bar-background{background:currentColor}#bar{transition:max-width 120ms ease}#bar-background{opacity:.3}#bar-anim{transform:scaleX(.4);animation:bar-loading 1s infinite linear;background:linear-gradient(-90deg,#fff 0,#fff 25%,transparent 100%)}#bar-anim.animate{background:linear-gradient(-90deg,currentColor 0,currentColor 25%,transparent 100%)}@keyframes bar-loading{0%{transform-origin:-175% 0}100%{transform-origin:175% 0}}`],Po([l({type:Number})],a.UUILoaderBarElement.prototype,"progress",1),Po([l({type:Number})],a.UUILoaderBarElement.prototype,"animationDuration",1),a.UUILoaderBarElement=Po([b("uui-loader-bar")],a.UUILoaderBarElement);var u0=Object.defineProperty,c0=Object.getOwnPropertyDescriptor,So=(i,e,t,r)=>{for(var o=r>1?void 0:r?c0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&u0(e,t,o),o};a.UUILoaderCircleElement=class extends m{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const e=this.clientHeight>=30;this._isLarge!=e&&(this._isLarge=e,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?u`<span id="progress-display">${this.progress}</span>`:""}render(){return u`<svg id="spinner" class="${this.progress?"":"animate"}" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="bg" cx="50%" cy="50%" r="16"/><g><circle id="circle" cx="50%" cy="50%" r="16" style="${oe(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},a.UUILoaderCircleElement.styles=[p`:host{vertical-align:middle;line-height:0;overflow:hidden;display:inline-flex;justify-content:center;align-items:center;position:relative;width:1em;height:1em;color:var(--uui-color-default,#1b264f)}#spinner{width:100%;height:100%}#spinner g{transform-origin:50% 50%;animation:18s linear infinite spinner-animation}#spinner.animate g{animation:.8s linear infinite spinner-animation}@keyframes spinner-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}#spinner.animate #circle{animation:1.4s ease-in infinite circle-animation}@keyframes circle-animation{0%{stroke-dashoffset:-55}38%{stroke-dashoffset:-88}100%{stroke-dashoffset:-55}}svg circle{fill:transparent;stroke:currentColor;stroke-width:6px}#bg{opacity:.5}#circle{stroke-linecap:round;stroke-dasharray:0 0;transform-origin:50% 50%;transform:rotate(-90deg);transition:stroke-dasharray 120ms ease}#progress-display{position:absolute;left:0;top:50%;right:0;stroke:currentColor;transform:translateY(-50%);font-size:.3em;font-weight:700;text-align:center;padding-top:.09em}`],So([l({type:Number})],a.UUILoaderCircleElement.prototype,"progress",2),So([l({type:Boolean,reflect:!0,attribute:"show-progress"})],a.UUILoaderCircleElement.prototype,"showProgress",2),a.UUILoaderCircleElement=So([b("uui-loader-circle")],a.UUILoaderCircleElement);var h0=Object.defineProperty,d0=Object.getOwnPropertyDescriptor,p0=(i,e,t,r)=>{for(var o=r>1?void 0:r?d0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&h0(e,t,o),o};a.UUILoaderElement=class extends m{render(){return u`<div></div><div></div><div></div>`}},a.UUILoaderElement.styles=[p`:host{color:var(--uui-color-default,#1b264f)}div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){animation-delay:0s}div:nth-child(2n){animation-delay:.15s}div:nth-child(3n){animation-delay:.3s}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],a.UUILoaderElement=p0([b("uui-loader")],a.UUILoaderElement);/**
|
|
311
479
|
* @license
|
|
312
480
|
* Copyright 2017 Google LLC
|
|
313
481
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
314
|
-
*/const Tt=(i,e)=>{var t,r;const o=i._$AN;if(o===void 0)return!1;for(const n of o)(r=(t=n)._$AO)===null||r===void 0||r.call(t,e,!1),Tt(n,e);return!0},yi=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},ma=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),b0(e)}};function d0(i){this._$AN!==void 0?(yi(this),this._$AM=i,ma(this)):this._$AM=i}function p0(i,e=!1,t=0){const r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(r))for(let n=t;n<r.length;n++)Tt(r[n],!1),yi(r[n]);else r!=null&&(Tt(r,!1),yi(r));else Tt(this,i)}const b0=i=>{var e,t,r,o;i.type==Y.CHILD&&((e=(r=i)._$AP)!==null&&e!==void 0||(r._$AP=p0),(t=(o=i)._$AQ)!==null&&t!==void 0||(o._$AQ=d0))};let m0=class extends at{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),ma(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,o;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)===null||r===void 0||r.call(this):(o=this.disconnected)===null||o===void 0||o.call(this)),t&&(Tt(this,e),yi(this))}setValue(e){if(vs(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};const Ao=new WeakMap,Lo=st(class extends m0{render(i){return U}update(i,[e]){var t;const r=e!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.dt=(t=i.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=i.element)),U}ot(i){var e;if(typeof this.G=="function"){const t=(e=this.dt)!==null&&e!==void 0?e:globalThis;let r=Ao.get(t);r===void 0&&(r=new WeakMap,Ao.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.dt,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.dt,i)}else this.G.value=i}get rt(){var i,e,t;return typeof this.G=="function"?(e=Ao.get((i=this.dt)!==null&&i!==void 0?i:globalThis))===null||e===void 0?void 0:e.get(this.G):(t=this.G)===null||t===void 0?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});let ge=class extends P{};ge.SHOW_CHILDREN="show-children",ge.HIDE_CHILDREN="hide-children",ge.CLICK_LABEL="click-label";var v0=Object.defineProperty,g0=Object.getOwnPropertyDescriptor,fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?g0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&v0(e,t,o),o};s.UUIMenuItemElement=class extends Qt(it(St(J("label",m)))){constructor(){super(...arguments),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1,this._labelButtonChanged=e=>{this.selectableTarget=e||this},this._iconSlotChanged=e=>{this.iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const e=this.showChildren?ge.HIDE_CHILDREN:ge.SHOW_CHILDREN,t=new ge(e,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.showChildren=!this.showChildren)},this._onLabelClicked=()=>{const e=new ge(ge.CLICK_LABEL);this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),w(this,"uui-symbol-expand"),w(this,"uui-loader-bar")}_renderLabelInside(){return u`<slot name="icon" id="icon" style="${this.iconSlotHasContent?"":"display: none;"}" @slotchange="${this._iconSlotChanged}"></slot>${this.renderLabel()}<slot name="badge" id="badge"></slot>`}_renderLabelAsAnchor(){return this.disabled?u`<span id="label-button" ${Lo(this._labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${Lo(this._labelButtonChanged)} href="${I(this.href)}" target="${I(this.target||void 0)}" rel="${I(this.target==="_blank"?"noopener noreferrer":void 0)}" @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return u`<button id="label-button" ${Lo(this._labelButtonChanged)} @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</button>`}render(){return u`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?u`<button id="caret-button" @click="${this._onCaretClicked}"><uui-symbol-expand ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} ${this.href?this._renderLabelAsAnchor():this._renderLabelAsButton()}<div id="label-button-background"></div>${this.selectOnly===!1?u`<slot id="actions-container" name="actions"></slot>`:""} ${this.loading?u`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?u`<slot></slot>`:""}`}},s.UUIMenuItemElement.styles=[p`:host{box-sizing:border-box;display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:var(--uui-size-8,24px) 1fr;grid-template-rows:1fr;white-space:nowrap}:host(:not([active],[selected],[disabled])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled],[select-mode=highlight])) #menu-item #label-button:hover~#label-button-background{background-color:var(--uui-color-surface-emphasis,#fafafa)}:host(:not([active],[selected])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled])) #menu-item #label-button:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([active]) #caret-button,:host([active]) #label-button{color:var(--uui-color-current-contrast,#1b264f)}:host([active]) #label-button-background{background-color:var(--uui-color-current,#f5c1bc)}:host([active]) #caret-button:hover,:host([active]) #label-button:hover~#label-button-background{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([disabled]) #menu-item{color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button,:host([selected]:not([select-mode=highlight],[disabled])) #label-button{color:var(--uui-color-selected-contrast,#fff)}:host([selected]:not([select-mode=highlight],[disabled])) #label-button-background{background-color:var(--uui-color-selected,#3544b1)}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button:hover,:host([selected]:not([select-mode=highlight],[disabled])) #label-button:hover~#label-button-background{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([select-mode=highlight]:not([disabled],[active],[selectable])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface-emphasis,#fafafa)}:host([select-mode=highlight][active]:not([disabled])) #menu-item #label-button-background{border-radius:var(--uui-border-radius,3px)}:host([select-mode=highlight][active][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #caret-button,:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button{color:var(--uui-color-interactive,#1b264f)}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #label-button:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([selected][selectable][select-mode=highlight]:not([active])) #menu-item #caret-button:hover{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface-emphasis,#fafafa);color:var(--uui-color-interactive-emphasis,#3544b1)}:host([select-mode=highlight]:not([disabled])) #menu-item #label-button-background::after{border-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px;border:2px solid var(--uui-color-selected,#3544b1);opacity:0}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #caret-button:hover::after{border-top-left-radius:var(--uui-border-radius,3px);border-bottom-left-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px 0 1px 1px;border:2px solid var(--uui-color-selected,#3544b1);border-right:none}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button-background::after{opacity:1}:host([select-mode=highlight][selectable]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.33}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.66}:host([disabled]) #label-button{cursor:default}button{display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;padding:0;text-align:left;border:none;color:inherit;background-color:transparent;cursor:pointer;min-height:var(--uui-size-12,36px);z-index:1}#label-button{position:relative;flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button+#label-button{padding-left:0}#caret-button{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--uui-color-interactive,#1b264f)}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0}#actions-container{opacity:0;transition:opacity 120ms;grid-column-start:3}:host(:not([disabled])) #menu-item:focus #actions-container,:host(:not([disabled])) #menu-item:focus-within #actions-container,:host(:not([disabled])) #menu-item:hover #actions-container{opacity:1}#loader{position:absolute;width:100%;bottom:0}#icon{display:inline-flex;font-size:16px;margin-right:var(--uui-size-2,6px)}#badge{font-size:12px;--uui-badge-position:relative;--uui-badge-position:auto;display:block;margin-left:6px}:host([select-mode=highlight]) #label-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #label-button:focus-visible::after{content:'';border-radius:calc(var(--uui-border-radius,3px) - 1px);position:absolute;inset:3px 3px 3px -5px;border:2px solid var(--uui-color-focus,#3879ff)}:host([select-mode=highlight]) #caret-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #caret-button:focus-visible::after{content:'';position:absolute;inset:3px;border-radius:calc(var(--uui-border-radius,3px) - 1px);border:2px solid var(--uui-color-focus,#3879ff)}slot:not([name]){position:relative;display:block;width:100%}slot:not([name]){--uui-menu-item-indent:var(--uui-menu-item-child-indent)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-base-unit) * 4);margin-right:var(--uui-size-base-unit)}`],fe([l({type:Boolean,reflect:!0})],s.UUIMenuItemElement.prototype,"disabled",2),fe([l({type:Boolean,reflect:!0,attribute:"show-children"})],s.UUIMenuItemElement.prototype,"showChildren",2),fe([l({type:Boolean,attribute:"has-children"})],s.UUIMenuItemElement.prototype,"hasChildren",2),fe([l({type:Boolean,attribute:"loading"})],s.UUIMenuItemElement.prototype,"loading",2),fe([l({type:String})],s.UUIMenuItemElement.prototype,"href",2),fe([l({type:String})],s.UUIMenuItemElement.prototype,"target",2),fe([l({type:String,attribute:"select-mode",reflect:!0})],s.UUIMenuItemElement.prototype,"selectMode",2),fe([g()],s.UUIMenuItemElement.prototype,"iconSlotHasContent",2),s.UUIMenuItemElement=fe([b("uui-menu-item")],s.UUIMenuItemElement);var f0=Object.defineProperty,y0=Object.getOwnPropertyDescriptor,bt=(i,e,t,r)=>{for(var o=r>1?void 0:r?y0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&f0(e,t,o),o};let R=class extends m{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent("open",{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent("close",{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._closeModal()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){var e,t;this.isOpen=!0,(e=this._dialogElement)==null||e.showModal(),(t=this._dialogElement)==null||t.addEventListener("cancel",this.close)}_closeModal(){var e;this.isClosing=!0,this.isOpen=!1,(e=this._dialogElement)==null||e.close(),this.dispatchEvent(new CustomEvent("close-end")),this.remove()}};R.styles=[p`dialog{display:block;margin:0;padding:0;max-width:unset;max-height:unset;border:none}dialog::backdrop{background:0 0;opacity:0}dialog::after{content:'';position:absolute;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));pointer-events:none;opacity:1;transition:opacity var(--uui-modal-transition-duration,250ms);z-index:1}:host([index='0']) dialog::after{opacity:0}`],bt([C("dialog")],R.prototype,"_dialogElement",2),bt([l({type:Boolean,reflect:!0,attribute:"is-open"})],R.prototype,"isOpen",2),bt([l({type:Boolean,reflect:!0,attribute:"is-closing"})],R.prototype,"isClosing",2),bt([l({type:Number,reflect:!0})],R.prototype,"index",2),bt([l({type:Number,reflect:!0,attribute:"unique-index"})],R.prototype,"uniqueIndex",2),bt([l({type:Number,attribute:"transition-duration"})],R.prototype,"transitionDuration",1);var _0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,va=(i,e,t,r)=>{for(var o=r>1?void 0:r?w0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_0(e,t,o),o},ga=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},fa=(i,e,t)=>(ga(i,e,"read from private field"),t?t.call(i):e.get(i)),ya=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},$0=(i,e,t)=>(ga(i,e,"access private method"),t),_i,jo,No,_a;s.UUIModalSidebarElement=class extends R{constructor(){super(),ya(this,_i),ya(this,No),this.size="full",this.addEventListener("close",$0(this,No,_a).bind(this))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-offset",-fa(this,_i,jo)+"px")}updated(e){super.updated(e),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}render(){return u`<dialog><slot></slot></dialog>`}},_i=new WeakSet,jo=function(){var i,e;return(e=(i=this._dialogElement)==null?void 0:i.getBoundingClientRect().width)!=null?e:0},No=new WeakSet,_a=function(i){i.preventDefault(),!this.isClosing&&(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-fa(this,_i,jo)+"px"),setTimeout(()=>{this._closeModal()},this.transitionDuration))},s.UUIModalSidebarElement.styles=[...R.styles,p`:host{--uui-modal-sidebar-left-gap:24px}@media (min-width:600px){:host{--uui-modal-sidebar-left-gap:64px}}dialog{height:100%;width:100%;box-sizing:border-box;max-width:calc(100% - var(--uui-modal-sidebar-left-gap));margin-left:auto;right:var(--uui-modal-offset);transition:right var(--uui-modal-transition-duration,250ms)}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}:host([hide]) dialog{display:none}:host([size=large]) dialog{max-width:min(1200px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=medium]) dialog{max-width:min(800px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=small]) dialog{max-width:min(400px,calc(100% - var(--uui-modal-sidebar-left-gap)))}`],va([l({reflect:!0})],s.UUIModalSidebarElement.prototype,"size",2),s.UUIModalSidebarElement=va([Qi("uui-modal-sidebar")],s.UUIModalSidebarElement);var U0=Object.defineProperty,E0=Object.getOwnPropertyDescriptor,mt=(i,e,t,r)=>{for(var o=r>1?void 0:r?E0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&U0(e,t,o),o},wa=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},$a=(i,e,t)=>(wa(i,e,"read from private field"),t?t.call(i):e.get(i)),wi=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},$i=(i,e,t)=>(wa(i,e,"access private method"),t),To,Mo,Ui,Do,Ei,Vo;s.UUIModalContainerElement=class extends m{constructor(){super(),wi(this,Ui),wi(this,Ei),this.sidebarGap=64,this.transitionDurationMS=250,wi(this,To,()=>{var e,t;if(this._modals=(t=(e=this.modalSlot)==null?void 0:e.assignedElements({flatten:!0}).filter(r=>r instanceof R))!=null?t:[],this._sidebars=this._modals.filter(r=>r instanceof s.UUIModalSidebarElement),this._modals.length===0){this.removeAttribute("backdrop");return}$i(this,Ui,Do).call(this),$i(this,Ei,Vo).call(this)}),wi(this,Mo,()=>{if(!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}$i(this,Ui,Do).call(this),$i(this,Ei,Vo).call(this)}),this.addEventListener("close",$a(this,Mo))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return u`<slot @slotchange="${$a(this,To)}"></slot>`}},To=new WeakMap,Mo=new WeakMap,Ui=new WeakSet,Do=function(){var i,e;this.setAttribute("backdrop","");const t=(e=(i=this._modals)==null?void 0:i.filter(r=>!r.isClosing).reverse())!=null?e:[];t?.forEach((r,o)=>{r.index=o,r.transitionDuration=this.transitionDurationMS}),t?.forEach(r=>{var o;const n=t?.filter(a=>a.constructor.name===r.constructor.name);r.uniqueIndex=(o=n?.indexOf(r))!=null?o:0})},Ei=new WeakSet,Vo=function(){requestAnimationFrame(()=>{var i,e,t,r,o,n,a,h;let c=0;const d=(e=(i=this._sidebars)==null?void 0:i.filter(v=>!v.isClosing).reverse())!=null?e:[];for(let v=0;v<d.length;v++){const f=d[v],y=d[v+1];if(f.style.setProperty("--uui-modal-offset",c+"px"),y!=null&&y.hasAttribute("hide"))break;const $=(o=(r=(t=f.shadowRoot)==null?void 0:t.querySelector("dialog"))==null?void 0:r.getBoundingClientRect().width)!=null?o:0,E=(h=(a=(n=y?.shadowRoot)==null?void 0:n.querySelector("dialog"))==null?void 0:a.getBoundingClientRect().width)!=null?h:0,k=$+c+this.sidebarGap-E;c=k>0?k:0}})},s.UUIModalContainerElement.styles=p`:host{position:fixed;--uui-modal-color-backdrop:rgba(0, 0, 0, 0.5)}:host::after{content:'';position:fixed;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));opacity:0;pointer-events:none;transition:opacity var(--uui-modal-transition-duration,250ms)}:host([backdrop])::after{opacity:1}`,mt([C("slot")],s.UUIModalContainerElement.prototype,"modalSlot",2),mt([g()],s.UUIModalContainerElement.prototype,"_modals",2),mt([g()],s.UUIModalContainerElement.prototype,"_sidebars",2),mt([l({type:Number})],s.UUIModalContainerElement.prototype,"sidebarGap",2),mt([l({type:Number})],s.UUIModalContainerElement.prototype,"transitionDurationMS",2),s.UUIModalContainerElement=mt([Qi("uui-modal-container")],s.UUIModalContainerElement);var k0=Object.defineProperty,I0=Object.getOwnPropertyDescriptor,x0=(i,e,t,r)=>{for(var o=r>1?void 0:r?I0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&k0(e,t,o),o};s.UUIModalDialogElement=class extends R{render(){return u`<dialog><slot></slot></dialog>`}},s.UUIModalDialogElement.styles=[...R.styles,p`dialog{margin:auto;max-width:100%;max-height:100%;border-radius:12px}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}`],s.UUIModalDialogElement=x0([Qi("uui-modal-dialog")],s.UUIModalDialogElement);var C0=Object.defineProperty,Ua=Object.getOwnPropertySymbols,P0=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable,Ea=(i,e,t)=>e in i?C0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ka=(i,e)=>{for(var t in e||(e={}))P0.call(e,t)&&Ea(i,t,e[t]);if(Ua)for(var t of Ua(e))S0.call(e,t)&&Ea(i,t,e[t]);return i};let Pe=class extends P{constructor(e,t={}){super(e,ka(ka({},{bubbles:!0}),t))}};Pe.CHANGE="change";var O0=Object.defineProperty,z0=Object.getOwnPropertyDescriptor,ye=(i,e,t,r)=>{for(var o=r>1?void 0:r?z0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&O0(e,t,o),o};const A0=45,Ho=(i,e,t)=>Math.min(Math.max(i,e),t),L0=(i,e)=>Array.from({length:e-i+1},(t,r)=>i+r);s.UUIPaginationElement=class extends m{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),w(this,"uui-button"),w(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(e){(e.has("current")||e.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const e=this.offsetWidth,t=Array.from(this._navButtons).reduce((o,n)=>o+n.getBoundingClientRect().width,0),r=(e-t)/A0/2;this._range=Math.max(1,Math.floor(r)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(e){const t=e<this._range?1:e<this.total-this._range?e-this._range:this.total-this._range*2,r=e<=this._range?this._range*2+1:e<this.total-this._range?e+this._range:this.total;return L0(Ho(t,1,this.total),Ho(r,1,this.total))}get total(){return this._total}set total(e){this._total=e,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",e)}get current(){return this._current}set current(e){const t=this._current;this._current=Ho(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new Pe(Pe.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new Pe(Pe.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new Pe(Pe.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const e=this.renderRoot.querySelector(".active");e&&e.focus()})}renderFirst(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to first page" ?disabled="${this._current===1}" @click="${()=>this.goToPage(1)}">First</uui-button>`}renderPrevious(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to previous page" ?disabled="${this._current===1}" @click="${this.goToPreviousPage}">Previous</uui-button>`}renderNext(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to next page" ?disabled="${this._current===this.total}" @click="${this.goToNextPage}">Next</uui-button>`}renderLast(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to last page" ?disabled="${this.total===this._current}" @click="${()=>this.goToPage(this.total)}">Last</uui-button>`}renderDots(){return u`<uui-button compact="compact" look="outline" role="listitem" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(e){return u`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${e}" class="${"page"+(e===this._current?" active":"")}" tabindex="${e===this._current?"-1":""}" @click="${()=>{e!==this._current&&(this.goToPage(e),this.focusActivePage())}}">${e}</uui-button>`}renderNavigationLeft(){return u`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return u`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return u`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(e=>this.renderPage(e))} ${this.renderNavigationRight()}</uui-button-group>`}},s.UUIPaginationElement.styles=[p`uui-button-group{width:100%}uui-button{--uui-button-border-color:var(--uui-color-border-standalone,#c2c2c2);--uui-button-border-color-hover:var(--uui-color-interactive-emphasis,#3544b1);--uui-button-border-color-disabled:var(--uui-color-border-standalone,#c2c2c2)}.page{min-width:36px;max-width:72px}.page.active{--uui-button-background-color:var(--uui-color-current,#f5c1bc)}.nav{min-width:72px}.dots{pointer-events:none}.active{pointer-events:none}`],ye([Ul("uui-button.nav")],s.UUIPaginationElement.prototype,"_navButtons",2),ye([C("#pages")],s.UUIPaginationElement.prototype,"_pagesGroup",2),ye([l()],s.UUIPaginationElement.prototype,"label",2),ye([l({reflect:!0,attribute:"aria-label"})],s.UUIPaginationElement.prototype,"ariaLabel",2),ye([l({type:Number})],s.UUIPaginationElement.prototype,"total",1),ye([g()],s.UUIPaginationElement.prototype,"_range",2),ye([g()],s.UUIPaginationElement.prototype,"_visiblePages",2),ye([l({type:Number})],s.UUIPaginationElement.prototype,"current",1),s.UUIPaginationElement=ye([b("uui-pagination")],s.UUIPaginationElement);let Bo=class extends P{};Bo.CLOSE="close";var j0=Object.defineProperty,N0=Object.getOwnPropertyDescriptor,Mt=(i,e,t,r)=>{for(var o=r>1?void 0:r?N0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&j0(e,t,o),o};function ki(i,e,t){return i<e?e:i>t?t:i}s.UUIPopoverElement=class extends m{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=e=>{this._trigger=e.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=e=>{e.forEach(t=>{t.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=e=>{if(e.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=e=>{e.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(e){const t=this._placement;this._placement=e||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",t)}get open(){return this._open}set open(e){const t=this._open;this._open=e,e?this._openPopover():this._closePopover(),this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const e=new Bo(Bo.CLOSE,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.open=!1)}_getScrollParents(){const e=this.shadowRoot.host;let t=getComputedStyle(e);if(t.position==="fixed")return;const r=t.position==="absolute",o=/(auto|scroll)/;let n=e;for(;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&(o.test(t.overflow+t.overflowY+t.overflowX)&&this._scrollParents.push(n),t.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const e={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,e),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(e=>{e.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(e=>{e.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){var e,t;if(!this.shadowRoot)return;const r=this.containerElement;if(!r)return;const o=(e=this.containerElement)==null?void 0:e.getBoundingClientRect(),n=(t=this._trigger)==null?void 0:t.getBoundingClientRect();if(n!=null&&o!=null){const a=this._scrollParents.map(ue=>ue.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,o,a));let h=this._currentPlacement.indexOf("top")!==-1,c=this._currentPlacement.indexOf("bottom")!==-1,d=this._currentPlacement.indexOf("left")!==-1,v=this._currentPlacement.indexOf("right")!==-1;const f=this._currentPlacement.indexOf("-start")!==-1,y=this._currentPlacement.indexOf("-end")!==-1;let $=.5,E=.5,k=.5,A=.5,Ue=0,Ee=0;if(this.placement==="auto"){const ue=this._scrollParents[0],Ft=ue.clientWidth,Ze=ue.clientHeight,Et=n.x-o.width,kt=Ft-(n.x+n.width)-o.width,hr=n.y-o.height,Ti=Ze-(n.y+n.height)-o.height;let Mi=.5,Di=.5;const Xb=Math.max(Et,kt);let hl=Math.max(hr,Ti);Ti>hr&&Ti>this.margin&&(hl+=9999),Xb>hl?(Et>kt?(Mi=0,d=!0):(Mi=1,v=!0),Ue=this.margin):(hr>Ti?(Di=0,h=!0):(Di=1,c=!0),Ee=this.margin),$=Mi,E=Di,k=1-Mi,A=1-Di}else h&&(A=1,E=0),c&&(A=0,E=1),(h||c)&&(Ee=this.margin,f&&(k=0,$=0),y&&(k=1,$=1)),d&&(k=1,$=0),v&&(k=0,$=1),(d||v)&&(Ue=this.margin,f&&(A=0,E=0),y&&(A=1,E=1));const ur=-o.width*k+n.width*$-Ue*(k*2-1),cr=-o.height*A+n.height*E-Ee*(A*2-1);let Xe=ur,Ye=cr;h||c?(this._scrollParents.forEach((ue,Ft)=>{const Ze=ue===document.body?0:a[Ft].x,Et=-n.x+Ze,kt=ue.clientWidth-n.x-n.width+ur+Ze-(o.width-n.width)*(1-$);Xe=ki(Xe,Et,kt)}),Xe=ki(Xe,-o.width,n.width)):(d||v)&&(this._scrollParents.forEach((ue,Ft)=>{const Ze=ue===document.body?0:a[Ft].y,Et=-n.y+Ze,kt=ue.clientHeight-n.y-n.height+cr+Ze-(o.height-n.height)*(1-E);Ye=ki(Ye,Et,kt)}),Ye=ki(Ye,-o.height,n.height)),(this._positionX!==Xe||this._positionY!==Ye)&&(this._positionX=Xe,this._positionY=Ye,ur===Xe&&cr===Ye&&this._stopScrollListener(),r.style.left=`${this._positionX}px`,r.style.top=`${this._positionY}px`)}}_managePlacementFlip(e,t,r){const o=e.split("-"),n=o[0],a=o[1]||null;let h;return this._scrollParents.some((c,d)=>{const v=c===document.body?0:r[d].x,f=c===document.body?0:r[d].y;return n==="top"&&t.y-2<=f?(h="bottom",!0):n==="bottom"&&t.y+t.height+2>=c.clientHeight+f?(h="top",!0):n==="left"&&t.x-2<=v?(h="right",!0):n==="right"&&t.x+t.width+2>=c.clientWidth+v?(h="left",!0):!1}),h?(this._startScrollListener(),h+(a?`-${a}`:"")):e}render(){return u`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?u`<slot name="popover"></slot>`:""}</div>`}},s.UUIPopoverElement.styles=[p`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:var(--uui-popover-z-index,1)}slot[name=popover]{display:block}#trigger{position:relative;width:100%}slot[name=trigger]::slotted(uui-button){--uui-button-border-radius:var(
|
|
482
|
+
*/const Tt=(i,e)=>{var t,r;const o=i._$AN;if(o===void 0)return!1;for(const n of o)(r=(t=n)._$AO)===null||r===void 0||r.call(t,e,!1),Tt(n,e);return!0},fi=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},bs=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),v0(e)}};function b0(i){this._$AN!==void 0?(fi(this),this._$AM=i,bs(this)):this._$AM=i}function m0(i,e=!1,t=0){const r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(r))for(let n=t;n<r.length;n++)Tt(r[n],!1),fi(r[n]);else r!=null&&(Tt(r,!1),fi(r));else Tt(this,i)}const v0=i=>{var e,t,r,o;i.type==Z.CHILD&&((e=(r=i)._$AP)!==null&&e!==void 0||(r._$AP=m0),(t=(o=i)._$AQ)!==null&&t!==void 0||(o._$AQ=b0))};let g0=class extends st{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),bs(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,o;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)===null||r===void 0||r.call(this):(o=this.disconnected)===null||o===void 0||o.call(this)),t&&(Tt(this,e),fi(this))}setValue(e){if(ma(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};const Oo=new WeakMap,Ao=at(class extends g0{render(i){return U}update(i,[e]){var t;const r=e!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.dt=(t=i.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=i.element)),U}ot(i){var e;if(typeof this.G=="function"){const t=(e=this.dt)!==null&&e!==void 0?e:globalThis;let r=Oo.get(t);r===void 0&&(r=new WeakMap,Oo.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.dt,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.dt,i)}else this.G.value=i}get rt(){var i,e,t;return typeof this.G=="function"?(e=Oo.get((i=this.dt)!==null&&i!==void 0?i:globalThis))===null||e===void 0?void 0:e.get(this.G):(t=this.G)===null||t===void 0?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});let fe=class extends z{};fe.SHOW_CHILDREN="show-children",fe.HIDE_CHILDREN="hide-children",fe.CLICK_LABEL="click-label";var f0=Object.defineProperty,y0=Object.getOwnPropertyDescriptor,ye=(i,e,t,r)=>{for(var o=r>1?void 0:r?y0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&f0(e,t,o),o};a.UUIMenuItemElement=class extends Zt(it(Pt(ee("label",m)))){constructor(){super(...arguments),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1,this._labelButtonChanged=e=>{this.selectableTarget=e||this},this._iconSlotChanged=e=>{this.iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const e=this.showChildren?fe.HIDE_CHILDREN:fe.SHOW_CHILDREN,t=new fe(e,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.showChildren=!this.showChildren)},this._onLabelClicked=()=>{const e=new fe(fe.CLICK_LABEL);this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),w(this,"uui-symbol-expand"),w(this,"uui-loader-bar")}_renderLabelInside(){return u`<slot name="icon" id="icon" style="${this.iconSlotHasContent?"":"display: none;"}" @slotchange="${this._iconSlotChanged}"></slot>${this.renderLabel()}<slot name="badge" id="badge"></slot>`}_renderLabelAsAnchor(){return this.disabled?u`<span id="label-button" ${Ao(this._labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${Ao(this._labelButtonChanged)} href="${k(this.href)}" target="${k(this.target||void 0)}" rel="${k(this.target==="_blank"?"noopener noreferrer":void 0)}" @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return u`<button id="label-button" ${Ao(this._labelButtonChanged)} @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</button>`}render(){return u`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?u`<button id="caret-button" @click="${this._onCaretClicked}"><uui-symbol-expand ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} ${this.href?this._renderLabelAsAnchor():this._renderLabelAsButton()}<div id="label-button-background"></div>${this.selectOnly===!1?u`<slot id="actions-container" name="actions"></slot>`:""} ${this.loading?u`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?u`<slot></slot>`:""}`}},a.UUIMenuItemElement.styles=[p`:host{box-sizing:border-box;display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:var(--uui-size-8,24px) 1fr;grid-template-rows:1fr;white-space:nowrap}:host(:not([active],[selected],[disabled])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled],[select-mode=highlight])) #menu-item #label-button:hover~#label-button-background{background-color:var(--uui-color-surface-emphasis,#fafafa)}:host(:not([active],[selected])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled])) #menu-item #label-button:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([active]) #caret-button,:host([active]) #label-button{color:var(--uui-color-current-contrast,#1b264f)}:host([active]) #label-button-background{background-color:var(--uui-color-current,#f5c1bc)}:host([active]) #caret-button:hover,:host([active]) #label-button:hover~#label-button-background{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([disabled]) #menu-item{color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button,:host([selected]:not([select-mode=highlight],[disabled])) #label-button{color:var(--uui-color-selected-contrast,#fff)}:host([selected]:not([select-mode=highlight],[disabled])) #label-button-background{background-color:var(--uui-color-selected,#3544b1)}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button:hover,:host([selected]:not([select-mode=highlight],[disabled])) #label-button:hover~#label-button-background{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([select-mode=highlight]:not([disabled],[active],[selectable])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface-emphasis,#fafafa)}:host([select-mode=highlight][active]:not([disabled])) #menu-item #label-button-background{border-radius:var(--uui-border-radius,3px)}:host([select-mode=highlight][active][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #caret-button,:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button{color:var(--uui-color-interactive,#1b264f)}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #label-button:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([selected][selectable][select-mode=highlight]:not([active])) #menu-item #caret-button:hover{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface-emphasis,#fafafa);color:var(--uui-color-interactive-emphasis,#3544b1)}:host([select-mode=highlight]:not([disabled])) #menu-item #label-button-background::after{border-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px;border:2px solid var(--uui-color-selected,#3544b1);opacity:0}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #caret-button:hover::after{border-top-left-radius:var(--uui-border-radius,3px);border-bottom-left-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px 0 1px 1px;border:2px solid var(--uui-color-selected,#3544b1);border-right:none}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button-background::after{opacity:1}:host([select-mode=highlight][selectable]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.33}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.66}:host([disabled]) #label-button{cursor:default}button{display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;padding:0;text-align:left;border:none;color:inherit;background-color:transparent;cursor:pointer;min-height:var(--uui-size-12,36px);z-index:1}#label-button{position:relative;flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button+#label-button{padding-left:0}#caret-button{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--uui-color-interactive,#1b264f)}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0}#actions-container{opacity:0;transition:opacity 120ms;grid-column-start:3}:host(:not([disabled])) #menu-item:focus #actions-container,:host(:not([disabled])) #menu-item:focus-within #actions-container,:host(:not([disabled])) #menu-item:hover #actions-container{opacity:1}#loader{position:absolute;width:100%;bottom:0}#icon{display:inline-flex;font-size:16px;margin-right:var(--uui-size-2,6px)}#badge{font-size:12px;--uui-badge-position:relative;--uui-badge-position:auto;display:block;margin-left:6px}:host([select-mode=highlight]) #label-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #label-button:focus-visible::after{content:'';border-radius:calc(var(--uui-border-radius,3px) - 1px);position:absolute;inset:3px 3px 3px -5px;border:2px solid var(--uui-color-focus,#3879ff)}:host([select-mode=highlight]) #caret-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #caret-button:focus-visible::after{content:'';position:absolute;inset:3px;border-radius:calc(var(--uui-border-radius,3px) - 1px);border:2px solid var(--uui-color-focus,#3879ff)}slot:not([name]){position:relative;display:block;width:100%}slot:not([name]){--uui-menu-item-indent:var(--uui-menu-item-child-indent)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-base-unit) * 4);margin-right:var(--uui-size-base-unit)}`],ye([l({type:Boolean,reflect:!0})],a.UUIMenuItemElement.prototype,"disabled",2),ye([l({type:Boolean,reflect:!0,attribute:"show-children"})],a.UUIMenuItemElement.prototype,"showChildren",2),ye([l({type:Boolean,attribute:"has-children"})],a.UUIMenuItemElement.prototype,"hasChildren",2),ye([l({type:Boolean,attribute:"loading"})],a.UUIMenuItemElement.prototype,"loading",2),ye([l({type:String})],a.UUIMenuItemElement.prototype,"href",2),ye([l({type:String})],a.UUIMenuItemElement.prototype,"target",2),ye([l({type:String,attribute:"select-mode",reflect:!0})],a.UUIMenuItemElement.prototype,"selectMode",2),ye([g()],a.UUIMenuItemElement.prototype,"iconSlotHasContent",2),a.UUIMenuItemElement=ye([b("uui-menu-item")],a.UUIMenuItemElement);var _0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,bt=(i,e,t,r)=>{for(var o=r>1?void 0:r?w0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&_0(e,t,o),o};let R=class extends m{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent("open",{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent("close",{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._closeModal()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){var e,t;this.isOpen=!0,(e=this._dialogElement)==null||e.showModal(),(t=this._dialogElement)==null||t.addEventListener("cancel",this.close)}_closeModal(){var e;this.isClosing=!0,this.isOpen=!1,(e=this._dialogElement)==null||e.close(),this.dispatchEvent(new CustomEvent("close-end")),this.remove()}};R.styles=[p`dialog{display:block;margin:0;padding:0;max-width:unset;max-height:unset;border:none}dialog::backdrop{background:0 0;opacity:0}dialog::after{content:'';position:absolute;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));pointer-events:none;opacity:1;transition:opacity var(--uui-modal-transition-duration,250ms);z-index:1}:host([index='0']) dialog::after{opacity:0}`],bt([C("dialog")],R.prototype,"_dialogElement",2),bt([l({type:Boolean,reflect:!0,attribute:"is-open"})],R.prototype,"isOpen",2),bt([l({type:Boolean,reflect:!0,attribute:"is-closing"})],R.prototype,"isClosing",2),bt([l({type:Number,reflect:!0})],R.prototype,"index",2),bt([l({type:Number,reflect:!0,attribute:"unique-index"})],R.prototype,"uniqueIndex",2),bt([l({type:Number,attribute:"transition-duration"})],R.prototype,"transitionDuration",1);var $0=Object.defineProperty,U0=Object.getOwnPropertyDescriptor,ms=(i,e,t,r)=>{for(var o=r>1?void 0:r?U0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&$0(e,t,o),o},vs=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},gs=(i,e,t)=>(vs(i,e,"read from private field"),t?t.call(i):e.get(i)),fs=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},E0=(i,e,t)=>(vs(i,e,"access private method"),t),yi,Lo,jo,ys;a.UUIModalSidebarElement=class extends R{constructor(){super(),fs(this,yi),fs(this,jo),this.size="full",this.addEventListener("close",E0(this,jo,ys).bind(this))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-offset",-gs(this,yi,Lo)+"px")}updated(e){super.updated(e),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}render(){return u`<dialog><slot></slot></dialog>`}},yi=new WeakSet,Lo=function(){var i,e;return(e=(i=this._dialogElement)==null?void 0:i.getBoundingClientRect().width)!=null?e:0},jo=new WeakSet,ys=function(i){i.preventDefault(),!this.isClosing&&(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-gs(this,yi,Lo)+"px"),setTimeout(()=>{this._closeModal()},this.transitionDuration))},a.UUIModalSidebarElement.styles=[...R.styles,p`:host{--uui-modal-sidebar-left-gap:24px}@media (min-width:600px){:host{--uui-modal-sidebar-left-gap:64px}}dialog{height:100%;width:100%;box-sizing:border-box;max-width:calc(100% - var(--uui-modal-sidebar-left-gap));margin-left:auto;right:var(--uui-modal-offset);transition:right var(--uui-modal-transition-duration,250ms)}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}:host([hide]) dialog{display:none}:host([size=large]) dialog{max-width:min(1200px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=medium]) dialog{max-width:min(800px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=small]) dialog{max-width:min(400px,calc(100% - var(--uui-modal-sidebar-left-gap)))}`],ms([l({reflect:!0})],a.UUIModalSidebarElement.prototype,"size",2),a.UUIModalSidebarElement=ms([Zi("uui-modal-sidebar")],a.UUIModalSidebarElement);var x0=Object.defineProperty,k0=Object.getOwnPropertyDescriptor,mt=(i,e,t,r)=>{for(var o=r>1?void 0:r?k0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&x0(e,t,o),o},_s=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},ws=(i,e,t)=>(_s(i,e,"read from private field"),t?t.call(i):e.get(i)),_i=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},wi=(i,e,t)=>(_s(i,e,"access private method"),t),No,To,$i,Mo,Ui,Do;a.UUIModalContainerElement=class extends m{constructor(){super(),_i(this,$i),_i(this,Ui),this.sidebarGap=64,this.transitionDurationMS=250,_i(this,No,()=>{var e,t;if(this._modals=(t=(e=this.modalSlot)==null?void 0:e.assignedElements({flatten:!0}).filter(r=>r instanceof R))!=null?t:[],this._sidebars=this._modals.filter(r=>r instanceof a.UUIModalSidebarElement),this._modals.length===0){this.removeAttribute("backdrop");return}wi(this,$i,Mo).call(this),wi(this,Ui,Do).call(this)}),_i(this,To,()=>{if(!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}wi(this,$i,Mo).call(this),wi(this,Ui,Do).call(this)}),this.addEventListener("close",ws(this,To))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return u`<slot @slotchange="${ws(this,No)}"></slot>`}},No=new WeakMap,To=new WeakMap,$i=new WeakSet,Mo=function(){var i,e;this.setAttribute("backdrop","");const t=(e=(i=this._modals)==null?void 0:i.filter(r=>!r.isClosing).reverse())!=null?e:[];t?.forEach((r,o)=>{r.index=o,r.transitionDuration=this.transitionDurationMS}),t?.forEach(r=>{var o;const n=t?.filter(s=>s.constructor.name===r.constructor.name);r.uniqueIndex=(o=n?.indexOf(r))!=null?o:0})},Ui=new WeakSet,Do=function(){requestAnimationFrame(()=>{var i,e,t,r,o,n,s,h;let c=0;const d=(e=(i=this._sidebars)==null?void 0:i.filter(v=>!v.isClosing).reverse())!=null?e:[];for(let v=0;v<d.length;v++){const f=d[v],y=d[v+1];if(f.style.setProperty("--uui-modal-offset",c+"px"),y!=null&&y.hasAttribute("hide"))break;const $=(o=(r=(t=f.shadowRoot)==null?void 0:t.querySelector("dialog"))==null?void 0:r.getBoundingClientRect().width)!=null?o:0,E=(h=(s=(n=y?.shadowRoot)==null?void 0:n.querySelector("dialog"))==null?void 0:s.getBoundingClientRect().width)!=null?h:0,x=$+c+this.sidebarGap-E;c=x>0?x:0}})},a.UUIModalContainerElement.styles=p`:host{position:fixed;--uui-modal-color-backdrop:rgba(0, 0, 0, 0.5)}:host::after{content:'';position:fixed;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));opacity:0;pointer-events:none;transition:opacity var(--uui-modal-transition-duration,250ms)}:host([backdrop])::after{opacity:1}`,mt([C("slot")],a.UUIModalContainerElement.prototype,"modalSlot",2),mt([g()],a.UUIModalContainerElement.prototype,"_modals",2),mt([g()],a.UUIModalContainerElement.prototype,"_sidebars",2),mt([l({type:Number})],a.UUIModalContainerElement.prototype,"sidebarGap",2),mt([l({type:Number})],a.UUIModalContainerElement.prototype,"transitionDurationMS",2),a.UUIModalContainerElement=mt([Zi("uui-modal-container")],a.UUIModalContainerElement);var I0=Object.defineProperty,C0=Object.getOwnPropertyDescriptor,z0=(i,e,t,r)=>{for(var o=r>1?void 0:r?C0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&I0(e,t,o),o};a.UUIModalDialogElement=class extends R{render(){return u`<dialog><slot></slot></dialog>`}},a.UUIModalDialogElement.styles=[...R.styles,p`dialog{margin:auto;max-width:100%;max-height:100%;border-radius:12px}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}`],a.UUIModalDialogElement=z0([Zi("uui-modal-dialog")],a.UUIModalDialogElement);var P0=Object.defineProperty,$s=Object.getOwnPropertySymbols,S0=Object.prototype.hasOwnProperty,O0=Object.prototype.propertyIsEnumerable,Us=(i,e,t)=>e in i?P0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Es=(i,e)=>{for(var t in e||(e={}))S0.call(e,t)&&Us(i,t,e[t]);if($s)for(var t of $s(e))O0.call(e,t)&&Us(i,t,e[t]);return i};let ze=class extends z{constructor(e,t={}){super(e,Es(Es({},{bubbles:!0}),t))}};ze.CHANGE="change";var A0=Object.defineProperty,L0=Object.getOwnPropertyDescriptor,_e=(i,e,t,r)=>{for(var o=r>1?void 0:r?L0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&A0(e,t,o),o};const j0=45,Vo=(i,e,t)=>Math.min(Math.max(i,e),t),N0=(i,e)=>Array.from({length:e-i+1},(t,r)=>i+r);a.UUIPaginationElement=class extends m{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),w(this,"uui-button"),w(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(e){(e.has("current")||e.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const e=this.offsetWidth,t=Array.from(this._navButtons).reduce((o,n)=>o+n.getBoundingClientRect().width,0),r=(e-t)/j0/2;this._range=Math.max(1,Math.floor(r)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(e){const t=e<this._range?1:e<this.total-this._range?e-this._range:this.total-this._range*2,r=e<=this._range?this._range*2+1:e<this.total-this._range?e+this._range:this.total;return N0(Vo(t,1,this.total),Vo(r,1,this.total))}get total(){return this._total}set total(e){this._total=e,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",e)}get current(){return this._current}set current(e){const t=this._current;this._current=Vo(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new ze(ze.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new ze(ze.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new ze(ze.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const e=this.renderRoot.querySelector(".active");e&&e.focus()})}renderFirst(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to first page" ?disabled="${this._current===1}" @click="${()=>this.goToPage(1)}">First</uui-button>`}renderPrevious(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to previous page" ?disabled="${this._current===1}" @click="${this.goToPreviousPage}">Previous</uui-button>`}renderNext(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to next page" ?disabled="${this._current===this.total}" @click="${this.goToNextPage}">Next</uui-button>`}renderLast(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to last page" ?disabled="${this.total===this._current}" @click="${()=>this.goToPage(this.total)}">Last</uui-button>`}renderDots(){return u`<uui-button compact="compact" look="outline" role="listitem" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(e){return u`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${e}" class="${"page"+(e===this._current?" active":"")}" tabindex="${e===this._current?"-1":""}" @click="${()=>{e!==this._current&&(this.goToPage(e),this.focusActivePage())}}">${e}</uui-button>`}renderNavigationLeft(){return u`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return u`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return u`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(e=>this.renderPage(e))} ${this.renderNavigationRight()}</uui-button-group>`}},a.UUIPaginationElement.styles=[p`uui-button-group{width:100%}uui-button{--uui-button-border-color:var(--uui-color-border-standalone,#c2c2c2);--uui-button-border-color-hover:var(--uui-color-interactive-emphasis,#3544b1);--uui-button-border-color-disabled:var(--uui-color-border-standalone,#c2c2c2)}.page{min-width:36px;max-width:72px}.page.active{--uui-button-background-color:var(--uui-color-current,#f5c1bc)}.nav{min-width:72px}.dots{pointer-events:none}.active{pointer-events:none}`],_e([Ul("uui-button.nav")],a.UUIPaginationElement.prototype,"_navButtons",2),_e([C("#pages")],a.UUIPaginationElement.prototype,"_pagesGroup",2),_e([l()],a.UUIPaginationElement.prototype,"label",2),_e([l({reflect:!0,attribute:"aria-label"})],a.UUIPaginationElement.prototype,"ariaLabel",2),_e([l({type:Number})],a.UUIPaginationElement.prototype,"total",1),_e([g()],a.UUIPaginationElement.prototype,"_range",2),_e([g()],a.UUIPaginationElement.prototype,"_visiblePages",2),_e([l({type:Number})],a.UUIPaginationElement.prototype,"current",1),a.UUIPaginationElement=_e([b("uui-pagination")],a.UUIPaginationElement);let Ho=class extends z{};Ho.CLOSE="close";var T0=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,Mt=(i,e,t,r)=>{for(var o=r>1?void 0:r?M0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&T0(e,t,o),o};function Ei(i,e,t){return i<e?e:i>t?t:i}a.UUIPopoverElement=class extends m{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=e=>{this._trigger=e.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=e=>{e.forEach(t=>{t.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=e=>{if(e.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=e=>{e.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(e){const t=this._placement;this._placement=e||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",t)}get open(){return this._open}set open(e){const t=this._open;this._open=e,e?this._openPopover():this._closePopover(),this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const e=new Ho(Ho.CLOSE,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.open=!1)}_getScrollParents(){const e=this.shadowRoot.host;let t=getComputedStyle(e);if(t.position==="fixed")return;const r=t.position==="absolute",o=/(auto|scroll)/;let n=e;for(;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&(o.test(t.overflow+t.overflowY+t.overflowX)&&this._scrollParents.push(n),t.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const e={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,e),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(e=>{e.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(e=>{e.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){var e,t;if(!this.shadowRoot)return;const r=this.containerElement;if(!r)return;const o=(e=this.containerElement)==null?void 0:e.getBoundingClientRect(),n=(t=this._trigger)==null?void 0:t.getBoundingClientRect();if(n!=null&&o!=null){const s=this._scrollParents.map(ce=>ce.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,o,s));let h=this._currentPlacement.indexOf("top")!==-1,c=this._currentPlacement.indexOf("bottom")!==-1,d=this._currentPlacement.indexOf("left")!==-1,v=this._currentPlacement.indexOf("right")!==-1;const f=this._currentPlacement.indexOf("-start")!==-1,y=this._currentPlacement.indexOf("-end")!==-1;let $=.5,E=.5,x=.5,A=.5,Ee=0,xe=0;if(this.placement==="auto"){const ce=this._scrollParents[0],Ft=ce.clientWidth,Ze=ce.clientHeight,Et=n.x-o.width,xt=Ft-(n.x+n.width)-o.width,cr=n.y-o.height,Ni=Ze-(n.y+n.height)-o.height;let Ti=.5,Mi=.5;const tm=Math.max(Et,xt);let cl=Math.max(cr,Ni);Ni>cr&&Ni>this.margin&&(cl+=9999),tm>cl?(Et>xt?(Ti=0,d=!0):(Ti=1,v=!0),Ee=this.margin):(cr>Ni?(Mi=0,h=!0):(Mi=1,c=!0),xe=this.margin),$=Ti,E=Mi,x=1-Ti,A=1-Mi}else h&&(A=1,E=0),c&&(A=0,E=1),(h||c)&&(xe=this.margin,f&&(x=0,$=0),y&&(x=1,$=1)),d&&(x=1,$=0),v&&(x=0,$=1),(d||v)&&(Ee=this.margin,f&&(A=0,E=0),y&&(A=1,E=1));const lr=-o.width*x+n.width*$-Ee*(x*2-1),ur=-o.height*A+n.height*E-xe*(A*2-1);let Xe=lr,Ye=ur;h||c?(this._scrollParents.forEach((ce,Ft)=>{const Ze=ce===document.body?0:s[Ft].x,Et=-n.x+Ze,xt=ce.clientWidth-n.x-n.width+lr+Ze-(o.width-n.width)*(1-$);Xe=Ei(Xe,Et,xt)}),Xe=Ei(Xe,-o.width,n.width)):(d||v)&&(this._scrollParents.forEach((ce,Ft)=>{const Ze=ce===document.body?0:s[Ft].y,Et=-n.y+Ze,xt=ce.clientHeight-n.y-n.height+ur+Ze-(o.height-n.height)*(1-E);Ye=Ei(Ye,Et,xt)}),Ye=Ei(Ye,-o.height,n.height)),(this._positionX!==Xe||this._positionY!==Ye)&&(this._positionX=Xe,this._positionY=Ye,lr===Xe&&ur===Ye&&this._stopScrollListener(),r.style.left=`${this._positionX}px`,r.style.top=`${this._positionY}px`)}}_managePlacementFlip(e,t,r){const o=e.split("-"),n=o[0],s=o[1]||null;let h;return this._scrollParents.some((c,d)=>{const v=c===document.body?0:r[d].x,f=c===document.body?0:r[d].y;return n==="top"&&t.y-2<=f?(h="bottom",!0):n==="bottom"&&t.y+t.height+2>=c.clientHeight+f?(h="top",!0):n==="left"&&t.x-2<=v?(h="right",!0):n==="right"&&t.x+t.width+2>=c.clientWidth+v?(h="left",!0):!1}),h?(this._startScrollListener(),h+(s?`-${s}`:"")):e}render(){return u`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?u`<slot name="popover"></slot>`:""}</div>`}},a.UUIPopoverElement.styles=[p`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:var(--uui-popover-z-index,1)}slot[name=popover]{display:block}#trigger{position:relative;width:100%}slot[name=trigger]::slotted(uui-button){--uui-button-border-radius:var(
|
|
315
483
|
--uui-popover-toggle-slot-button-border-radius
|
|
316
484
|
);--uui-button-merge-border-left:var(
|
|
317
485
|
--uui-popover-toggle-slot-button-merge-border-left
|
|
318
|
-
)}`],Mt([C("#container")],s.UUIPopoverElement.prototype,"containerElement",2),Mt([l({type:Number})],s.UUIPopoverElement.prototype,"margin",2),Mt([l({type:String,reflect:!0})],s.UUIPopoverElement.prototype,"placement",1),Mt([l({type:Boolean,reflect:!0})],s.UUIPopoverElement.prototype,"open",1),s.UUIPopoverElement=Mt([b("uui-popover")],s.UUIPopoverElement);var T0=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,Fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?M0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&T0(e,t,o),o},Ro=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},H=(i,e,t)=>(Ro(i,e,"read from private field"),t?t.call(i):e.get(i)),Ge=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},D0=(i,e,t,r)=>(Ro(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Ia=(i,e,t)=>(Ro(i,e,"access private method"),t),vt,Fo,Ii,gt,Dt,Go,xi,qo;s.UUIPopoverContainerElement=class extends m{constructor(){super(...arguments),Ge(this,xi),this.margin=0,this._placement="bottom-start",this._open=!1,this._actualPlacement=this._placement,Ge(this,vt,null),Ge(this,Fo,e=>{(!e.relatedTarget||!this.contains(e.relatedTarget))&&(this.hidePopover(),this._open=!1)}),Ge(this,Ii,async e=>{var t;if(this._open=e.newState==="open",D0(this,vt,Wc(this,"popovertarget",this.id)),(t=H(this,vt))==null||t.dispatchEvent(new CustomEvent("uui-popover-before-toggle",{bubbles:!1,composed:!1,detail:{oldState:e.oldState,newState:e.newState}})),!this._open){document.removeEventListener("scroll",H(this,gt));return}document.addEventListener("scroll",H(this,gt)),requestAnimationFrame(()=>{H(this,gt).call(this)})}),Ge(this,gt,()=>{this._open&&(this._actualPlacement=this._placement,this.style.opacity="0",H(this,Dt).call(this,3))}),Ge(this,Dt,e=>{if(H(this,Go).call(this),e--,H(this,vt)===null)return;const t=this._actualPlacement.indexOf("top")!==-1,r=this._actualPlacement.indexOf("bottom")!==-1,o=this._actualPlacement.indexOf("left")!==-1,n=this._actualPlacement.indexOf("right")!==-1,a=this._actualPlacement.indexOf("-start")!==-1,h=this._actualPlacement.indexOf("-end")!==-1,c=H(this,vt).getBoundingClientRect(),d=this.getBoundingClientRect();let v=0,f=0;r&&(v=c.top+c.height,a&&(f=c.left),h&&(f=c.left+c.width-d.width),!a&&!h&&(f=c.left+c.width/2-d.width/2)),t&&(v=c.top-d.height,a&&(f=c.left),h&&(f=c.left+c.width-d.width),!a&&!h&&(f=c.left+c.width/2-d.width/2)),o&&(f=c.left-d.width,a&&(v=c.top),h&&(v=c.top+c.height-d.height),!a&&!h&&(v=c.top+c.height/2-d.height/2)),n&&(f=c.left+c.width,a&&(v=c.top),h&&(v=c.top+c.height-d.height),!a&&!h&&(v=c.top+c.height/2-d.height/2));const y=window.innerWidth,$=window.innerHeight,E=Math.min(0,c.top+c.height),k=Math.max(Math.min(v,$-d.height),c.top-d.height);if(Math.max(E,k)!==v&&(t||r)&&e>0){Ia(this,xi,qo).call(this),H(this,Dt).call(this,e);return}v=Math.max(E,k);const A=Math.min(0,c.left+c.width),Ue=Math.max(Math.min(f,y-d.width),c.left-d.width),Ee=Math.max(A,Ue);if(Ee!==f&&(o||n)&&e>0){Ia(this,xi,qo).call(this),H(this,Dt).call(this,e);return}f=Ee,(v+d.height<0||v>$||f+d.width<0||f>y)&&this.hidePopover(),this.style.transform=`translate(${f}px, ${v}px)`,this.style.opacity="1"}),Ge(this,Go,()=>{const e={top:"bottom",bottom:"top",left:"right",right:"left"};let t=this._actualPlacement.split("-")[0];t=e[t]||t,t=t.charAt(0).toUpperCase()+t.slice(1);const r=`padding${t}`;this.style.padding="0",this.style[r]=`${this.margin}px`})}get open(){return this._open}get placement(){return this._placement}set placement(e){this._placement=e,this._actualPlacement=e,H(this,gt).call(this)}connectedCallback(){if(super.connectedCallback(),this.addEventListener("focusout",H(this,Fo)),!HTMLElement.prototype.hasOwnProperty("popover")){alert("Browser does not support popovers. Check the docs for info on how to enable: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API");return}this.addEventListener("beforetoggle",H(this,Ii))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",H(this,Ii))}render(){return u`<slot></slot>`}},vt=new WeakMap,Fo=new WeakMap,Ii=new WeakMap,gt=new WeakMap,Dt=new WeakMap,Go=new WeakMap,xi=new WeakSet,qo=function(){const[i,e]=this._actualPlacement.split("-"),t=i==="top"?"bottom":i==="bottom"?"top":i==="left"?"right":"left";this._actualPlacement=`${t}-${e}`},s.UUIPopoverContainerElement.styles=[p`:host{margin:0;width:fit-content;height:fit-content;border:none;border-radius:0;padding:0;background-color:none;background:0 0;overflow:visible}`],Fe([l({type:Number})],s.UUIPopoverContainerElement.prototype,"margin",2),Fe([l({type:Boolean})],s.UUIPopoverContainerElement.prototype,"open",1),Fe([l({type:String,reflect:!0})],s.UUIPopoverContainerElement.prototype,"placement",1),Fe([g()],s.UUIPopoverContainerElement.prototype,"_placement",2),Fe([g()],s.UUIPopoverContainerElement.prototype,"_open",2),Fe([g()],s.UUIPopoverContainerElement.prototype,"_actualPlacement",2),s.UUIPopoverContainerElement=Fe([b("uui-popover-container")],s.UUIPopoverContainerElement);var V0=Object.defineProperty,H0=Object.getOwnPropertyDescriptor,xa=(i,e,t,r)=>{for(var o=r>1?void 0:r?H0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&V0(e,t,o),o};const B0=(i,e,t)=>Math.min(Math.max(i,e),t);s.UUIProgressBarElement=class extends m{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=B0(e,0,100),this.requestUpdate("progress",t)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${ie(this._getProgressStyle())}"></div>`}},s.UUIProgressBarElement.styles=[p`:host{width:100%;height:4px;position:relative;overflow:hidden;background:var(--uui-color-surface-alt,#f3f3f5);border-radius:100px;display:inline-block}#bar{transition:width 250ms ease;background:var(--uui-color-positive,#1f9554);height:100%;width:0%}`],xa([l({type:Number})],s.UUIProgressBarElement.prototype,"progress",1),s.UUIProgressBarElement=xa([b("uui-progress-bar")],s.UUIProgressBarElement);var R0=Object.defineProperty,Ca=Object.getOwnPropertySymbols,F0=Object.prototype.hasOwnProperty,G0=Object.prototype.propertyIsEnumerable,Pa=(i,e,t)=>e in i?R0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Sa=(i,e)=>{for(var t in e||(e={}))F0.call(e,t)&&Pa(i,t,e[t]);if(Ca)for(var t of Ca(e))G0.call(e,t)&&Pa(i,t,e[t]);return i};let ft=class extends P{constructor(e,t={}){super(e,Sa(Sa({},{bubbles:!0}),t))}};ft.CHANGE="change";var q0=Object.defineProperty,W0=Object.getOwnPropertyDescriptor,qe=(i,e,t,r)=>{for(var o=r>1?void 0:r?W0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&q0(e,t,o),o},K0=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Oa=(i,e,t)=>(K0(i,e,"read from private field"),t?t.call(i):e.get(i)),za=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Wo,Ko;s.UUIRadioElement=class extends m{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,za(this,Wo,()=>{this.style.setProperty("--uui-show-focus-outline","1")}),za(this,Ko,()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("mousedown",Oa(this,Ko)),this.addEventListener("blur",Oa(this,Wo))}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,e===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-hidden",e?"true":"false"),this.setAttribute("tabindex",e?"-1":"0"),this.requestUpdate("disabled",t)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(e){e.stopPropagation();const t=this.inputElement.checked;this.checked=t,t&&this.focus(),this.dispatchEvent(new ft(ft.CHANGE))}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.setAttribute("tabindex","0")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.removeAttribute("aria-checked")}render(){return u`<label><input id="input" type="radio" name="${this.name}" value="${this.value}" .checked="${this.checked}" .disabled="${this.disabled}" @change="${this._onChange}"><div id="button"></div><div id="label">${this.label?u`<span>${this.label}</span>`:u`<slot></slot>`}</div></label>`}},Wo=new WeakMap,Ko=new WeakMap,s.UUIRadioElement.styles=[ti,p`:host{display:block;box-sizing:border-box;font-family:inherit;color:currentColor;--uui-radio-button-size:var(--uui-size-6,18px);margin:var(--uui-size-2,6px) 0}label{display:block;box-sizing:border-box;display:flex;align-items:center;cursor:pointer;line-height:18px}#input{width:0;height:0;opacity:0;margin:0}.label{margin-top:2px}#button{box-sizing:border-box;display:inline-block;width:var(--uui-radio-button-size,18px);height:var(--uui-radio-button-size,18px);background-color:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border-standalone,#c2c2c2);border-radius:100%;margin-right:calc(var(--uui-size-2,6px) * 2);position:relative;flex:0 0 var(--uui-radio-button-size)}#button::after{content:'';width:calc(var(--uui-radio-button-size)/ 2);height:calc(var(--uui-radio-button-size)/ 2);background-color:var(--uui-color-selected,#3544b1);border-radius:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:all .15s ease-in-out}:host(:hover) #button{border:1px solid var(--uui-color-border-emphasis,#a1a1a1)}:host(:focus){outline:0}:host(:focus) #button{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}input:checked~#button{border:1px solid var(--uui-color-selected,#3544b1)}input:checked:hover~#button{border:1px solid var(--uui-color-selected-emphasis,#4656c8)}input:checked:hover~#button::after{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([disabled]) label{cursor:default;opacity:.5}:host([disabled]) .label{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button::after{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]:active) #button{animation:${ii}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],qe([C("#input")],s.UUIRadioElement.prototype,"inputElement",2),qe([l({type:String})],s.UUIRadioElement.prototype,"name",2),qe([l({type:String})],s.UUIRadioElement.prototype,"value",2),qe([l({type:String})],s.UUIRadioElement.prototype,"label",2),qe([l({type:Boolean,reflect:!0})],s.UUIRadioElement.prototype,"checked",1),qe([l({type:Boolean,reflect:!0})],s.UUIRadioElement.prototype,"disabled",1),s.UUIRadioElement=qe([b("uui-radio")],s.UUIRadioElement);var X0=Object.defineProperty,Aa=Object.getOwnPropertySymbols,Y0=Object.prototype.hasOwnProperty,Z0=Object.prototype.propertyIsEnumerable,La=(i,e,t)=>e in i?X0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ja=(i,e)=>{for(var t in e||(e={}))Y0.call(e,t)&&La(i,t,e[t]);if(Aa)for(var t of Aa(e))Z0.call(e,t)&&La(i,t,e[t]);return i};let Ci=class extends P{constructor(e,t={}){super(e,ja(ja({},{bubbles:!0}),t))}};Ci.CHANGE="change";var Q0=Object.defineProperty,J0=Object.getOwnPropertyDescriptor,Na=(i,e,t,r)=>{for(var o=r>1?void 0:r?J0(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Q0(e,t,o),o};const e1="ArrowLeft",t1="ArrowUp",i1="ArrowRight",o1="ArrowDown",r1=" ";s.UUIRadioGroupElement=class extends ee(m){constructor(){super(),this.disabled=!1,this._selected=null,this._radioElements=[],this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=e=>{e.target.checked===!0&&(this.value=e.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown),this.addEventListener("keypress",this._onKeypress),this.updateComplete.then(()=>{this._updateRadioElementsCheckedState(this.value)})}get value(){return this._value}set value(e){super.value=e,(e===null||e==="")&&this._makeFirstEnabledFocusable(),this._updateRadioElementsCheckedState(e)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}focus(){var e,t;this._selected!==null?(e=this._radioElements[this._selected])==null||e.focus():(t=this._findNextEnabledElement())==null||t.focus()}click(){var e,t;this._selected!==null?(e=this._radioElements[this._selected])==null||e.click():(t=this._findNextEnabledElement())==null||t.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}_setNameOnRadios(e){var t;(t=this._radioElements)==null||t.forEach(r=>r.name=e)}_updateRadioElementsCheckedState(e){this._radioElements.forEach((t,r)=>{t.value===e?(t.checked=!0,this._selected=r):t.checked=!1})}_setDisableOnRadios(e){var t;(t=this._radioElements)==null||t.forEach(r=>r.disabled=e)}_handleSlotChange(e){var t;if(e.stopPropagation(),(t=this._radioElements)==null||t.forEach(o=>{o.removeEventListener(ft.CHANGE,this._handleSelectOnClick),o.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=e.target.assignedElements({flatten:!0}).filter(o=>o instanceof s.UUIRadioElement),this._radioElements.length===0)return;this._radioElements.forEach(o=>{o.addEventListener(ft.CHANGE,this._handleSelectOnClick),o.addEventListener("blur",this._onChildBlur)}),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0);const r=this._radioElements.filter(o=>o.checked===!0);r.length>1&&(this._radioElements.forEach(o=>{o.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),r.length===1?(this.value=r[0].value,this._selected=this._radioElements.indexOf(r[0]),r[0].disabled===!1?(this._radioElements.forEach(o=>{o.makeUnfocusable()}),r[0].makeFocusable()):this._makeFirstEnabledFocusable()):this._makeFirstEnabledFocusable()}_makeFirstEnabledFocusable(){var e,t;this._selected=null,(e=this._radioElements)==null||e.forEach(r=>{r.makeUnfocusable()}),(t=this._findNextEnabledElement())==null||t.makeFocusable()}_findNextEnabledElement(e=1){if(!this._radioElements)return null;const t=this._selected||0,r=this._radioElements.length;let o=this._selected===null?0:1;for(;o<r;){let n=(t+o*e)%r;if(n<0&&(n+=r),this._radioElements[n].disabled===!1)return this._radioElements[n];o++}return null}_selectPreviousElement(){var e,t;this.value=((e=this._findNextEnabledElement(-1))==null?void 0:e.value)||"",(t=this._radioElements[this._selected||0])==null||t.focus(),this._fireChangeEvent()}_selectNextElement(){var e,t;this.value=((e=this._findNextEnabledElement())==null?void 0:e.value)||"",(t=this._radioElements[this._selected||0])==null||t.focus(),this._fireChangeEvent()}_onKeydown(e){var t;switch(e.key){case e1:case t1:{e.preventDefault(),this._selectPreviousElement();break}case i1:case o1:{e.preventDefault(),this._selectNextElement();break}case r1:this._selected===null&&(this.value=(t=this._findNextEnabledElement())==null?void 0:t.value,this._fireChangeEvent())}}_onKeypress(e){e.key=="Enter"&&this.submit()}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new Ci(Ci.CHANGE))}updated(e){super.updated(e),e.has("disabled")&&this._setDisableOnRadios(this.disabled),e.has("name")&&this._setNameOnRadios(e.get("name"))}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},s.UUIRadioGroupElement.formAssociated=!0,s.UUIRadioGroupElement.styles=[p`:host{display:inline-block;padding-right:3px;border:1px solid transparent;border-radius:var(--uui-border-radius,3px)}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],Na([l({type:Boolean,reflect:!0})],s.UUIRadioGroupElement.prototype,"disabled",2),s.UUIRadioGroupElement=Na([b("uui-radio-group")],s.UUIRadioGroupElement);var n1=Object.defineProperty,Ta=Object.getOwnPropertySymbols,s1=Object.prototype.hasOwnProperty,a1=Object.prototype.propertyIsEnumerable,Ma=(i,e,t)=>e in i?n1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Da=(i,e)=>{for(var t in e||(e={}))s1.call(e,t)&&Ma(i,t,e[t]);if(Ta)for(var t of Ta(e))a1.call(e,t)&&Ma(i,t,e[t]);return i};let se=class extends P{constructor(e,t={}){super(e,Da(Da({},{bubbles:!0}),t))}};se.INPUT="input",se.CHANGE="change";var l1=Object.defineProperty,u1=Object.getOwnPropertyDescriptor,O=(i,e,t,r)=>{for(var o=r>1?void 0:r?u1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&l1(e,t,o),o},c1=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},h1=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},yt=(i,e,t)=>(c1(i,e,"access private method"),t),Se,We;const Xo={TOP:3,CENTER:2,BACK:1},Vt=18,_e=12,d1=24;s.UUIRangeSliderElement=class extends ee(m){constructor(){super(),h1(this,Se),this.disabled=!1,this._min=0,this._max=0,this.hideStepValues=!1,this._step=1,this._movement=!1,this.startPoint={mouse:0,low:0,high:0},this._lowInputValue=0,this._highInputValue=0,this._trackWidth=0,this._lowValuePercentStart=0,this._highValuePercentEnd=100,this._onKeypress=e=>{e.key=="Enter"&&this.submit()},this._onTouchStart=e=>{if(this.disabled)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchcancel",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove),this._movement=!0,this._saveStartPoints(e.touches[0].pageX);else{const r=this._getClickedValue(e.touches[0].pageX),o=Math.abs(this._lowInputValue-r),n=Math.abs(this._highInputValue-r);o<n?this.setValueLow(r):this.setValueHigh(r)}},this._onTouchMove=e=>{this._dragBothValuesByMousePos(e.touches[0].pageX)},this._onTouchEnd=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchcancel",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this._onMouseDown=e=>{if(this.disabled)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove),this._movement=!0,this._saveStartPoints(e.pageX);else{const r=this._getClickedValue(e.pageX),o=Math.abs(this._lowInputValue-r),n=Math.abs(this._highInputValue-r);o<n?this.setValueLow(r):this.setValueHigh(r)}},this._onMouseMove=e=>{e.preventDefault(),this._dragBothValuesByMousePos(e.pageX)},this._onMouseUp=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this.addEventListener("keypress",this._onKeypress),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),window.addEventListener("resize",()=>{var e;this._trackWidth=(e=this._outerTrack)==null?void 0:e.offsetWidth})}get min(){return this._min}set min(e){this._min=e,yt(this,Se,We).call(this)}get max(){return this._max}set max(e){this._max=e,yt(this,Se,We).call(this)}get step(){return this._step}set step(e){this._step=e,yt(this,Se,We).call(this)}get minGap(){return this._minGap}set minGap(e){this._minGap=e,yt(this,Se,We).call(this)}get maxGap(){return this._maxGap}set maxGap(e){this._maxGap=e,yt(this,Se,We).call(this)}get value(){return this._value}set value(e){super.value=e,yt(this,Se,We).call(this)}setValueLow(e){e=S(e,this.maxGap?this._highInputValue-this.maxGap>this.min?this._highInputValue-this.maxGap:this.min:this.min,this.minGap?this._highInputValue-this.minGap:this._highInputValue-this.step),this.setValue(e,this._highInputValue)}setValueHigh(e){e=S(e,this.minGap?this._lowInputValue+this.minGap:this._lowInputValue+this.step,this.maxGap?this.maxGap+this._lowInputValue<this.max?this.maxGap+this._lowInputValue:this.max:this.max),this.setValue(this._lowInputValue,e)}setValue(e,t,r){if(r){const o=this.startPoint.high-this.startPoint.low;e=S(e,this.min,this.max-o),t=S(t,this.min+o,this.max)}this._inputLow.value=e.toString(),this._inputHigh.value=t.toString(),this.value=`${e},${t}`}getFormElement(){return this._currentFocus?this._currentFocus:this._inputLow}connectedCallback(){super.connectedCallback(),this.value||(this.value=`${this._min},${this._max}`)}firstUpdated(e){super.updated(e),this._trackWidth=this._outerTrack.offsetWidth,this._runPropertiesChecks()}_runPropertiesChecks(){if(new RegExp(/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/).test(this.value)||console.error("Range slider (Value error occurred): Bad input"),this._highInputValue===this._lowInputValue&&console.error("Range slider (Value error occurred): Low-end and high-end value should never be equal. Use <uui-slider></uui-slider> instead."),this._lowInputValue>this._highInputValue&&console.error("Range slider (Value error occurred): Low-end value should never be higher than high-end value."),(this._highInputValue>this._max||this._highInputValue<this._min)&&(this.setValueHigh(this._max),console.warn(`Conflict with the high-end value and max value. High-end value has been converted to the max value (${this._max})`)),(this._lowInputValue<this._min||this._lowInputValue>this._max)&&(this.setValueLow(this._min),console.warn(`Conflict with the low-end value and min value. Low-end value has been converted to the min value (${this._min})`)),this._step<=0&&(this._step=1,console.warn("Property step needs a value higher than 0. Converted the step value to 1 (default)")),(this._max-this._min)/this._step%1!==0&&console.error("Conflict with step value and the min and max values. May experience bad side effects"),this._minGap&&this._minGap<this._step&&(this._minGap=void 0,console.warn("Conflict with min-gap and step value. The min-gap needs to be higher than the step value. Removed the min-gap property.")),this._minGap&&this._maxGap&&this._minGap>this._maxGap&&(this._minGap=void 0,this._maxGap=void 0,console.warn("Conflict with min-gap and max-gap. Removed the min-gap and max-gap properties.")),this._minGap&&this._max-this._min<this._minGap&&(this._minGap=void 0,console.warn("Conflict with the min-gap and the total range. Removed the min-gap.")),this._maxGap&&this._highInputValue-this._lowInputValue>this._maxGap&&(this.setValueHigh(this._lowInputValue+this._maxGap),console.warn(`Conflict with value and max-gap. High-end value has been converted to the highest possible value based on the low-end value and the max gap value (${this._highInputValue})`)),this._minGap&&this._highInputValue-this._lowInputValue<this._minGap){const e=this._minGap;this._highInputValue-e<this._min?(this.setValueHigh(this._lowInputValue+e),console.warn(`Conflict with value and min gap. High-end value has been converted to the lowest possible value based on the low-end value and the min gap value (${this._highInputValue}).`)):(this.setValueLow(this._highInputValue-e),console.warn(`Conflict with value and min gap. Low-end value has been converted to the highest possible value based on the high-end value and the min gap value (${this._lowInputValue}).`))}}_updateInnerColor(){const e=this._max-this._min,t=this._lowInputValue-this._min,r=this._highInputValue-this._min,o=t/e*100,n=100-r/e*100;this._lowValuePercentStart=S(o,0,100),this._highValuePercentEnd=S(n,0,100)}_getClickedValue(e){const t=this._outerTrack.getBoundingClientRect().left,r=(e-t-_e)/(this._trackWidth-_e*2)*(this._max-this._min)+this._min;return Math.round(r/this._step)*this._step}_saveStartPoints(e){this.startPoint={mouse:e,low:this._lowInputValue,high:this._highInputValue}}_dragBothValuesByMousePos(e){const t=this._outerTrack.offsetWidth,r=e-this.startPoint.mouse,o=this._max-this._min,n=r/(t+_e*2),a=Math.round(n*o/this._step)*this._step,h=this.startPoint.low+a,c=this.startPoint.high+a;this.setValue(h,c,!0),this.dispatchEvent(new se(se.INPUT))}_onLowInput(e){this.disabled&&e.preventDefault(),this._currentFocus=this._inputLow;const t=Number(e.target.value);this.setValueLow(t),this.dispatchEvent(new se(se.INPUT))}_onHighInput(e){this.disabled&&e.preventDefault(),this._currentFocus=this._inputHigh;const t=Number(e.target.value);this.setValueHigh(t),this.dispatchEvent(new se(se.INPUT))}_onLowChange(){this.setValueLow(Number(this._inputLow.value)),this.onChanged()}_onHighChange(){this.setValueHigh(Number(this._inputHigh.value)),this.onChanged()}onChanged(){this.pristine=!1,this.dispatchEvent(new se(se.CHANGE))}render(){return u`
|
|
486
|
+
)}`],Mt([C("#container")],a.UUIPopoverElement.prototype,"containerElement",2),Mt([l({type:Number})],a.UUIPopoverElement.prototype,"margin",2),Mt([l({type:String,reflect:!0})],a.UUIPopoverElement.prototype,"placement",1),Mt([l({type:Boolean,reflect:!0})],a.UUIPopoverElement.prototype,"open",1),a.UUIPopoverElement=Mt([b("uui-popover")],a.UUIPopoverElement);var D0=Object.defineProperty,V0=Object.getOwnPropertyDescriptor,Fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?V0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&D0(e,t,o),o},Bo=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},H=(i,e,t)=>(Bo(i,e,"read from private field"),t?t.call(i):e.get(i)),Ge=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},H0=(i,e,t,r)=>(Bo(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),xs=(i,e,t)=>(Bo(i,e,"access private method"),t),vt,Ro,xi,gt,Dt,Fo,ki,Go;a.UUIPopoverContainerElement=class extends m{constructor(){super(...arguments),Ge(this,ki),this.margin=0,this._placement="bottom-start",this._open=!1,this._actualPlacement=this._placement,Ge(this,vt,null),Ge(this,Ro,e=>{(!e.relatedTarget||!this.contains(e.relatedTarget))&&(this.hidePopover(),this._open=!1)}),Ge(this,xi,async e=>{var t;if(this._open=e.newState==="open",H0(this,vt,Xc(this,"popovertarget",this.id)),(t=H(this,vt))==null||t.dispatchEvent(new CustomEvent("uui-popover-before-toggle",{bubbles:!1,composed:!1,detail:{oldState:e.oldState,newState:e.newState}})),!this._open){document.removeEventListener("scroll",H(this,gt));return}document.addEventListener("scroll",H(this,gt)),requestAnimationFrame(()=>{H(this,gt).call(this)})}),Ge(this,gt,()=>{this._open&&(this._actualPlacement=this._placement,this.style.opacity="0",H(this,Dt).call(this,3))}),Ge(this,Dt,e=>{if(H(this,Fo).call(this),e--,H(this,vt)===null)return;const t=this._actualPlacement.indexOf("top")!==-1,r=this._actualPlacement.indexOf("bottom")!==-1,o=this._actualPlacement.indexOf("left")!==-1,n=this._actualPlacement.indexOf("right")!==-1,s=this._actualPlacement.indexOf("-start")!==-1,h=this._actualPlacement.indexOf("-end")!==-1,c=H(this,vt).getBoundingClientRect(),d=this.getBoundingClientRect();let v=0,f=0;r&&(v=c.top+c.height,s&&(f=c.left),h&&(f=c.left+c.width-d.width),!s&&!h&&(f=c.left+c.width/2-d.width/2)),t&&(v=c.top-d.height,s&&(f=c.left),h&&(f=c.left+c.width-d.width),!s&&!h&&(f=c.left+c.width/2-d.width/2)),o&&(f=c.left-d.width,s&&(v=c.top),h&&(v=c.top+c.height-d.height),!s&&!h&&(v=c.top+c.height/2-d.height/2)),n&&(f=c.left+c.width,s&&(v=c.top),h&&(v=c.top+c.height-d.height),!s&&!h&&(v=c.top+c.height/2-d.height/2));const y=window.innerWidth,$=window.innerHeight,E=Math.min(0,c.top+c.height),x=Math.max(Math.min(v,$-d.height),c.top-d.height);if(Math.max(E,x)!==v&&(t||r)&&e>0){xs(this,ki,Go).call(this),H(this,Dt).call(this,e);return}v=Math.max(E,x);const A=Math.min(0,c.left+c.width),Ee=Math.max(Math.min(f,y-d.width),c.left-d.width),xe=Math.max(A,Ee);if(xe!==f&&(o||n)&&e>0){xs(this,ki,Go).call(this),H(this,Dt).call(this,e);return}f=xe,(v+d.height<0||v>$||f+d.width<0||f>y)&&this.hidePopover(),this.style.transform=`translate(${f}px, ${v}px)`,this.style.opacity="1"}),Ge(this,Fo,()=>{const e={top:"bottom",bottom:"top",left:"right",right:"left"};let t=this._actualPlacement.split("-")[0];t=e[t]||t,t=t.charAt(0).toUpperCase()+t.slice(1);const r=`padding${t}`;this.style.padding="0",this.style[r]=`${this.margin}px`})}get open(){return this._open}get placement(){return this._placement}set placement(e){this._placement=e,this._actualPlacement=e,H(this,gt).call(this)}connectedCallback(){if(super.connectedCallback(),this.addEventListener("focusout",H(this,Ro)),!HTMLElement.prototype.hasOwnProperty("popover")){alert("Browser does not support popovers. Check the docs for info on how to enable: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API");return}this.addEventListener("beforetoggle",H(this,xi))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",H(this,xi))}render(){return u`<slot></slot>`}},vt=new WeakMap,Ro=new WeakMap,xi=new WeakMap,gt=new WeakMap,Dt=new WeakMap,Fo=new WeakMap,ki=new WeakSet,Go=function(){const[i,e]=this._actualPlacement.split("-"),t=i==="top"?"bottom":i==="bottom"?"top":i==="left"?"right":"left";this._actualPlacement=`${t}-${e}`},a.UUIPopoverContainerElement.styles=[p`:host{margin:0;width:fit-content;height:fit-content;border:none;border-radius:0;padding:0;background-color:none;background:0 0;overflow:visible}`],Fe([l({type:Number})],a.UUIPopoverContainerElement.prototype,"margin",2),Fe([l({type:Boolean})],a.UUIPopoverContainerElement.prototype,"open",1),Fe([l({type:String,reflect:!0})],a.UUIPopoverContainerElement.prototype,"placement",1),Fe([g()],a.UUIPopoverContainerElement.prototype,"_placement",2),Fe([g()],a.UUIPopoverContainerElement.prototype,"_open",2),Fe([g()],a.UUIPopoverContainerElement.prototype,"_actualPlacement",2),a.UUIPopoverContainerElement=Fe([b("uui-popover-container")],a.UUIPopoverContainerElement);var B0=Object.defineProperty,R0=Object.getOwnPropertyDescriptor,ks=(i,e,t,r)=>{for(var o=r>1?void 0:r?R0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&B0(e,t,o),o};const F0=(i,e,t)=>Math.min(Math.max(i,e),t);a.UUIProgressBarElement=class extends m{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=F0(e,0,100),this.requestUpdate("progress",t)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${oe(this._getProgressStyle())}"></div>`}},a.UUIProgressBarElement.styles=[p`:host{width:100%;height:4px;position:relative;overflow:hidden;background:var(--uui-color-surface-alt,#f3f3f5);border-radius:100px;display:inline-block}#bar{transition:width 250ms ease;background:var(--uui-color-positive,#1f9554);height:100%;width:0%}`],ks([l({type:Number})],a.UUIProgressBarElement.prototype,"progress",1),a.UUIProgressBarElement=ks([b("uui-progress-bar")],a.UUIProgressBarElement);var G0=Object.defineProperty,Is=Object.getOwnPropertySymbols,q0=Object.prototype.hasOwnProperty,W0=Object.prototype.propertyIsEnumerable,Cs=(i,e,t)=>e in i?G0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,zs=(i,e)=>{for(var t in e||(e={}))q0.call(e,t)&&Cs(i,t,e[t]);if(Is)for(var t of Is(e))W0.call(e,t)&&Cs(i,t,e[t]);return i};let ft=class extends z{constructor(e,t={}){super(e,zs(zs({},{bubbles:!0}),t))}};ft.CHANGE="change";var K0=Object.defineProperty,X0=Object.getOwnPropertyDescriptor,qe=(i,e,t,r)=>{for(var o=r>1?void 0:r?X0(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&K0(e,t,o),o},Y0=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Ps=(i,e,t)=>(Y0(i,e,"read from private field"),t?t.call(i):e.get(i)),Ss=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},qo,Wo;a.UUIRadioElement=class extends m{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,Ss(this,qo,()=>{this.style.setProperty("--uui-show-focus-outline","1")}),Ss(this,Wo,()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("mousedown",Ps(this,Wo)),this.addEventListener("blur",Ps(this,qo))}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,e===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-hidden",e?"true":"false"),this.setAttribute("tabindex",e?"-1":"0"),this.requestUpdate("disabled",t)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(e){e.stopPropagation();const t=this.inputElement.checked;this.checked=t,t&&this.focus(),this.dispatchEvent(new ft(ft.CHANGE))}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.setAttribute("tabindex","0")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.removeAttribute("aria-checked")}render(){return u`<label><input id="input" type="radio" name="${this.name}" value="${this.value}" .checked="${this.checked}" .disabled="${this.disabled}" @change="${this._onChange}"><div id="button"></div><div id="label">${this.label?u`<span>${this.label}</span>`:u`<slot></slot>`}</div></label>`}},qo=new WeakMap,Wo=new WeakMap,a.UUIRadioElement.styles=[ei,p`:host{display:block;box-sizing:border-box;font-family:inherit;color:currentColor;--uui-radio-button-size:var(--uui-size-6,18px);margin:var(--uui-size-2,6px) 0}label{display:block;box-sizing:border-box;display:flex;align-items:center;cursor:pointer;line-height:18px}#input{width:0;height:0;opacity:0;margin:0}.label{margin-top:2px}#button{box-sizing:border-box;display:inline-block;width:var(--uui-radio-button-size,18px);height:var(--uui-radio-button-size,18px);background-color:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border-standalone,#c2c2c2);border-radius:100%;margin-right:calc(var(--uui-size-2,6px) * 2);position:relative;flex:0 0 var(--uui-radio-button-size)}#button::after{content:'';width:calc(var(--uui-radio-button-size)/ 2);height:calc(var(--uui-radio-button-size)/ 2);background-color:var(--uui-color-selected,#3544b1);border-radius:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:all .15s ease-in-out}:host(:hover) #button{border:1px solid var(--uui-color-border-emphasis,#a1a1a1)}:host(:focus){outline:0}:host(:focus) #button{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}input:checked~#button{border:1px solid var(--uui-color-selected,#3544b1)}input:checked:hover~#button{border:1px solid var(--uui-color-selected-emphasis,#4656c8)}input:checked:hover~#button::after{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([disabled]) label{cursor:default;opacity:.5}:host([disabled]) .label{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button::after{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]:active) #button{animation:${ti}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],qe([C("#input")],a.UUIRadioElement.prototype,"inputElement",2),qe([l({type:String})],a.UUIRadioElement.prototype,"name",2),qe([l({type:String})],a.UUIRadioElement.prototype,"value",2),qe([l({type:String})],a.UUIRadioElement.prototype,"label",2),qe([l({type:Boolean,reflect:!0})],a.UUIRadioElement.prototype,"checked",1),qe([l({type:Boolean,reflect:!0})],a.UUIRadioElement.prototype,"disabled",1),a.UUIRadioElement=qe([b("uui-radio")],a.UUIRadioElement);var Z0=Object.defineProperty,Os=Object.getOwnPropertySymbols,Q0=Object.prototype.hasOwnProperty,J0=Object.prototype.propertyIsEnumerable,As=(i,e,t)=>e in i?Z0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ls=(i,e)=>{for(var t in e||(e={}))Q0.call(e,t)&&As(i,t,e[t]);if(Os)for(var t of Os(e))J0.call(e,t)&&As(i,t,e[t]);return i};let Ii=class extends z{constructor(e,t={}){super(e,Ls(Ls({},{bubbles:!0}),t))}};Ii.CHANGE="change";var e1=Object.defineProperty,t1=Object.getOwnPropertyDescriptor,js=(i,e,t,r)=>{for(var o=r>1?void 0:r?t1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&e1(e,t,o),o};const i1="ArrowLeft",o1="ArrowUp",r1="ArrowRight",n1="ArrowDown",a1=" ";a.UUIRadioGroupElement=class extends te(m){constructor(){super(),this.disabled=!1,this._selected=null,this._radioElements=[],this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=e=>{e.target.checked===!0&&(this.value=e.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown),this.addEventListener("keypress",this._onKeypress),this.updateComplete.then(()=>{this._updateRadioElementsCheckedState(this.value)})}get value(){return this._value}set value(e){super.value=e,(e===null||e==="")&&this._makeFirstEnabledFocusable(),this._updateRadioElementsCheckedState(e)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}focus(){var e,t;this._selected!==null?(e=this._radioElements[this._selected])==null||e.focus():(t=this._findNextEnabledElement())==null||t.focus()}click(){var e,t;this._selected!==null?(e=this._radioElements[this._selected])==null||e.click():(t=this._findNextEnabledElement())==null||t.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}_setNameOnRadios(e){var t;(t=this._radioElements)==null||t.forEach(r=>r.name=e)}_updateRadioElementsCheckedState(e){this._radioElements.forEach((t,r)=>{t.value===e?(t.checked=!0,this._selected=r):t.checked=!1})}_setDisableOnRadios(e){var t;(t=this._radioElements)==null||t.forEach(r=>r.disabled=e)}_handleSlotChange(e){var t;if(e.stopPropagation(),(t=this._radioElements)==null||t.forEach(o=>{o.removeEventListener(ft.CHANGE,this._handleSelectOnClick),o.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=e.target.assignedElements({flatten:!0}).filter(o=>o instanceof a.UUIRadioElement),this._radioElements.length===0)return;this._radioElements.forEach(o=>{o.addEventListener(ft.CHANGE,this._handleSelectOnClick),o.addEventListener("blur",this._onChildBlur)}),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0);const r=this._radioElements.filter(o=>o.checked===!0);r.length>1&&(this._radioElements.forEach(o=>{o.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),r.length===1?(this.value=r[0].value,this._selected=this._radioElements.indexOf(r[0]),r[0].disabled===!1?(this._radioElements.forEach(o=>{o.makeUnfocusable()}),r[0].makeFocusable()):this._makeFirstEnabledFocusable()):this._makeFirstEnabledFocusable()}_makeFirstEnabledFocusable(){var e,t;this._selected=null,(e=this._radioElements)==null||e.forEach(r=>{r.makeUnfocusable()}),(t=this._findNextEnabledElement())==null||t.makeFocusable()}_findNextEnabledElement(e=1){if(!this._radioElements)return null;const t=this._selected||0,r=this._radioElements.length;let o=this._selected===null?0:1;for(;o<r;){let n=(t+o*e)%r;if(n<0&&(n+=r),this._radioElements[n].disabled===!1)return this._radioElements[n];o++}return null}_selectPreviousElement(){var e,t;this.value=((e=this._findNextEnabledElement(-1))==null?void 0:e.value)||"",(t=this._radioElements[this._selected||0])==null||t.focus(),this._fireChangeEvent()}_selectNextElement(){var e,t;this.value=((e=this._findNextEnabledElement())==null?void 0:e.value)||"",(t=this._radioElements[this._selected||0])==null||t.focus(),this._fireChangeEvent()}_onKeydown(e){var t;switch(e.key){case i1:case o1:{e.preventDefault(),this._selectPreviousElement();break}case r1:case n1:{e.preventDefault(),this._selectNextElement();break}case a1:this._selected===null&&(this.value=(t=this._findNextEnabledElement())==null?void 0:t.value,this._fireChangeEvent())}}_onKeypress(e){e.key=="Enter"&&this.submit()}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new Ii(Ii.CHANGE))}updated(e){super.updated(e),e.has("disabled")&&this._setDisableOnRadios(this.disabled),e.has("name")&&this._setNameOnRadios(e.get("name"))}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},a.UUIRadioGroupElement.formAssociated=!0,a.UUIRadioGroupElement.styles=[p`:host{display:inline-block;padding-right:3px;border:1px solid transparent;border-radius:var(--uui-border-radius,3px)}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],js([l({type:Boolean,reflect:!0})],a.UUIRadioGroupElement.prototype,"disabled",2),a.UUIRadioGroupElement=js([b("uui-radio-group")],a.UUIRadioGroupElement);var s1=Object.defineProperty,Ns=Object.getOwnPropertySymbols,l1=Object.prototype.hasOwnProperty,u1=Object.prototype.propertyIsEnumerable,Ts=(i,e,t)=>e in i?s1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ms=(i,e)=>{for(var t in e||(e={}))l1.call(e,t)&&Ts(i,t,e[t]);if(Ns)for(var t of Ns(e))u1.call(e,t)&&Ts(i,t,e[t]);return i};let se=class extends z{constructor(e,t={}){super(e,Ms(Ms({},{bubbles:!0}),t))}};se.INPUT="input",se.CHANGE="change";var c1=Object.defineProperty,h1=Object.getOwnPropertyDescriptor,S=(i,e,t,r)=>{for(var o=r>1?void 0:r?h1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&c1(e,t,o),o},d1=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},p1=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},yt=(i,e,t)=>(d1(i,e,"access private method"),t),Pe,We;const Ko={TOP:3,CENTER:2,BACK:1},Vt=18,we=12,b1=24;a.UUIRangeSliderElement=class extends te(m){constructor(){super(),p1(this,Pe),this.disabled=!1,this._min=0,this._max=0,this.hideStepValues=!1,this._step=1,this._movement=!1,this.startPoint={mouse:0,low:0,high:0},this._lowInputValue=0,this._highInputValue=0,this._trackWidth=0,this._lowValuePercentStart=0,this._highValuePercentEnd=100,this._onKeypress=e=>{e.key=="Enter"&&this.submit()},this._onTouchStart=e=>{if(this.disabled)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchcancel",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove),this._movement=!0,this._saveStartPoints(e.touches[0].pageX);else{const r=this._getClickedValue(e.touches[0].pageX),o=Math.abs(this._lowInputValue-r),n=Math.abs(this._highInputValue-r);o<n?this.setValueLow(r):this.setValueHigh(r)}},this._onTouchMove=e=>{this._dragBothValuesByMousePos(e.touches[0].pageX)},this._onTouchEnd=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchcancel",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this._onMouseDown=e=>{if(this.disabled)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove),this._movement=!0,this._saveStartPoints(e.pageX);else{const r=this._getClickedValue(e.pageX),o=Math.abs(this._lowInputValue-r),n=Math.abs(this._highInputValue-r);o<n?this.setValueLow(r):this.setValueHigh(r)}},this._onMouseMove=e=>{e.preventDefault(),this._dragBothValuesByMousePos(e.pageX)},this._onMouseUp=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this.addEventListener("keypress",this._onKeypress),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),window.addEventListener("resize",()=>{var e;this._trackWidth=(e=this._outerTrack)==null?void 0:e.offsetWidth})}get min(){return this._min}set min(e){this._min=e,yt(this,Pe,We).call(this)}get max(){return this._max}set max(e){this._max=e,yt(this,Pe,We).call(this)}get step(){return this._step}set step(e){this._step=e,yt(this,Pe,We).call(this)}get minGap(){return this._minGap}set minGap(e){this._minGap=e,yt(this,Pe,We).call(this)}get maxGap(){return this._maxGap}set maxGap(e){this._maxGap=e,yt(this,Pe,We).call(this)}get value(){return this._value}set value(e){super.value=e,yt(this,Pe,We).call(this)}setValueLow(e){e=P(e,this.maxGap?this._highInputValue-this.maxGap>this.min?this._highInputValue-this.maxGap:this.min:this.min,this.minGap?this._highInputValue-this.minGap:this._highInputValue-this.step),this.setValue(e,this._highInputValue)}setValueHigh(e){e=P(e,this.minGap?this._lowInputValue+this.minGap:this._lowInputValue+this.step,this.maxGap?this.maxGap+this._lowInputValue<this.max?this.maxGap+this._lowInputValue:this.max:this.max),this.setValue(this._lowInputValue,e)}setValue(e,t,r){if(r){const o=this.startPoint.high-this.startPoint.low;e=P(e,this.min,this.max-o),t=P(t,this.min+o,this.max)}this._inputLow.value=e.toString(),this._inputHigh.value=t.toString(),this.value=`${e},${t}`}getFormElement(){return this._currentFocus?this._currentFocus:this._inputLow}connectedCallback(){super.connectedCallback(),this.value||(this.value=`${this._min},${this._max}`)}firstUpdated(e){super.updated(e),this._trackWidth=this._outerTrack.offsetWidth,this._runPropertiesChecks()}_runPropertiesChecks(){if(new RegExp(/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/).test(this.value)||console.error("Range slider (Value error occurred): Bad input"),this._highInputValue===this._lowInputValue&&console.error("Range slider (Value error occurred): Low-end and high-end value should never be equal. Use <uui-slider></uui-slider> instead."),this._lowInputValue>this._highInputValue&&console.error("Range slider (Value error occurred): Low-end value should never be higher than high-end value."),(this._highInputValue>this._max||this._highInputValue<this._min)&&(this.setValueHigh(this._max),console.warn(`Conflict with the high-end value and max value. High-end value has been converted to the max value (${this._max})`)),(this._lowInputValue<this._min||this._lowInputValue>this._max)&&(this.setValueLow(this._min),console.warn(`Conflict with the low-end value and min value. Low-end value has been converted to the min value (${this._min})`)),this._step<=0&&(this._step=1,console.warn("Property step needs a value higher than 0. Converted the step value to 1 (default)")),(this._max-this._min)/this._step%1!==0&&console.error("Conflict with step value and the min and max values. May experience bad side effects"),this._minGap&&this._minGap<this._step&&(this._minGap=void 0,console.warn("Conflict with min-gap and step value. The min-gap needs to be higher than the step value. Removed the min-gap property.")),this._minGap&&this._maxGap&&this._minGap>this._maxGap&&(this._minGap=void 0,this._maxGap=void 0,console.warn("Conflict with min-gap and max-gap. Removed the min-gap and max-gap properties.")),this._minGap&&this._max-this._min<this._minGap&&(this._minGap=void 0,console.warn("Conflict with the min-gap and the total range. Removed the min-gap.")),this._maxGap&&this._highInputValue-this._lowInputValue>this._maxGap&&(this.setValueHigh(this._lowInputValue+this._maxGap),console.warn(`Conflict with value and max-gap. High-end value has been converted to the highest possible value based on the low-end value and the max gap value (${this._highInputValue})`)),this._minGap&&this._highInputValue-this._lowInputValue<this._minGap){const e=this._minGap;this._highInputValue-e<this._min?(this.setValueHigh(this._lowInputValue+e),console.warn(`Conflict with value and min gap. High-end value has been converted to the lowest possible value based on the low-end value and the min gap value (${this._highInputValue}).`)):(this.setValueLow(this._highInputValue-e),console.warn(`Conflict with value and min gap. Low-end value has been converted to the highest possible value based on the high-end value and the min gap value (${this._lowInputValue}).`))}}_updateInnerColor(){const e=this._max-this._min,t=this._lowInputValue-this._min,r=this._highInputValue-this._min,o=t/e*100,n=100-r/e*100;this._lowValuePercentStart=P(o,0,100),this._highValuePercentEnd=P(n,0,100)}_getClickedValue(e){const t=this._outerTrack.getBoundingClientRect().left,r=(e-t-we)/(this._trackWidth-we*2)*(this._max-this._min)+this._min;return Math.round(r/this._step)*this._step}_saveStartPoints(e){this.startPoint={mouse:e,low:this._lowInputValue,high:this._highInputValue}}_dragBothValuesByMousePos(e){const t=this._outerTrack.offsetWidth,r=e-this.startPoint.mouse,o=this._max-this._min,n=r/(t+we*2),s=Math.round(n*o/this._step)*this._step,h=this.startPoint.low+s,c=this.startPoint.high+s;this.setValue(h,c,!0),this.dispatchEvent(new se(se.INPUT))}_onLowInput(e){this.disabled&&e.preventDefault(),this._currentFocus=this._inputLow;const t=Number(e.target.value);this.setValueLow(t),this.dispatchEvent(new se(se.INPUT))}_onHighInput(e){this.disabled&&e.preventDefault(),this._currentFocus=this._inputHigh;const t=Number(e.target.value);this.setValueHigh(t),this.dispatchEvent(new se(se.INPUT))}_onLowChange(){this.setValueLow(Number(this._inputLow.value)),this.onChanged()}_onHighChange(){this.setValueHigh(Number(this._inputHigh.value)),this.onChanged()}onChanged(){this.pristine=!1,this.dispatchEvent(new se(se.CHANGE))}render(){return u`
|
|
319
487
|
<div id="range-slider">
|
|
320
488
|
${this._renderNativeInputs()}
|
|
321
489
|
<div id="inner-track">
|
|
@@ -332,7 +500,7 @@
|
|
|
332
500
|
`}_renderThumbValues(){return u`<div class="thumb-values">
|
|
333
501
|
<span><span>${this._lowInputValue}</span></span>
|
|
334
502
|
<span><span>${this._highInputValue}</span></span>
|
|
335
|
-
</div>`}_renderSteps(){const e=(this._max-this._min)/this._step,t=(this._trackWidth-
|
|
503
|
+
</div>`}_renderSteps(){const e=(this._max-this._min)/this._step,t=(this._trackWidth-we*2)/e;if(t<b1||e%1!==0)return;let r=0;const o=new Array(e+1).fill(t).map(n=>n*r++);return u`<div class="step-wrapper">
|
|
336
504
|
<svg height="100%" width="100%">
|
|
337
505
|
<rect x="9" y="9" height="3" rx="2" />
|
|
338
506
|
${this._renderStepCircles(o)}
|
|
@@ -340,7 +508,7 @@
|
|
|
340
508
|
${this._renderStepValues(e)}
|
|
341
509
|
</div>`}_renderStepValues(e){if(this.hideStepValues||e>20)return;let t=0;const r=new Array(e+1).fill(this._step).map(o=>this._min+o*t++);return u`<div class="step-values">
|
|
342
510
|
${r.map(o=>u`<span><span>${o}</span></span>`)}
|
|
343
|
-
</div>`}_renderStepCircles(e){const t=this._trackWidth/(this._max-this._min);return _`${e.map(r=>{const o=r+
|
|
511
|
+
</div>`}_renderStepCircles(e){const t=this._trackWidth/(this._max-this._min);return _`${e.map(r=>{const o=r+we,n=this._lowInputValue-this._min,s=this._highInputValue-this._min;return o/t>=n&&o/t<=s?_`<circle class="track-step filled" cx="${o}" cy="5" r="4.5" />`:_`<circle class="track-step regular" cx="${o}" cy="5" r="4.5" />`})}`}_renderNativeInputs(){return u` <div class="native-wrapper">
|
|
344
512
|
<input
|
|
345
513
|
id="inputLow"
|
|
346
514
|
class="${this._movement?"focus":""}"
|
|
@@ -365,7 +533,7 @@
|
|
|
365
533
|
?disabled="${this.disabled}"
|
|
366
534
|
@input=${this._onHighInput}
|
|
367
535
|
@change=${this._onHighChange} />
|
|
368
|
-
</div>`}},
|
|
536
|
+
</div>`}},Pe=new WeakSet,We=function(){const i=this.value.split(",");let e=Number(i[0])||0,t=Number(i[1])||0;t=P(t,this._min,this._max),e=this._min+Math.round((e-this._min)/this._step)*this._step,t=this._min+Math.round((t-this._min)/this._step)*this._step,this._lowInputValue=P(e,this._min,this._minGap?t-this._minGap:t-this._step),this._highInputValue=P(t,this._minGap?this._lowInputValue+this._minGap:this._lowInputValue+this._step,Math.min(this._maxGap?e+this._maxGap:this._max,this._max)),this._updateInnerColor(),this.requestUpdate()},a.UUIRangeSliderElement.formAssociated=!0,a.UUIRangeSliderElement.styles=[p`
|
|
369
537
|
:host {
|
|
370
538
|
--color-interactive: var(--uui-color-selected,#3544b1);
|
|
371
539
|
--color-hover: var(--uui-color-selected-emphasis,rgb(70, 86, 200));
|
|
@@ -393,8 +561,8 @@
|
|
|
393
561
|
background-color: var(--uui-color-border-standalone,#c2c2c2);
|
|
394
562
|
position: absolute;
|
|
395
563
|
height: 3px;
|
|
396
|
-
left: ${
|
|
397
|
-
right: ${
|
|
564
|
+
left: ${we}px; /* Match TRACK_MARGIN */
|
|
565
|
+
right: ${we}px; /* Match TRACK_MARGIN */
|
|
398
566
|
}
|
|
399
567
|
|
|
400
568
|
:host(:not([disabled]):hover) #inner-track,
|
|
@@ -411,7 +579,7 @@
|
|
|
411
579
|
height: ${Vt}px;
|
|
412
580
|
cursor: grab;
|
|
413
581
|
user-select: none;
|
|
414
|
-
z-index: ${
|
|
582
|
+
z-index: ${Ko.CENTER};
|
|
415
583
|
}
|
|
416
584
|
|
|
417
585
|
:host([disabled]) #inner-color-thumb {
|
|
@@ -456,7 +624,7 @@
|
|
|
456
624
|
|
|
457
625
|
/** Steps */
|
|
458
626
|
.step-wrapper {
|
|
459
|
-
margin: 0 ${-1*
|
|
627
|
+
margin: 0 ${-1*we}px;
|
|
460
628
|
height: 11px;
|
|
461
629
|
position: absolute;
|
|
462
630
|
left: 0;
|
|
@@ -495,7 +663,7 @@
|
|
|
495
663
|
|
|
496
664
|
.step-values {
|
|
497
665
|
box-sizing: border-box;
|
|
498
|
-
margin: 0 ${
|
|
666
|
+
margin: 0 ${we}px; /* Match TRACK_MARGIN */
|
|
499
667
|
display: flex;
|
|
500
668
|
justify-content: space-between;
|
|
501
669
|
font-size: var(--uui-type-small-size,12px);
|
|
@@ -573,7 +741,7 @@
|
|
|
573
741
|
pointer-events: all;
|
|
574
742
|
cursor: grab;
|
|
575
743
|
position: relative;
|
|
576
|
-
z-index: ${
|
|
744
|
+
z-index: ${Ko.TOP};
|
|
577
745
|
width: ${Vt}px;
|
|
578
746
|
height: ${Vt}px;
|
|
579
747
|
border-radius: 24px;
|
|
@@ -612,7 +780,7 @@
|
|
|
612
780
|
pointer-events: all;
|
|
613
781
|
cursor: grab;
|
|
614
782
|
position: relative;
|
|
615
|
-
z-index: ${
|
|
783
|
+
z-index: ${Ko.TOP};
|
|
616
784
|
width: ${Vt}px;
|
|
617
785
|
height: ${Vt}px;
|
|
618
786
|
border-radius: 24px;
|
|
@@ -643,7 +811,7 @@
|
|
|
643
811
|
box-shadow: inset 0 0 0 2px var(--uui-palette-mine-grey,#3e3e3e),
|
|
644
812
|
inset 0 0 0 4px var(--uui-color-surface,#fff);
|
|
645
813
|
}
|
|
646
|
-
`],O([l({type:String})],s.UUIRangeSliderElement.prototype,"label",2),O([l({type:Boolean,reflect:!0})],s.UUIRangeSliderElement.prototype,"disabled",2),O([l({type:Number})],s.UUIRangeSliderElement.prototype,"min",1),O([l({type:Number})],s.UUIRangeSliderElement.prototype,"max",1),O([l({type:Boolean,attribute:"hide-step-values"})],s.UUIRangeSliderElement.prototype,"hideStepValues",2),O([l({type:Number})],s.UUIRangeSliderElement.prototype,"step",1),O([l({type:Number,attribute:"min-gap"})],s.UUIRangeSliderElement.prototype,"minGap",1),O([l({type:Number,attribute:"max-gap"})],s.UUIRangeSliderElement.prototype,"maxGap",1),O([l({type:String})],s.UUIRangeSliderElement.prototype,"value",1),O([g()],s.UUIRangeSliderElement.prototype,"_movement",2),O([g()],s.UUIRangeSliderElement.prototype,"_lowInputValue",2),O([g()],s.UUIRangeSliderElement.prototype,"_highInputValue",2),O([g()],s.UUIRangeSliderElement.prototype,"_trackWidth",2),O([g()],s.UUIRangeSliderElement.prototype,"_lowValuePercentStart",2),O([g()],s.UUIRangeSliderElement.prototype,"_highValuePercentEnd",2),O([C("#range-slider")],s.UUIRangeSliderElement.prototype,"_outerTrack",2),O([C("#inputLow")],s.UUIRangeSliderElement.prototype,"_inputLow",2),O([C("#inputHigh")],s.UUIRangeSliderElement.prototype,"_inputHigh",2),O([C(".color")],s.UUIRangeSliderElement.prototype,"_innerColor",2),O([C("#inner-color-thumb")],s.UUIRangeSliderElement.prototype,"_innerColorThumb",2),s.UUIRangeSliderElement=O([b("uui-range-slider")],s.UUIRangeSliderElement);var p1=Object.defineProperty,b1=Object.getOwnPropertyDescriptor,m1=(i,e,t,r)=>{for(var o=r>1?void 0:r?b1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&p1(e,t,o),o};s.UUIRefListElement=class extends m{render(){return u`<slot></slot>`}},s.UUIRefListElement.styles=[p`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;left:0;right:0;border-top:1px solid var(--uui-color-border,#d8d7d9)}`],s.UUIRefListElement=m1([b("uui-ref-list")],s.UUIRefListElement);class _t extends P{}_t.OPEN="open";var v1=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,Yo=(i,e,t,r)=>{for(var o=r>1?void 0:r?g1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&v1(e,t,o),o};s.UUIRefElement=class extends Qt(it(m)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){e.stopPropagation(),this.dispatchEvent(new _t(_t.OPEN))}handleOpenKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new _t(_t.OPEN)))}},s.UUIRefElement.styles=[p`:host{position:relative;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);--uui-card-before-opacity:0;transition:--uui-card-before-opacity 120ms}:host(:focus){outline-color:#6ab4f0}:host([error]){border:2px solid var(--uui-color-danger,#d42054);box-shadow:0 0 4px 0 var(--uui-color-danger,#d42054),inset 0 0 2px 0 var(--uui-color-danger,#d42054)}:host([border]){border:1px solid var(--uui-color-border,#d8d7d9)}:host([selectable]){cursor:pointer}:host([selectable]) #select-border{position:absolute;z-index:2;top:-2px;left:-2px;right:-2px;bottom:-2px;pointer-events:none;opacity:0;transition:opacity 120ms}:host([selectable]) #select-border::after{content:'';position:absolute;width:100%;height:100%;box-sizing:border-box;border:2px solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-color-selected,#3544b1),inset 0 0 2px 0 var(--uui-color-selected,#3544b1)}:host([selected]) #select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border{opacity:.33}:host([selectable][selected]:hover) #select-border{opacity:.8}:host([selectable]:not([selected])) #open-part:hover+#select-border{opacity:0}:host([selectable][selected]) #open-part:hover+#select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border::after{animation:not-selected--hover 1.2s infinite}@keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}:host([selectable][selected]:hover) #select-border::after{animation:selected--hover 1.4s infinite}@keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}:host([selectable]) #open-part:hover+#select-border::after{animation:none}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-2,6px) * 4);margin-right:var(--uui-size-2,6px)}#actions-container{opacity:0;transition:opacity 120ms}:host(:hover) #actions-container{opacity:1}:host([border]:not([disabled]):hover){border-color:var(--uui-color-border-emphasis,#a1a1a1)}:host([disabled]) #open-part{cursor:default}:host([border][disabled]){border-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=tag]{flex-grow:1;display:flex;justify-content:flex-end;align-items:center}`],Yo([l({type:Boolean,reflect:!0})],s.UUIRefElement.prototype,"disabled",2),Yo([l({type:Boolean,reflect:!0})],s.UUIRefElement.prototype,"error",2),s.UUIRefElement=Yo([b("uui-ref")],s.UUIRefElement);var f1=Object.defineProperty,y1=Object.getOwnPropertyDescriptor,Pi=(i,e,t,r)=>{for(var o=r>1?void 0:r?y1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&f1(e,t,o),o};s.UUIRefNodeElement=class extends s.UUIRefElement{constructor(){super(...arguments),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}connectedCallback(){super.connectedCallback(),w(this,"uui-icon")}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}_renderFallbackIcon(){return u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}</span><div id="info"><div id="name">${this.name}</div>${this.renderDetail()}</div></button><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions" id="actions-container"></slot>`}},s.UUIRefNodeElement.styles=[...s.UUIRefElement.styles,p`:host{min-width:250px;padding:calc(var(--uui-size-2,6px) + 1px)}#open-part{align-self:stretch;display:flex;position:relative;align-items:center;cursor:pointer}#icon{font-size:1.2em;margin-left:var(--uui-size-2,6px);margin-right:var(--uui-size-1,3px)}#info{display:flex;flex-direction:column;align-items:start;justify-content:center;height:100%;padding-left:var(--uui-size-2,6px)}#name{font-weight:700}#detail{font-size:var(--uui-type-small-size,12px)}:host(:not([disabled])) #open-part:hover #icon{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #name{font-weight:700;text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]) #icon{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #name{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #detail{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],Pi([l({type:String})],s.UUIRefNodeElement.prototype,"name",2),Pi([l({type:String})],s.UUIRefNodeElement.prototype,"detail",2),Pi([g()],s.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),s.UUIRefNodeElement=Pi([b("uui-ref-node")],s.UUIRefNodeElement);var _1=Object.defineProperty,w1=Object.getOwnPropertyDescriptor,Va=(i,e,t,r)=>{for(var o=r>1?void 0:r?w1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_1(e,t,o),o};s.UUIRefNodeDataTypeElement=class extends s.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodeDataTypeElement.styles=[...s.UUIRefNodeElement.styles],Va([l({type:String})],s.UUIRefNodeDataTypeElement.prototype,"alias",2),s.UUIRefNodeDataTypeElement=Va([b("uui-ref-node-data-type")],s.UUIRefNodeDataTypeElement);var $1=Object.defineProperty,U1=Object.getOwnPropertyDescriptor,Ha=(i,e,t,r)=>{for(var o=r>1?void 0:r?U1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$1(e,t,o),o};s.UUIRefNodeDocumentTypeElement=class extends s.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodeDocumentTypeElement.styles=[...s.UUIRefNodeElement.styles],Ha([l({type:String})],s.UUIRefNodeDocumentTypeElement.prototype,"alias",2),s.UUIRefNodeDocumentTypeElement=Ha([b("uui-ref-node-document-type")],s.UUIRefNodeDocumentTypeElement);var E1=Object.defineProperty,k1=Object.getOwnPropertyDescriptor,I1=(i,e,t,r)=>{for(var o=r>1?void 0:r?k1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&E1(e,t,o),o};s.UUIRefNodeFormElement=class extends s.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M444.72 215.28H67.28c-11.04 0-20-8.96-20-20V64.896c0-11.04 8.96-20 20-20h377.44c11.04 0 20 8.96 20 20V195.28c0 11.056-8.96 20-20 20zm-357.44-40h337.44V84.896H87.28v90.384zm185.504 215.696c0-6.848.704-13.504 1.936-20H87.28v-90.384h337.44v12.496a108.098 108.098 0 0140 31.36v-63.856c0-11.04-8.96-20-20-20H67.28c-11.04 0-20 8.96-20 20v130.384c0 11.04 8.96 20 20 20h207.44c-1.232-6.496-1.936-13.152-1.936-20zm107.552-76.128c-41.968 0-76.112 34.16-76.112 76.128s34.144 76.128 76.112 76.128 76.128-34.16 76.128-76.128-34.144-76.128-76.128-76.128zm46.016 80.464a7.293 7.293 0 01-7.296 7.296h-27.072v27.088a7.293 7.293 0 01-7.296 7.296H376a7.293 7.293 0 01-7.296-7.296v-27.088h-27.072a7.293 7.293 0 01-7.296-7.296v-8.672a7.293 7.293 0 017.296-7.296h27.072v-27.088A7.293 7.293 0 01376 344.96h8.688a7.293 7.293 0 017.296 7.296v27.088h27.072a7.293 7.293 0 017.296 7.296v8.672z"></path></svg>'}},s.UUIRefNodeFormElement.styles=[...s.UUIRefNodeElement.styles],s.UUIRefNodeFormElement=I1([b("uui-ref-node-form")],s.UUIRefNodeFormElement);var x1=Object.defineProperty,C1=Object.getOwnPropertyDescriptor,Ba=(i,e,t,r)=>{for(var o=r>1?void 0:r?C1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&x1(e,t,o),o};s.UUIRefNodeMemberElement=class extends s.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodeMemberElement.styles=[...s.UUIRefNodeElement.styles],Ba([l({type:String,attribute:"group-name"})],s.UUIRefNodeMemberElement.prototype,"groupName",2),s.UUIRefNodeMemberElement=Ba([b("uui-ref-node-member")],s.UUIRefNodeMemberElement);var P1=Object.defineProperty,S1=Object.getOwnPropertyDescriptor,Zo=(i,e,t,r)=>{for(var o=r>1?void 0:r?S1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&P1(e,t,o),o};s.UUIRefNodePackageElement=class extends s.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.version!==""&&e.push(this.version),this.author!==""&&e.push(this.author),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodePackageElement.styles=[...s.UUIRefNodeElement.styles],Zo([l({type:String})],s.UUIRefNodePackageElement.prototype,"version",2),Zo([l({type:String})],s.UUIRefNodePackageElement.prototype,"author",2),s.UUIRefNodePackageElement=Zo([b("uui-ref-node-package")],s.UUIRefNodePackageElement);var O1=Object.defineProperty,z1=Object.getOwnPropertyDescriptor,Ra=(i,e,t,r)=>{for(var o=r>1?void 0:r?z1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&O1(e,t,o),o};s.UUIRefNodeUserElement=class extends s.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodeUserElement.styles=[...s.UUIRefNodeElement.styles],Ra([l({type:String,attribute:"group-name"})],s.UUIRefNodeUserElement.prototype,"groupName",2),s.UUIRefNodeUserElement=Ra([b("uui-ref-node-user")],s.UUIRefNodeUserElement);var A1=Object.defineProperty,L1=Object.getOwnPropertyDescriptor,Fa=(i,e,t,r)=>{for(var o=r>1?void 0:r?L1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&A1(e,t,o),o};s.UUIScrollContainerElement=class extends m{constructor(){super(...arguments),this.enforceScroll=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}render(){return u`<slot></slot>`}},s.UUIScrollContainerElement.styles=[p`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-color-disabled-contrast,#c4c4c4) var(--uui-color-surface,#fff);overflow-y:auto}:host([enforce-scroll]){overflow-y:scroll}:host::-webkit-scrollbar{width:6px;height:6px}:host::-webkit-scrollbar-track{background:var(--uui-color-surface,#fff);border-radius:3px}:host::-webkit-scrollbar-thumb{background-color:var(--uui-color-disabled-contrast,#c4c4c4);border-radius:3px}`],Fa([l({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],s.UUIScrollContainerElement.prototype,"enforceScroll",2),s.UUIScrollContainerElement=Fa([b("uui-scroll-container")],s.UUIScrollContainerElement);var j1=Object.defineProperty,Ga=Object.getOwnPropertySymbols,N1=Object.prototype.hasOwnProperty,T1=Object.prototype.propertyIsEnumerable,qa=(i,e,t)=>e in i?j1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Wa=(i,e)=>{for(var t in e||(e={}))N1.call(e,t)&&qa(i,t,e[t]);if(Ga)for(var t of Ga(e))T1.call(e,t)&&qa(i,t,e[t]);return i};let Si=class extends P{constructor(e,t={}){super(e,Wa(Wa({},{bubbles:!0}),t))}};Si.CHANGE="change";var M1=Object.defineProperty,D1=Object.getOwnPropertyDescriptor,ae=(i,e,t,r)=>{for(var o=r>1?void 0:r?D1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&M1(e,t,o),o};s.UUISelectElement=class extends ee(m){constructor(){super(),this.placeholder="",this.disabled=!1,this.error=!1,this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._values=[],this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}focus(){this._input.focus()}click(){this._input.click()}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","))}_extractGroups(){this.options.length!==0&&(this._groups=Array.from(new Set(this.options.filter(e=>e.group).map(e=>e.group))))}willUpdate(e){if(e.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const t=this.options.find(r=>r.selected);this.value=t?t.value:""}e.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),e.has("disabledGroups")&&this._createDisabledGroups()}setValue(e){e.stopPropagation();const t=e.target;e.target&&(this.value=t.value),this.dispatchEvent(new Si(Si.CHANGE,{bubbles:!0,composed:!1}))}getFormElement(){return this._input}_renderOption(e,t,r,o){return u`<option value="${t}" ?selected="${r}" ?disabled="${o}">${e}</option>`}_renderGrouped(){return this._groups.length===0?U:u`${this._groups.map(e=>u`<optgroup label="${e}" ?disabled="${this._disabledGroups.some(t=>t.toLowerCase()===e.toLowerCase())}">${this.options.map(t=>t.group===e?this._renderOption(t.name,t.value,t.selected,t.disabled):"")}</optgroup>`)}`}render(){return u`<select id="native" aria-label="${this.label}" @change="${this.setValue}" ?disabled="${this.disabled}" .name="${this.name}" .value="${this.value}"><option disabled="disabled" selected="selected" value="" hidden>${this.placeholder}</option>${this._renderGrouped()} ${this.options.filter(e=>!e.group).map(e=>this._renderOption(e.name,e.value,e.selected,e.disabled))}</select>`}},s.UUISelectElement.styles=[p`:host{position:relative;font-family:inherit}#native{display:inline-block;font-family:inherit;font-size:var(--uui-select-font-size,var(--uui-size-5,15px));height:var(--uui-select-height,var(--uui-size-11,33px));width:100%;padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:currentColor;border-radius:0;box-sizing:border-box;background-color:transparent;border:1px solid var(--uui-select-border-color,var(--uui-color-border,#d8d7d9));transition:all 150ms ease}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}#native[disabled]{cursor:not-allowed;background-color:var(--uui-select-disabled-background-color,var(--uui-color-disabled,#f3f3f5))}#native:hover{border:1px solid var(--uui-select-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1))}option:checked{background:var(--uui-select-selected-option-background-color,var(--uui-color-selected,#3544b1));color:var(--uui-select-selected-option-color,var(--uui-color-selected-contrast,#fff))}#native:focus{outline-color:var(--uui-select-outline-color,var(--uui-color-focus,#3879ff))}#caret{position:absolute;right:12px;top:50%;transform:translateY(-50%)}:host([error]) #native{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([error]) #native[disabled]{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],ae([l({type:String})],s.UUISelectElement.prototype,"label",2),ae([l()],s.UUISelectElement.prototype,"placeholder",2),ae([l({type:Boolean,reflect:!0})],s.UUISelectElement.prototype,"disabled",2),ae([l({type:Boolean,reflect:!0})],s.UUISelectElement.prototype,"error",2),ae([l({type:Array,attribute:!1})],s.UUISelectElement.prototype,"options",2),ae([g()],s.UUISelectElement.prototype,"_groups",2),ae([l()],s.UUISelectElement.prototype,"disabledGroups",2),ae([g()],s.UUISelectElement.prototype,"_disabledGroups",2),ae([C("#native")],s.UUISelectElement.prototype,"_input",2),s.UUISelectElement=ae([b("uui-select")],s.UUISelectElement);const V1=p`
|
|
814
|
+
`],S([l({type:String})],a.UUIRangeSliderElement.prototype,"label",2),S([l({type:Boolean,reflect:!0})],a.UUIRangeSliderElement.prototype,"disabled",2),S([l({type:Number})],a.UUIRangeSliderElement.prototype,"min",1),S([l({type:Number})],a.UUIRangeSliderElement.prototype,"max",1),S([l({type:Boolean,attribute:"hide-step-values"})],a.UUIRangeSliderElement.prototype,"hideStepValues",2),S([l({type:Number})],a.UUIRangeSliderElement.prototype,"step",1),S([l({type:Number,attribute:"min-gap"})],a.UUIRangeSliderElement.prototype,"minGap",1),S([l({type:Number,attribute:"max-gap"})],a.UUIRangeSliderElement.prototype,"maxGap",1),S([l({type:String})],a.UUIRangeSliderElement.prototype,"value",1),S([g()],a.UUIRangeSliderElement.prototype,"_movement",2),S([g()],a.UUIRangeSliderElement.prototype,"_lowInputValue",2),S([g()],a.UUIRangeSliderElement.prototype,"_highInputValue",2),S([g()],a.UUIRangeSliderElement.prototype,"_trackWidth",2),S([g()],a.UUIRangeSliderElement.prototype,"_lowValuePercentStart",2),S([g()],a.UUIRangeSliderElement.prototype,"_highValuePercentEnd",2),S([C("#range-slider")],a.UUIRangeSliderElement.prototype,"_outerTrack",2),S([C("#inputLow")],a.UUIRangeSliderElement.prototype,"_inputLow",2),S([C("#inputHigh")],a.UUIRangeSliderElement.prototype,"_inputHigh",2),S([C(".color")],a.UUIRangeSliderElement.prototype,"_innerColor",2),S([C("#inner-color-thumb")],a.UUIRangeSliderElement.prototype,"_innerColorThumb",2),a.UUIRangeSliderElement=S([b("uui-range-slider")],a.UUIRangeSliderElement);var m1=Object.defineProperty,v1=Object.getOwnPropertyDescriptor,g1=(i,e,t,r)=>{for(var o=r>1?void 0:r?v1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&m1(e,t,o),o};a.UUIRefListElement=class extends m{render(){return u`<slot></slot>`}},a.UUIRefListElement.styles=[p`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;left:0;right:0;border-top:1px solid var(--uui-color-border,#d8d7d9)}`],a.UUIRefListElement=g1([b("uui-ref-list")],a.UUIRefListElement);class _t extends z{}_t.OPEN="open";var f1=Object.defineProperty,y1=Object.getOwnPropertyDescriptor,Xo=(i,e,t,r)=>{for(var o=r>1?void 0:r?y1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&f1(e,t,o),o};a.UUIRefElement=class extends Zt(it(m)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){e.stopPropagation(),this.dispatchEvent(new _t(_t.OPEN))}handleOpenKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new _t(_t.OPEN)))}},a.UUIRefElement.styles=[p`:host{position:relative;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);--uui-card-before-opacity:0;transition:--uui-card-before-opacity 120ms}:host(:focus){outline-color:#6ab4f0}:host([error]){border:2px solid var(--uui-color-danger,#d42054);box-shadow:0 0 4px 0 var(--uui-color-danger,#d42054),inset 0 0 2px 0 var(--uui-color-danger,#d42054)}:host([border]){border:1px solid var(--uui-color-border,#d8d7d9)}:host([selectable]){cursor:pointer}:host([selectable]) #select-border{position:absolute;z-index:2;top:-2px;left:-2px;right:-2px;bottom:-2px;pointer-events:none;opacity:0;transition:opacity 120ms}:host([selectable]) #select-border::after{content:'';position:absolute;width:100%;height:100%;box-sizing:border-box;border:2px solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-color-selected,#3544b1),inset 0 0 2px 0 var(--uui-color-selected,#3544b1)}:host([selected]) #select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border{opacity:.33}:host([selectable][selected]:hover) #select-border{opacity:.8}:host([selectable]:not([selected])) #open-part:hover+#select-border{opacity:0}:host([selectable][selected]) #open-part:hover+#select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border::after{animation:not-selected--hover 1.2s infinite}@keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}:host([selectable][selected]:hover) #select-border::after{animation:selected--hover 1.4s infinite}@keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}:host([selectable]) #open-part:hover+#select-border::after{animation:none}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-2,6px) * 4);margin-right:var(--uui-size-2,6px)}#actions-container{opacity:0;transition:opacity 120ms}:host(:hover) #actions-container{opacity:1}:host([border]:not([disabled]):hover){border-color:var(--uui-color-border-emphasis,#a1a1a1)}:host([disabled]) #open-part{cursor:default}:host([border][disabled]){border-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=tag]{flex-grow:1;display:flex;justify-content:flex-end;align-items:center}`],Xo([l({type:Boolean,reflect:!0})],a.UUIRefElement.prototype,"disabled",2),Xo([l({type:Boolean,reflect:!0})],a.UUIRefElement.prototype,"error",2),a.UUIRefElement=Xo([b("uui-ref")],a.UUIRefElement);var _1=Object.defineProperty,w1=Object.getOwnPropertyDescriptor,Ci=(i,e,t,r)=>{for(var o=r>1?void 0:r?w1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&_1(e,t,o),o};a.UUIRefNodeElement=class extends a.UUIRefElement{constructor(){super(...arguments),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}connectedCallback(){super.connectedCallback(),w(this,"uui-icon")}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}_renderFallbackIcon(){return u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}</span><div id="info"><div id="name">${this.name}</div>${this.renderDetail()}</div></button><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions" id="actions-container"></slot>`}},a.UUIRefNodeElement.styles=[...a.UUIRefElement.styles,p`:host{min-width:250px;padding:calc(var(--uui-size-2,6px) + 1px)}#open-part{align-self:stretch;display:flex;position:relative;align-items:center;cursor:pointer}#icon{font-size:1.2em;margin-left:var(--uui-size-2,6px);margin-right:var(--uui-size-1,3px)}#info{display:flex;flex-direction:column;align-items:start;justify-content:center;height:100%;padding-left:var(--uui-size-2,6px)}#name{font-weight:700}#detail{font-size:var(--uui-type-small-size,12px)}:host(:not([disabled])) #open-part:hover #icon{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #name{font-weight:700;text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]) #icon{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #name{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #detail{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],Ci([l({type:String})],a.UUIRefNodeElement.prototype,"name",2),Ci([l({type:String})],a.UUIRefNodeElement.prototype,"detail",2),Ci([g()],a.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),a.UUIRefNodeElement=Ci([b("uui-ref-node")],a.UUIRefNodeElement);var $1=Object.defineProperty,U1=Object.getOwnPropertyDescriptor,Ds=(i,e,t,r)=>{for(var o=r>1?void 0:r?U1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&$1(e,t,o),o};a.UUIRefNodeDataTypeElement=class extends a.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},a.UUIRefNodeDataTypeElement.styles=[...a.UUIRefNodeElement.styles],Ds([l({type:String})],a.UUIRefNodeDataTypeElement.prototype,"alias",2),a.UUIRefNodeDataTypeElement=Ds([b("uui-ref-node-data-type")],a.UUIRefNodeDataTypeElement);var E1=Object.defineProperty,x1=Object.getOwnPropertyDescriptor,Vs=(i,e,t,r)=>{for(var o=r>1?void 0:r?x1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&E1(e,t,o),o};a.UUIRefNodeDocumentTypeElement=class extends a.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},a.UUIRefNodeDocumentTypeElement.styles=[...a.UUIRefNodeElement.styles],Vs([l({type:String})],a.UUIRefNodeDocumentTypeElement.prototype,"alias",2),a.UUIRefNodeDocumentTypeElement=Vs([b("uui-ref-node-document-type")],a.UUIRefNodeDocumentTypeElement);var k1=Object.defineProperty,I1=Object.getOwnPropertyDescriptor,C1=(i,e,t,r)=>{for(var o=r>1?void 0:r?I1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&k1(e,t,o),o};a.UUIRefNodeFormElement=class extends a.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M444.72 215.28H67.28c-11.04 0-20-8.96-20-20V64.896c0-11.04 8.96-20 20-20h377.44c11.04 0 20 8.96 20 20V195.28c0 11.056-8.96 20-20 20zm-357.44-40h337.44V84.896H87.28v90.384zm185.504 215.696c0-6.848.704-13.504 1.936-20H87.28v-90.384h337.44v12.496a108.098 108.098 0 0140 31.36v-63.856c0-11.04-8.96-20-20-20H67.28c-11.04 0-20 8.96-20 20v130.384c0 11.04 8.96 20 20 20h207.44c-1.232-6.496-1.936-13.152-1.936-20zm107.552-76.128c-41.968 0-76.112 34.16-76.112 76.128s34.144 76.128 76.112 76.128 76.128-34.16 76.128-76.128-34.144-76.128-76.128-76.128zm46.016 80.464a7.293 7.293 0 01-7.296 7.296h-27.072v27.088a7.293 7.293 0 01-7.296 7.296H376a7.293 7.293 0 01-7.296-7.296v-27.088h-27.072a7.293 7.293 0 01-7.296-7.296v-8.672a7.293 7.293 0 017.296-7.296h27.072v-27.088A7.293 7.293 0 01376 344.96h8.688a7.293 7.293 0 017.296 7.296v27.088h27.072a7.293 7.293 0 017.296 7.296v8.672z"></path></svg>'}},a.UUIRefNodeFormElement.styles=[...a.UUIRefNodeElement.styles],a.UUIRefNodeFormElement=C1([b("uui-ref-node-form")],a.UUIRefNodeFormElement);var z1=Object.defineProperty,P1=Object.getOwnPropertyDescriptor,Hs=(i,e,t,r)=>{for(var o=r>1?void 0:r?P1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&z1(e,t,o),o};a.UUIRefNodeMemberElement=class extends a.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},a.UUIRefNodeMemberElement.styles=[...a.UUIRefNodeElement.styles],Hs([l({type:String,attribute:"group-name"})],a.UUIRefNodeMemberElement.prototype,"groupName",2),a.UUIRefNodeMemberElement=Hs([b("uui-ref-node-member")],a.UUIRefNodeMemberElement);var S1=Object.defineProperty,O1=Object.getOwnPropertyDescriptor,Yo=(i,e,t,r)=>{for(var o=r>1?void 0:r?O1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&S1(e,t,o),o};a.UUIRefNodePackageElement=class extends a.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.version!==""&&e.push(this.version),this.author!==""&&e.push(this.author),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},a.UUIRefNodePackageElement.styles=[...a.UUIRefNodeElement.styles],Yo([l({type:String})],a.UUIRefNodePackageElement.prototype,"version",2),Yo([l({type:String})],a.UUIRefNodePackageElement.prototype,"author",2),a.UUIRefNodePackageElement=Yo([b("uui-ref-node-package")],a.UUIRefNodePackageElement);var A1=Object.defineProperty,L1=Object.getOwnPropertyDescriptor,Bs=(i,e,t,r)=>{for(var o=r>1?void 0:r?L1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&A1(e,t,o),o};a.UUIRefNodeUserElement=class extends a.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},a.UUIRefNodeUserElement.styles=[...a.UUIRefNodeElement.styles],Bs([l({type:String,attribute:"group-name"})],a.UUIRefNodeUserElement.prototype,"groupName",2),a.UUIRefNodeUserElement=Bs([b("uui-ref-node-user")],a.UUIRefNodeUserElement);var j1=Object.defineProperty,N1=Object.getOwnPropertyDescriptor,Rs=(i,e,t,r)=>{for(var o=r>1?void 0:r?N1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&j1(e,t,o),o};a.UUIScrollContainerElement=class extends m{constructor(){super(...arguments),this.enforceScroll=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}render(){return u`<slot></slot>`}},a.UUIScrollContainerElement.styles=[p`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-color-disabled-contrast,#c4c4c4) var(--uui-color-surface,#fff);overflow-y:auto}:host([enforce-scroll]){overflow-y:scroll}:host::-webkit-scrollbar{width:6px;height:6px}:host::-webkit-scrollbar-track{background:var(--uui-color-surface,#fff);border-radius:3px}:host::-webkit-scrollbar-thumb{background-color:var(--uui-color-disabled-contrast,#c4c4c4);border-radius:3px}`],Rs([l({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],a.UUIScrollContainerElement.prototype,"enforceScroll",2),a.UUIScrollContainerElement=Rs([b("uui-scroll-container")],a.UUIScrollContainerElement);var T1=Object.defineProperty,Fs=Object.getOwnPropertySymbols,M1=Object.prototype.hasOwnProperty,D1=Object.prototype.propertyIsEnumerable,Gs=(i,e,t)=>e in i?T1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,qs=(i,e)=>{for(var t in e||(e={}))M1.call(e,t)&&Gs(i,t,e[t]);if(Fs)for(var t of Fs(e))D1.call(e,t)&&Gs(i,t,e[t]);return i};let zi=class extends z{constructor(e,t={}){super(e,qs(qs({},{bubbles:!0}),t))}};zi.CHANGE="change";var V1=Object.defineProperty,H1=Object.getOwnPropertyDescriptor,le=(i,e,t,r)=>{for(var o=r>1?void 0:r?H1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&V1(e,t,o),o};a.UUISelectElement=class extends te(m){constructor(){super(),this.placeholder="",this.disabled=!1,this.error=!1,this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._values=[],this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}focus(){this._input.focus()}click(){this._input.click()}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","))}_extractGroups(){this.options.length!==0&&(this._groups=Array.from(new Set(this.options.filter(e=>e.group).map(e=>e.group))))}willUpdate(e){if(e.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const t=this.options.find(r=>r.selected);this.value=t?t.value:""}e.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),e.has("disabledGroups")&&this._createDisabledGroups()}setValue(e){e.stopPropagation();const t=e.target;e.target&&(this.value=t.value),this.dispatchEvent(new zi(zi.CHANGE,{bubbles:!0,composed:!1}))}getFormElement(){return this._input}_renderOption(e,t,r,o){return u`<option value="${t}" ?selected="${r}" ?disabled="${o}">${e}</option>`}_renderGrouped(){return this._groups.length===0?U:u`${this._groups.map(e=>u`<optgroup label="${e}" ?disabled="${this._disabledGroups.some(t=>t.toLowerCase()===e.toLowerCase())}">${this.options.map(t=>t.group===e?this._renderOption(t.name,t.value,t.selected,t.disabled):"")}</optgroup>`)}`}render(){return u`<select id="native" aria-label="${this.label}" @change="${this.setValue}" ?disabled="${this.disabled}" .name="${this.name}" .value="${this.value}"><option disabled="disabled" selected="selected" value="" hidden>${this.placeholder}</option>${this._renderGrouped()} ${this.options.filter(e=>!e.group).map(e=>this._renderOption(e.name,e.value,e.selected,e.disabled))}</select>`}},a.UUISelectElement.styles=[p`:host{position:relative;font-family:inherit}#native{display:inline-block;font-family:inherit;font-size:var(--uui-select-font-size,var(--uui-size-5,15px));height:var(--uui-select-height,var(--uui-size-11,33px));width:100%;padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:currentColor;border-radius:0;box-sizing:border-box;background-color:transparent;border:1px solid var(--uui-select-border-color,var(--uui-color-border,#d8d7d9));transition:all 150ms ease}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}#native[disabled]{cursor:not-allowed;background-color:var(--uui-select-disabled-background-color,var(--uui-color-disabled,#f3f3f5))}#native:hover{border:1px solid var(--uui-select-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1))}option:checked{background:var(--uui-select-selected-option-background-color,var(--uui-color-selected,#3544b1));color:var(--uui-select-selected-option-color,var(--uui-color-selected-contrast,#fff))}#native:focus{outline-color:var(--uui-select-outline-color,var(--uui-color-focus,#3879ff))}#caret{position:absolute;right:12px;top:50%;transform:translateY(-50%)}:host([error]) #native{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([error]) #native[disabled]{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],le([l({type:String})],a.UUISelectElement.prototype,"label",2),le([l()],a.UUISelectElement.prototype,"placeholder",2),le([l({type:Boolean,reflect:!0})],a.UUISelectElement.prototype,"disabled",2),le([l({type:Boolean,reflect:!0})],a.UUISelectElement.prototype,"error",2),le([l({type:Array,attribute:!1})],a.UUISelectElement.prototype,"options",2),le([g()],a.UUISelectElement.prototype,"_groups",2),le([l()],a.UUISelectElement.prototype,"disabledGroups",2),le([g()],a.UUISelectElement.prototype,"_disabledGroups",2),le([C("#native")],a.UUISelectElement.prototype,"_input",2),a.UUISelectElement=le([b("uui-select")],a.UUISelectElement);const B1=p`
|
|
647
815
|
input[type='range'] {
|
|
648
816
|
left: 0;
|
|
649
817
|
position: absolute;
|
|
@@ -750,15 +918,15 @@
|
|
|
750
918
|
input[type='range']:focus::-ms-fill-upper {
|
|
751
919
|
background: transparent;
|
|
752
920
|
}
|
|
753
|
-
`;var
|
|
754
|
-
${i.map(t=>{if(e>=
|
|
755
|
-
`,
|
|
921
|
+
`;var R1=Object.defineProperty,Ws=Object.getOwnPropertySymbols,F1=Object.prototype.hasOwnProperty,G1=Object.prototype.propertyIsEnumerable,Ks=(i,e,t)=>e in i?R1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Xs=(i,e)=>{for(var t in e||(e={}))F1.call(e,t)&&Ks(i,t,e[t]);if(Ws)for(var t of Ws(e))G1.call(e,t)&&Ks(i,t,e[t]);return i};let Ke=class extends z{constructor(e,t={}){super(e,Xs(Xs({},{bubbles:!0}),t))}};Ke.INPUT="input",Ke.CHANGE="change";var q1=Object.defineProperty,W1=Object.getOwnPropertyDescriptor,F=(i,e,t,r)=>{for(var o=r>1?void 0:r?W1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&q1(e,t,o),o};const Ht=12,Ys=24,K1=(i,e)=>_`
|
|
922
|
+
${i.map(t=>{if(e>=Ys){const r=Math.round(Ht+e*i.indexOf(t));return _`<circle class="track-step" cx="${r}" cy="50%" r="4.5" />`}return _``})}
|
|
923
|
+
`,X1=(i,e,t)=>t?U:u`<div id="step-values">
|
|
756
924
|
${i.map(r=>u` <span
|
|
757
925
|
><span>
|
|
758
|
-
${i.length<=20&&e>=
|
|
926
|
+
${i.length<=20&&e>=Ys?r.toFixed(0):U}
|
|
759
927
|
</span></span
|
|
760
928
|
>`)}
|
|
761
|
-
</div>`,
|
|
929
|
+
</div>`,Y1=(i,e,t)=>Array.from({length:(e-i)/t+1},(r,o)=>i+o*t);a.UUISliderElement=class extends te(m){constructor(){super(),this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this.disabled=!1,this._stepWidth=0,this.onWindowResize=()=>{this._stepWidth=this._calculateStepWidth()},this._steps=[],this._sliderPosition="0%",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(e){if(e instanceof File)return;const t=this._value;let r=e?parseFloat(e):0;r=Math.min(Math.max(r,this.min),this.max),this.step>0&&(r=Math.round(r/this.step)*this.step),this._value=r.toString(),this._calculateSliderPosition(),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",t)}focus(){this._input.focus()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize),this.label||console.warn(this.tagName+" needs a `label`",this)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._calculateSliderPosition(),this._updateSteps()}updated(e){super.updated(e),(e.get("max")||e.get("min")||e.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=Y1(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-Ht*2)/(this._steps.length-1)}_onKeypress(e){e.key=="Enter"&&this.submit()}_calculateSliderPosition(){const e=(parseFloat(this._value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(e*1e5)/1e3}%`}_onInput(e){e.stopPropagation(),this.value=this._input.value,this.dispatchEvent(new Ke(Ke.INPUT))}_onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Ke(Ke.CHANGE))}render(){return u`
|
|
762
930
|
<input
|
|
763
931
|
id="input"
|
|
764
932
|
type="range"
|
|
@@ -773,17 +941,17 @@
|
|
|
773
941
|
<div id="track" aria-hidden="true">
|
|
774
942
|
<svg height="100%" width="100%">
|
|
775
943
|
<rect x="9" y="9" height="3" rx="2" />
|
|
776
|
-
${
|
|
944
|
+
${K1(this._steps,this._stepWidth)}
|
|
777
945
|
</svg>
|
|
778
946
|
|
|
779
947
|
<div id="track-inner" aria-hidden="true">
|
|
780
|
-
<div id="thumb" style=${
|
|
948
|
+
<div id="thumb" style=${oe({left:this._sliderPosition})}>
|
|
781
949
|
<div id="thumb-label">${this.value}</div>
|
|
782
950
|
</div>
|
|
783
951
|
</div>
|
|
784
952
|
</div>
|
|
785
|
-
${
|
|
786
|
-
`}},
|
|
953
|
+
${X1(this._steps,this._stepWidth,this.hideStepValues)}
|
|
954
|
+
`}},a.UUISliderElement.formAssociated=!0,a.UUISliderElement.styles=[Hc,B1,p`
|
|
787
955
|
:host {
|
|
788
956
|
display: inline-block;
|
|
789
957
|
width: 100%;
|
|
@@ -922,6 +1090,342 @@
|
|
|
922
1090
|
:host(:not([pristine]):invalid) #thumb:after {
|
|
923
1091
|
background-color: var(--uui-color-danger,#d42054);
|
|
924
1092
|
}
|
|
925
|
-
`],F([l({type:Boolean,attribute:"hide-step-values"})],s.UUISliderElement.prototype,"hideStepValues",2),F([l({type:Number})],s.UUISliderElement.prototype,"min",2),F([l({type:Number})],s.UUISliderElement.prototype,"max",2),F([l({type:Number})],s.UUISliderElement.prototype,"step",2),F([l({type:String})],s.UUISliderElement.prototype,"value",1),F([l({type:Boolean,reflect:!0})],s.UUISliderElement.prototype,"disabled",2),F([l({type:String})],s.UUISliderElement.prototype,"label",2),F([C("#input")],s.UUISliderElement.prototype,"_input",2),F([C("#track")],s.UUISliderElement.prototype,"_track",2),F([g()],s.UUISliderElement.prototype,"_stepWidth",2),F([g()],s.UUISliderElement.prototype,"_steps",2),F([g()],s.UUISliderElement.prototype,"_sliderPosition",2),s.UUISliderElement=F([b("uui-slider")],s.UUISliderElement);var X1=Object.defineProperty,Y1=Object.getOwnPropertyDescriptor,Qa=(i,e,t,r)=>{for(var o=r>1?void 0:r?Y1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&X1(e,t,o),o};s.UUISymbolExpandElement=class extends m{constructor(){super(...arguments),this.open=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},s.UUISymbolExpandElement.styles=[p`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform:rotate(-90deg);transform-origin:50% 50%;transition:transform 120ms ease-in-out;width:100%;height:100%}:host([open]) svg{transform:rotate(0)}`],Qa([l({type:Boolean,reflect:!0})],s.UUISymbolExpandElement.prototype,"open",2),s.UUISymbolExpandElement=Qa([b("uui-symbol-expand")],s.UUISymbolExpandElement);var Z1=Object.defineProperty,Q1=Object.getOwnPropertyDescriptor,Ja=(i,e,t,r)=>{for(var o=r>1?void 0:r?Q1(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Z1(e,t,o),o};s.UUISymbolFileDropzoneElement=class extends m{constructor(){super(...arguments),this.error=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="upload-icon"><path d="${this.error?"M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z":"M206.491 364.184h99.013V223.676h92.922L255.997 51.111 113.575 223.676h92.916zM85.043 398.311h341.912v62.578H85.043z"}"/></svg>`}},s.UUISymbolFileDropzoneElement.styles=[p`:host{display:flex;flex-direction:column;align-items:center;justify-content:center}#upload-icon{fill:var(--uui-color-default,#1b264f);width:100px;transition:fill .3s ease;position:relative;z-index:2}:host([error]) #upload-icon{fill:var(--uui-color-danger,#d42054)}`],Ja([l({type:Boolean,reflect:!0})],s.UUISymbolFileDropzoneElement.prototype,"error",2),s.UUISymbolFileDropzoneElement=Ja([b("uui-symbol-file-dropzone")],s.UUISymbolFileDropzoneElement);var J1=Object.defineProperty,eb=Object.getOwnPropertyDescriptor,Qo=(i,e,t,r)=>{for(var o=r>1?void 0:r?eb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&J1(e,t,o),o};s.UUISymbolFileThumbnailElement=class extends m{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),w(this,"uui-icon")}render(){return this.src?u`<img src="${this.src}" alt="${this.alt}">`:u`<uui-icon name="picture" .fallback="${Yc.strings[0]}"></uui-icon>`}},s.UUISymbolFileThumbnailElement.styles=[p`:host{display:block;width:100%;height:100%}img{object-fit:contain;height:100%;width:100%}uui-icon{width:100%;height:100%;max-width:100%;display:flex;max-height:100%;justify-content:center;color:var(--uui-color-surface,#fff);background:var(--uui-color-surface-alt,#f3f3f5)}`],Qo([l({type:String})],s.UUISymbolFileThumbnailElement.prototype,"src",2),Qo([l({type:String})],s.UUISymbolFileThumbnailElement.prototype,"alt",2),s.UUISymbolFileThumbnailElement=Qo([b("uui-symbol-file-thumbnail")],s.UUISymbolFileThumbnailElement);var tb=Object.defineProperty,ib=Object.getOwnPropertyDescriptor,el=(i,e,t,r)=>{for(var o=r>1?void 0:r?ib(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tb(e,t,o),o};s.UUISymbolLockElement=class extends m{constructor(){super(...arguments),this.open=!1}render(){return _`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?_`<path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"></path>`:_`<path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"></path>`}</svg>`}},s.UUISymbolLockElement.styles=[p`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],el([l({type:Boolean,reflect:!0})],s.UUISymbolLockElement.prototype,"open",2),s.UUISymbolLockElement=el([b("uui-symbol-lock")],s.UUISymbolLockElement);var ob=Object.defineProperty,rb=Object.getOwnPropertyDescriptor,nb=(i,e,t,r)=>{for(var o=r>1?void 0:r?rb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ob(e,t,o),o};s.UUISymbolMoreElement=class extends m{render(){return u`•••`}},s.UUISymbolMoreElement.styles=[p`:host{display:inline-block;font-size:.8em;vertical-align:top;margin-top:.27em;line-height:1em;user-select:none}`],s.UUISymbolMoreElement=nb([b("uui-symbol-more")],s.UUISymbolMoreElement);var sb=Object.defineProperty,ab=Object.getOwnPropertyDescriptor,tl=(i,e,t,r)=>{for(var o=r>1?void 0:r?ab(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sb(e,t,o),o};s.UUISymbolSortElement=class extends St(m){constructor(){super(...arguments),this.descending=!1}render(){return u`<svg id="up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg> <svg id="down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},s.UUISymbolSortElement.styles=[p`:host{position:relative;display:inline-block;width:.8em;height:1em;vertical-align:middle;pointer-events:none}svg{position:absolute;left:0;top:50%;width:.8em;fill:currentColor;transform-origin:50% 50%;transition:transform 120ms ease-in-out,opacity 120ms,margin-top 240ms;opacity:0;margin-top:-.5em}#up{transform:rotate(180deg);margin-top:-.7em}#down{margin-top:-.3em}:host([active]) #up{margin-top:calc(-.5em - (.2em * var(--uui-symbol-sort-hover,0)))}:host([active]) #down{margin-top:calc(-.5em + (.2em * var(--uui-symbol-sort-hover,0)))}:host(:hover){--uui-symbol-sort-hover:1}:host(:not([active])) #down,:host(:not([active])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active]:not([descending])) #down{opacity:1}:host([active]:not([descending])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active][descending]) #up{opacity:1}:host([active][descending]) #down{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}`],tl([l({type:Boolean,reflect:!0})],s.UUISymbolSortElement.prototype,"descending",2),s.UUISymbolSortElement=tl([b("uui-symbol-sort")],s.UUISymbolSortElement);var lb=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,cb=(i,e,t,r)=>{for(var o=r>1?void 0:r?ub(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lb(e,t,o),o};s.UUITableElement=class extends m{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},s.UUITableElement.styles=[p`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],s.UUITableElement=cb([b("uui-table")],s.UUITableElement);var hb=Object.defineProperty,db=Object.getOwnPropertyDescriptor,Oi=(i,e,t,r)=>{for(var o=r>1?void 0:r?db(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&hb(e,t,o),o};s.UUITableCellElement=class extends m{constructor(){super(...arguments),this.disableChildInteraction=!1,this.noPadding=!1,this.clipText=!1,this._observer=new ResizeObserver(()=>{this._detectOverflow()})}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}updated(e){super.updated(e),e.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return u`<slot @slotchange="${this._detectOverflow}"></slot>`}},s.UUITableCellElement.styles=[p`:host{position:relative;display:table-cell;height:var(--uui-table-cell-height,var(--uui-size-12,36px));padding:var(--uui-table-cell-padding,var(--uui-size-4,12px) var(--uui-size-5,15px));border-top:1px solid var(--uui-color-border,#d8d7d9);vertical-align:middle}:host([clip-text]){max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}:host([disable-child-interaction]) ::slotted(*){pointer-events:none}:host([disable-child-interaction])::after{content:'';position:absolute;inset:0}:host([no-padding]){padding:0}`],Oi([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],s.UUITableCellElement.prototype,"disableChildInteraction",2),Oi([l({type:Boolean,reflect:!0,attribute:"no-padding"})],s.UUITableCellElement.prototype,"noPadding",2),Oi([l({type:Boolean,reflect:!0,attribute:"clip-text"})],s.UUITableCellElement.prototype,"clipText",2),s.UUITableCellElement=Oi([b("uui-table-cell")],s.UUITableCellElement);var pb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,mb=(i,e,t,r)=>{for(var o=r>1?void 0:r?bb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pb(e,t,o),o};s.UUITableColumnElement=class extends m{},s.UUITableColumnElement.styles=[p`:host{display:table-column}`],s.UUITableColumnElement=mb([b("uui-table-column")],s.UUITableColumnElement);var vb=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,fb=(i,e,t,r)=>{for(var o=r>1?void 0:r?gb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vb(e,t,o),o};s.UUITableHeadCellElement=class extends s.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},s.UUITableHeadCellElement.styles=[...s.UUITableCellElement.styles,p`:host{border-top:none}`],s.UUITableHeadCellElement=fb([b("uui-table-head-cell")],s.UUITableHeadCellElement);var yb=Object.defineProperty,_b=Object.getOwnPropertyDescriptor,wb=(i,e,t,r)=>{for(var o=r>1?void 0:r?_b(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&yb(e,t,o),o};s.UUITableHeadElement=class extends m{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},s.UUITableHeadElement.styles=[p`:host{display:table-header-group;font-weight:700}`],s.UUITableHeadElement=wb([b("uui-table-head")],s.UUITableHeadElement);var $b=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,il=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ub(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$b(e,t,o),o};s.UUITableRowElement=class extends Qt(it(m)){constructor(){super();let e=!1;this.addEventListener("blur",()=>{e===!1&&this.style.setProperty("--uui-show-focus-outline","1"),e=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),e=!0}),this.addEventListener("mouseup",()=>{e=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(e){e.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(e=>{this.elementIsTableCell(e)&&(e.disableChildInteraction=this.selectOnly)})}elementIsTableCell(e){return e instanceof s.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},s.UUITableRowElement.styles=[p`:host{display:table-row;position:relative;outline-offset:-3px}:host([selectable]){cursor:pointer}:host(:focus){outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host([selected]){outline:2px solid var(--uui-table-row-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:focus){outline-color:var(--uui-color-focus,#3879ff)}`],il([xe({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],s.UUITableRowElement.prototype,"slotCellNodes",2),s.UUITableRowElement=il([b("uui-table-row")],s.UUITableRowElement);var Eb=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,Bt=(i,e,t,r)=>{for(var o=r>1?void 0:r?kb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Eb(e,t,o),o};s.UUITabElement=class extends St(J("",m)){constructor(){super(),this.disabled=!1,this.orientation="horizontal",this.addEventListener("click",this.onHostClick)}onHostClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}render(){return this.href?u`<a id="button" href="${I(this.disabled?void 0:this.href)}" target="${I(this.target||void 0)}" rel="${I(this.target==="_blank"?"noopener noreferrer":void 0)}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button type="button" id="button" ?disabled="${this.disabled}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></button>`}},s.UUITabElement.styles=[p`:host{color:var(--uui-tab-text,var(--uui-color-interactive,#1b264f));font-family:inherit;width:fit-content}#button{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:var(--uui-size-12,36px);min-width:70px;padding:var(--uui-size-2,6px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px));border:none;font-size:inherit;background:0 0;color:inherit;cursor:pointer;font-family:inherit;text-decoration:none;line-height:normal}:host([orientation=vertical]) #button{min-height:var(--uui-size-14,42px);padding:var(--uui-size-2,6px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px))}:host(:not([active]):not([disabled])) #button:hover{color:var(--uui-tab-text-hover,var(--uui-color-default-emphasis,#3544b1))}:host(:not([active]):not([disabled])) #button:active{box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}:host([active]) #button{cursor:default}:host([disabled]) #button{color:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button::before{content:'';position:absolute;background-color:var(--uui-color-current,#f5c1bc);opacity:0;--transitionDuration:120ms;--barWidth:4px;--borderRadius:3px}:host([active]) #button::before{opacity:1}:host([orientation=horizontal]) #button::before{left:auto;right:auto;border-radius:var(--borderRadius) var(--borderRadius) 0 0;height:0;width:calc(100% - 15px);bottom:0;transition:opacity ease-in-out var(--transitionDuration),height ease-in-out var(--transitionDuration)}:host([active][orientation=horizontal]) #button::before{height:var(--barWidth)}:host([orientation=vertical]) #button::before{top:auto;bottom:auto;border-radius:0 var(--borderRadius) var(--borderRadius) 0;height:calc(100% - 12px);width:0;left:0;transition:opacity ease-in-out var(--transitionDuration),width ease-in-out var(--transitionDuration)}:host([active][orientation=vertical]) #button::before{width:var(--barWidth)}#button:hover::before{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([disabled]) #button::before{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=icon]::slotted(*){font-size:20px;margin-bottom:var(--uui-size-2,6px)}slot.label{text-align:center;display:flex;width:100%;flex-direction:column}:host([orientation=vertical]) slot.label{text-align:left}`],Bt([l({type:Boolean,reflect:!0})],s.UUITabElement.prototype,"disabled",2),Bt([l({type:String})],s.UUITabElement.prototype,"href",2),Bt([l({type:String})],s.UUITabElement.prototype,"target",2),Bt([l({type:String,reflect:!0})],s.UUITabElement.prototype,"orientation",2),s.UUITabElement=Bt([b("uui-tab")],s.UUITabElement);var Ib=Object.defineProperty,xb=Object.getOwnPropertyDescriptor,zi=(i,e,t,r)=>{for(var o=r>1?void 0:r?xb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ib(e,t,o),o},Jo=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},x=(i,e,t)=>(Jo(i,e,"read from private field"),t?t.call(i):e.get(i)),G=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},er=(i,e,t,r)=>(Jo(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Oe=(i,e,t)=>(Jo(i,e,"access private method"),t),we,$e,wt,le,Ai,Li,tr,ol,ir,rl,$t,ji,or,rr,nl,nr,sl,Ni,sr;s.UUITabGroupElement=class extends m{constructor(){super(...arguments),G(this,tr),G(this,ir),G(this,ji),G(this,rr),G(this,nr),G(this,Ni),this.dropdownContentDirection="vertical",G(this,we,[]),G(this,$e,[]),G(this,wt,new Map),G(this,le,[]),G(this,Ai,0),G(this,Li,new ResizeObserver(Oe(this,tr,ol).bind(this))),G(this,$t,e=>{const t=e.currentTarget;if(Oe(this,Ni,sr).call(this,t)){t.active=!0;const r=x(this,wt).get(t);r&&(r.active=!0),[...x(this,we),...x(this,$e)].filter(o=>o!==t&&o!==r).forEach(o=>{Oe(this,Ni,sr).call(this,o)&&(o.active=!1)}),x(this,$e).some(o=>o.active&&o!==r)?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside")}})}connectedCallback(){super.connectedCallback(),x(this,Li).observe(this),this.hasAttribute("role")||this.setAttribute("role","tablist")}disconnectedCallback(){super.disconnectedCallback(),x(this,Li).unobserve(this)}render(){return u`<slot @slotchange="${Oe(this,ir,rl)}"></slot><uui-button popovertarget="popover-container" style="display:none" id="more-button" label="More" compact="compact"><uui-symbol-more></uui-symbol-more></uui-button><uui-popover-container id="popover-container" popover margin="10" placement="bottom-end"><div id="hidden-tabs-container">${ko(x(this,$e),e=>u`${e}`)}</div></uui-popover-container>`}},we=new WeakMap,$e=new WeakMap,wt=new WeakMap,le=new WeakMap,Ai=new WeakMap,Li=new WeakMap,tr=new WeakSet,ol=function(i){Oe(this,ji,or).call(this,i[0].contentBoxSize[0].inlineSize)},ir=new WeakSet,rl=function(){x(this,we).forEach(i=>{i.removeEventListener("click",x(this,$t))}),Oe(this,nr,sl).call(this),x(this,we).forEach(i=>{i.addEventListener("click",x(this,$t))})},$t=new WeakMap,ji=new WeakSet,or=function(i){const e=this._moreButtonElement.offsetWidth;if(x(this,le).slice(-1)[0]<i&&x(this,$e).length===0)return;let t=Number.MAX_VALUE;for(let o=x(this,le).length-1;o>-1;o--){const n=x(this,le)[o],a=i-(o!==x(this,le).length-1?e:0);if(n<a){t=o;break}}if(t===x(this,Ai))return;er(this,Ai,t),x(this,$e).forEach(o=>{o.removeEventListener("click",x(this,$t))}),er(this,$e,[]),x(this,wt).clear();let r=!1;for(let o=0;o<x(this,le).length;o++){const n=x(this,le)[o],a=x(this,we)[o],h=i-(o!==x(this,le).length-1?e:0);if(n<h)a.style.display="",this._moreButtonElement.style.display="none";else{const c=a.cloneNode(!0);c.addEventListener("click",x(this,$t)),c.classList.add("hidden-tab"),c.style.display="",c.orientation=this.dropdownContentDirection,x(this,wt).set(c,a),x(this,wt).set(a,c),x(this,$e).push(c),a.style.display="none",this._moreButtonElement.style.display="",a.active&&(r=!0)}}r?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside"),this.requestUpdate()},rr=new WeakSet,nl=function(){let i=0;for(let e=0;e<x(this,we).length;e++)i+=x(this,we)[e].offsetWidth,x(this,le)[e]=i;Oe(this,ji,or).call(this,this.offsetWidth)},nr=new WeakSet,sl=function(){er(this,we,this._slottedNodes?this._slottedNodes:[]),Oe(this,rr,nl).call(this)},Ni=new WeakSet,sr=function(i){return i instanceof s.UUITabElement||"active"in i},s.UUITabGroupElement.styles=[p`:host{display:flex;flex-wrap:wrap;color:var(--uui-tab-text);background:var(--uui-tab-background,none);height:100%;min-height:48px}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}.hidden-tab{width:100%}#hidden-tabs-container{width:fit-content;display:flex;flex-direction:column;background:var(--uui-color-surface,#fff);border-radius:var(--uui-border-radius,3px);box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23));overflow:hidden}:host([dropdown-direction=horizontal]) #hidden-tabs-container{flex-direction:row}#more-button{margin-left:auto;position:relative}#more-button::before{content:'';position:absolute;bottom:0;width:100%;background-color:var(--uui-color-current,#f5c1bc);height:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}#more-button.active-inside::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}`],zi([C("#more-button")],s.UUITabGroupElement.prototype,"_moreButtonElement",2),zi([xe({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],s.UUITabGroupElement.prototype,"_slottedNodes",2),zi([l({type:String,reflect:!0,attribute:"dropdown-content-direction"})],s.UUITabGroupElement.prototype,"dropdownContentDirection",2),s.UUITabGroupElement=zi([b("uui-tab-group")],s.UUITabGroupElement);class Cb extends P{}class Pb extends P{}var Sb=Object.defineProperty,Ob=Object.getOwnPropertyDescriptor,ar=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ob(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sb(e,t,o),o};s.UUITagElement=class extends m{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return u`<slot></slot>`}},s.UUITagElement.styles=[p`:host{display:inline-block;font-size:var(--uui-tag-font-size,var(--uui-type-small-size,12px));font-weight:700;line-height:1;padding:var(--uui-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em);border-radius:100px;user-select:none;border-radius:var(--uui-size-4,12px);border:1px solid transparent}slot{display:flex;align-items:center;justify-content:center;margin:2px}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#1f9554);--color-standalone:var(--uui-color-positive-standalone,#19864a);--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:transparent;color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:transparent;color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}`],ar([l({reflect:!0})],s.UUITagElement.prototype,"color",2),ar([l({reflect:!0})],s.UUITagElement.prototype,"look",2),s.UUITagElement=ar([b("uui-tag")],s.UUITagElement);var zb=Object.defineProperty,al=Object.getOwnPropertySymbols,Ab=Object.prototype.hasOwnProperty,Lb=Object.prototype.propertyIsEnumerable,ll=(i,e,t)=>e in i?zb(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ul=(i,e)=>{for(var t in e||(e={}))Ab.call(e,t)&&ll(i,t,e[t]);if(al)for(var t of al(e))Lb.call(e,t)&&ll(i,t,e[t]);return i};class Rt extends P{constructor(e,t={}){super(e,ul(ul({},{bubbles:!0}),t))}}Rt.CHANGE="change",Rt.INPUT="input";var jb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,M=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jb(e,t,o),o};s.UUITextareaElement=class extends ee(m){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.autoHeight=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&this._value.length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&this._value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this),this.autoHeight&&requestAnimationFrame(()=>{this.autoUpdateHeight()})}focus(){var e;(e=this._textarea)==null||e.focus()}getFormElement(){return this._textarea}onInput(e){this.value=e.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Rt(Rt.CHANGE))}autoUpdateHeight(){const e=this.shadowRoot.host,t=this._textarea,r=e.scrollTop,o=getComputedStyle(e).height;e.style.display="block",e.style.height=o,t.style.height="auto",t.scrollHeight+2>t.clientHeight?t.style.height=t.scrollHeight+2+"px":t.scrollHeight+2<t.clientHeight&&t.style.removeProperty("height"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=r}render(){return u`<textarea id="textarea" rows="${I(this.rows)}" cols="${I(this.cols)}" .value="${this.value}" .name="${this.name}" wrap="${I(this.wrap)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
|
|
926
|
-
</textarea>`}},s.UUITextareaElement.formAssociated=!0,s.UUITextareaElement.styles=[p`:host{position:relative}:host([error]) textarea{border:1px solid var(--uui-color-danger,#d42054)!important}:host([error]) textarea[disabled]{border:1px solid var(--uui-color-danger,#d42054)!important}:host([auto-height]) textarea{resize:none}.label{display:inline-block;margin-bottom:var(--uui-size-1,3px);font-weight:700}textarea[readonly]{border-color:var(--uui-textarea-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2));background-color:var(--uui-textarea-background-color-readonly,var(--uui-color-disabled,#f3f3f5))}textarea[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-textarea-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}textarea{font-family:inherit;box-sizing:border-box;min-width:100%;max-width:100%;font-size:inherit;padding:var(--uui-size-2,6px);border:1px solid var(--uui-textarea-border-color,var(--uui-color-border,#d8d7d9));border-radius:0;outline:0;min-height:var(--uui-textarea-min-height);max-height:var(--uui-textarea-max-height);background-color:var(--uui-textarea-background-color,var(--uui-color-surface,#fff))}:host(:focus) textarea,:host(:hover) textarea:not([readonly]):not([disabled]) :host(:focus-within) textarea{border-color:var(--uui-textarea-border-color,var(--uui-color-border-emphasis,#a1a1a1))}textarea::placeholder{transition:opacity 120ms}:host(:not([readonly])) textarea:focus::placeholder{opacity:0}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}`],M([l()],s.UUITextareaElement.prototype,"placeholder",2),M([l({type:Boolean,reflect:!0})],s.UUITextareaElement.prototype,"disabled",2),M([l({type:Boolean,reflect:!0})],s.UUITextareaElement.prototype,"readonly",2),M([l({type:String})],s.UUITextareaElement.prototype,"name",2),M([l({type:Boolean,reflect:!0})],s.UUITextareaElement.prototype,"error",2),M([l({type:Number})],s.UUITextareaElement.prototype,"minlength",2),M([l({type:String,attribute:"minlength-message"})],s.UUITextareaElement.prototype,"minlengthMessage",2),M([l({type:Number})],s.UUITextareaElement.prototype,"maxlength",2),M([l({type:String,attribute:"maxlength-message"})],s.UUITextareaElement.prototype,"maxlengthMessage",2),M([C("#textarea")],s.UUITextareaElement.prototype,"_textarea",2),M([l({type:Boolean,attribute:"auto-height",reflect:!0})],s.UUITextareaElement.prototype,"autoHeight",2),M([l({type:String})],s.UUITextareaElement.prototype,"label",2),M([l({type:Number})],s.UUITextareaElement.prototype,"rows",2),M([l({type:Number})],s.UUITextareaElement.prototype,"cols",2),M([l({type:String})],s.UUITextareaElement.prototype,"wrap",2),s.UUITextareaElement=M([b("uui-textarea")],s.UUITextareaElement);class D extends P{}D.OPENING="opening",D.OPENED="opened",D.CLOSING="closing",D.CLOSED="closed";var Tb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,Ut=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tb(e,t,o),o};s.UUIToastNotificationElement=class extends m{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",e=>{e.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(e){var t;this._autoClose=e,e!==null?(this._timer===null?this._timer=new qc(this._onOpenTimerComplete,e):this._timer.setDuration(e),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):((t=this._timer)==null||t.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(e){e===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),w(this,"uui-button"),w(this,"uui-icon")}_getAnimationDuration(){return parseInt(getComputedStyle(this).getPropertyValue("--uui-toast-notification-animation-duration"),10)||480}_makeOpen(){this._open!==!0&&(this._open=!0,this.updateComplete.then(()=>{this._open===!0&&(cancelAnimationFrame(this._requestAnimationUpdate),this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!0,this.setAttribute("is-open",""),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,this.dispatchEvent(new D(D.OPENING)),this._animationTimeout=window.setTimeout(()=>{var e;this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&((e=this._timer)==null||e.start()),this.dispatchEvent(new D(D.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var e;if(this._open===!1)return;const t=new D(D.CLOSING,{cancelable:!0});this.dispatchEvent(t),t.defaultPrevented!==!0&&(this._open=!1,(e=this._timer)==null||e.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new D(D.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return u`<div id="toast" class="${this._animate?"animate":""}"><div><div id="close"><uui-button .label="${"close"}" .color="${this.color}" .look="${this.color?"primary":"default"}" @click="${()=>this.open=!1}"><uui-icon name="remove" .fallback="${Dn.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},s.UUIToastNotificationElement.styles=[Xt,p`:host{--uui-toast-notification-margin:var(--uui-size-space-2,6px);position:relative;display:block;width:100%;max-width:400px;margin:0 var(--uui-toast-notification-margin);box-sizing:border-box;height:0;pointer-events:none;transition:height var(--uui-toast-notification-animation-duration,480ms) ease-in-out}:host([is-open]){pointer-events:all;transition-timing-function:cubic-bezier(.19,1,.22,1)}#toast{position:relative;display:block;padding:calc(var(--uui-toast-notification-margin) * .5) 0;width:100%;max-width:400px}#toast.animate{position:absolute}#toast>div{position:relative;display:block;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));background-color:var(--uui-color-surface,#fff);padding:var(--uui-size-layout-1,24px);padding-right:var(--uui-size-layout-1,24px);padding-left:var(--uui-size-layout-3,42px);border-radius:calc(var(--uui-border-radius,3px) * 2);opacity:0;transition:opacity var(--uui-toast-notification-animation-duration,480ms)}:host([is-open]) #toast>div{opacity:1}#close{float:right;margin-top:-6px;margin-left:var(--uui-size-space-1,3px);margin-bottom:-4px}#close>uui-button{--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}:host #toast>div{background-color:var(--uui-color-surface,#fff);color:var(--uui-color-text,#060606);border-color:var(--uui-color-surface,#fff)}:host([color=default]) #toast>div{background-color:var(--uui-color-default,#1b264f);color:var(--uui-color-default-contrast,#fff);border-color:var(--uui-color-default-standalone,#1c233b)}:host([color=positive]) #toast>div{background-color:var(--uui-color-positive,#1f9554);color:var(--uui-color-positive-contrast,#fff);border-color:var(--uui-color-positive-standalone,#19864a)}:host([color=warning]) #toast>div{background-color:var(--uui-color-warning,#fbd142);color:var(--uui-color-warning-contrast,#000);border-color:var(--uui-color-warning-standalone,#a17700)}:host([color=danger]) #toast>div{background-color:var(--uui-color-danger,#d42054);color:var(--uui-color-danger-contrast,#fff);border-color:var(--uui-color-danger-standalone,#bf214e)}`],Ut([l({reflect:!0})],s.UUIToastNotificationElement.prototype,"color",2),Ut([l({type:Number})],s.UUIToastNotificationElement.prototype,"autoClose",1),Ut([C("#toast")],s.UUIToastNotificationElement.prototype,"_toastEl",2),Ut([g()],s.UUIToastNotificationElement.prototype,"_animate",2),Ut([l({type:Boolean,reflect:!0})],s.UUIToastNotificationElement.prototype,"open",1),s.UUIToastNotificationElement=Ut([b("uui-toast-notification")],s.UUIToastNotificationElement);var Db=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,cl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Db(e,t,o),o};s.UUIToastNotificationContainerElement=class extends m{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{var e;this._autoClosePause=!0,(e=this._toasts)==null||e.forEach(t=>t.pauseAutoClose())},this.resumeAutoClose=()=>{var e;this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,(e=this._toasts)==null||e.forEach(t=>t.resumeAutoClose()))},this.onToastClosed=e=>{this.removeToast(e.target)},this._toasts=[],this.onSlotChanged=e=>{const t=[...this._toasts];this._toasts=e.target.assignedElements({flatten:!0}).filter(r=>r.nodeName==="UUI-TOAST-NOTIFICATION"),t.filter(r=>this._toasts.indexOf(r)===-1).forEach(r=>{r.removeEventListener(D.CLOSED,this.onToastClosed),r.removeEventListener("mouseenter",this.pauseAutoClose),r.removeEventListener("mouseleave",this.resumeAutoClose),r.removeEventListener("focus",this.pauseAutoClose),r.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(r=>t.indexOf(r)===-1).forEach(r=>{r.addEventListener(D.CLOSED,this.onToastClosed),r.addEventListener("mouseenter",this.pauseAutoClose),r.addEventListener("mouseleave",this.resumeAutoClose),r.addEventListener("focus",this.pauseAutoClose),r.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(r.autoClose=this._autoClose),this._autoClosePause===!0&&r.pauseAutoClose(),r.open=!0})}}get autoClose(){return this._autoClose}set autoClose(e){var t;this._autoClose=e,(t=this._toasts)==null||t.forEach(r=>r.autoClose=e)}removeToast(e){if(!e)e=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(e)===-1){console.warn("Toast-notification",e,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(e)}closeToast(e){let t=e;t||(t=this._toasts[this._toasts.length-1]),t.open=!1}render(){return u`<slot @slotchange="${this.onSlotChanged}"></slot>`}},s.UUIToastNotificationContainerElement.styles=[p`:host{position:absolute;overflow:hidden;max-width:100%;height:100%;pointer-events:none;box-sizing:border-box}slot{display:flex;flex-direction:column;align-items:end;height:100%;box-sizing:border-box;padding-top:var(--uui-size-space-1,3px);padding-bottom:var(--uui-size-space-1,3px)}:host([bottom-up]) slot{justify-content:end}:host([left-align]) slot{align-items:start}`],cl([l({type:Number,reflect:!0,attribute:"auto-close"})],s.UUIToastNotificationContainerElement.prototype,"_autoClose",2),s.UUIToastNotificationContainerElement=cl([b("uui-toast-notification-container")],s.UUIToastNotificationContainerElement);var Hb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,lr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hb(e,t,o),o};s.UUIToastNotificationLayoutElement=class extends m{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}render(){return u`<div id="message" class="uui-text"><h5 style="${this._headlineSlotHasContent||this.headline&&this.headline!==""?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot></slot><slot id="actions" name="actions"></slot></div>`}},s.UUIToastNotificationLayoutElement.styles=[Xt,p`#message{margin-bottom:calc(var(--uui-size-space-1,3px) * -1)}#message::after{content:'';display:block;clear:both}#actions{display:block;float:right;margin-top:var(--uui-size-space-4,12px);margin-bottom:calc(var(--uui-size-space-2,6px) * -1)}`],lr([l({type:String})],s.UUIToastNotificationLayoutElement.prototype,"headline",2),lr([g()],s.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),s.UUIToastNotificationLayoutElement=lr([b("uui-toast-notification-layout")],s.UUIToastNotificationLayoutElement);var Rb=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,Gb=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rb(e,t,o),o};s.UUIToggleElement=class extends te{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-check">${ni}</div><div id="icon-wrong">${Vn}</div></div>`}},s.UUIToggleElement.formAssociated=!0,s.UUIToggleElement.styles=[...te.styles,ti,p`:host{--uui-toggle-size:18px;--uui-toggle-switch-width:calc(2 * var(--uui-toggle-size))}#slider{position:relative;grid-area:'input';display:flex;align-items:center;width:var(--uui-toggle-switch-width);height:var(--uui-toggle-size);border-radius:100px;background-color:var(--uui-toggle-background-color,var(--uui-color-border,#d8d7d9));border:1px solid var(--uui-toggle-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-toggle-size) * .6)}label:hover input:not([disabled])~#slider{border-color:var(--uui-toggle-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-toggle-background-color-hover,var(--uui-color-border,#d8d7d9))}label:focus #slider{border-color:var(--uui-toggle-border-color-focus,var(--uui-color-focus,#3879ff));background-color:var(--uui-toggle-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked~#slider{background-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-check,#icon-wrong{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms}#icon-check{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);fill:var(--uui-color-interactive,#1b264f)}#icon-wrong{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);fill:var(--uui-color-interactive,#1b264f)}input:checked~#slider #icon-check{fill:var(--uui-color-selected-contrast,#fff)}#slider::after{content:'';position:absolute;top:2px;left:2px;width:calc(var(--uui-toggle-size) - 4px);height:calc(var(--uui-toggle-size) - 4px);border-radius:100px;background-color:var(--uui-color-selected-contrast,#fff);transition:width 120ms ease,left 120ms ease,transform 120ms ease,background-color 120ms}input:checked~#slider::after{left:calc(100% - 2px);transform:translateX(-100%)}input:focus~#slider{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled])) label:active #slider::after{width:calc(1.06 * var(--uui-toggle-size))}:host([disabled]) #slider{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}:host([disabled]) input:checked~#slider{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #slider::after{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #slider #icon-wrong{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #slider{animation:${ii}}:host([disabled]) input:checked #slider #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host(:not([pristine]):invalid) #slider,:host(:not([pristine]):invalid) label:hover #slider,:host(:not([pristine])[internals-invalid]) #slider,:host(:not([pristine])[internals-invalid]) label:hover #slider{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],s.UUIToggleElement=Gb([b("uui-toggle")],s.UUIToggleElement);var qb=Object.defineProperty,Wb=Object.getOwnPropertyDescriptor,Kb=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wb(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qb(e,t,o),o};s.UUIVisuallyHiddenElement=class extends m{render(){return u`<slot></slot>`}},s.UUIVisuallyHiddenElement.styles=[p`:host(:not(:focus-within)){position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:none!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important}`],s.UUIVisuallyHiddenElement=Kb([b("uui-visually-hidden")],s.UUIVisuallyHiddenElement),s.ActiveMixin=Fl,s.FormControlMixin=ou,s.InterfaceColorValues=gu,s.InterfaceHeadingValues=fu,s.InterfaceLookValues=vu,s.LabelMixin=Wl,s.PopoverTargetMixin=bu,s.SelectOnlyMixin=eu,s.SelectableMixin=Yl,s.Timer=ru,s.UUIBlinkAnimationValue=Il,s.UUIBlinkKeyframes=kl,s.UUIBooleanInputElement=te,s.UUIBooleanInputEvent=Jt,s.UUIButtonInlineCreateEvent=oi,s.UUICardEvent=lt,s.UUIColorAreaEvent=ui,s.UUIColorPickerChangeEvent=di,s.UUIColorSliderEvent=pi,s.UUIColorSwatchesEvent=ut,s.UUIComboboxEvent=B,s.UUIComboboxListEvent=Z,s.UUIEvent=to,s.UUIFileDropzoneEvent=ht,s.UUIFormControlEvent=Ne,s.UUIHorizontalPulseAnimationValue=Cl,s.UUIHorizontalPulseKeyframes=xl,s.UUIHorizontalShakeAnimationValue=Sl,s.UUIHorizontalShakeKeyframes=Pl,s.UUIIconHost=Co,s.UUIIconRegistry=Po,s.UUIIconRegistryEssential=ca,s.UUIIconRequestEvent=dt,s.UUIInputEvent=Re,s.UUIMenuItemEvent=ge,s.UUIModalElement=R,s.UUIPaginationEvent=Pe,s.UUIRadioEvent=ft,s.UUIRadioGroupEvent=Ci,s.UUIRefEvent=_t,s.UUISelectEvent=Si,s.UUISelectableEvent=Te,s.UUISliderEvent=Ke,s.UUITabEvent=Cb,s.UUITabGroupEvent=Pb,s.UUITextStyles=Xt,s.UUITextareaEvent=Rt,s.UUIToastNotificationEvent=D,s.clamp=au,s.defineElement=mu,s.demandCustomElement=nu,s.drag=su,s.findAncestorByAttributeValue=Wr,s.reverseNumberInRange=lu,s.toHex=uu});
|
|
1093
|
+
`],F([l({type:Boolean,attribute:"hide-step-values"})],a.UUISliderElement.prototype,"hideStepValues",2),F([l({type:Number})],a.UUISliderElement.prototype,"min",2),F([l({type:Number})],a.UUISliderElement.prototype,"max",2),F([l({type:Number})],a.UUISliderElement.prototype,"step",2),F([l({type:String})],a.UUISliderElement.prototype,"value",1),F([l({type:Boolean,reflect:!0})],a.UUISliderElement.prototype,"disabled",2),F([l({type:String})],a.UUISliderElement.prototype,"label",2),F([C("#input")],a.UUISliderElement.prototype,"_input",2),F([C("#track")],a.UUISliderElement.prototype,"_track",2),F([g()],a.UUISliderElement.prototype,"_stepWidth",2),F([g()],a.UUISliderElement.prototype,"_steps",2),F([g()],a.UUISliderElement.prototype,"_sliderPosition",2),a.UUISliderElement=F([b("uui-slider")],a.UUISliderElement);var Z1=Object.defineProperty,Q1=Object.getOwnPropertyDescriptor,Zs=(i,e,t,r)=>{for(var o=r>1?void 0:r?Q1(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Z1(e,t,o),o};a.UUISymbolExpandElement=class extends m{constructor(){super(...arguments),this.open=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},a.UUISymbolExpandElement.styles=[p`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform:rotate(-90deg);transform-origin:50% 50%;transition:transform 120ms ease-in-out;width:100%;height:100%}:host([open]) svg{transform:rotate(0)}`],Zs([l({type:Boolean,reflect:!0})],a.UUISymbolExpandElement.prototype,"open",2),a.UUISymbolExpandElement=Zs([b("uui-symbol-expand")],a.UUISymbolExpandElement);var J1=Object.defineProperty,eb=Object.getOwnPropertyDescriptor,Qs=(i,e,t,r)=>{for(var o=r>1?void 0:r?eb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&J1(e,t,o),o};a.UUISymbolFileDropzoneElement=class extends m{constructor(){super(...arguments),this.error=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="upload-icon"><path d="${this.error?"M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z":"M206.491 364.184h99.013V223.676h92.922L255.997 51.111 113.575 223.676h92.916zM85.043 398.311h341.912v62.578H85.043z"}"/></svg>`}},a.UUISymbolFileDropzoneElement.styles=[p`:host{display:flex;flex-direction:column;align-items:center;justify-content:center}#upload-icon{fill:var(--uui-color-default,#1b264f);width:100px;transition:fill .3s ease;position:relative;z-index:2}:host([error]) #upload-icon{fill:var(--uui-color-danger,#d42054)}`],Qs([l({type:Boolean,reflect:!0})],a.UUISymbolFileDropzoneElement.prototype,"error",2),a.UUISymbolFileDropzoneElement=Qs([b("uui-symbol-file-dropzone")],a.UUISymbolFileDropzoneElement);var tb=Object.defineProperty,ib=Object.getOwnPropertyDescriptor,Zo=(i,e,t,r)=>{for(var o=r>1?void 0:r?ib(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&tb(e,t,o),o};a.UUISymbolFileThumbnailElement=class extends m{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),w(this,"uui-icon")}render(){return this.src?u`<img src="${this.src}" alt="${this.alt}">`:u`<uui-icon name="picture" .fallback="${Qc.strings[0]}"></uui-icon>`}},a.UUISymbolFileThumbnailElement.styles=[p`:host{display:block;width:100%;height:100%}img{object-fit:contain;height:100%;width:100%}uui-icon{width:100%;height:100%;max-width:100%;display:flex;max-height:100%;justify-content:center;color:var(--uui-color-surface,#fff);background:var(--uui-color-surface-alt,#f3f3f5)}`],Zo([l({type:String})],a.UUISymbolFileThumbnailElement.prototype,"src",2),Zo([l({type:String})],a.UUISymbolFileThumbnailElement.prototype,"alt",2),a.UUISymbolFileThumbnailElement=Zo([b("uui-symbol-file-thumbnail")],a.UUISymbolFileThumbnailElement);var ob=Object.defineProperty,rb=Object.getOwnPropertyDescriptor,Js=(i,e,t,r)=>{for(var o=r>1?void 0:r?rb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&ob(e,t,o),o};a.UUISymbolLockElement=class extends m{constructor(){super(...arguments),this.open=!1}render(){return _`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?_`<path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"></path>`:_`<path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"></path>`}</svg>`}},a.UUISymbolLockElement.styles=[p`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],Js([l({type:Boolean,reflect:!0})],a.UUISymbolLockElement.prototype,"open",2),a.UUISymbolLockElement=Js([b("uui-symbol-lock")],a.UUISymbolLockElement);var nb=Object.defineProperty,ab=Object.getOwnPropertyDescriptor,sb=(i,e,t,r)=>{for(var o=r>1?void 0:r?ab(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&nb(e,t,o),o};a.UUISymbolMoreElement=class extends m{render(){return u`•••`}},a.UUISymbolMoreElement.styles=[p`:host{display:inline-block;font-size:.8em;vertical-align:top;margin-top:.27em;line-height:1em;user-select:none}`],a.UUISymbolMoreElement=sb([b("uui-symbol-more")],a.UUISymbolMoreElement);var lb=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,el=(i,e,t,r)=>{for(var o=r>1?void 0:r?ub(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&lb(e,t,o),o};a.UUISymbolSortElement=class extends Pt(m){constructor(){super(...arguments),this.descending=!1}render(){return u`<svg id="up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg> <svg id="down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},a.UUISymbolSortElement.styles=[p`:host{position:relative;display:inline-block;width:.8em;height:1em;vertical-align:middle;pointer-events:none}svg{position:absolute;left:0;top:50%;width:.8em;fill:currentColor;transform-origin:50% 50%;transition:transform 120ms ease-in-out,opacity 120ms,margin-top 240ms;opacity:0;margin-top:-.5em}#up{transform:rotate(180deg);margin-top:-.7em}#down{margin-top:-.3em}:host([active]) #up{margin-top:calc(-.5em - (.2em * var(--uui-symbol-sort-hover,0)))}:host([active]) #down{margin-top:calc(-.5em + (.2em * var(--uui-symbol-sort-hover,0)))}:host(:hover){--uui-symbol-sort-hover:1}:host(:not([active])) #down,:host(:not([active])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active]:not([descending])) #down{opacity:1}:host([active]:not([descending])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active][descending]) #up{opacity:1}:host([active][descending]) #down{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}`],el([l({type:Boolean,reflect:!0})],a.UUISymbolSortElement.prototype,"descending",2),a.UUISymbolSortElement=el([b("uui-symbol-sort")],a.UUISymbolSortElement);var cb=Object.defineProperty,hb=Object.getOwnPropertyDescriptor,db=(i,e,t,r)=>{for(var o=r>1?void 0:r?hb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&cb(e,t,o),o};a.UUITableElement=class extends m{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},a.UUITableElement.styles=[p`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],a.UUITableElement=db([b("uui-table")],a.UUITableElement);var pb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,Pi=(i,e,t,r)=>{for(var o=r>1?void 0:r?bb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&pb(e,t,o),o};a.UUITableCellElement=class extends m{constructor(){super(...arguments),this.disableChildInteraction=!1,this.noPadding=!1,this.clipText=!1,this._observer=new ResizeObserver(()=>{this._detectOverflow()})}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}updated(e){super.updated(e),e.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return u`<slot @slotchange="${this._detectOverflow}"></slot>`}},a.UUITableCellElement.styles=[p`:host{position:relative;display:table-cell;height:var(--uui-table-cell-height,var(--uui-size-12,36px));padding:var(--uui-table-cell-padding,var(--uui-size-4,12px) var(--uui-size-5,15px));border-top:1px solid var(--uui-color-border,#d8d7d9);vertical-align:middle}:host([clip-text]){max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}:host([disable-child-interaction]) ::slotted(*){pointer-events:none}:host([disable-child-interaction])::after{content:'';position:absolute;inset:0}:host([no-padding]){padding:0}`],Pi([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],a.UUITableCellElement.prototype,"disableChildInteraction",2),Pi([l({type:Boolean,reflect:!0,attribute:"no-padding"})],a.UUITableCellElement.prototype,"noPadding",2),Pi([l({type:Boolean,reflect:!0,attribute:"clip-text"})],a.UUITableCellElement.prototype,"clipText",2),a.UUITableCellElement=Pi([b("uui-table-cell")],a.UUITableCellElement);var mb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,gb=(i,e,t,r)=>{for(var o=r>1?void 0:r?vb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&mb(e,t,o),o};a.UUITableColumnElement=class extends m{},a.UUITableColumnElement.styles=[p`:host{display:table-column}`],a.UUITableColumnElement=gb([b("uui-table-column")],a.UUITableColumnElement);var fb=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,_b=(i,e,t,r)=>{for(var o=r>1?void 0:r?yb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&fb(e,t,o),o};a.UUITableHeadCellElement=class extends a.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},a.UUITableHeadCellElement.styles=[...a.UUITableCellElement.styles,p`:host{border-top:none}`],a.UUITableHeadCellElement=_b([b("uui-table-head-cell")],a.UUITableHeadCellElement);var wb=Object.defineProperty,$b=Object.getOwnPropertyDescriptor,Ub=(i,e,t,r)=>{for(var o=r>1?void 0:r?$b(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&wb(e,t,o),o};a.UUITableHeadElement=class extends m{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},a.UUITableHeadElement.styles=[p`:host{display:table-header-group;font-weight:700}`],a.UUITableHeadElement=Ub([b("uui-table-head")],a.UUITableHeadElement);var Eb=Object.defineProperty,xb=Object.getOwnPropertyDescriptor,tl=(i,e,t,r)=>{for(var o=r>1?void 0:r?xb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Eb(e,t,o),o};a.UUITableRowElement=class extends Zt(it(m)){constructor(){super();let e=!1;this.addEventListener("blur",()=>{e===!1&&this.style.setProperty("--uui-show-focus-outline","1"),e=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),e=!0}),this.addEventListener("mouseup",()=>{e=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(e){e.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(e=>{this.elementIsTableCell(e)&&(e.disableChildInteraction=this.selectOnly)})}elementIsTableCell(e){return e instanceof a.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},a.UUITableRowElement.styles=[p`:host{display:table-row;position:relative;outline-offset:-3px}:host([selectable]){cursor:pointer}:host(:focus){outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host([selected]){outline:2px solid var(--uui-table-row-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:focus){outline-color:var(--uui-color-focus,#3879ff)}`],tl([Ie({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],a.UUITableRowElement.prototype,"slotCellNodes",2),a.UUITableRowElement=tl([b("uui-table-row")],a.UUITableRowElement);var kb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Bt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ib(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&kb(e,t,o),o};a.UUITabElement=class extends Pt(ee("",m)){constructor(){super(),this.disabled=!1,this.orientation="horizontal",this.addEventListener("click",this.onHostClick)}onHostClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}render(){return this.href?u`<a id="button" href="${k(this.disabled?void 0:this.href)}" target="${k(this.target||void 0)}" rel="${k(this.target==="_blank"?"noopener noreferrer":void 0)}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button type="button" id="button" ?disabled="${this.disabled}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></button>`}},a.UUITabElement.styles=[p`:host{color:var(--uui-tab-text,var(--uui-color-interactive,#1b264f));font-family:inherit;width:fit-content}#button{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:var(--uui-size-12,36px);min-width:70px;padding:var(--uui-size-2,6px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px));border:none;font-size:inherit;background:0 0;color:inherit;cursor:pointer;font-family:inherit;text-decoration:none;line-height:normal}:host([orientation=vertical]) #button{min-height:var(--uui-size-14,42px);padding:var(--uui-size-2,6px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px))}:host(:not([active]):not([disabled])) #button:hover{color:var(--uui-tab-text-hover,var(--uui-color-default-emphasis,#3544b1))}:host(:not([active]):not([disabled])) #button:active{box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}:host([active]) #button{cursor:default}:host([disabled]) #button{color:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button::before{content:'';position:absolute;background-color:var(--uui-color-current,#f5c1bc);opacity:0;--transitionDuration:120ms;--barWidth:4px;--borderRadius:3px}:host([active]) #button::before{opacity:1}:host([orientation=horizontal]) #button::before{left:auto;right:auto;border-radius:var(--borderRadius) var(--borderRadius) 0 0;height:0;width:calc(100% - 15px);bottom:0;transition:opacity ease-in-out var(--transitionDuration),height ease-in-out var(--transitionDuration)}:host([active][orientation=horizontal]) #button::before{height:var(--barWidth)}:host([orientation=vertical]) #button::before{top:auto;bottom:auto;border-radius:0 var(--borderRadius) var(--borderRadius) 0;height:calc(100% - 12px);width:0;left:0;transition:opacity ease-in-out var(--transitionDuration),width ease-in-out var(--transitionDuration)}:host([active][orientation=vertical]) #button::before{width:var(--barWidth)}#button:hover::before{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([disabled]) #button::before{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=icon]::slotted(*){font-size:20px;margin-bottom:var(--uui-size-2,6px)}slot.label{text-align:center;display:flex;width:100%;flex-direction:column}:host([orientation=vertical]) slot.label{text-align:left}`],Bt([l({type:Boolean,reflect:!0})],a.UUITabElement.prototype,"disabled",2),Bt([l({type:String})],a.UUITabElement.prototype,"href",2),Bt([l({type:String})],a.UUITabElement.prototype,"target",2),Bt([l({type:String,reflect:!0})],a.UUITabElement.prototype,"orientation",2),a.UUITabElement=Bt([b("uui-tab")],a.UUITabElement);var Cb=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,Si=(i,e,t,r)=>{for(var o=r>1?void 0:r?zb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Cb(e,t,o),o},Qo=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},I=(i,e,t)=>(Qo(i,e,"read from private field"),t?t.call(i):e.get(i)),G=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Jo=(i,e,t,r)=>(Qo(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Se=(i,e,t)=>(Qo(i,e,"access private method"),t),$e,Ue,wt,ue,Oi,Ai,er,il,tr,ol,$t,Li,ir,or,rl,rr,nl,ji,nr;a.UUITabGroupElement=class extends m{constructor(){super(...arguments),G(this,er),G(this,tr),G(this,Li),G(this,or),G(this,rr),G(this,ji),this.dropdownContentDirection="vertical",G(this,$e,[]),G(this,Ue,[]),G(this,wt,new Map),G(this,ue,[]),G(this,Oi,0),G(this,Ai,new ResizeObserver(Se(this,er,il).bind(this))),G(this,$t,e=>{const t=e.currentTarget;if(Se(this,ji,nr).call(this,t)){t.active=!0;const r=I(this,wt).get(t);r&&(r.active=!0),[...I(this,$e),...I(this,Ue)].filter(o=>o!==t&&o!==r).forEach(o=>{Se(this,ji,nr).call(this,o)&&(o.active=!1)}),I(this,Ue).some(o=>o.active&&o!==r)?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside")}})}connectedCallback(){super.connectedCallback(),I(this,Ai).observe(this),this.hasAttribute("role")||this.setAttribute("role","tablist")}disconnectedCallback(){super.disconnectedCallback(),I(this,Ai).unobserve(this)}render(){return u`<slot @slotchange="${Se(this,tr,ol)}"></slot><uui-button popovertarget="popover-container" style="display:none" id="more-button" label="More" compact="compact"><uui-symbol-more></uui-symbol-more></uui-button><uui-popover-container id="popover-container" popover margin="10" placement="bottom-end"><div id="hidden-tabs-container">${Eo(I(this,Ue),e=>u`${e}`)}</div></uui-popover-container>`}},$e=new WeakMap,Ue=new WeakMap,wt=new WeakMap,ue=new WeakMap,Oi=new WeakMap,Ai=new WeakMap,er=new WeakSet,il=function(i){Se(this,Li,ir).call(this,i[0].contentBoxSize[0].inlineSize)},tr=new WeakSet,ol=function(){I(this,$e).forEach(i=>{i.removeEventListener("click",I(this,$t))}),Se(this,rr,nl).call(this),I(this,$e).forEach(i=>{i.addEventListener("click",I(this,$t))})},$t=new WeakMap,Li=new WeakSet,ir=function(i){const e=this._moreButtonElement.offsetWidth;if(I(this,ue).slice(-1)[0]<i&&I(this,Ue).length===0)return;let t=Number.MAX_VALUE;for(let o=I(this,ue).length-1;o>-1;o--){const n=I(this,ue)[o],s=i-(o!==I(this,ue).length-1?e:0);if(n<s){t=o;break}}if(t===I(this,Oi))return;Jo(this,Oi,t),I(this,Ue).forEach(o=>{o.removeEventListener("click",I(this,$t))}),Jo(this,Ue,[]),I(this,wt).clear();let r=!1;for(let o=0;o<I(this,ue).length;o++){const n=I(this,ue)[o],s=I(this,$e)[o],h=i-(o!==I(this,ue).length-1?e:0);if(n<h)s.style.display="",this._moreButtonElement.style.display="none";else{const c=s.cloneNode(!0);c.addEventListener("click",I(this,$t)),c.classList.add("hidden-tab"),c.style.display="",c.orientation=this.dropdownContentDirection,I(this,wt).set(c,s),I(this,wt).set(s,c),I(this,Ue).push(c),s.style.display="none",this._moreButtonElement.style.display="",s.active&&(r=!0)}}r?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside"),this.requestUpdate()},or=new WeakSet,rl=function(){let i=0;for(let e=0;e<I(this,$e).length;e++)i+=I(this,$e)[e].offsetWidth,I(this,ue)[e]=i;Se(this,Li,ir).call(this,this.offsetWidth)},rr=new WeakSet,nl=function(){Jo(this,$e,this._slottedNodes?this._slottedNodes:[]),Se(this,or,rl).call(this)},ji=new WeakSet,nr=function(i){return i instanceof a.UUITabElement||"active"in i},a.UUITabGroupElement.styles=[p`:host{display:flex;flex-wrap:wrap;color:var(--uui-tab-text);background:var(--uui-tab-background,none);height:100%;min-height:48px}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}.hidden-tab{width:100%}#hidden-tabs-container{width:fit-content;display:flex;flex-direction:column;background:var(--uui-color-surface,#fff);border-radius:var(--uui-border-radius,3px);box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23));overflow:hidden}:host([dropdown-direction=horizontal]) #hidden-tabs-container{flex-direction:row}#more-button{margin-left:auto;position:relative}#more-button::before{content:'';position:absolute;bottom:0;width:100%;background-color:var(--uui-color-current,#f5c1bc);height:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}#more-button.active-inside::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}`],Si([C("#more-button")],a.UUITabGroupElement.prototype,"_moreButtonElement",2),Si([Ie({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],a.UUITabGroupElement.prototype,"_slottedNodes",2),Si([l({type:String,reflect:!0,attribute:"dropdown-content-direction"})],a.UUITabGroupElement.prototype,"dropdownContentDirection",2),a.UUITabGroupElement=Si([b("uui-tab-group")],a.UUITabGroupElement);class Pb extends z{}class Sb extends z{}var Ob=Object.defineProperty,Ab=Object.getOwnPropertyDescriptor,ar=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ab(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Ob(e,t,o),o};a.UUITagElement=class extends m{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return u`<slot></slot>`}},a.UUITagElement.styles=[p`:host{display:inline-block;font-size:var(--uui-tag-font-size,var(--uui-type-small-size,12px));font-weight:700;line-height:1;padding:var(--uui-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em);border-radius:100px;user-select:none;border-radius:var(--uui-size-4,12px);border:1px solid transparent}slot{display:flex;align-items:center;justify-content:center;margin:2px}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#1f9554);--color-standalone:var(--uui-color-positive-standalone,#19864a);--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:transparent;color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:transparent;color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}`],ar([l({reflect:!0})],a.UUITagElement.prototype,"color",2),ar([l({reflect:!0})],a.UUITagElement.prototype,"look",2),a.UUITagElement=ar([b("uui-tag")],a.UUITagElement);var Lb=Object.defineProperty,al=Object.getOwnPropertySymbols,jb=Object.prototype.hasOwnProperty,Nb=Object.prototype.propertyIsEnumerable,sl=(i,e,t)=>e in i?Lb(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ll=(i,e)=>{for(var t in e||(e={}))jb.call(e,t)&&sl(i,t,e[t]);if(al)for(var t of al(e))Nb.call(e,t)&&sl(i,t,e[t]);return i};class Rt extends z{constructor(e,t={}){super(e,ll(ll({},{bubbles:!0}),t))}}Rt.CHANGE="change",Rt.INPUT="input";var Tb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,M=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Tb(e,t,o),o};a.UUITextareaElement=class extends te(m){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.autoHeight=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&this._value.length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&this._value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this),this.autoHeight&&requestAnimationFrame(()=>{this.autoUpdateHeight()})}focus(){var e;(e=this._textarea)==null||e.focus()}getFormElement(){return this._textarea}onInput(e){this.value=e.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Rt(Rt.CHANGE))}autoUpdateHeight(){const e=this.shadowRoot.host,t=this._textarea,r=e.scrollTop,o=getComputedStyle(e).height;e.style.display="block",e.style.height=o,t.style.height="auto",t.scrollHeight+2>t.clientHeight?t.style.height=t.scrollHeight+2+"px":t.scrollHeight+2<t.clientHeight&&t.style.removeProperty("height"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=r}render(){return u`<textarea id="textarea" rows="${k(this.rows)}" cols="${k(this.cols)}" .value="${this.value}" .name="${this.name}" wrap="${k(this.wrap)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
|
|
1094
|
+
</textarea>`}},a.UUITextareaElement.formAssociated=!0,a.UUITextareaElement.styles=[p`:host{position:relative}:host([error]) textarea{border:1px solid var(--uui-color-danger,#d42054)!important}:host([error]) textarea[disabled]{border:1px solid var(--uui-color-danger,#d42054)!important}:host([auto-height]) textarea{resize:none}.label{display:inline-block;margin-bottom:var(--uui-size-1,3px);font-weight:700}textarea[readonly]{border-color:var(--uui-textarea-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2));background-color:var(--uui-textarea-background-color-readonly,var(--uui-color-disabled,#f3f3f5))}textarea[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-textarea-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}textarea{font-family:inherit;box-sizing:border-box;min-width:100%;max-width:100%;font-size:inherit;padding:var(--uui-size-2,6px);border:1px solid var(--uui-textarea-border-color,var(--uui-color-border,#d8d7d9));border-radius:0;outline:0;min-height:var(--uui-textarea-min-height);max-height:var(--uui-textarea-max-height);background-color:var(--uui-textarea-background-color,var(--uui-color-surface,#fff))}:host(:focus) textarea,:host(:hover) textarea:not([readonly]):not([disabled]) :host(:focus-within) textarea{border-color:var(--uui-textarea-border-color,var(--uui-color-border-emphasis,#a1a1a1))}textarea::placeholder{transition:opacity 120ms}:host(:not([readonly])) textarea:focus::placeholder{opacity:0}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}`],M([l()],a.UUITextareaElement.prototype,"placeholder",2),M([l({type:Boolean,reflect:!0})],a.UUITextareaElement.prototype,"disabled",2),M([l({type:Boolean,reflect:!0})],a.UUITextareaElement.prototype,"readonly",2),M([l({type:String})],a.UUITextareaElement.prototype,"name",2),M([l({type:Boolean,reflect:!0})],a.UUITextareaElement.prototype,"error",2),M([l({type:Number})],a.UUITextareaElement.prototype,"minlength",2),M([l({type:String,attribute:"minlength-message"})],a.UUITextareaElement.prototype,"minlengthMessage",2),M([l({type:Number})],a.UUITextareaElement.prototype,"maxlength",2),M([l({type:String,attribute:"maxlength-message"})],a.UUITextareaElement.prototype,"maxlengthMessage",2),M([C("#textarea")],a.UUITextareaElement.prototype,"_textarea",2),M([l({type:Boolean,attribute:"auto-height",reflect:!0})],a.UUITextareaElement.prototype,"autoHeight",2),M([l({type:String})],a.UUITextareaElement.prototype,"label",2),M([l({type:Number})],a.UUITextareaElement.prototype,"rows",2),M([l({type:Number})],a.UUITextareaElement.prototype,"cols",2),M([l({type:String})],a.UUITextareaElement.prototype,"wrap",2),a.UUITextareaElement=M([b("uui-textarea")],a.UUITextareaElement);var Db=`.uui-text {
|
|
1095
|
+
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1096
|
+
font-size: 15px;
|
|
1097
|
+
line-height: calc(var(--uui-size-2,6px) * 4);
|
|
1098
|
+
-webkit-font-smoothing: antialiased;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.uui-text h1,
|
|
1102
|
+
.uui-text .uui-h1 {
|
|
1103
|
+
font-size: var(--uui-type-h1-size,60px);
|
|
1104
|
+
line-height: var(--uui-size-layout-4,66px);
|
|
1105
|
+
font-weight: 300;
|
|
1106
|
+
margin-left: -5px;
|
|
1107
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1108
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1109
|
+
}
|
|
1110
|
+
.uui-text p + h1,
|
|
1111
|
+
.uui-text p + .uui-h1 {
|
|
1112
|
+
margin-top: var(--uui-size-layout-4,66px);
|
|
1113
|
+
}
|
|
1114
|
+
.uui-text h1.--no-top-margin,
|
|
1115
|
+
.uui-text h1:first-child,
|
|
1116
|
+
.uui-text .uui-h1.--no-top-margin,
|
|
1117
|
+
.uui-text .uui-h1:first-child {
|
|
1118
|
+
margin-top: 0;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
.uui-text h2,
|
|
1122
|
+
.uui-text .uui-h2 {
|
|
1123
|
+
font-size: var(--uui-type-h2-size,42px);
|
|
1124
|
+
line-height: var(--uui-size-layout-3,42px);
|
|
1125
|
+
font-weight: 300;
|
|
1126
|
+
margin-left: -3px;
|
|
1127
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1128
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1129
|
+
}
|
|
1130
|
+
.uui-text p + h2,
|
|
1131
|
+
.uui-text p + .uui-h2 {
|
|
1132
|
+
margin-top: var(--uui-size-layout-3,42px);
|
|
1133
|
+
}
|
|
1134
|
+
.uui-text h2.--no-top-margin,
|
|
1135
|
+
.uui-text h2:first-child,
|
|
1136
|
+
.uui-text .uui-h2.--no-top-margin,
|
|
1137
|
+
.uui-text .uui-h2:first-child {
|
|
1138
|
+
margin-top: 0;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
.uui-text h3,
|
|
1142
|
+
.uui-text .uui-h3 {
|
|
1143
|
+
font-size: var(--uui-type-h3-size,30px);
|
|
1144
|
+
line-height: var(--uui-size-large);
|
|
1145
|
+
font-weight: 300;
|
|
1146
|
+
margin-left: -2px;
|
|
1147
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1148
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1149
|
+
}
|
|
1150
|
+
.uui-text h3.--no-top-margin,
|
|
1151
|
+
.uui-text h3:first-child,
|
|
1152
|
+
.uui-text .uui-h3.--no-top-margin,
|
|
1153
|
+
.uui-text .uui-h3:first-child {
|
|
1154
|
+
margin-top: 0;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.uui-text h4,
|
|
1158
|
+
.uui-text .uui-h4 {
|
|
1159
|
+
font-size: var(--uui-type-h4-size,21px);
|
|
1160
|
+
line-height: 21px;
|
|
1161
|
+
font-weight: 400;
|
|
1162
|
+
margin-left: -1px;
|
|
1163
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1164
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1165
|
+
}
|
|
1166
|
+
.uui-text h4.--no-top-margin,
|
|
1167
|
+
.uui-text h4:first-child,
|
|
1168
|
+
.uui-text .uui-h4.--no-top-margin,
|
|
1169
|
+
.uui-text .uui-h4:first-child {
|
|
1170
|
+
margin-top: 0;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.uui-text h5,
|
|
1174
|
+
.uui-text .uui-h5 {
|
|
1175
|
+
font-size: var(--uui-type-h5-size,15px);
|
|
1176
|
+
line-height: inherit;
|
|
1177
|
+
font-weight: 700;
|
|
1178
|
+
margin-left: 0;
|
|
1179
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1180
|
+
margin-bottom: 0;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.uui-text h5.--no-top-margin,
|
|
1184
|
+
.uui-text h5:first-child,
|
|
1185
|
+
.uui-text .uui-h5.--no-top-margin,
|
|
1186
|
+
.uui-text .uui-h5:first-child {
|
|
1187
|
+
margin-top: 0;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.uui-text p {
|
|
1191
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1192
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1193
|
+
}
|
|
1194
|
+
.uui-text p.uui-lead {
|
|
1195
|
+
font-size: var(--uui-size-6,18px);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.uui-text a {
|
|
1199
|
+
color: var(--uui-color-interactive,#1b264f);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
.uui-text a:link,
|
|
1203
|
+
.uui-text a:active {
|
|
1204
|
+
color: var(--uui-color-interactive,#1b264f);
|
|
1205
|
+
}
|
|
1206
|
+
.uui-text a:hover {
|
|
1207
|
+
color: var(--uui-color-interactive-emphasis,#3544b1);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
.uui-text small {
|
|
1211
|
+
display: inline-block;
|
|
1212
|
+
font-size: var(--uui-type-small-size,12px);
|
|
1213
|
+
line-height: calc(var(--uui-size-2,6px) * 3);
|
|
1214
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.uui-text blockquote {
|
|
1218
|
+
float: right;
|
|
1219
|
+
font-size: 15px;
|
|
1220
|
+
font-weight: 700;
|
|
1221
|
+
font-style: italic;
|
|
1222
|
+
margin-top: 0;
|
|
1223
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1224
|
+
margin-right: -0.035em;
|
|
1225
|
+
max-width: 16em;
|
|
1226
|
+
quotes: '\u201C' '\u201D' '\u2018' '\u2019';
|
|
1227
|
+
line-height: inherit;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.uui-text blockquote:before {
|
|
1231
|
+
content: open-quote;
|
|
1232
|
+
margin-left: -0.4em;
|
|
1233
|
+
margin-right: 0.08em;
|
|
1234
|
+
vertical-align: bottom;
|
|
1235
|
+
font-weight: 400;
|
|
1236
|
+
font-size: 2em;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
.uui-text blockquote:after {
|
|
1240
|
+
content: close-quote;
|
|
1241
|
+
margin-left: 0.04em;
|
|
1242
|
+
margin-right: -0.4em;
|
|
1243
|
+
vertical-align: bottom;
|
|
1244
|
+
font-weight: 400;
|
|
1245
|
+
font-size: 2em;
|
|
1246
|
+
margin-bottom: -2px;
|
|
1247
|
+
display: inline-block;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.uui-text ul {
|
|
1251
|
+
list-style-type: square;
|
|
1252
|
+
padding-left: var(--uui-size-layout-1,24px);
|
|
1253
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1254
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
.uui-text ol {
|
|
1258
|
+
padding-left: var(--uui-size-layout-1,24px);
|
|
1259
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1260
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1261
|
+
}
|
|
1262
|
+
`;const Vb=Y(Db);class D extends z{}D.OPENING="opening",D.OPENED="opened",D.CLOSING="closing",D.CLOSED="closed";var Hb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,Ut=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Hb(e,t,o),o};a.UUIToastNotificationElement=class extends m{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",e=>{e.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(e){var t;this._autoClose=e,e!==null?(this._timer===null?this._timer=new Kc(this._onOpenTimerComplete,e):this._timer.setDuration(e),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):((t=this._timer)==null||t.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(e){e===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),w(this,"uui-button"),w(this,"uui-icon")}_getAnimationDuration(){return parseInt(getComputedStyle(this).getPropertyValue("--uui-toast-notification-animation-duration"),10)||480}_makeOpen(){this._open!==!0&&(this._open=!0,this.updateComplete.then(()=>{this._open===!0&&(cancelAnimationFrame(this._requestAnimationUpdate),this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!0,this.setAttribute("is-open",""),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,this.dispatchEvent(new D(D.OPENING)),this._animationTimeout=window.setTimeout(()=>{var e;this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&((e=this._timer)==null||e.start()),this.dispatchEvent(new D(D.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var e;if(this._open===!1)return;const t=new D(D.CLOSING,{cancelable:!0});this.dispatchEvent(t),t.defaultPrevented!==!0&&(this._open=!1,(e=this._timer)==null||e.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new D(D.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return u`<div id="toast" class="${this._animate?"animate":""}"><div><div id="close"><uui-button .label="${"close"}" .color="${this.color}" .look="${this.color?"primary":"default"}" @click="${()=>this.open=!1}"><uui-icon name="remove" .fallback="${Mn.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},a.UUIToastNotificationElement.styles=[Vb,p`:host{--uui-toast-notification-margin:var(--uui-size-space-2,6px);position:relative;display:block;width:100%;max-width:400px;margin:0 var(--uui-toast-notification-margin);box-sizing:border-box;height:0;pointer-events:none;transition:height var(--uui-toast-notification-animation-duration,480ms) ease-in-out}:host([is-open]){pointer-events:all;transition-timing-function:cubic-bezier(.19,1,.22,1)}#toast{position:relative;display:block;padding:calc(var(--uui-toast-notification-margin) * .5) 0;width:100%;max-width:400px}#toast.animate{position:absolute}#toast>div{position:relative;display:block;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));background-color:var(--uui-color-surface,#fff);padding:var(--uui-size-layout-1,24px);padding-right:var(--uui-size-layout-1,24px);padding-left:var(--uui-size-layout-3,42px);border-radius:calc(var(--uui-border-radius,3px) * 2);opacity:0;transition:opacity var(--uui-toast-notification-animation-duration,480ms)}:host([is-open]) #toast>div{opacity:1}#close{float:right;margin-top:-6px;margin-left:var(--uui-size-space-1,3px);margin-bottom:-4px}#close>uui-button{--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}:host #toast>div{background-color:var(--uui-color-surface,#fff);color:var(--uui-color-text,#060606);border-color:var(--uui-color-surface,#fff)}:host([color=default]) #toast>div{background-color:var(--uui-color-default,#1b264f);color:var(--uui-color-default-contrast,#fff);border-color:var(--uui-color-default-standalone,#1c233b)}:host([color=positive]) #toast>div{background-color:var(--uui-color-positive,#1f9554);color:var(--uui-color-positive-contrast,#fff);border-color:var(--uui-color-positive-standalone,#19864a)}:host([color=warning]) #toast>div{background-color:var(--uui-color-warning,#fbd142);color:var(--uui-color-warning-contrast,#000);border-color:var(--uui-color-warning-standalone,#a17700)}:host([color=danger]) #toast>div{background-color:var(--uui-color-danger,#d42054);color:var(--uui-color-danger-contrast,#fff);border-color:var(--uui-color-danger-standalone,#bf214e)}`],Ut([l({reflect:!0})],a.UUIToastNotificationElement.prototype,"color",2),Ut([l({type:Number})],a.UUIToastNotificationElement.prototype,"autoClose",1),Ut([C("#toast")],a.UUIToastNotificationElement.prototype,"_toastEl",2),Ut([g()],a.UUIToastNotificationElement.prototype,"_animate",2),Ut([l({type:Boolean,reflect:!0})],a.UUIToastNotificationElement.prototype,"open",1),a.UUIToastNotificationElement=Ut([b("uui-toast-notification")],a.UUIToastNotificationElement);var Rb=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,ul=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Rb(e,t,o),o};a.UUIToastNotificationContainerElement=class extends m{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{var e;this._autoClosePause=!0,(e=this._toasts)==null||e.forEach(t=>t.pauseAutoClose())},this.resumeAutoClose=()=>{var e;this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,(e=this._toasts)==null||e.forEach(t=>t.resumeAutoClose()))},this.onToastClosed=e=>{this.removeToast(e.target)},this._toasts=[],this.onSlotChanged=e=>{const t=[...this._toasts];this._toasts=e.target.assignedElements({flatten:!0}).filter(r=>r.nodeName==="UUI-TOAST-NOTIFICATION"),t.filter(r=>this._toasts.indexOf(r)===-1).forEach(r=>{r.removeEventListener(D.CLOSED,this.onToastClosed),r.removeEventListener("mouseenter",this.pauseAutoClose),r.removeEventListener("mouseleave",this.resumeAutoClose),r.removeEventListener("focus",this.pauseAutoClose),r.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(r=>t.indexOf(r)===-1).forEach(r=>{r.addEventListener(D.CLOSED,this.onToastClosed),r.addEventListener("mouseenter",this.pauseAutoClose),r.addEventListener("mouseleave",this.resumeAutoClose),r.addEventListener("focus",this.pauseAutoClose),r.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(r.autoClose=this._autoClose),this._autoClosePause===!0&&r.pauseAutoClose(),r.open=!0})}}get autoClose(){return this._autoClose}set autoClose(e){var t;this._autoClose=e,(t=this._toasts)==null||t.forEach(r=>r.autoClose=e)}removeToast(e){if(!e)e=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(e)===-1){console.warn("Toast-notification",e,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(e)}closeToast(e){let t=e;t||(t=this._toasts[this._toasts.length-1]),t.open=!1}render(){return u`<slot @slotchange="${this.onSlotChanged}"></slot>`}},a.UUIToastNotificationContainerElement.styles=[p`:host{position:absolute;overflow:hidden;max-width:100%;height:100%;pointer-events:none;box-sizing:border-box}slot{display:flex;flex-direction:column;align-items:end;height:100%;box-sizing:border-box;padding-top:var(--uui-size-space-1,3px);padding-bottom:var(--uui-size-space-1,3px)}:host([bottom-up]) slot{justify-content:end}:host([left-align]) slot{align-items:start}`],ul([l({type:Number,reflect:!0,attribute:"auto-close"})],a.UUIToastNotificationContainerElement.prototype,"_autoClose",2),a.UUIToastNotificationContainerElement=ul([b("uui-toast-notification-container")],a.UUIToastNotificationContainerElement);var Gb=`.uui-text {
|
|
1263
|
+
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1264
|
+
font-size: 15px;
|
|
1265
|
+
line-height: calc(var(--uui-size-2,6px) * 4);
|
|
1266
|
+
-webkit-font-smoothing: antialiased;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.uui-text h1,
|
|
1270
|
+
.uui-text .uui-h1 {
|
|
1271
|
+
font-size: var(--uui-type-h1-size,60px);
|
|
1272
|
+
line-height: var(--uui-size-layout-4,66px);
|
|
1273
|
+
font-weight: 300;
|
|
1274
|
+
margin-left: -5px;
|
|
1275
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1276
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1277
|
+
}
|
|
1278
|
+
.uui-text p + h1,
|
|
1279
|
+
.uui-text p + .uui-h1 {
|
|
1280
|
+
margin-top: var(--uui-size-layout-4,66px);
|
|
1281
|
+
}
|
|
1282
|
+
.uui-text h1.--no-top-margin,
|
|
1283
|
+
.uui-text h1:first-child,
|
|
1284
|
+
.uui-text .uui-h1.--no-top-margin,
|
|
1285
|
+
.uui-text .uui-h1:first-child {
|
|
1286
|
+
margin-top: 0;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.uui-text h2,
|
|
1290
|
+
.uui-text .uui-h2 {
|
|
1291
|
+
font-size: var(--uui-type-h2-size,42px);
|
|
1292
|
+
line-height: var(--uui-size-layout-3,42px);
|
|
1293
|
+
font-weight: 300;
|
|
1294
|
+
margin-left: -3px;
|
|
1295
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1296
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1297
|
+
}
|
|
1298
|
+
.uui-text p + h2,
|
|
1299
|
+
.uui-text p + .uui-h2 {
|
|
1300
|
+
margin-top: var(--uui-size-layout-3,42px);
|
|
1301
|
+
}
|
|
1302
|
+
.uui-text h2.--no-top-margin,
|
|
1303
|
+
.uui-text h2:first-child,
|
|
1304
|
+
.uui-text .uui-h2.--no-top-margin,
|
|
1305
|
+
.uui-text .uui-h2:first-child {
|
|
1306
|
+
margin-top: 0;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
.uui-text h3,
|
|
1310
|
+
.uui-text .uui-h3 {
|
|
1311
|
+
font-size: var(--uui-type-h3-size,30px);
|
|
1312
|
+
line-height: var(--uui-size-large);
|
|
1313
|
+
font-weight: 300;
|
|
1314
|
+
margin-left: -2px;
|
|
1315
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1316
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1317
|
+
}
|
|
1318
|
+
.uui-text h3.--no-top-margin,
|
|
1319
|
+
.uui-text h3:first-child,
|
|
1320
|
+
.uui-text .uui-h3.--no-top-margin,
|
|
1321
|
+
.uui-text .uui-h3:first-child {
|
|
1322
|
+
margin-top: 0;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
.uui-text h4,
|
|
1326
|
+
.uui-text .uui-h4 {
|
|
1327
|
+
font-size: var(--uui-type-h4-size,21px);
|
|
1328
|
+
line-height: 21px;
|
|
1329
|
+
font-weight: 400;
|
|
1330
|
+
margin-left: -1px;
|
|
1331
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1332
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1333
|
+
}
|
|
1334
|
+
.uui-text h4.--no-top-margin,
|
|
1335
|
+
.uui-text h4:first-child,
|
|
1336
|
+
.uui-text .uui-h4.--no-top-margin,
|
|
1337
|
+
.uui-text .uui-h4:first-child {
|
|
1338
|
+
margin-top: 0;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
.uui-text h5,
|
|
1342
|
+
.uui-text .uui-h5 {
|
|
1343
|
+
font-size: var(--uui-type-h5-size,15px);
|
|
1344
|
+
line-height: inherit;
|
|
1345
|
+
font-weight: 700;
|
|
1346
|
+
margin-left: 0;
|
|
1347
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1348
|
+
margin-bottom: 0;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
.uui-text h5.--no-top-margin,
|
|
1352
|
+
.uui-text h5:first-child,
|
|
1353
|
+
.uui-text .uui-h5.--no-top-margin,
|
|
1354
|
+
.uui-text .uui-h5:first-child {
|
|
1355
|
+
margin-top: 0;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
.uui-text p {
|
|
1359
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1360
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1361
|
+
}
|
|
1362
|
+
.uui-text p.uui-lead {
|
|
1363
|
+
font-size: var(--uui-size-6,18px);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.uui-text a {
|
|
1367
|
+
color: var(--uui-color-interactive,#1b264f);
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.uui-text a:link,
|
|
1371
|
+
.uui-text a:active {
|
|
1372
|
+
color: var(--uui-color-interactive,#1b264f);
|
|
1373
|
+
}
|
|
1374
|
+
.uui-text a:hover {
|
|
1375
|
+
color: var(--uui-color-interactive-emphasis,#3544b1);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
.uui-text small {
|
|
1379
|
+
display: inline-block;
|
|
1380
|
+
font-size: var(--uui-type-small-size,12px);
|
|
1381
|
+
line-height: calc(var(--uui-size-2,6px) * 3);
|
|
1382
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
.uui-text blockquote {
|
|
1386
|
+
float: right;
|
|
1387
|
+
font-size: 15px;
|
|
1388
|
+
font-weight: 700;
|
|
1389
|
+
font-style: italic;
|
|
1390
|
+
margin-top: 0;
|
|
1391
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1392
|
+
margin-right: -0.035em;
|
|
1393
|
+
max-width: 16em;
|
|
1394
|
+
quotes: '\u201C' '\u201D' '\u2018' '\u2019';
|
|
1395
|
+
line-height: inherit;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
.uui-text blockquote:before {
|
|
1399
|
+
content: open-quote;
|
|
1400
|
+
margin-left: -0.4em;
|
|
1401
|
+
margin-right: 0.08em;
|
|
1402
|
+
vertical-align: bottom;
|
|
1403
|
+
font-weight: 400;
|
|
1404
|
+
font-size: 2em;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
.uui-text blockquote:after {
|
|
1408
|
+
content: close-quote;
|
|
1409
|
+
margin-left: 0.04em;
|
|
1410
|
+
margin-right: -0.4em;
|
|
1411
|
+
vertical-align: bottom;
|
|
1412
|
+
font-weight: 400;
|
|
1413
|
+
font-size: 2em;
|
|
1414
|
+
margin-bottom: -2px;
|
|
1415
|
+
display: inline-block;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
.uui-text ul {
|
|
1419
|
+
list-style-type: square;
|
|
1420
|
+
padding-left: var(--uui-size-layout-1,24px);
|
|
1421
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1422
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
.uui-text ol {
|
|
1426
|
+
padding-left: var(--uui-size-layout-1,24px);
|
|
1427
|
+
margin-top: var(--uui-size-layout-1,24px);
|
|
1428
|
+
margin-bottom: var(--uui-size-layout-1,24px);
|
|
1429
|
+
}
|
|
1430
|
+
`;const qb=Y(Gb);var Wb=Object.defineProperty,Kb=Object.getOwnPropertyDescriptor,sr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Wb(e,t,o),o};a.UUIToastNotificationLayoutElement=class extends m{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}render(){return u`<div id="message" class="uui-text"><h5 style="${this._headlineSlotHasContent||this.headline&&this.headline!==""?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot></slot><slot id="actions" name="actions"></slot></div>`}},a.UUIToastNotificationLayoutElement.styles=[qb,p`#message{margin-bottom:calc(var(--uui-size-space-1,3px) * -1)}#message::after{content:'';display:block;clear:both}#actions{display:block;float:right;margin-top:var(--uui-size-space-4,12px);margin-bottom:calc(var(--uui-size-space-2,6px) * -1)}`],sr([l({type:String})],a.UUIToastNotificationLayoutElement.prototype,"headline",2),sr([g()],a.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),a.UUIToastNotificationLayoutElement=sr([b("uui-toast-notification-layout")],a.UUIToastNotificationLayoutElement);var Xb=Object.defineProperty,Yb=Object.getOwnPropertyDescriptor,Zb=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Xb(e,t,o),o};a.UUIToggleElement=class extends ie{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-check">${ri}</div><div id="icon-wrong">${Dn}</div></div>`}},a.UUIToggleElement.formAssociated=!0,a.UUIToggleElement.styles=[...ie.styles,ei,p`:host{--uui-toggle-size:18px;--uui-toggle-switch-width:calc(2 * var(--uui-toggle-size))}#slider{position:relative;grid-area:'input';display:flex;align-items:center;width:var(--uui-toggle-switch-width);height:var(--uui-toggle-size);border-radius:100px;background-color:var(--uui-toggle-background-color,var(--uui-color-border,#d8d7d9));border:1px solid var(--uui-toggle-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-toggle-size) * .6)}label:hover input:not([disabled])~#slider{border-color:var(--uui-toggle-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-toggle-background-color-hover,var(--uui-color-border,#d8d7d9))}label:focus #slider{border-color:var(--uui-toggle-border-color-focus,var(--uui-color-focus,#3879ff));background-color:var(--uui-toggle-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked~#slider{background-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-check,#icon-wrong{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms}#icon-check{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);fill:var(--uui-color-interactive,#1b264f)}#icon-wrong{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);fill:var(--uui-color-interactive,#1b264f)}input:checked~#slider #icon-check{fill:var(--uui-color-selected-contrast,#fff)}#slider::after{content:'';position:absolute;top:2px;left:2px;width:calc(var(--uui-toggle-size) - 4px);height:calc(var(--uui-toggle-size) - 4px);border-radius:100px;background-color:var(--uui-color-selected-contrast,#fff);transition:width 120ms ease,left 120ms ease,transform 120ms ease,background-color 120ms}input:checked~#slider::after{left:calc(100% - 2px);transform:translateX(-100%)}input:focus~#slider{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled])) label:active #slider::after{width:calc(1.06 * var(--uui-toggle-size))}:host([disabled]) #slider{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}:host([disabled]) input:checked~#slider{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #slider::after{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #slider #icon-wrong{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #slider{animation:${ti}}:host([disabled]) input:checked #slider #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host(:not([pristine]):invalid) #slider,:host(:not([pristine]):invalid) label:hover #slider,:host(:not([pristine])[internals-invalid]) #slider,:host(:not([pristine])[internals-invalid]) label:hover #slider{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],a.UUIToggleElement=Zb([b("uui-toggle")],a.UUIToggleElement);var Qb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,em=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jb(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Qb(e,t,o),o};a.UUIVisuallyHiddenElement=class extends m{render(){return u`<slot></slot>`}},a.UUIVisuallyHiddenElement.styles=[p`:host(:not(:focus-within)){position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:none!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important}`],a.UUIVisuallyHiddenElement=em([b("uui-visually-hidden")],a.UUIVisuallyHiddenElement),a.ActiveMixin=Fl,a.FormControlMixin=ou,a.InterfaceColorValues=gu,a.InterfaceHeadingValues=fu,a.InterfaceLookValues=vu,a.LabelMixin=Wl,a.PopoverTargetMixin=bu,a.SelectOnlyMixin=eu,a.SelectableMixin=Yl,a.Timer=ru,a.UUIBlinkAnimationValue=kl,a.UUIBlinkKeyframes=xl,a.UUIBooleanInputElement=ie,a.UUIBooleanInputEvent=Qt,a.UUIButtonInlineCreateEvent=ii,a.UUICardEvent=lt,a.UUIColorAreaEvent=li,a.UUIColorPickerChangeEvent=hi,a.UUIColorSliderEvent=di,a.UUIColorSwatchesEvent=ut,a.UUIComboboxEvent=B,a.UUIComboboxListEvent=Q,a.UUIEvent=eo,a.UUIFileDropzoneEvent=ht,a.UUIFormControlEvent=Ne,a.UUIHorizontalPulseAnimationValue=Cl,a.UUIHorizontalPulseKeyframes=Il,a.UUIHorizontalShakeAnimationValue=Pl,a.UUIHorizontalShakeKeyframes=zl,a.UUIIconHost=Io,a.UUIIconRegistry=Co,a.UUIIconRegistryEssential=us,a.UUIIconRequestEvent=dt,a.UUIInputEvent=Re,a.UUIMenuItemEvent=fe,a.UUIModalElement=R,a.UUIPaginationEvent=ze,a.UUIRadioEvent=ft,a.UUIRadioGroupEvent=Ii,a.UUIRefEvent=_t,a.UUISelectEvent=zi,a.UUISelectableEvent=Te,a.UUISliderEvent=Ke,a.UUITabEvent=Pb,a.UUITabGroupEvent=Sb,a.UUITextStyles=_l,a.UUITextareaEvent=Rt,a.UUIToastNotificationEvent=D,a.clamp=su,a.defineElement=mu,a.demandCustomElement=nu,a.drag=au,a.findAncestorByAttributeValue=qr,a.reverseNumberInRange=lu,a.toHex=uu});
|
|
927
1431
|
//# sourceMappingURL=uui.min.js.map
|