@umbraco-ui/uui 1.4.0-rc.2 → 1.5.0-rc.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/custom-elements.json +119 -0
- package/dist/uui.min.js +55 -55
- package/dist/uui.min.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +82 -81
- package/vscode-html-custom-data.json +124 -21
package/dist/uui.min.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(n,
|
|
1
|
+
(function(n,ke){typeof exports=="object"&&typeof module<"u"?ke(exports,require("@umbraco-ui/uui-button/lib/uui-button.element"),require("@umbraco-ui/uui-popover-container/lib/uui-popover-container.element"),require("@umbraco-ui/uui-symbol-more/lib/uui-symbol-more.element")):typeof define=="function"&&define.amd?define(["exports","@umbraco-ui/uui-button/lib/uui-button.element","@umbraco-ui/uui-popover-container/lib/uui-popover-container.element","@umbraco-ui/uui-symbol-more/lib/uui-symbol-more.element"],ke):(n=typeof globalThis<"u"?globalThis:n||self,ke(n.uui={}))})(this,function(n){"use strict";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const
|
|
5
|
+
*/const ke=window,Ti=ke.ShadowRoot&&(ke.ShadyCSS===void 0||ke.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ji=Symbol(),lr=new WeakMap;let ur=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==ji)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(Ti&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=lr.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&lr.set(t,e))}return e}toString(){return this.cssText}};const Ie=i=>new ur(typeof i=="string"?i:i+"",void 0,ji),p=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new ur(t,i,ji)},pl=(i,e)=>{Ti?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)})},cr=Ti?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Ie(t)})(i):i;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ni;const Bt=window,dr=Bt.trustedTypes,bl=dr?dr.emptyScript:"",hr=Bt.reactiveElementPolyfillSupport,Mi={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}},pr=(i,e)=>e!==i&&(e==e||i==i),Di={attribute:!0,type:String,converter:Mi,reflect:!1,hasChanged:pr},Hi="finalized";let Ye=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=Di){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 s=this[e];this[t]=o,this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Di}static finalize(){if(this.hasOwnProperty(Hi))return!1;this[Hi]=!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(cr(o))}else e!==void 0&&t.push(cr(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=Di){var o;const s=this.constructor._$Ep(e,r);if(s!==void 0&&r.reflect===!0){const a=(((o=r.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?r.converter:Mi).toAttribute(t,r.type);this._$El=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$El=null}}_$AK(e,t){var r;const o=this.constructor,s=o._$Ev.get(e);if(s!==void 0&&this._$El!==s){const a=o.getPropertyOptions(s),d=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?a.converter:Mi;this._$El=s,this[s]=d.fromAttribute(t,a.type),this._$El=null}}requestUpdate(e,t,r){let o=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||pr)(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,s)=>this[s]=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 s;return(s=o.hostUpdate)===null||s===void 0?void 0:s.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){}};Ye[Hi]=!0,Ye.elementProperties=new Map,Ye.elementStyles=[],Ye.shadowRootOptions={mode:"open"},hr?.({ReactiveElement:Ye}),((Ni=Bt.reactiveElementVersions)!==null&&Ni!==void 0?Ni:Bt.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]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/var Bi;const Rt=window,Xe=Rt.trustedTypes,br=Xe?Xe.createPolicy("lit-html",{createHTML:i=>i}):void 0,Vt="$lit$",de=`lit$${(Math.random()+"").slice(9)}$`,Ri="?"+de,ml=`<${Ri}>`,Oe=document,Ut=()=>Oe.createComment(""),Et=i=>i===null||typeof i!="object"&&typeof i!="function",mr=Array.isArray,vr=i=>mr(i)||typeof i?.[Symbol.iterator]=="function",Vi=`[
|
|
14
|
+
\f\r]`,kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gr=/-->/g,fr=/>/g,ze=RegExp(`>|${Vi}(?:([^\\s"'>=/]+)(${Vi}*=${Vi}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),yr=/'/g,_r=/"/g,wr=/^(?:script|style|textarea|title)$/i,$r=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),u=$r(1),y=$r(2),B=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),Ur=new WeakMap,Ae=Oe.createTreeWalker(Oe,129,null,!1);function Er(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return br!==void 0?br.createHTML(e):e}const kr=(i,e)=>{const t=i.length-1,r=[];let o,s=e===2?"<svg>":"",a=kt;for(let d=0;d<t;d++){const c=i[d];let h,v,f=-1,_=0;for(;_<c.length&&(a.lastIndex=_,v=a.exec(c),v!==null);)_=a.lastIndex,a===kt?v[1]==="!--"?a=gr:v[1]!==void 0?a=fr:v[2]!==void 0?(wr.test(v[2])&&(o=RegExp("</"+v[2],"g")),a=ze):v[3]!==void 0&&(a=ze):a===ze?v[0]===">"?(a=o??kt,f=-1):v[1]===void 0?f=-2:(f=a.lastIndex-v[2].length,h=v[1],a=v[3]===void 0?ze:v[3]==='"'?_r:yr):a===_r||a===yr?a=ze:a===gr||a===fr?a=kt:(a=ze,o=void 0);const $=a===ze&&i[d+1].startsWith("/>")?" ":"";s+=a===kt?c+ml:f>=0?(r.push(h),c.slice(0,f)+Vt+c.slice(f)+de+$):c+de+(f===-2?(r.push(void 0),d):$)}return[Er(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),r]};let Fi=class dl{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let s=0,a=0;const d=e.length-1,c=this.parts,[h,v]=kr(e,t);if(this.el=dl.createElement(h,r),Ae.currentNode=this.el.content,t===2){const f=this.el.content,_=f.firstChild;_.remove(),f.append(..._.childNodes)}for(;(o=Ae.nextNode())!==null&&c.length<d;){if(o.nodeType===1){if(o.hasAttributes()){const f=[];for(const _ of o.getAttributeNames())if(_.endsWith(Vt)||_.startsWith(de)){const $=v[a++];if(f.push(_),$!==void 0){const E=o.getAttribute($.toLowerCase()+Vt).split(de),k=/([.?@])?(.*)/.exec($);c.push({type:1,index:s,name:k[2],strings:E,ctor:k[1]==="."?xr:k[1]==="?"?Cr:k[1]==="@"?Sr:It})}else c.push({type:6,index:s})}for(const _ of f)o.removeAttribute(_)}if(wr.test(o.tagName)){const f=o.textContent.split(de),_=f.length-1;if(_>0){o.textContent=Xe?Xe.emptyScript:"";for(let $=0;$<_;$++)o.append(f[$],Ut()),Ae.nextNode(),c.push({type:2,index:++s});o.append(f[_],Ut())}}}else if(o.nodeType===8)if(o.data===Ri)c.push({type:2,index:s});else{let f=-1;for(;(f=o.data.indexOf(de,f+1))!==-1;)c.push({type:7,index:s}),f+=de.length-1}s++}}static createElement(e,t){const r=Oe.createElement("template");return r.innerHTML=e,r}};function Le(i,e,t=i,r){var o,s,a,d;if(e===B)return e;let c=r!==void 0?(o=t._$Co)===null||o===void 0?void 0:o[r]:t._$Cl;const h=Et(e)?void 0:e._$litDirective$;return c?.constructor!==h&&((s=c?._$AO)===null||s===void 0||s.call(c,!1),h===void 0?c=void 0:(c=new h(i),c._$AT(i,t,r)),r!==void 0?((a=(d=t)._$Co)!==null&&a!==void 0?a:d._$Co=[])[r]=c:t._$Cl=c),c!==void 0&&(e=Le(i,c._$AS(i,e.values),c,r)),e}let Ir=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,s=((t=e?.creationScope)!==null&&t!==void 0?t:Oe).importNode(r,!0);Ae.currentNode=s;let a=Ae.nextNode(),d=0,c=0,h=o[0];for(;h!==void 0;){if(d===h.index){let v;h.type===2?v=new Ft(a,a.nextSibling,this,e):h.type===1?v=new h.ctor(a,h.name,h.strings,this,e):h.type===6&&(v=new Pr(a,this,e)),this._$AV.push(v),h=o[++c]}d!==h?.index&&(a=Ae.nextNode(),d++)}return Ae.currentNode=Oe,s}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++}},Ft=class hl{constructor(e,t,r,o){var s;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cp=(s=o?.isConnected)===null||s===void 0||s}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=Le(this,e,t),Et(e)?e===U||e==null||e===""?(this._$AH!==U&&this._$AR(),this._$AH=U):e!==this._$AH&&e!==B&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):vr(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&&Et(this._$AH)?this._$AA.nextSibling.data=e:this.$(Oe.createTextNode(e)),this._$AH=e}g(e){var t;const{values:r,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Fi.createElement(Er(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===s)this._$AH.v(r);else{const a=new Ir(s,this),d=a.u(this.options);a.v(r),this.$(d),this._$AH=a}}_$AC(e){let t=Ur.get(e.strings);return t===void 0&&Ur.set(e.strings,t=new Fi(e)),t}T(e){mr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const s of e)o===t.length?t.push(r=new hl(this.k(Ut()),this.k(Ut()),this,this.options)):r=t[o],r._$AI(s),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))}},It=class{constructor(e,t,r,o,s){this.type=1,this._$AH=U,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,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 s=this.strings;let a=!1;if(s===void 0)e=Le(this,e,t,0),a=!Et(e)||e!==this._$AH&&e!==B,a&&(this._$AH=e);else{const d=e;let c,h;for(e=s[0],c=0;c<s.length-1;c++)h=Le(this,d[r+c],t,c),h===B&&(h=this._$AH[c]),a||(a=!Et(h)||h!==this._$AH[c]),h===U?e=U:e!==U&&(e+=(h??"")+s[c+1]),this._$AH[c]=h}a&&!o&&this.j(e)}j(e){e===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},xr=class extends It{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===U?void 0:e}};const vl=Xe?Xe.emptyScript:"";let Cr=class extends It{constructor(){super(...arguments),this.type=4}j(e){e&&e!==U?this.element.setAttribute(this.name,vl):this.element.removeAttribute(this.name)}},Sr=class extends It{constructor(e,t,r,o,s){super(e,t,r,o,s),this.type=5}_$AI(e,t=this){var r;if((e=(r=Le(this,e,t,0))!==null&&r!==void 0?r:U)===B)return;const o=this._$AH,s=e===U&&o!==U||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==U&&(o===U||s);s&&this.element.removeEventListener(this.name,this,o),a&&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)}},Pr=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){Le(this,e)}};const gl={O:Vt,P:de,A:Ri,C:1,M:kr,L:Ir,R:vr,D:Le,I:Ft,V:It,H:Cr,N:Sr,U:xr,F:Pr},Or=Rt.litHtmlPolyfillSupport;Or?.(Fi,Ft),((Bi=Rt.litHtmlVersions)!==null&&Bi!==void 0?Bi:Rt.litHtmlVersions=[]).push("2.8.0");const fl=(i,e,t)=>{var r,o;const s=(r=t?.renderBefore)!==null&&r!==void 0?r:e;let a=s._$litPart$;if(a===void 0){const d=(o=t?.renderBefore)!==null&&o!==void 0?o:null;s._$litPart$=a=new Ft(e.insertBefore(Ut(),d),d,void 0,t??{})}return a._$AI(i),a};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/var
|
|
19
|
+
*/var Gi,qi;let m=class extends Ye{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 B}};m.finalized=!0,m._$litElement$=!0,(Gi=globalThis.litElementHydrateSupport)===null||Gi===void 0||Gi.call(globalThis,{LitElement:m});const zr=globalThis.litElementPolyfillSupport;zr?.({LitElement:m}),((qi=globalThis.litElementVersions)!==null&&qi!==void 0?qi: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,40 +184,40 @@
|
|
|
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 Gt=Ie(yl);/**
|
|
188
188
|
* @license
|
|
189
189
|
* Copyright 2017 Google LLC
|
|
190
190
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
191
|
-
*/const
|
|
191
|
+
*/const Wi=i=>e=>typeof e=="function"?((t,r)=>(customElements.define(t,r),r))(i,e):((t,r)=>{const{kind:o,elements:s}=r;return{kind:o,elements:s,finisher(a){customElements.define(t,a)}}})(i,e);/**
|
|
192
192
|
* @license
|
|
193
193
|
* Copyright 2017 Google LLC
|
|
194
194
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
195
|
-
*/const
|
|
195
|
+
*/const _l=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},wl=(i,e,t)=>{e.constructor.createProperty(t,i)};function l(i){return(e,t)=>t!==void 0?wl(i,e,t):_l(i,e)}/**
|
|
196
196
|
* @license
|
|
197
197
|
* Copyright 2017 Google LLC
|
|
198
198
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
199
|
-
*/function
|
|
199
|
+
*/function g(i){return l({...i,state:!0})}/**
|
|
200
200
|
* @license
|
|
201
201
|
* Copyright 2017 Google LLC
|
|
202
202
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
203
|
-
*/const
|
|
203
|
+
*/const Ki=({finisher:i,descriptor:e})=>(t,r)=>{var o;if(r===void 0){const s=(o=t.originalKey)!==null&&o!==void 0?o:t.key,a=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(t.key)}:{...t,key:s};return i!=null&&(a.finisher=function(d){i(d,s)}),a}{const s=t.constructor;e!==void 0&&Object.defineProperty(t,r,e(r)),i?.(s,r)}};/**
|
|
204
204
|
* @license
|
|
205
205
|
* Copyright 2017 Google LLC
|
|
206
206
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
207
|
-
*/function
|
|
207
|
+
*/function x(i,e){return Ki({descriptor:t=>{const r={get(){var o,s;return(s=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(i))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){const o=typeof t=="symbol"?Symbol():"__"+t;r.get=function(){var s,a;return this[o]===void 0&&(this[o]=(a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(i))!==null&&a!==void 0?a:null),this[o]}}return r}})}/**
|
|
208
208
|
* @license
|
|
209
209
|
* Copyright 2017 Google LLC
|
|
210
210
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
211
|
-
*/function
|
|
211
|
+
*/function $l(i){return Ki({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 xi;const Oa=((xi=window.HTMLSlotElement)===null||xi===void 0?void 0:xi.prototype.assignedElements)!=null?(i,e)=>i.assignedElements(e):(i,e)=>i.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);function ye(i){const{slot:e,selector:t}=i??{};return Ii({descriptor:r=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),a=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(s),c=a!=null?Oa(a,i):[];return t?c.filter(h=>h.matches(t)):c},enumerable:!0,configurable:!0})})}const Pa=p`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,za=fe("uui-blink 0.9s infinite both"),Aa=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}}`,La=fe("pulse 0.8s ease-in-out infinite both"),Ta=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)}}`,ja=fe("uui-horizontal-shake 600ms ease backwards");var Na=Object.defineProperty,Zo=Object.getOwnPropertySymbols,Ma=Object.prototype.hasOwnProperty,Da=Object.prototype.propertyIsEnumerable,Qo=(i,e,t)=>e in i?Na(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ha=(i,e)=>{for(var t in e||(e={}))Ma.call(e,t)&&Qo(i,t,e[t]);if(Zo)for(var t of Zo(e))Da.call(e,t)&&Qo(i,t,e[t]);return i};let Ci=class extends Event{constructor(e,t={}){super(e,Ha({},t)),this.detail=t.detail||{}}};var Ba=Object.defineProperty,Jo=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,Va=Object.prototype.propertyIsEnumerable,er=(i,e,t)=>e in i?Ba(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,tr=(i,e)=>{for(var t in e||(e={}))Ra.call(e,t)&&er(i,t,e[t]);if(Jo)for(var t of Jo(e))Va.call(e,t)&&er(i,t,e[t]);return i};let Ie=class extends Ci{constructor(e,t={}){super(e,tr(tr({},{bubbles:!0}),t))}};Ie.VALID="valid",Ie.INVALID="invalid";var Fa=Object.defineProperty,ir=Object.getOwnPropertySymbols,Ga=Object.prototype.hasOwnProperty,qa=Object.prototype.propertyIsEnumerable,or=(i,e,t)=>e in i?Fa(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,rr=(i,e)=>{for(var t in e||(e={}))Ga.call(e,t)&&or(i,t,e[t]);if(ir)for(var t of ir(e))qa.call(e,t)&&or(i,t,e[t]);return i};let xe=class extends Ci{constructor(e,t={}){super(e,rr(rr({},{bubbles:!0,cancelable:!0}),t))}};xe.SELECTED="selected",xe.DESELECTED="deselected";var Wa=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,Ya=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ka(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wa(e,t,o),o};const Xa=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Ya([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Za=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,nr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qa(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Za(e,t,o),o};const Ja=(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 nr([l({type:String})],t.prototype,"label",2),nr([v()],t.prototype,"_labelSlotHasContent",2),t};var el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,sr=(i,e,t,r)=>{for(var o=r>1?void 0:r?tl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&el(e,t,o),o};const il=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 xe(xe.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new xe(xe.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 sr([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),sr([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var ol=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,nl=(i,e,t,r)=>{for(var o=r>1?void 0:r?rl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ol(e,t,o),o};const sl=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 nl([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,Ce=(i,e,t,r)=>{for(var o=r>1?void 0:r?ll(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&al(e,t,o),o};const ul=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,s){const a={flagKey:r,getMessageMethod:o,checkMethod:s};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 s in o.validity)s!=="valid"&&o.validity[s]&&(this._validityState[s]=!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 Ie(Ie.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new Ie(Ie.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,Ce([l({type:String})],e.prototype,"name",2),Ce([l()],e.prototype,"value",1),Ce([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),Ce([l({type:Boolean,reflect:!0})],e.prototype,"required",2),Ce([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),Ce([l({type:Boolean,reflect:!0})],e.prototype,"error",2),Ce([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};function cl(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 dl=["default","primary","secondary","outline","placeholder"],hl=["default","positive","warning","danger"],pl=["h1","h2","h3","h4","h5","h6"];let bl=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 ml=(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)},vl=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const w=d.pageX-c,y=d.pageY-h;e!=null&&e.onMove&&e.onMove(w,y)}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)},gl=(i,e,t)=>Math.min(Math.max(i,e),t),fl=(i,e,t)=>t+e-i,yl=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e};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 _l=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,Ul=(i,e,t,r)=>{for(var o=r>1?void 0:r?wl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_l(e,t,o),o};n.UUIButtonGroupElement=class extends m{render(){return u`<slot></slot>`}},n.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}`],n.UUIButtonGroupElement=Ul([b("uui-button-group")],n.UUIButtonGroupElement);var $l=Object.defineProperty,El=Object.getOwnPropertyDescriptor,kl=(i,e,t,r)=>{for(var o=r>1?void 0:r?El(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$l(e,t,o),o};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.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}`],n.UUIActionBarElement=kl([b("uui-action-bar")],n.UUIActionBarElement);var Il=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,Pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?xl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Il(e,t,o),o};n.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>`:""}`}},n.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}`],Pt([ye({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Pt([v()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),Pt([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=Pt([b("uui-avatar-group")],n.UUIAvatarGroupElement);var Cl=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Be=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Cl(e,t,o),o};n.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>`}},n.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%}`],Be([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),Be([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),Be([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),Be([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",1),Be([v()],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=Be([b("uui-avatar")],n.UUIAvatarElement);var Ol=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,zt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ol(e,t,o),o};n.UUIBadgeElement=class extends m{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},n.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})],n.UUIBadgeElement.prototype,"color",2),zt([l({reflect:!0})],n.UUIBadgeElement.prototype,"look",2),zt([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=zt([b("uui-badge")],n.UUIBadgeElement);var zl=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,Ll=(i,e,t,r)=>{for(var o=r>1?void 0:r?Al(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zl(e,t,o),o};const bt=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Ll([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Tl=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,ar=(i,e,t,r)=>{for(var o=r>1?void 0:r?jl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tl(e,t,o),o};const Q=(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 ar([l({type:String})],t.prototype,"label",2),ar([v()],t.prototype,"_labelSlotHasContent",2),t};var Nl=Object.defineProperty,lr=Object.getOwnPropertySymbols,Ml=Object.prototype.hasOwnProperty,Dl=Object.prototype.propertyIsEnumerable,ur=(i,e,t)=>e in i?Nl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Hl=(i,e)=>{for(var t in e||(e={}))Ml.call(e,t)&&ur(i,t,e[t]);if(lr)for(var t of lr(e))Dl.call(e,t)&&ur(i,t,e[t]);return i};let Bl=class extends Event{constructor(e,t={}){super(e,Hl({},t)),this.detail=t.detail||{}}};var Rl=Object.defineProperty,cr=Object.getOwnPropertySymbols,Vl=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,dr=(i,e,t)=>e in i?Rl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,hr=(i,e)=>{for(var t in e||(e={}))Vl.call(e,t)&&dr(i,t,e[t]);if(cr)for(var t of cr(e))Fl.call(e,t)&&dr(i,t,e[t]);return i};let Re=class extends Bl{constructor(e,t={}){super(e,hr(hr({},{bubbles:!0,cancelable:!0}),t))}};Re.SELECTED="selected",Re.DESELECTED="deselected";var Gl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,pr=(i,e,t,r)=>{for(var o=r>1?void 0:r?ql(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gl(e,t,o),o};const Ve=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 Re(Re.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new Re(Re.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 pr([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),pr([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Wl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,Yl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wl(e,t,o),o};const At=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 Yl([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var Xl=Object.defineProperty,br=Object.getOwnPropertySymbols,Zl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable,mr=(i,e,t)=>e in i?Xl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Jl=(i,e)=>{for(var t in e||(e={}))Zl.call(e,t)&&mr(i,t,e[t]);if(br)for(var t of br(e))Ql.call(e,t)&&mr(i,t,e[t]);return i};let vr=class extends Event{constructor(e,t={}){super(e,Jl({},t)),this.detail=t.detail||{}}};var eu=Object.defineProperty,gr=Object.getOwnPropertySymbols,tu=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,fr=(i,e,t)=>e in i?eu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,yr=(i,e)=>{for(var t in e||(e={}))tu.call(e,t)&&fr(i,t,e[t]);if(gr)for(var t of gr(e))iu.call(e,t)&&fr(i,t,e[t]);return i};let Fe=class extends vr{constructor(e,t={}){super(e,yr(yr({},{bubbles:!0}),t))}};Fe.VALID="valid",Fe.INVALID="invalid";var ou=Object.defineProperty,_r=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,nu=Object.prototype.propertyIsEnumerable,wr=(i,e,t)=>e in i?ou(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ur=(i,e)=>{for(var t in e||(e={}))ru.call(e,t)&&wr(i,t,e[t]);if(_r)for(var t of _r(e))nu.call(e,t)&&wr(i,t,e[t]);return i};let $r=class extends vr{constructor(e,t={}){super(e,Ur(Ur({},{bubbles:!0,cancelable:!0}),t))}};$r.SELECTED="selected",$r.DESELECTED="deselected";var su=Object.defineProperty,au=Object.getOwnPropertyDescriptor,Se=(i,e,t,r)=>{for(var o=r>1?void 0:r?au(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&su(e,t,o),o};const J=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,s){const a={flagKey:r,getMessageMethod:o,checkMethod:s};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 s in o.validity)s!=="valid"&&o.validity[s]&&(this._validityState[s]=!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 Fe(Fe.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new Fe(Fe.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,Se([l({type:String})],e.prototype,"name",2),Se([l()],e.prototype,"value",1),Se([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),Se([l({type:Boolean,reflect:!0})],e.prototype,"required",2),Se([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),Se([l({type:Boolean,reflect:!0})],e.prototype,"error",2),Se([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};var lu=Object.defineProperty,Er=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,cu=Object.prototype.propertyIsEnumerable,kr=(i,e,t)=>e in i?lu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,du=(i,e)=>{for(var t in e||(e={}))uu.call(e,t)&&kr(i,t,e[t]);if(Er)for(var t of Er(e))cu.call(e,t)&&kr(i,t,e[t]);return i};let C=class extends Event{constructor(e,t={}){super(e,du({},t)),this.detail=t.detail||{}}};var hu=Object.defineProperty,Ir=Object.getOwnPropertySymbols,pu=Object.prototype.hasOwnProperty,bu=Object.prototype.propertyIsEnumerable,xr=(i,e,t)=>e in i?hu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Cr=(i,e)=>{for(var t in e||(e={}))pu.call(e,t)&&xr(i,t,e[t]);if(Ir)for(var t of Ir(e))bu.call(e,t)&&xr(i,t,e[t]);return i};let Ge=class extends C{constructor(e,t={}){super(e,Cr(Cr({},{bubbles:!0}),t))}};Ge.VALID="valid",Ge.INVALID="invalid";var mu=Object.defineProperty,Sr=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,gu=Object.prototype.propertyIsEnumerable,Or=(i,e,t)=>e in i?mu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Pr=(i,e)=>{for(var t in e||(e={}))vu.call(e,t)&&Or(i,t,e[t]);if(Sr)for(var t of Sr(e))gu.call(e,t)&&Or(i,t,e[t]);return i};let _e=class extends C{constructor(e,t={}){super(e,Pr(Pr({},{bubbles:!0,cancelable:!0}),t))}};_e.SELECTED="selected",_e.DESELECTED="deselected";var fu=Object.defineProperty,zr=Object.getOwnPropertySymbols,yu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,Ar=(i,e,t)=>e in i?fu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Lr=(i,e)=>{for(var t in e||(e={}))yu.call(e,t)&&Ar(i,t,e[t]);if(zr)for(var t of zr(e))_u.call(e,t)&&Ar(i,t,e[t]);return i};let Lt=class extends C{constructor(e,t={}){super(e,Lr(Lr({},{bubbles:!0}),t))}};Lt.CHANGE="change";var wu=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,Tt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Uu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wu(e,t,o),o};let ee=class extends J(Q("",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 Lt(Lt.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>`}};ee.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}`],Tt([l({type:String,attribute:"label-position",reflect:!0})],ee.prototype,"labelPosition",2),Tt([l({type:Boolean})],ee.prototype,"checked",1),Tt([l({type:Boolean,reflect:!0})],ee.prototype,"disabled",2),Tt([I("#input")],ee.prototype,"_input",2);/**
|
|
215
|
+
*/var Yi;const Ul=((Yi=window.HTMLSlotElement)===null||Yi===void 0?void 0:Yi.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 Ki({descriptor:r=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),a=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(s),d=a!=null?Ul(a,i):[];return t?d.filter(c=>c.matches(t)):d},enumerable:!0,configurable:!0})})}const El=p`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,kl=Ie("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}}`,xl=Ie("pulse 0.8s ease-in-out infinite both"),Cl=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 Pl=Object.defineProperty,Ar=Object.getOwnPropertySymbols,Ol=Object.prototype.hasOwnProperty,zl=Object.prototype.propertyIsEnumerable,Lr=(i,e,t)=>e in i?Pl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Al=(i,e)=>{for(var t in e||(e={}))Ol.call(e,t)&&Lr(i,t,e[t]);if(Ar)for(var t of Ar(e))zl.call(e,t)&&Lr(i,t,e[t]);return i};let Xi=class extends Event{constructor(e,t={}){super(e,Al({},t)),this.detail=t.detail||{}}};var Ll=Object.defineProperty,Tr=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,jl=Object.prototype.propertyIsEnumerable,jr=(i,e,t)=>e in i?Ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Nr=(i,e)=>{for(var t in e||(e={}))Tl.call(e,t)&&jr(i,t,e[t]);if(Tr)for(var t of Tr(e))jl.call(e,t)&&jr(i,t,e[t]);return i};let Te=class extends Xi{constructor(e,t={}){super(e,Nr(Nr({},{bubbles:!0}),t))}};Te.VALID="valid",Te.INVALID="invalid";var Nl=Object.defineProperty,Mr=Object.getOwnPropertySymbols,Ml=Object.prototype.hasOwnProperty,Dl=Object.prototype.propertyIsEnumerable,Dr=(i,e,t)=>e in i?Nl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Hr=(i,e)=>{for(var t in e||(e={}))Ml.call(e,t)&&Dr(i,t,e[t]);if(Mr)for(var t of Mr(e))Dl.call(e,t)&&Dr(i,t,e[t]);return i};let je=class extends Xi{constructor(e,t={}){super(e,Hr(Hr({},{bubbles:!0,cancelable:!0}),t))}};je.SELECTED="selected",je.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,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hl(e,t,o),o};const Vl=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Rl([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Fl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,Br=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fl(e,t,o),o};const ql=(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 Br([l({type:String})],t.prototype,"label",2),Br([g()],t.prototype,"_labelSlotHasContent",2),t};var Wl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,Rr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wl(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 je(je.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new je(je.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 Rr([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Rr([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Xl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,Ql=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xl(e,t,o),o};const Jl=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 Ql([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var eu=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,Ne=(i,e,t,r)=>{for(var o=r>1?void 0:r?tu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&eu(e,t,o),o};const iu=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,s){const a={flagKey:r,getMessageMethod:o,checkMethod:s};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 s in o.validity)s!=="valid"&&o.validity[s]&&(this._validityState[s]=!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 Te(Te.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new Te(Te.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,Ne([l({type:String})],e.prototype,"name",2),Ne([l()],e.prototype,"value",1),Ne([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),Ne([l({type:Boolean,reflect:!0})],e.prototype,"required",2),Ne([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),Ne([l({type:Boolean,reflect:!0})],e.prototype,"error",2),Ne([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};let ou=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 ru=(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)},nu=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,d=s.left+a.scrollX,c=s.top+a.scrollY;let h;o instanceof TouchEvent?h=o.touches[0]:h=o;const v=h.pageX-d,f=h.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),au=(i,e,t)=>t+e-i,lu=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e},Vr=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||null}return null};var uu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,du=(i,e,t,r)=>{for(var o=r>1?void 0:r?cu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&uu(e,t,o),o},Fr=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Gr=(i,e,t)=>(Fr(i,e,"read from private field"),t?t.call(i):e.get(i)),qr=(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)},hu=(i,e,t,r)=>(Fr(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t);const pu=i=>{var e,t;class r extends i{constructor(...s){super(...s),qr(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=Vr(this,"id",this.popoverContainerElement);a&&(Gr(this,e)?a.hidePopover():a.showPopover())},qr(this,t,a=>{requestAnimationFrame(()=>{hu(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",Gr(this,t))}}return e=new WeakMap,t=new WeakMap,du([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};function bu(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 mu=["default","primary","secondary","outline","placeholder"],vu=["default","positive","warning","danger"],gu=["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 fu=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,_u=(i,e,t,r)=>{for(var o=r>1?void 0:r?yu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fu(e,t,o),o};n.UUIButtonGroupElement=class extends m{render(){return u`<slot></slot>`}},n.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}`],n.UUIButtonGroupElement=_u([b("uui-button-group")],n.UUIButtonGroupElement);var wu=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,Uu=(i,e,t,r)=>{for(var o=r>1?void 0:r?$u(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wu(e,t,o),o};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.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}`],n.UUIActionBarElement=Uu([b("uui-action-bar")],n.UUIActionBarElement);var Eu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,qt=(i,e,t,r)=>{for(var o=r>1?void 0:r?ku(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Eu(e,t,o),o};n.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>`:""}`}},n.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}`],qt([xe({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),qt([g()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),qt([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=qt([b("uui-avatar-group")],n.UUIAvatarGroupElement);var Iu=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,Ze=(i,e,t,r)=>{for(var o=r>1?void 0:r?xu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Iu(e,t,o),o};n.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>`}},n.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%}`],Ze([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),Ze([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),Ze([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),Ze([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",1),Ze([g()],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=Ze([b("uui-avatar")],n.UUIAvatarElement);var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,Wt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Su(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Cu(e,t,o),o};n.UUIBadgeElement=class extends m{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},n.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}}`],Wt([l({reflect:!0})],n.UUIBadgeElement.prototype,"color",2),Wt([l({reflect:!0})],n.UUIBadgeElement.prototype,"look",2),Wt([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=Wt([b("uui-badge")],n.UUIBadgeElement);var Pu=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,zu=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ou(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Pu(e,t,o),o};const xt=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return zu([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Au=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,Wr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Au(e,t,o),o};const te=(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 Wr([l({type:String})],t.prototype,"label",2),Wr([g()],t.prototype,"_labelSlotHasContent",2),t};var Tu=Object.defineProperty,Kr=Object.getOwnPropertySymbols,ju=Object.prototype.hasOwnProperty,Nu=Object.prototype.propertyIsEnumerable,Yr=(i,e,t)=>e in i?Tu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Mu=(i,e)=>{for(var t in e||(e={}))ju.call(e,t)&&Yr(i,t,e[t]);if(Kr)for(var t of Kr(e))Nu.call(e,t)&&Yr(i,t,e[t]);return i};let Du=class extends Event{constructor(e,t={}){super(e,Mu({},t)),this.detail=t.detail||{}}};var Hu=Object.defineProperty,Xr=Object.getOwnPropertySymbols,Bu=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,Zr=(i,e,t)=>e in i?Hu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qr=(i,e)=>{for(var t in e||(e={}))Bu.call(e,t)&&Zr(i,t,e[t]);if(Xr)for(var t of Xr(e))Ru.call(e,t)&&Zr(i,t,e[t]);return i};let Qe=class extends Du{constructor(e,t={}){super(e,Qr(Qr({},{bubbles:!0,cancelable:!0}),t))}};Qe.SELECTED="selected",Qe.DESELECTED="deselected";var Vu=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Jr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vu(e,t,o),o};const Je=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 Qe(Qe.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new Qe(Qe.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 Jr([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Jr([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Gu=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Wu=(i,e,t,r)=>{for(var o=r>1?void 0:r?qu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gu(e,t,o),o};const Kt=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 Wu([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var Ku=Object.defineProperty,en=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,tn=(i,e,t)=>e in i?Ku(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Zu=(i,e)=>{for(var t in e||(e={}))Yu.call(e,t)&&tn(i,t,e[t]);if(en)for(var t of en(e))Xu.call(e,t)&&tn(i,t,e[t]);return i};let on=class extends Event{constructor(e,t={}){super(e,Zu({},t)),this.detail=t.detail||{}}};var Qu=Object.defineProperty,rn=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,ec=Object.prototype.propertyIsEnumerable,nn=(i,e,t)=>e in i?Qu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,sn=(i,e)=>{for(var t in e||(e={}))Ju.call(e,t)&&nn(i,t,e[t]);if(rn)for(var t of rn(e))ec.call(e,t)&&nn(i,t,e[t]);return i};let et=class extends on{constructor(e,t={}){super(e,sn(sn({},{bubbles:!0}),t))}};et.VALID="valid",et.INVALID="invalid";var tc=Object.defineProperty,an=Object.getOwnPropertySymbols,ic=Object.prototype.hasOwnProperty,oc=Object.prototype.propertyIsEnumerable,ln=(i,e,t)=>e in i?tc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,un=(i,e)=>{for(var t in e||(e={}))ic.call(e,t)&&ln(i,t,e[t]);if(an)for(var t of an(e))oc.call(e,t)&&ln(i,t,e[t]);return i};let cn=class extends on{constructor(e,t={}){super(e,un(un({},{bubbles:!0,cancelable:!0}),t))}};cn.SELECTED="selected",cn.DESELECTED="deselected";var rc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,Me=(i,e,t,r)=>{for(var o=r>1?void 0:r?nc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rc(e,t,o),o};const ie=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,s){const a={flagKey:r,getMessageMethod:o,checkMethod:s};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 s in o.validity)s!=="valid"&&o.validity[s]&&(this._validityState[s]=!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 et(et.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new et(et.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},sc=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||null}return null};var ac=Object.defineProperty,lc=Object.getOwnPropertyDescriptor,uc=(i,e,t,r)=>{for(var o=r>1?void 0:r?lc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ac(e,t,o),o},dn=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},hn=(i,e,t)=>(dn(i,e,"read from private field"),t?t.call(i):e.get(i)),pn=(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)},cc=(i,e,t,r)=>(dn(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(...s){super(...s),pn(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=sc(this,"id",this.popoverContainerElement);a&&(hn(this,e)?a.hidePopover():a.showPopover())},pn(this,t,a=>{requestAnimationFrame(()=>{cc(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",hn(this,t))}}return e=new WeakMap,t=new WeakMap,uc([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};var hc=Object.defineProperty,bn=Object.getOwnPropertySymbols,pc=Object.prototype.hasOwnProperty,bc=Object.prototype.propertyIsEnumerable,mn=(i,e,t)=>e in i?hc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,mc=(i,e)=>{for(var t in e||(e={}))pc.call(e,t)&&mn(i,t,e[t]);if(bn)for(var t of bn(e))bc.call(e,t)&&mn(i,t,e[t]);return i};let S=class extends Event{constructor(e,t={}){super(e,mc({},t)),this.detail=t.detail||{}}};var vc=Object.defineProperty,vn=Object.getOwnPropertySymbols,gc=Object.prototype.hasOwnProperty,fc=Object.prototype.propertyIsEnumerable,gn=(i,e,t)=>e in i?vc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,fn=(i,e)=>{for(var t in e||(e={}))gc.call(e,t)&&gn(i,t,e[t]);if(vn)for(var t of vn(e))fc.call(e,t)&&gn(i,t,e[t]);return i};let tt=class extends S{constructor(e,t={}){super(e,fn(fn({},{bubbles:!0}),t))}};tt.VALID="valid",tt.INVALID="invalid";var yc=Object.defineProperty,yn=Object.getOwnPropertySymbols,_c=Object.prototype.hasOwnProperty,wc=Object.prototype.propertyIsEnumerable,_n=(i,e,t)=>e in i?yc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,wn=(i,e)=>{for(var t in e||(e={}))_c.call(e,t)&&_n(i,t,e[t]);if(yn)for(var t of yn(e))wc.call(e,t)&&_n(i,t,e[t]);return i};let Ce=class extends S{constructor(e,t={}){super(e,wn(wn({},{bubbles:!0,cancelable:!0}),t))}};Ce.SELECTED="selected",Ce.DESELECTED="deselected";var $c=Object.defineProperty,$n=Object.getOwnPropertySymbols,Uc=Object.prototype.hasOwnProperty,Ec=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={}))Uc.call(e,t)&&Un(i,t,e[t]);if($n)for(var t of $n(e))Ec.call(e,t)&&Un(i,t,e[t]);return i};let Yt=class extends S{constructor(e,t={}){super(e,En(En({},{bubbles:!0}),t))}};Yt.CHANGE="change";var kc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,Xt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ic(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&kc(e,t,o),o};let oe=class extends ie(te("",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 Yt(Yt.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>`}};oe.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}`],Xt([l({type:String,attribute:"label-position",reflect:!0})],oe.prototype,"labelPosition",2),Xt([l({type:Boolean})],oe.prototype,"checked",1),Xt([l({type:Boolean,reflect:!0})],oe.prototype,"disabled",2),Xt([x("#input")],oe.prototype,"_input",2);/**
|
|
216
216
|
* @license
|
|
217
217
|
* Copyright 2020 Google LLC
|
|
218
218
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
219
|
-
*/const
|
|
220
|
-
take care to ensure page security.`)})(r)+i[o+1],i[0]),r:
|
|
219
|
+
*/const Zi=Symbol.for(""),xc=i=>{if(i?.r===Zi)return i?._$litStatic$},Cc=i=>({_$litStatic$:i,r:Zi}),kn=(i,...e)=>({_$litStatic$:e.reduce((t,r,o)=>t+(s=>{if(s._$litStatic$!==void 0)return s._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${s}. Use 'unsafeStatic' to pass non-literal values, but
|
|
220
|
+
take care to ensure page security.`)})(r)+i[o+1],i[0]),r:Zi}),In=new Map,Sc=i=>(e,...t)=>{const r=t.length;let o,s;const a=[],d=[];let c,h=0,v=!1;for(;h<r;){for(c=e[h];h<r&&(s=t[h],(o=xc(s))!==void 0);)c+=o+e[++h],v=!0;h!==r&&d.push(s),a.push(c),h++}if(h===r&&a.push(e[r]),v){const f=a.join("$$lit$$");(e=In.get(f))===void 0&&(a.raw=a,In.set(f,e=a)),t=d}return i(e,...t)},xn=Sc(u);var Pc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,it=(i,e,t,r)=>{for(var o=r>1?void 0:r?Oc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Pc(e,t,o),o};n.UUIBoxElement=class extends m{constructor(){super(...arguments),this.headline=null,this._headlineVariantTag=kn`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=Cc(e):this._headlineVariantTag=kn`h5`}renderHeader(){return xn`<div
|
|
221
221
|
id="header"
|
|
222
222
|
class="uui-text"
|
|
223
223
|
style=${this._headerSlotHasContent||this._headlineSlotHasContent||this.headline!==null?"":"display: none"}>
|
|
@@ -229,10 +229,10 @@
|
|
|
229
229
|
<slot name="headline" @slotchange=${this._headlineSlotChanged}></slot>
|
|
230
230
|
</${this._headlineVariantTag}>
|
|
231
231
|
<slot name="header" @slotchange=${this._headerSlotChanged}></slot>
|
|
232
|
-
</div>`}render(){return
|
|
232
|
+
</div>`}render(){return xn`
|
|
233
233
|
${this.renderHeader()}
|
|
234
234
|
<slot></slot>
|
|
235
|
-
`}},n.UUIBoxElement.styles=[
|
|
235
|
+
`}},n.UUIBoxElement.styles=[Gt,p`
|
|
236
236
|
:host {
|
|
237
237
|
display: block;
|
|
238
238
|
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 +250,34 @@
|
|
|
250
250
|
display: block;
|
|
251
251
|
padding: var(--uui-box-default-padding, var(--uui-size-space-5,18px));
|
|
252
252
|
}
|
|
253
|
-
`],
|
|
253
|
+
`],it([l({type:String})],n.UUIBoxElement.prototype,"headline",2),it([l({attribute:"headline-variant"})],n.UUIBoxElement.prototype,"headlineVariant",1),it([g()],n.UUIBoxElement.prototype,"_headlineVariantTag",2),it([g()],n.UUIBoxElement.prototype,"_headlineSlotHasContent",2),it([g()],n.UUIBoxElement.prototype,"_headerSlotHasContent",2),n.UUIBoxElement=it([b("uui-box")],n.UUIBoxElement);var zc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,Qi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ac(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zc(e,t,o),o};n.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()}`}},n.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}`],Qi([l()],n.UUIBreadcrumbItemElement.prototype,"href",2),Qi([l({type:Boolean,attribute:"last-item"})],n.UUIBreadcrumbItemElement.prototype,"lastItem",2),n.UUIBreadcrumbItemElement=Qi([b("uui-breadcrumb-item")],n.UUIBreadcrumbItemElement);var Lc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Cn=(i,e,t,r)=>{for(var o=r>1?void 0:r?Tc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lc(e,t,o),o};n.UUIBreadcrumbsElement=class extends m{elementIsBreadcrumbItem(e){return e instanceof n.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>`}},n.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}`],Cn([xe({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],n.UUIBreadcrumbsElement.prototype,"slotNodes",2),n.UUIBreadcrumbsElement=Cn([b("uui-breadcrumbs")],n.UUIBreadcrumbsElement);const jc=p`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,Nc=Ie("uui-blink 0.9s infinite both"),Sn=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}}`;Ie("pulse 0.8s ease-in-out infinite both");const Zt=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)}}`,Qt=Ie("uui-horizontal-shake 600ms ease backwards");/**
|
|
254
254
|
* @license
|
|
255
255
|
* Copyright 2017 Google LLC
|
|
256
256
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
257
|
-
*/const
|
|
257
|
+
*/const Z={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ot=i=>(...e)=>({_$litDirective$:i,values:e});let rt=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
258
|
* @license
|
|
259
259
|
* Copyright 2018 Google LLC
|
|
260
260
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
261
|
-
*/const Hr="important",Lu=" !"+Hr,te=We(class extends Ke{constructor(i){var e;if(super(i),i.type!==K.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.ut===void 0){this.ut=new Set;for(const r in e)this.ut.add(r);return this.render(e)}this.ut.forEach(r=>{e[r]==null&&(this.ut.delete(r),r.includes("-")?t.removeProperty(r):t[r]="")});for(const r in e){const o=e[r];if(o!=null){this.ut.add(r);const s=typeof o=="string"&&o.endsWith(Lu);r.includes("-")||s?t.setProperty(r,s?o.slice(0,-11):o,s?Hr:""):t[r]=o}}return H}});var Tu=Object.defineProperty,Br=Object.getOwnPropertySymbols,ju=Object.prototype.hasOwnProperty,Nu=Object.prototype.propertyIsEnumerable,Rr=(i,e,t)=>e in i?Tu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Vr=(i,e)=>{for(var t in e||(e={}))ju.call(e,t)&&Rr(i,t,e[t]);if(Br)for(var t of Br(e))Nu.call(e,t)&&Rr(i,t,e[t]);return i};let Mt=class extends C{constructor(e,t={}){super(e,Vr(Vr({},{bubbles:!0,composed:!0}),t))}};Mt.CLICK="click";var Mu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,Dt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Du(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Mu(e,t,o),o};n.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 Mt(Mt.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="${te({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>`}},n.UUIButtonInlineCreateElement.styles=[zu,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:${Au};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)}`],Dt([v()],n.UUIButtonInlineCreateElement.prototype,"_position",2),Dt([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"label",2),Dt([l({type:Boolean,reflect:!0})],n.UUIButtonInlineCreateElement.prototype,"vertical",2),n.UUIButtonInlineCreateElement=Dt([b("uui-button-inline-create")],n.UUIButtonInlineCreateElement);let Hu=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 _=(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)},Fr=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;o instanceof TouchEvent?d=o.touches[0]:d=o;const w=d.pageX-c,y=d.pageY-h;e!=null&&e.onMove&&e.onMove(w,y)}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),Gr=(i,e,t)=>t+e-i,Ht=g`<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>`,Bu=g`<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>`,Ru=g`<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>`,Vu=g`<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>`,qr=g`<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>`,Fu=g`<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>`,Gu=g`<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>`,qu=g`<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>`,Wr=g`<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>`;/**
|
|
261
|
+
*/const Pn="important",Mc=" !"+Pn,re=ot(class extends rt{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 s=typeof o=="string"&&o.endsWith(Mc);r.includes("-")||s?t.setProperty(r,s?o.slice(0,-11):o,s?Pn:""):t[r]=o}}return B}});var Dc=Object.defineProperty,On=Object.getOwnPropertySymbols,Hc=Object.prototype.hasOwnProperty,Bc=Object.prototype.propertyIsEnumerable,zn=(i,e,t)=>e in i?Dc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,An=(i,e)=>{for(var t in e||(e={}))Hc.call(e,t)&&zn(i,t,e[t]);if(On)for(var t of On(e))Bc.call(e,t)&&zn(i,t,e[t]);return i};let Jt=class extends S{constructor(e,t={}){super(e,An(An({},{bubbles:!0,composed:!0}),t))}};Jt.CLICK="click";var Rc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,ei=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rc(e,t,o),o};n.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 Jt(Jt.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="${re({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>`}},n.UUIButtonInlineCreateElement.styles=[jc,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:${Nc};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)}`],ei([g()],n.UUIButtonInlineCreateElement.prototype,"_position",2),ei([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"label",2),ei([l({type:Boolean,reflect:!0})],n.UUIButtonInlineCreateElement.prototype,"vertical",2),n.UUIButtonInlineCreateElement=ei([b("uui-button-inline-create")],n.UUIButtonInlineCreateElement);let Fc=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)},Ln=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,d=s.left+a.scrollX,c=s.top+a.scrollY;let h;o instanceof TouchEvent?h=o.touches[0]:h=o;const v=h.pageX-d,f=h.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)},A=(i,e,t)=>Math.min(Math.max(i,e),t),Tn=(i,e,t)=>t+e-i,Gc=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||null}return null},ti=y`<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>`,qc=y`<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>`,Wc=y`<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>`,Kc=y`<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>`,jn=y`<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>`,Yc=y`<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>`,Xc=y`<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>`,Zc=y`<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>`,Nn=y`<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
262
|
* @license
|
|
263
263
|
* Copyright 2018 Google LLC
|
|
264
264
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
265
|
-
*/const x=i=>i??$;var Wu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,ie=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ku(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wu(e,t,o),o};n.UUIButtonElement=class extends J(Q("",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}}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":_(this,"uui-loader-circle"),e=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":_(this,"uui-icon"),e=u`<uui-icon name="check" .fallback="${Ht.strings[0]}"></uui-icon>`;break;case"failed":_(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${Wr.strings[0]}"></uui-icon>`;break;default:return $}return u`<div id="state">${e}</div>`}render(){return this.href?u`<a id="button" aria-label="${this.label}" href="${x(this.disabled?void 0:this.href)}" target="${x(this.target||void 0)}" rel="${x(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>`}},n.UUIButtonElement.styles=[jt,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:${Nt}}#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))}`],ie([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),ie([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),ie([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),ie([l({reflect:!0})],n.UUIButtonElement.prototype,"color",2),ie([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),ie([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),ie([l({type:String})],n.UUIButtonElement.prototype,"href",2),ie([l({type:String})],n.UUIButtonElement.prototype,"target",2),ie([I("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=ie([b("uui-button")],n.UUIButtonElement);let Ye=class extends C{};Ye.OPEN="open";var Yu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,mt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yu(e,t,o),o};n.UUICardElement=class extends At(Ve(m)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new Ye(Ye.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new Ye(Ye.OPEN)))}render(){return u`<slot></slot>`}},n.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}`],mt([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),mt([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),mt([l({type:String})],n.UUICardElement.prototype,"href",2),mt([l({type:String})],n.UUICardElement.prototype,"target",2),n.UUICardElement=mt([b("uui-card")],n.UUICardElement);var Zu=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,Pi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zu(e,t,o),o},Ju=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Kr=(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)},Yr=(i,e,t)=>(Ju(i,e,"access private method"),t),zi,Xr,Ai,Zr;n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments),Kr(this,zi),Kr(this,Ai),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 _(this,"uui-icon"),u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`${this.href?Yr(this,Ai,Zr).call(this):Yr(this,zi,Xr).call(this)}<div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},zi=new WeakSet,Xr=function(){return u`<div id="open-part" tabindex="${this.disabled?$: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>`},Ai=new WeakSet,Zr=function(){return u`<a id="open-part" tabindex="${this.disabled?$:0}" href="${x(this.disabled?void 0:this.href)}" target="${x(this.target||void 0)}" rel="${x(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>`},n.UUICardContentNodeElement.styles=[...n.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}`],Pi([l({type:String})],n.UUICardContentNodeElement.prototype,"name",2),Pi([v()],n.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),n.UUICardContentNodeElement=Pi([b("uui-card-content-node")],n.UUICardContentNodeElement);var ec=Object.defineProperty,tc=Object.getOwnPropertyDescriptor,ic=(i,e,t,r)=>{for(var o=r>1?void 0:r?tc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ec(e,t,o),o};n.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>`}},n.UUISymbolFolderElement.styles=[p`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-color-border,#d8d7d9)}`],n.UUISymbolFolderElement=ic([b("uui-symbol-folder")],n.UUISymbolFolderElement);var oc=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,Qr=(i,e,t,r)=>{for(var o=r>1?void 0:r?rc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&oc(e,t,o),o};n.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>`:""}`}},n.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)}`],Qr([l({type:String})],n.UUISymbolFileElement.prototype,"type",2),n.UUISymbolFileElement=Qr([b("uui-symbol-file")],n.UUISymbolFileElement);var nc=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,Bt=(i,e,t,r)=>{for(var o=r>1?void 0:r?sc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nc(e,t,o),o},ac=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Jr=(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)},en=(i,e,t)=>(ac(i,e,"access private method"),t),Li,tn,Ti,on;n.UUICardMediaElement=class extends n.UUICardElement{constructor(){super(...arguments),Jr(this,Li),Jr(this,Ti),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),_(this,"uui-symbol-folder"),_(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?en(this,Ti,on).call(this):en(this,Li,tn).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},Li=new WeakSet,tn=function(){return u`<button id="open-part" tabindex="${this.disabled?$:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button>`},Ti=new WeakSet,on=function(){return u`<a id="open-part" tabindex="${this.disabled?$:"0"}" href="${x(this.disabled?void 0:this.href)}" target="${x(this.target||void 0)}" rel="${x(this.target==="_blank"?"noopener noreferrer":void 0)}"><span>${this.name}</span></a>`},n.UUICardMediaElement.styles=[...n.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}`],Bt([l({type:String})],n.UUICardMediaElement.prototype,"name",2),Bt([l({type:String,attribute:"file-ext"})],n.UUICardMediaElement.prototype,"fileExt",2),Bt([v()],n.UUICardMediaElement.prototype,"hasPreview",2),n.UUICardMediaElement=Bt([b("uui-card-media")],n.UUICardMediaElement);var lc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,rn=(i,e,t,r)=>{for(var o=r>1?void 0:r?uc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lc(e,t,o),o},cc=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},nn=(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)},sn=(i,e,t)=>(cc(i,e,"access private method"),t),ji,an,Ni,ln;n.UUICardUserElement=class extends n.UUICardElement{constructor(){super(...arguments),nn(this,ji),nn(this,Ni),this.name=""}connectedCallback(){super.connectedCallback(),_(this,"uui-avatar")}render(){return u`<uui-avatar id="avatar" name="${this.name}" size="m"></uui-avatar>${this.href?sn(this,Ni,ln).call(this):sn(this,ji,an).call(this)}<slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},ji=new WeakSet,an=function(){return u`<div id="open-part" tabindex="${this.disabled?$:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div>`},Ni=new WeakSet,ln=function(){return u`<a id="open-part" tabindex="${this.disabled?$:"0"}" href="${x(this.disabled?void 0:this.href)}" target="${x(this.target||void 0)}" rel="${x(this.target==="_blank"?"noopener noreferrer":void 0)}"><span>${this.name}</span></a>`},n.UUICardUserElement.styles=[...n.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)}`],rn([l({type:String})],n.UUICardUserElement.prototype,"name",2),n.UUICardUserElement=rn([b("uui-card-user")],n.UUICardUserElement);var dc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,un=(i,e,t,r)=>{for(var o=r>1?void 0:r?hc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dc(e,t,o),o};n.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>`}},n.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)}`],un([l({type:Boolean,reflect:!0})],n.UUICaretElement.prototype,"open",2),n.UUICaretElement=un([b("uui-caret")],n.UUICaretElement);var pc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,mc=(i,e,t,r)=>{for(var o=r>1?void 0:r?bc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pc(e,t,o),o};n.UUICheckboxElement=class extends ee{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${Ht}</div></div>`}},n.UUICheckboxElement.formAssociated=!0,n.UUICheckboxElement.styles=[...ee.styles,jt,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:${Nt}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}`],n.UUICheckboxElement=mc([b("uui-checkbox")],n.UUICheckboxElement);/**
|
|
265
|
+
*/const C=i=>i??U;var Qc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,ne=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qc(e,t,o),o};n.UUIButtonElement=class extends ie(te("",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="${ti.strings[0]}"></uui-icon>`;break;case"failed":w(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${Nn.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="${C(this.disabled?void 0:this.href)}" target="${C(this.target||void 0)}" rel="${C(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>`}},n.UUIButtonElement.styles=[Zt,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:${Qt}}#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))}`],ne([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),ne([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),ne([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),ne([l({reflect:!0})],n.UUIButtonElement.prototype,"color",2),ne([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),ne([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),ne([l({type:String})],n.UUIButtonElement.prototype,"href",2),ne([l({type:String})],n.UUIButtonElement.prototype,"target",2),ne([x("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=ne([b("uui-button")],n.UUIButtonElement);let nt=class extends S{};nt.OPEN="open";var ed=Object.defineProperty,td=Object.getOwnPropertyDescriptor,Ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?td(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ed(e,t,o),o};n.UUICardElement=class extends Kt(Je(m)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new nt(nt.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new nt(nt.OPEN)))}render(){return u`<slot></slot>`}},n.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}`],Ct([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),Ct([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),Ct([l({type:String})],n.UUICardElement.prototype,"href",2),Ct([l({type:String})],n.UUICardElement.prototype,"target",2),n.UUICardElement=Ct([b("uui-card")],n.UUICardElement);var id=Object.defineProperty,od=Object.getOwnPropertyDescriptor,Ji=(i,e,t,r)=>{for(var o=r>1?void 0:r?od(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&id(e,t,o),o},rd=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Mn=(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)},Dn=(i,e,t)=>(rd(i,e,"access private method"),t),eo,Hn,to,Bn;n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments),Mn(this,eo),Mn(this,to),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?Dn(this,to,Bn).call(this):Dn(this,eo,Hn).call(this)}<div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},eo=new WeakSet,Hn=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>`},to=new WeakSet,Bn=function(){return u`<a id="open-part" tabindex="${this.disabled?U:0}" href="${C(this.disabled?void 0:this.href)}" target="${C(this.target||void 0)}" rel="${C(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>`},n.UUICardContentNodeElement.styles=[...n.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}`],Ji([l({type:String})],n.UUICardContentNodeElement.prototype,"name",2),Ji([g()],n.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),n.UUICardContentNodeElement=Ji([b("uui-card-content-node")],n.UUICardContentNodeElement);var nd=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,ad=(i,e,t,r)=>{for(var o=r>1?void 0:r?sd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nd(e,t,o),o};n.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>`}},n.UUISymbolFolderElement.styles=[p`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-color-border,#d8d7d9)}`],n.UUISymbolFolderElement=ad([b("uui-symbol-folder")],n.UUISymbolFolderElement);var ld=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,Rn=(i,e,t,r)=>{for(var o=r>1?void 0:r?ud(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ld(e,t,o),o};n.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>`:""}`}},n.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)}`],Rn([l({type:String})],n.UUISymbolFileElement.prototype,"type",2),n.UUISymbolFileElement=Rn([b("uui-symbol-file")],n.UUISymbolFileElement);var cd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,ii=(i,e,t,r)=>{for(var o=r>1?void 0:r?dd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&cd(e,t,o),o},hd=(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)},Fn=(i,e,t)=>(hd(i,e,"access private method"),t),io,Gn,oo,qn;n.UUICardMediaElement=class extends n.UUICardElement{constructor(){super(...arguments),Vn(this,io),Vn(this,oo),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?Fn(this,oo,qn).call(this):Fn(this,io,Gn).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},io=new WeakSet,Gn=function(){return u`<button id="open-part" tabindex="${this.disabled?U:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button>`},oo=new WeakSet,qn=function(){return u`<a id="open-part" tabindex="${this.disabled?U:"0"}" href="${C(this.disabled?void 0:this.href)}" target="${C(this.target||void 0)}" rel="${C(this.target==="_blank"?"noopener noreferrer":void 0)}"><span>${this.name}</span></a>`},n.UUICardMediaElement.styles=[...n.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}`],ii([l({type:String})],n.UUICardMediaElement.prototype,"name",2),ii([l({type:String,attribute:"file-ext"})],n.UUICardMediaElement.prototype,"fileExt",2),ii([g()],n.UUICardMediaElement.prototype,"hasPreview",2),n.UUICardMediaElement=ii([b("uui-card-media")],n.UUICardMediaElement);var pd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,Wn=(i,e,t,r)=>{for(var o=r>1?void 0:r?bd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pd(e,t,o),o},md=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Kn=(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)},Yn=(i,e,t)=>(md(i,e,"access private method"),t),ro,Xn,no,Zn;n.UUICardUserElement=class extends n.UUICardElement{constructor(){super(...arguments),Kn(this,ro),Kn(this,no),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?Yn(this,no,Zn).call(this):Yn(this,ro,Xn).call(this)}<slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},ro=new WeakSet,Xn=function(){return u`<div id="open-part" tabindex="${this.disabled?U:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div>`},no=new WeakSet,Zn=function(){return u`<a id="open-part" tabindex="${this.disabled?U:"0"}" href="${C(this.disabled?void 0:this.href)}" target="${C(this.target||void 0)}" rel="${C(this.target==="_blank"?"noopener noreferrer":void 0)}"><span>${this.name}</span></a>`},n.UUICardUserElement.styles=[...n.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)}`],Wn([l({type:String})],n.UUICardUserElement.prototype,"name",2),n.UUICardUserElement=Wn([b("uui-card-user")],n.UUICardUserElement);var vd=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,Qn=(i,e,t,r)=>{for(var o=r>1?void 0:r?gd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vd(e,t,o),o};n.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>`}},n.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)}`],Qn([l({type:Boolean,reflect:!0})],n.UUICaretElement.prototype,"open",2),n.UUICaretElement=Qn([b("uui-caret")],n.UUICaretElement);var fd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,_d=(i,e,t,r)=>{for(var o=r>1?void 0:r?yd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fd(e,t,o),o};n.UUICheckboxElement=class extends oe{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${ti}</div></div>`}},n.UUICheckboxElement.formAssociated=!0,n.UUICheckboxElement.styles=[...oe.styles,Zt,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:${Qt}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}`],n.UUICheckboxElement=_d([b("uui-checkbox")],n.UUICheckboxElement);/**
|
|
266
266
|
* @license
|
|
267
267
|
* Copyright 2018 Google LLC
|
|
268
268
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
269
|
-
*/const Rt=We(class extends Ke{constructor(i){var e;if(super(i),i.type!==K.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(s=>s!=="")));for(const s in e)e[s]&&!(!((t=this.nt)===null||t===void 0)&&t.has(s))&&this.it.add(s);return this.render(e)}const o=i.element.classList;this.it.forEach(s=>{s in e||(o.remove(s),this.it.delete(s))});for(const s in e){const a=!!e[s];a===this.it.has(s)||!((r=this.nt)===null||r===void 0)&&r.has(s)||(a?(o.add(s),this.it.add(s)):(o.remove(s),this.it.delete(s)))}return H}});var vc={grad:.9,turn:360,rad:360/(2*Math.PI)},le=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},z=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},F=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},cn=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},dn=function(i){return{r:F(i.r,0,255),g:F(i.g,0,255),b:F(i.b,0,255),a:F(i.a)}},Mi=function(i){return{r:z(i.r),g:z(i.g),b:z(i.b),a:z(i.a,3)}},gc=/^#([0-9a-f]{3,8})$/i,Vt=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},hn=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),c=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(c<0?c+6:c),s:s?a/s*100:0,v:s/255*100,a:o}},pn=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),c=r*(1-(e-s)*t),h=r*(1-(1-e+s)*t),d=s%6;return{r:255*[r,c,a,a,h,r][d],g:255*[h,r,r,c,a,a][d],b:255*[a,a,h,r,r,c][d],a:o}},bn=function(i){return{h:cn(i.h),s:F(i.s,0,100),l:F(i.l,0,100),a:F(i.a)}},mn=function(i){return{h:z(i.h),s:z(i.s),l:z(i.l),a:z(i.a,3)}},vn=function(i){return pn((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},vt=function(i){return{h:(e=hn(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},fc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_c=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,wc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gn={string:[[function(i){var e=gc.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?z(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?z(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=_c.exec(i)||wc.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:dn({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=fc.exec(i)||yc.exec(i);if(!e)return null;var t,r,o=bn({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(vc[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return vn(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return le(e)&&le(t)&&le(r)?dn({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!le(e)||!le(t)||!le(r))return null;var a=bn({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return vn(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!le(e)||!le(t)||!le(r))return null;var a=function(c){return{h:cn(c.h),s:F(c.s,0,100),v:F(c.v,0,100),a:F(c.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return pn(a)},"hsv"]]},fn=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]},Uc=function(i){return typeof i=="string"?fn(i.trim(),gn.string):typeof i=="object"&&i!==null?fn(i,gn.object):[null,void 0]},Di=function(i,e){var t=vt(i);return{h:t.h,s:F(t.s+100*e,0,100),l:t.l,a:t.a}},Hi=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},yn=function(i,e){var t=vt(i);return{h:t.h,s:t.s,l:F(t.l+100*e,0,100),a:t.a}},_n=function(){function i(e){this.parsed=Uc(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 z(Hi(this.rgba),2)},i.prototype.isDark=function(){return Hi(this.rgba)<.5},i.prototype.isLight=function(){return Hi(this.rgba)>=.5},i.prototype.toHex=function(){return e=Mi(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?Vt(z(255*s)):"","#"+Vt(t)+Vt(r)+Vt(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return Mi(this.rgba)},i.prototype.toRgbString=function(){return e=Mi(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return mn(vt(this.rgba))},i.prototype.toHslString=function(){return e=mn(vt(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=hn(this.rgba),{h:z(e.h),s:z(e.s),v:z(e.v),a:z(e.a,3)};var e},i.prototype.invert=function(){return G({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),G(Di(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),G(Di(this.rgba,-e))},i.prototype.grayscale=function(){return G(Di(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),G(yn(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),G(yn(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"?G({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):z(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=vt(this.rgba);return typeof e=="number"?G({h:e,s:t.s,l:t.l,a:t.a}):z(t.h)},i.prototype.isEqual=function(e){return this.toHex()===G(e).toHex()},i}(),G=function(i){return i instanceof _n?i:new _n(i)},$c=Object.defineProperty,wn=Object.getOwnPropertySymbols,Ec=Object.prototype.hasOwnProperty,kc=Object.prototype.propertyIsEnumerable,Un=(i,e,t)=>e in i?$c(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,$n=(i,e)=>{for(var t in e||(e={}))Ec.call(e,t)&&Un(i,t,e[t]);if(wn)for(var t of wn(e))kc.call(e,t)&&Un(i,t,e[t]);return i};let Ft=class extends C{constructor(e,t={}){super(e,$n($n({},{bubbles:!0}),t))}};Ft.CHANGE="change";var Ic=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,ue=(i,e,t,r)=>{for(var o=r>1?void 0:r?xc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ic(e,t,o),o};n.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=G(e);if(r.isValid()){const{h:o,s,l:a}=r.toHsl();this.hue=o,this.saturation=s,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:s}=t.getBoundingClientRect();r.focus(),e.preventDefault(),e.stopPropagation(),this.isDraggingGridHandle=!0,Fr(t,{onMove:(a,c)=>{isNaN(a)||isNaN(c)||(this.saturation=P(a/o*100,0,100),this.brightness=P(100-c/s*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=G({h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha/100});this._value=e.toRgbString(),this.dispatchEvent(new Ft(Ft.CHANGE))}getHexString(e,t,r,o=100){const s=G(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return s.isValid()?s.toHex():""}render(){const e=this.saturation,t=100-this.brightness;return u`<div part="grid" class="color-area" style="${te({backgroundColor:this.getHexString(this.hue,100,50)})}" @mousedown="${this.handleGridDrag}" @touchstart="${this.handleGridDrag}"><span part="grid-handle" class="${Rt({"color-area__handle":!0,"color-area__handle--dragging":this.isDraggingGridHandle})}" style="${te({top:`${t}%`,left:`${e}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.lightness,this.alpha)})}" role="application" tabindex="${x(this.disabled?void 0:"0")}" aria-label="HSB" @keydown="${this.handleGridKeyDown}"></span></div>`}},n.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}`],ue([v()],n.UUIColorAreaElement.prototype,"isDraggingGridHandle",2),ue([l({type:Number})],n.UUIColorAreaElement.prototype,"hue",2),ue([l({type:Number})],n.UUIColorAreaElement.prototype,"saturation",2),ue([l({type:Number})],n.UUIColorAreaElement.prototype,"lightness",2),ue([l({type:Number})],n.UUIColorAreaElement.prototype,"brightness",2),ue([l({type:Number})],n.UUIColorAreaElement.prototype,"alpha",2),ue([l({type:String})],n.UUIColorAreaElement.prototype,"value",1),ue([l({type:Boolean,reflect:!0})],n.UUIColorAreaElement.prototype,"disabled",2),n.UUIColorAreaElement=ue([b("uui-color-area")],n.UUIColorAreaElement);/**
|
|
269
|
+
*/const oi=ot(class extends rt{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(s=>s!=="")));for(const s in e)e[s]&&!(!((t=this.nt)===null||t===void 0)&&t.has(s))&&this.it.add(s);return this.render(e)}const o=i.element.classList;this.it.forEach(s=>{s in e||(o.remove(s),this.it.delete(s))});for(const s in e){const a=!!e[s];a===this.it.has(s)||!((r=this.nt)===null||r===void 0)&&r.has(s)||(a?(o.add(s),this.it.add(s)):(o.remove(s),this.it.delete(s)))}return B}});var wd={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},W=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},Jn=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},es=function(i){return{r:W(i.r,0,255),g:W(i.g,0,255),b:W(i.b,0,255),a:W(i.a)}},so=function(i){return{r:L(i.r),g:L(i.g),b:L(i.b),a:L(i.a,3)}},$d=/^#([0-9a-f]{3,8})$/i,ri=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},ts=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),d=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(d<0?d+6:d),s:s?a/s*100:0,v:s/255*100,a:o}},is=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),d=r*(1-(e-s)*t),c=r*(1-(1-e+s)*t),h=s%6;return{r:255*[r,d,a,a,c,r][h],g:255*[c,r,r,d,a,a][h],b:255*[a,a,c,r,r,d][h],a:o}},os=function(i){return{h:Jn(i.h),s:W(i.s,0,100),l:W(i.l,0,100),a:W(i.a)}},rs=function(i){return{h:L(i.h),s:L(i.s),l:L(i.l),a:L(i.a,3)}},ns=function(i){return is((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},St=function(i){return{h:(e=ts(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},Ud=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ed=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Id=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ss={string:[[function(i){var e=$d.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=kd.exec(i)||Id.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:es({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=Ud.exec(i)||Ed.exec(i);if(!e)return null;var t,r,o=os({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(wd[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return ns(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return he(e)&&he(t)&&he(r)?es({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!he(e)||!he(t)||!he(r))return null;var a=os({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return ns(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!he(e)||!he(t)||!he(r))return null;var a=function(d){return{h:Jn(d.h),s:W(d.s,0,100),v:W(d.v,0,100),a:W(d.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return is(a)},"hsv"]]},as=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]},xd=function(i){return typeof i=="string"?as(i.trim(),ss.string):typeof i=="object"&&i!==null?as(i,ss.object):[null,void 0]},ao=function(i,e){var t=St(i);return{h:t.h,s:W(t.s+100*e,0,100),l:t.l,a:t.a}},lo=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},ls=function(i,e){var t=St(i);return{h:t.h,s:t.s,l:W(t.l+100*e,0,100),a:t.a}},us=function(){function i(e){this.parsed=xd(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(lo(this.rgba),2)},i.prototype.isDark=function(){return lo(this.rgba)<.5},i.prototype.isLight=function(){return lo(this.rgba)>=.5},i.prototype.toHex=function(){return e=so(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?ri(L(255*s)):"","#"+ri(t)+ri(r)+ri(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return so(this.rgba)},i.prototype.toRgbString=function(){return e=so(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return rs(St(this.rgba))},i.prototype.toHslString=function(){return e=rs(St(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=ts(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 K({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),K(ao(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),K(ao(this.rgba,-e))},i.prototype.grayscale=function(){return K(ao(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),K(ls(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),K(ls(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"?K({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=St(this.rgba);return typeof e=="number"?K({h:e,s:t.s,l:t.l,a:t.a}):L(t.h)},i.prototype.isEqual=function(e){return this.toHex()===K(e).toHex()},i}(),K=function(i){return i instanceof us?i:new us(i)},Cd=Object.defineProperty,cs=Object.getOwnPropertySymbols,Sd=Object.prototype.hasOwnProperty,Pd=Object.prototype.propertyIsEnumerable,ds=(i,e,t)=>e in i?Cd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,hs=(i,e)=>{for(var t in e||(e={}))Sd.call(e,t)&&ds(i,t,e[t]);if(cs)for(var t of cs(e))Pd.call(e,t)&&ds(i,t,e[t]);return i};let ni=class extends S{constructor(e,t={}){super(e,hs(hs({},{bubbles:!0}),t))}};ni.CHANGE="change";var Od=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,pe=(i,e,t,r)=>{for(var o=r>1?void 0:r?zd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Od(e,t,o),o};n.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=K(e);if(r.isValid()){const{h:o,s,l:a}=r.toHsl();this.hue=o,this.saturation=s,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:s}=t.getBoundingClientRect();r.focus(),e.preventDefault(),e.stopPropagation(),this.isDraggingGridHandle=!0,Ln(t,{onMove:(a,d)=>{isNaN(a)||isNaN(d)||(this.saturation=A(a/o*100,0,100),this.brightness=A(100-d/s*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=A(this.saturation-t,0,100),this.syncValues()),e.key==="ArrowRight"&&(e.preventDefault(),this.saturation=A(this.saturation+t,0,100),this.syncValues()),e.key==="ArrowUp"&&(e.preventDefault(),this.brightness=A(this.brightness+t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues()),e.key==="ArrowDown"&&(e.preventDefault(),this.brightness=A(this.brightness-t,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())}getBrightness(e){return A(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return A((200-this.saturation)*e/100*5/10,0,100)}syncValues(){const e=K({h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha/100});this._value=e.toRgbString(),this.dispatchEvent(new ni(ni.CHANGE))}getHexString(e,t,r,o=100){const s=K(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return s.isValid()?s.toHex():""}render(){const e=this.saturation,t=100-this.brightness;return u`<div part="grid" class="color-area" style="${re({backgroundColor:this.getHexString(this.hue,100,50)})}" @mousedown="${this.handleGridDrag}" @touchstart="${this.handleGridDrag}"><span part="grid-handle" class="${oi({"color-area__handle":!0,"color-area__handle--dragging":this.isDraggingGridHandle})}" style="${re({top:`${t}%`,left:`${e}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.lightness,this.alpha)})}" role="application" tabindex="${C(this.disabled?void 0:"0")}" aria-label="HSB" @keydown="${this.handleGridKeyDown}"></span></div>`}},n.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()],n.UUIColorAreaElement.prototype,"isDraggingGridHandle",2),pe([l({type:Number})],n.UUIColorAreaElement.prototype,"hue",2),pe([l({type:Number})],n.UUIColorAreaElement.prototype,"saturation",2),pe([l({type:Number})],n.UUIColorAreaElement.prototype,"lightness",2),pe([l({type:Number})],n.UUIColorAreaElement.prototype,"brightness",2),pe([l({type:Number})],n.UUIColorAreaElement.prototype,"alpha",2),pe([l({type:String})],n.UUIColorAreaElement.prototype,"value",1),pe([l({type:Boolean,reflect:!0})],n.UUIColorAreaElement.prototype,"disabled",2),n.UUIColorAreaElement=pe([b("uui-color-area")],n.UUIColorAreaElement);/**
|
|
270
270
|
* @license
|
|
271
271
|
* Copyright 2020 Google LLC
|
|
272
272
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
273
|
-
*/const{I:
|
|
273
|
+
*/const{I:Ad}=gl,ps=i=>i.strings===void 0,bs=()=>document.createComment(""),Pt=(i,e,t)=>{var r;const o=i._$AA.parentNode,s=e===void 0?i._$AB:e._$AA;if(t===void 0){const a=o.insertBefore(bs(),s),d=o.insertBefore(bs(),s);t=new Ad(a,d,i,i.options)}else{const a=t._$AB.nextSibling,d=t._$AM,c=d!==i;if(c){let h;(r=t._$AQ)===null||r===void 0||r.call(t,i),t._$AM=i,t._$AP!==void 0&&(h=i._$AU)!==d._$AU&&t._$AP(h)}if(a!==s||c){let h=t._$AA;for(;h!==a;){const v=h.nextSibling;o.insertBefore(h,s),h=v}}}return t},De=(i,e,t=i)=>(i._$AI(e,t),i),Ld={},ms=(i,e=Ld)=>i._$AH=e,Td=i=>i._$AH,uo=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
274
|
* @license
|
|
275
275
|
* Copyright 2020 Google LLC
|
|
276
276
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
277
|
-
*/const Pc=We(class extends Ke{constructor(i){if(super(i),i.type!==K.PROPERTY&&i.type!==K.ATTRIBUTE&&i.type!==K.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!En(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===H||e===$)return e;const t=i.element,r=i.name;if(i.type===K.PROPERTY){if(e===t[r])return H}else if(i.type===K.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return H}else if(i.type===K.ATTRIBUTE&&t.getAttribute(r)===e+"")return H;return In(i),e}});var zc={grad:.9,turn:360,rad:360/(2*Math.PI)},ce=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},A=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},xn=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Cn=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)}},Ri=function(i){return{r:A(i.r),g:A(i.g),b:A(i.b),a:A(i.a,3)}},Ac=/^#([0-9a-f]{3,8})$/i,Gt=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},Sn=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),c=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(c<0?c+6:c),s:s?a/s*100:0,v:s/255*100,a:o}},On=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),c=r*(1-(e-s)*t),h=r*(1-(1-e+s)*t),d=s%6;return{r:255*[r,c,a,a,h,r][d],g:255*[h,r,r,c,a,a][d],b:255*[a,a,h,r,r,c][d],a:o}},Pn=function(i){return{h:xn(i.h),s:q(i.s,0,100),l:q(i.l,0,100),a:q(i.a)}},zn=function(i){return{h:A(i.h),s:A(i.s),l:A(i.l),a:A(i.a,3)}},An=function(i){return On((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},ft=function(i){return{h:(e=Sn(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},Lc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Tc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Nc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Vi={string:[[function(i){var e=Ac.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?A(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?A(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=jc.exec(i)||Nc.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Cn({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=Lc.exec(i)||Tc.exec(i);if(!e)return null;var t,r,o=Pn({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(zc[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return An(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return ce(e)&&ce(t)&&ce(r)?Cn({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!ce(e)||!ce(t)||!ce(r))return null;var a=Pn({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return An(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!ce(e)||!ce(t)||!ce(r))return null;var a=function(c){return{h:xn(c.h),s:q(c.s,0,100),v:q(c.v,0,100),a:q(c.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return On(a)},"hsv"]]},Ln=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]},Mc=function(i){return typeof i=="string"?Ln(i.trim(),Vi.string):typeof i=="object"&&i!==null?Ln(i,Vi.object):[null,void 0]},Fi=function(i,e){var t=ft(i);return{h:t.h,s:q(t.s+100*e,0,100),l:t.l,a:t.a}},Gi=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},Tn=function(i,e){var t=ft(i);return{h:t.h,s:t.s,l:q(t.l+100*e,0,100),a:t.a}},qt=function(){function i(e){this.parsed=Mc(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 A(Gi(this.rgba),2)},i.prototype.isDark=function(){return Gi(this.rgba)<.5},i.prototype.isLight=function(){return Gi(this.rgba)>=.5},i.prototype.toHex=function(){return e=Ri(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?Gt(A(255*s)):"","#"+Gt(t)+Gt(r)+Gt(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return Ri(this.rgba)},i.prototype.toRgbString=function(){return e=Ri(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return zn(ft(this.rgba))},i.prototype.toHslString=function(){return e=zn(ft(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=Sn(this.rgba),{h:A(e.h),s:A(e.s),v:A(e.v),a:A(e.a,3)};var e},i.prototype.invert=function(){return oe({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),oe(Fi(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),oe(Fi(this.rgba,-e))},i.prototype.grayscale=function(){return oe(Fi(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),oe(Tn(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),oe(Tn(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"?oe({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):A(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=ft(this.rgba);return typeof e=="number"?oe({h:e,s:t.s,l:t.l,a:t.a}):A(t.h)},i.prototype.isEqual=function(e){return this.toHex()===oe(e).toHex()},i}(),oe=function(i){return i instanceof qt?i:new qt(i)},jn=[],Dc=function(i){i.forEach(function(e){jn.indexOf(e)<0&&(e(qt,Vi),jn.push(e))})};function Hc(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 s={};i.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var c,h,d=r[this.toHex()];if(d)return d;if(a!=null&&a.closest){var w=this.toRgb(),y=1/0,f="black";if(!s.length)for(var U in t)s[U]=new i(t[U]).toRgb();for(var E in t){var k=(c=w,h=s[E],Math.pow(c.r-h.r,2)+Math.pow(c.g-h.g,2)+Math.pow(c.b-h.b,2));k<y&&(y=k,f=E)}return f}},e.string.push([function(a){var c=a.toLowerCase(),h=c==="transparent"?"#0000":t[c];return h?new i(h).toRgb():null},"name"])}var Bc=Object.defineProperty,Nn=Object.getOwnPropertySymbols,Rc=Object.prototype.hasOwnProperty,Vc=Object.prototype.propertyIsEnumerable,Mn=(i,e,t)=>e in i?Bc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Dn=(i,e)=>{for(var t in e||(e={}))Rc.call(e,t)&&Mn(i,t,e[t]);if(Nn)for(var t of Nn(e))Vc.call(e,t)&&Mn(i,t,e[t]);return i};let Wt=class extends C{constructor(e,t={}){super(e,Dn(Dn({},{bubbles:!0}),t))}};Wt.CHANGE="change";var Fc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,O=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fc(e,t,o),o};Dc([Hc]);const Hn="EyeDropper"in window;n.UUIColorPickerElement=class extends Q("label",m){constructor(){super(...arguments),this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=100,this._colord=oe("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"),_(this,"uui-icon"),_(this,"uui-icon-registry-essential"),_(this,"uui-input"),_(this,"uui-button"),_(this,"uui-button-group"),_(this,"uui-popover"),_(this,"uui-color-swatches"),_(this,"uui-color-swatch"),_(this,"uui-color-area"),_(this,"uui-color-slider")}getFormattedValue(e){const t=this.opacity?`${e}a`:e,{h:r,l:o,s}=this._colord.toHsl(),{r:a,g:c,b:h}=this._colord.toRgb(),d=this.setLetterCase(this._colord.toHex()),w=this.setLetterCase(d.length>7?d.substring(0,d.length-2):d);switch(t){case"hex":return w;case"hexa":return d;case"rgb":return`rgb(${a} ${c} ${h})`;case"rgba":return this._colord.toRgbString();case"hsl":return`hsl(${r} ${s} ${o})`;case"hsla":return this._colord.toHslString();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"],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.nextElementSibling;r.open=!(r!=null&&r.open),t.setAttribute("aria-expanded",r.open.toString())}closeColorPicker(e){const t=e.target.previousElementSibling;t&&t.setAttribute("aria-expanded","false")}handleEyeDropper(){Hn&&new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(e){this._colord=new qt(e);const{h:t,l:r,s:o,a:s}=this._colord.toHsl();return this.hue=t,this.saturation=o,this.lightness=r,this.alpha=this.opacity?s*100:100,this._syncValues(),this.dispatchEvent(new Wt(Wt.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="${Rt({"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}" @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)}" @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}" @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="${te({"--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="${Pc(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" compact="compact"><span>${this.format}</span></uui-button>`} ${Hn?u`<uui-button label="Select a color" compact="compact" @click="${this.handleEyeDropper}"><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" @change="${this.handleColorSwatchChange}">${this.swatches.map(e=>u`<uui-color-swatch label="${e}" .value="${e}"></uui-color-swatch>`)}</uui-color-swatches>`:$}_renderPreviewButton(){return u`<button type="button" slot="trigger" aria-label="${this.label||"Open Color picker"}" class="${Rt({"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="${te({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" @click="${this.openColorPicker}" aria-haspopup="true" aria-expanded="false"></button><uui-popover placement="bottom-start" @close="${this.closeColorPicker}"><div slot="popover">${this._renderColorPicker()}</div></uui-popover>`}render(){return this.inline?this._renderColorPicker():this._renderPreviewButton()}},n.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{cursor:pointer}.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([I('[part="input"]')],n.UUIColorPickerElement.prototype,"_input",2),O([I(".color-picker__preview")],n.UUIColorPickerElement.prototype,"_previewButton",2),O([I("#swatches")],n.UUIColorPickerElement.prototype,"_swatches",2),O([v()],n.UUIColorPickerElement.prototype,"inputValue",2),O([v()],n.UUIColorPickerElement.prototype,"hue",2),O([v()],n.UUIColorPickerElement.prototype,"saturation",2),O([v()],n.UUIColorPickerElement.prototype,"lightness",2),O([v()],n.UUIColorPickerElement.prototype,"alpha",2),O([v()],n.UUIColorPickerElement.prototype,"_colord",2),O([l()],n.UUIColorPickerElement.prototype,"value",2),O([l()],n.UUIColorPickerElement.prototype,"format",2),O([l()],n.UUIColorPickerElement.prototype,"name",2),O([l()],n.UUIColorPickerElement.prototype,"size",2),O([l({attribute:"no-format-toggle",type:Boolean})],n.UUIColorPickerElement.prototype,"noFormatToggle",2),O([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"inline",2),O([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"disabled",2),O([l({type:Boolean})],n.UUIColorPickerElement.prototype,"opacity",2),O([l({type:Boolean})],n.UUIColorPickerElement.prototype,"uppercase",2),O([l({attribute:!1})],n.UUIColorPickerElement.prototype,"swatches",2),n.UUIColorPickerElement=O([b("uui-color-picker")],n.UUIColorPickerElement);var qc=Object.defineProperty,Bn=Object.getOwnPropertySymbols,Wc=Object.prototype.hasOwnProperty,Kc=Object.prototype.propertyIsEnumerable,Rn=(i,e,t)=>e in i?qc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Vn=(i,e)=>{for(var t in e||(e={}))Wc.call(e,t)&&Rn(i,t,e[t]);if(Bn)for(var t of Bn(e))Kc.call(e,t)&&Rn(i,t,e[t]);return i};let Kt=class extends C{constructor(e,t={}){super(e,Vn(Vn({},{bubbles:!0}),t))}};Kt.CHANGE="change";var Yc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,de=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yc(e,t,o),o};n.UUIColorSliderElement=class extends Q("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(),Fr(this.container,{onMove:(o,s)=>{this.vertical?this.value=Gr(P(s/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 Kt(Kt.CHANGE))}get ccsPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/Gr(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="${te({backgroundImage:`linear-gradient(to ${this.vertical?"top":"right"},
|
|
277
|
+
*/const jd=ot(class extends rt{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(!ps(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===B||e===U)return e;const t=i.element,r=i.name;if(i.type===Z.PROPERTY){if(e===t[r])return B}else if(i.type===Z.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return B}else if(i.type===Z.ATTRIBUTE&&t.getAttribute(r)===e+"")return B;return ms(i),e}});var Nd={grad:.9,turn:360,rad:360/(2*Math.PI)},be=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},T=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},Y=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},vs=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},gs=function(i){return{r:Y(i.r,0,255),g:Y(i.g,0,255),b:Y(i.b,0,255),a:Y(i.a)}},co=function(i){return{r:T(i.r),g:T(i.g),b:T(i.b),a:T(i.a,3)}},Md=/^#([0-9a-f]{3,8})$/i,si=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},fs=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),d=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(d<0?d+6:d),s:s?a/s*100:0,v:s/255*100,a:o}},ys=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),d=r*(1-(e-s)*t),c=r*(1-(1-e+s)*t),h=s%6;return{r:255*[r,d,a,a,c,r][h],g:255*[c,r,r,d,a,a][h],b:255*[a,a,c,r,r,d][h],a:o}},_s=function(i){return{h:vs(i.h),s:Y(i.s,0,100),l:Y(i.l,0,100),a:Y(i.a)}},ws=function(i){return{h:T(i.h),s:T(i.s),l:T(i.l),a:T(i.a,3)}},$s=function(i){return ys((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=fs(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},Dd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Bd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ho={string:[[function(i){var e=Md.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?T(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?T(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=Bd.exec(i)||Rd.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:gs({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=Dd.exec(i)||Hd.exec(i);if(!e)return null;var t,r,o=_s({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(Nd[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return $s(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return be(e)&&be(t)&&be(r)?gs({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!be(e)||!be(t)||!be(r))return null;var a=_s({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return $s(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!be(e)||!be(t)||!be(r))return null;var a=function(d){return{h:vs(d.h),s:Y(d.s,0,100),v:Y(d.v,0,100),a:Y(d.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return ys(a)},"hsv"]]},Us=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]},Vd=function(i){return typeof i=="string"?Us(i.trim(),ho.string):typeof i=="object"&&i!==null?Us(i,ho.object):[null,void 0]},po=function(i,e){var t=Ot(i);return{h:t.h,s:Y(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},Es=function(i,e){var t=Ot(i);return{h:t.h,s:t.s,l:Y(t.l+100*e,0,100),a:t.a}},ai=function(){function i(e){this.parsed=Vd(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 T(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=co(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?si(T(255*s)):"","#"+si(t)+si(r)+si(o)+a;var e,t,r,o,s,a},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,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return ws(Ot(this.rgba))},i.prototype.toHslString=function(){return e=ws(Ot(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=fs(this.rgba),{h:T(e.h),s:T(e.s),v:T(e.v),a:T(e.a,3)};var e},i.prototype.invert=function(){return se({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),se(po(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),se(po(this.rgba,-e))},i.prototype.grayscale=function(){return se(po(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),se(Es(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),se(Es(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"?se({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):T(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=Ot(this.rgba);return typeof e=="number"?se({h:e,s:t.s,l:t.l,a:t.a}):T(t.h)},i.prototype.isEqual=function(e){return this.toHex()===se(e).toHex()},i}(),se=function(i){return i instanceof ai?i:new ai(i)},ks=[],Fd=function(i){i.forEach(function(e){ks.indexOf(e)<0&&(e(ai,ho),ks.push(e))})};function Gd(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 s={};i.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,c,h=r[this.toHex()];if(h)return h;if(a!=null&&a.closest){var v=this.toRgb(),f=1/0,_="black";if(!s.length)for(var $ in t)s[$]=new i(t[$]).toRgb();for(var E in t){var k=(d=v,c=s[E],Math.pow(d.r-c.r,2)+Math.pow(d.g-c.g,2)+Math.pow(d.b-c.b,2));k<f&&(f=k,_=E)}return _}},e.string.push([function(a){var d=a.toLowerCase(),c=d==="transparent"?"#0000":t[d];return c?new i(c).toRgb():null},"name"])}var qd=Object.defineProperty,Is=Object.getOwnPropertySymbols,Wd=Object.prototype.hasOwnProperty,Kd=Object.prototype.propertyIsEnumerable,xs=(i,e,t)=>e in i?qd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Cs=(i,e)=>{for(var t in e||(e={}))Wd.call(e,t)&&xs(i,t,e[t]);if(Is)for(var t of Is(e))Kd.call(e,t)&&xs(i,t,e[t]);return i};let li=class extends S{constructor(e,t={}){super(e,Cs(Cs({},{bubbles:!0}),t))}};li.CHANGE="change";var Yd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,O=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yd(e,t,o),o};Fd([Gd]);const Ss="EyeDropper"in window;n.UUIColorPickerElement=class extends te("label",m){constructor(){super(...arguments),this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=100,this._colord=se("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,{h:r,l:o,s}=this._colord.toHsl(),{r:a,g:d,b:c}=this._colord.toRgb(),h=this.setLetterCase(this._colord.toHex()),v=this.setLetterCase(h.length>7?h.substring(0,h.length-2):h);switch(t){case"hex":return v;case"hexa":return h;case"rgb":return`rgb(${a} ${d} ${c})`;case"rgba":return this._colord.toRgbString();case"hsl":return`hsl(${r} ${s} ${o})`;case"hsla":return this._colord.toHslString();default:return""}}getBrightness(e){return A(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return A((200-this.saturation)*e/100*5/10,0,100)}handleFormatToggle(){const e=["hex","rgb","hsl"],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.nextElementSibling;r.open=!(r!=null&&r.open),t.setAttribute("aria-expanded",r.open.toString())}closeColorPicker(e){const t=e.target.previousElementSibling;t&&t.setAttribute("aria-expanded","false")}handleEyeDropper(){Ss&&new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(e){this._colord=new ai(e);const{h:t,l:r,s:o,a:s}=this._colord.toHsl();return this.hue=t,this.saturation=o,this.lightness=r,this.alpha=this.opacity?s*100:100,this._syncValues(),this.dispatchEvent(new li(li.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="${oi({"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}" @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)}" @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}" @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="${re({"--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="${jd(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" compact="compact"><span>${this.format}</span></uui-button>`} ${Ss?u`<uui-button label="Select a color" compact="compact" @click="${this.handleEyeDropper}"><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" @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`<button type="button" slot="trigger" aria-label="${this.label||"Open Color picker"}" class="${oi({"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="${re({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" @click="${this.openColorPicker}" aria-haspopup="true" aria-expanded="false"></button><uui-popover placement="bottom-start" @close="${this.closeColorPicker}"><div slot="popover">${this._renderColorPicker()}</div></uui-popover>`}render(){return this.inline?this._renderColorPicker():this._renderPreviewButton()}},n.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{cursor:pointer}.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([x('[part="input"]')],n.UUIColorPickerElement.prototype,"_input",2),O([x(".color-picker__preview")],n.UUIColorPickerElement.prototype,"_previewButton",2),O([x("#swatches")],n.UUIColorPickerElement.prototype,"_swatches",2),O([g()],n.UUIColorPickerElement.prototype,"inputValue",2),O([g()],n.UUIColorPickerElement.prototype,"hue",2),O([g()],n.UUIColorPickerElement.prototype,"saturation",2),O([g()],n.UUIColorPickerElement.prototype,"lightness",2),O([g()],n.UUIColorPickerElement.prototype,"alpha",2),O([g()],n.UUIColorPickerElement.prototype,"_colord",2),O([l()],n.UUIColorPickerElement.prototype,"value",2),O([l()],n.UUIColorPickerElement.prototype,"format",2),O([l()],n.UUIColorPickerElement.prototype,"name",2),O([l()],n.UUIColorPickerElement.prototype,"size",2),O([l({attribute:"no-format-toggle",type:Boolean})],n.UUIColorPickerElement.prototype,"noFormatToggle",2),O([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"inline",2),O([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"disabled",2),O([l({type:Boolean})],n.UUIColorPickerElement.prototype,"opacity",2),O([l({type:Boolean})],n.UUIColorPickerElement.prototype,"uppercase",2),O([l({attribute:!1})],n.UUIColorPickerElement.prototype,"swatches",2),n.UUIColorPickerElement=O([b("uui-color-picker")],n.UUIColorPickerElement);var Zd=Object.defineProperty,Ps=Object.getOwnPropertySymbols,Qd=Object.prototype.hasOwnProperty,Jd=Object.prototype.propertyIsEnumerable,Os=(i,e,t)=>e in i?Zd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,zs=(i,e)=>{for(var t in e||(e={}))Qd.call(e,t)&&Os(i,t,e[t]);if(Ps)for(var t of Ps(e))Jd.call(e,t)&&Os(i,t,e[t]);return i};let ui=class extends S{constructor(e,t={}){super(e,zs(zs({},{bubbles:!0}),t))}};ui.CHANGE="change";var eh=Object.defineProperty,th=Object.getOwnPropertyDescriptor,me=(i,e,t,r)=>{for(var o=r>1?void 0:r?th(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&eh(e,t,o),o};n.UUIColorSliderElement=class extends te("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(),Ln(this.container,{onMove:(o,s)=>{this.vertical?this.value=Tn(A(s/r*this.max,this.min,this.max),this.min,this.max):this.value=A(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=A(this.value-t,this.min,this.max),this.syncValues()):e.key==="ArrowRight"?(e.preventDefault(),this.value=A(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowUp"?(e.preventDefault(),this.value=A(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowDown"?(e.preventDefault(),this.value=A(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 A(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}getValueFromYCoordinate(e){const{top:t,height:r}=this.container.getBoundingClientRect();return A(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 ui(ui.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="${re({backgroundImage:`linear-gradient(to ${this.vertical?"top":"right"},
|
|
278
278
|
transparent 0%,
|
|
279
279
|
${this.color} 100%
|
|
280
|
-
)`})}"></div>`:""} <span id="color-slider__handle" style="--current-value:${this.ccsPropCurrentValue}" tabindex="${
|
|
280
|
+
)`})}"></div>`:""} <span id="color-slider__handle" style="--current-value:${this.ccsPropCurrentValue}" tabindex="${C(this.disabled?void 0:"0")}"></span></div>${Math.round(this.value)}`}},n.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
281
|
to right,
|
|
282
282
|
rgb(255, 0, 0) 0%,
|
|
283
283
|
rgb(255, 255, 0) 17%,
|
|
@@ -299,23 +299,23 @@
|
|
|
299
299
|
45deg,
|
|
300
300
|
var(--uui-palette-grey,#c4c4c4) 25%,
|
|
301
301
|
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}`],de([l({reflect:!0})],n.UUIColorSliderElement.prototype,"type",2),de([l()],n.UUIColorSliderElement.prototype,"color",2),de([l({type:Number})],n.UUIColorSliderElement.prototype,"min",2),de([l({type:Number})],n.UUIColorSliderElement.prototype,"max",2),de([l({type:Number})],n.UUIColorSliderElement.prototype,"precision",2),de([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"vertical",2),de([l()],n.UUIColorSliderElement.prototype,"value",2),de([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"disabled",2),n.UUIColorSliderElement=de([b("uui-color-slider")],n.UUIColorSliderElement);var Zc={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},W=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},Fn=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Gn=function(i){return{r:W(i.r,0,255),g:W(i.g,0,255),b:W(i.b,0,255),a:W(i.a)}},qi=function(i){return{r:L(i.r),g:L(i.g),b:L(i.b),a:L(i.a,3)}},Qc=/^#([0-9a-f]{3,8})$/i,Yt=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},qn=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),c=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(c<0?c+6:c),s:s?a/s*100:0,v:s/255*100,a:o}},Wn=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),c=r*(1-(e-s)*t),h=r*(1-(1-e+s)*t),d=s%6;return{r:255*[r,c,a,a,h,r][d],g:255*[h,r,r,c,a,a][d],b:255*[a,a,h,r,r,c][d],a:o}},Kn=function(i){return{h:Fn(i.h),s:W(i.s,0,100),l:W(i.l,0,100),a:W(i.a)}},Yn=function(i){return{h:L(i.h),s:L(i.s),l:L(i.l),a:L(i.a,3)}},Xn=function(i){return Wn((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},yt=function(i){return{h:(e=qn(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},Jc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ed=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,td=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,id=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Zn={string:[[function(i){var e=Qc.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=td.exec(i)||id.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Gn({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=Jc.exec(i)||ed.exec(i);if(!e)return null;var t,r,o=Kn({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(Zc[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Xn(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return he(e)&&he(t)&&he(r)?Gn({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!he(e)||!he(t)||!he(r))return null;var a=Kn({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return Xn(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!he(e)||!he(t)||!he(r))return null;var a=function(c){return{h:Fn(c.h),s:W(c.s,0,100),v:W(c.v,0,100),a:W(c.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return Wn(a)},"hsv"]]},Qn=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]},od=function(i){return typeof i=="string"?Qn(i.trim(),Zn.string):typeof i=="object"&&i!==null?Qn(i,Zn.object):[null,void 0]},Wi=function(i,e){var t=yt(i);return{h:t.h,s:W(t.s+100*e,0,100),l:t.l,a:t.a}},Ki=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},Jn=function(i,e){var t=yt(i);return{h:t.h,s:t.s,l:W(t.l+100*e,0,100),a:t.a}},Yi=function(){function i(e){this.parsed=od(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(Ki(this.rgba),2)},i.prototype.isDark=function(){return Ki(this.rgba)<.5},i.prototype.isLight=function(){return Ki(this.rgba)>=.5},i.prototype.toHex=function(){return e=qi(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?Yt(L(255*s)):"","#"+Yt(t)+Yt(r)+Yt(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return qi(this.rgba)},i.prototype.toRgbString=function(){return e=qi(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return Yn(yt(this.rgba))},i.prototype.toHslString=function(){return e=Yn(yt(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=qn(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 pe({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),pe(Wi(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),pe(Wi(this.rgba,-e))},i.prototype.grayscale=function(){return pe(Wi(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),pe(Jn(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),pe(Jn(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"?pe({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=yt(this.rgba);return typeof e=="number"?pe({h:e,s:t.s,l:t.l,a:t.a}):L(t.h)},i.prototype.isEqual=function(e){return this.toHex()===pe(e).toHex()},i}(),pe=function(i){return i instanceof Yi?i:new Yi(i)},rd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,Xt=(i,e,t,r)=>{for(var o=r>1?void 0:r?nd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rd(e,t,o),o};n.UUIColorSwatchElement=class extends Q("label",Ve(bt(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 Yi((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="${Rt({"color-swatch":!0,"color-swatch--transparent-bg":!0,"color-swatch--light":this.isLight,"color-swatch--big":this.showLabel})}"><div class="color-swatch__color" style="${te({backgroundColor:this.value})}"></div><div class="color-swatch__check">${Ht}</div></div>${this._renderWithLabel()}</button>`}_renderWithLabel(){return this.showLabel?u`<div class="color-swatch__label"><strong>${this.renderLabel()}</strong> ${this.value}</div>`:$}},n.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}#swatch{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}`],Xt([l()],n.UUIColorSwatchElement.prototype,"value",1),Xt([l({type:Boolean,reflect:!0})],n.UUIColorSwatchElement.prototype,"disabled",2),Xt([l({type:Boolean,attribute:"show-label"})],n.UUIColorSwatchElement.prototype,"showLabel",2),n.UUIColorSwatchElement=Xt([b("uui-color-swatch")],n.UUIColorSwatchElement);var sd=Object.defineProperty,es=Object.getOwnPropertySymbols,ad=Object.prototype.hasOwnProperty,ld=Object.prototype.propertyIsEnumerable,ts=(i,e,t)=>e in i?sd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,is=(i,e)=>{for(var t in e||(e={}))ad.call(e,t)&&ts(i,t,e[t]);if(es)for(var t of es(e))ld.call(e,t)&&ts(i,t,e[t]);return i};let Xe=class extends C{constructor(e,t={}){super(e,is(is({},{bubbles:!0}),t))}};Xe.CHANGE="change";var ud=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,Xi=(i,e,t,r)=>{for(var o=r>1?void 0:r?cd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ud(e,t,o),o};n.UUIColorSwatchesElement=class extends Q("label",m){constructor(){super(),this.value="",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 Xe(Xe.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 Xe(Xe.CHANGE))))},this.addEventListener(_e.SELECTED,this._onSelected),this.addEventListener(_e.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("selectable","selectable"),e.setAttribute("aria-checked","false"),e.setAttribute("role","radio"),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=!0}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIColorSwatchesElement.styles=[p`:host{display:flex;flex-wrap:wrap;gap:.4rem}`],Xi([l()],n.UUIColorSwatchesElement.prototype,"value",2),Xi([ye({selector:"uui-color-swatch"})],n.UUIColorSwatchesElement.prototype,"swatches",2),n.UUIColorSwatchesElement=Xi([b("uui-color-swatches")],n.UUIColorSwatchesElement);var dd=Object.defineProperty,os=Object.getOwnPropertySymbols,hd=Object.prototype.hasOwnProperty,pd=Object.prototype.propertyIsEnumerable,rs=(i,e,t)=>e in i?dd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ns=(i,e)=>{for(var t in e||(e={}))hd.call(e,t)&&rs(i,t,e[t]);if(os)for(var t of os(e))pd.call(e,t)&&rs(i,t,e[t]);return i};let Y=class extends C{constructor(e,t={}){super(e,ns(ns({},{bubbles:!0}),t))}};Y.CHANGE="change",Y.INNER_SLOT_CHANGE="inner-slot-change";var bd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Pe=(i,e,t,r)=>{for(var o=r>1?void 0:r?md(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&bd(e,t,o),o};n.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 Y(Y.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 Y(Y.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 Y(Y.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(_e.SELECTED,this._onSelected),this.addEventListener(_e.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(_e.SELECTED,this._onSelected),this.removeEventListener(_e.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>`}},n.UUIComboboxListElement.styles=[p`:host{display:flex;flex-direction:column;box-sizing:border-box}`],Pe([l()],n.UUIComboboxListElement.prototype,"value",1),Pe([l({type:String})],n.UUIComboboxListElement.prototype,"displayValue",2),Pe([l({attribute:!1})],n.UUIComboboxListElement.prototype,"for",1),Pe([ye({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],n.UUIComboboxListElement.prototype,"_options",2),Pe([ye({flatten:!0,selector:"uui-combobox-list-option[active]"})],n.UUIComboboxListElement.prototype,"_activeOptions",2),Pe([v()],n.UUIComboboxListElement.prototype,"_value",2),n.UUIComboboxListElement=Pe([b("uui-combobox-list")],n.UUIComboboxListElement);var vd=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,Ze=(i,e,t,r)=>{for(var o=r>1?void 0:r?gd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vd(e,t,o),o};n.UUIComboboxListOptionElement=class extends Ve(bt(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>`}},n.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)}`],Ze([v()],n.UUIComboboxListOptionElement.prototype,"_disabled",2),Ze([v()],n.UUIComboboxListOptionElement.prototype,"_displayValue",2),Ze([l({type:String})],n.UUIComboboxListOptionElement.prototype,"value",1),Ze([l({type:String,attribute:"display-value"})],n.UUIComboboxListOptionElement.prototype,"displayValue",1),Ze([l({type:Boolean,reflect:!0})],n.UUIComboboxListOptionElement.prototype,"disabled",1),n.UUIComboboxListOptionElement=Ze([b("uui-combobox-list-option")],n.UUIComboboxListOptionElement);var fd=Object.defineProperty,ss=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,_d=Object.prototype.propertyIsEnumerable,as=(i,e,t)=>e in i?fd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ls=(i,e)=>{for(var t in e||(e={}))yd.call(e,t)&&as(i,t,e[t]);if(ss)for(var t of ss(e))_d.call(e,t)&&as(i,t,e[t]);return i};let B=class extends C{constructor(e,t={}){super(e,ls(ls({},{bubbles:!0}),t))}};B.SEARCH="search",B.CHANGE="change";var wd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,X=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ud(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wd(e,t,o),o};n.UUIComboboxElement=class extends J(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="${qr.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),_(this,"uui-icon"),_(this,"uui-input"),_(this,"uui-button"),_(this,"uui-combobox-list"),_(this,"uui-scroll-container"),_(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(Y.CHANGE,this._onChange),this._comboboxList.addEventListener(Y.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>`}},n.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}`],X([l({attribute:"value",reflect:!0})],n.UUIComboboxElement.prototype,"value",1),X([l({type:String})],n.UUIComboboxElement.prototype,"search",1),X([l({type:Boolean})],n.UUIComboboxElement.prototype,"open",2),X([l({type:String})],n.UUIComboboxElement.prototype,"closeLabel",2),X([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"disabled",2),X([I("#combobox-input")],n.UUIComboboxElement.prototype,"_input",2),X([ye({flatten:!0,selector:"uui-combobox-list"})],n.UUIComboboxElement.prototype,"_comboboxListElements",2),X([v()],n.UUIComboboxElement.prototype,"_displayValue",2),X([v()],n.UUIComboboxElement.prototype,"_search",2),X([v()],n.UUIComboboxElement.prototype,"_isPhone",2),n.UUIComboboxElement=X([b("uui-combobox")],n.UUIComboboxElement);var $d=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Zi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ed(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$d(e,t,o),o};n.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()}`}},n.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)}`],Zi([l({type:String})],n.UUIDialogLayoutElement.prototype,"headline",2),Zi([v()],n.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIDialogLayoutElement=Zi([b("uui-dialog-layout")],n.UUIDialogLayoutElement);var kd=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,xd=(i,e,t,r)=>{for(var o=r>1?void 0:r?Id(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&kd(e,t,o),o};n.UUIDialogElement=class extends m{render(){return u`<slot></slot>`}},n.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))}`],n.UUIDialogElement=xd([b("uui-dialog")],n.UUIDialogElement);var Cd=Object.defineProperty,us=Object.getOwnPropertySymbols,Sd=Object.prototype.hasOwnProperty,Od=Object.prototype.propertyIsEnumerable,cs=(i,e,t)=>e in i?Cd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ds=(i,e)=>{for(var t in e||(e={}))Sd.call(e,t)&&cs(i,t,e[t]);if(us)for(var t of us(e))Od.call(e,t)&&cs(i,t,e[t]);return i};let Qe=class extends C{constructor(e,t={}){super(e,ds(ds({},{bubbles:!0}),t))}};Qe.CHANGE="change";var Pd=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,_t=(i,e,t,r)=>{for(var o=r>1?void 0:r?zd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Pd(e,t,o),o};n.UUIFileDropzoneElement=class extends Q("",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(),_(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 s=o.getAsFile();if(!s)continue;this._isAccepted(s)&&t.push(s)}else if(o.kind==="directory"){if(!("webkitGetAsEntry"in o))continue;const s=o.webkitGetAsEntry();r.push(...await this._readAllDirectoryEntries(s.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 Qe(Qe.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 Qe(Qe.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>`}},n.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}`],_t([I("#input")],n.UUIFileDropzoneElement.prototype,"_input",2),_t([I("#dropzone")],n.UUIFileDropzoneElement.prototype,"_dropzone",2),_t([l({type:String})],n.UUIFileDropzoneElement.prototype,"accept",1),_t([l({type:Boolean})],n.UUIFileDropzoneElement.prototype,"multiple",2),n.UUIFileDropzoneElement=_t([b("uui-file-dropzone")],n.UUIFileDropzoneElement);let Ad=class{static humanFileSize(e,t=!1,r=1){const o=t?1e3:1024;if(Math.abs(e)<o)return e+" B";const s=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const c=10**r;do e/=o,++a;while(Math.round(Math.abs(e)*c)/c>=o&&a<s.length-1);return e.toFixed(r)+" "+s[a]}};var Ld=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,re=(i,e,t,r)=>{for(var o=r>1?void 0:r?Td(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ld(e,t,o),o};n.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(),_(this,"uui-symbol-file-thumbnail"),_(this,"uui-symbol-folder"),_(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`${Ad.humanFileSize(this._size,!0)}`:""}</span></div>`}},n.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}`],re([v()],n.UUIFilePreviewElement.prototype,"_name",2),re([v()],n.UUIFilePreviewElement.prototype,"_url",2),re([v()],n.UUIFilePreviewElement.prototype,"_extension",2),re([v()],n.UUIFilePreviewElement.prototype,"_src",2),re([v()],n.UUIFilePreviewElement.prototype,"_size",2),re([v()],n.UUIFilePreviewElement.prototype,"_isDirectory",2),re([v()],n.UUIFilePreviewElement.prototype,"_file",2),re([v()],n.UUIFilePreviewElement.prototype,"_isImage",2),re([l({attribute:!1})],n.UUIFilePreviewElement.prototype,"file",1),n.UUIFilePreviewElement=re([b("uui-file-preview")],n.UUIFilePreviewElement);var jd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Zt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jd(e,t,o),o};n.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(),_(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>`}},n.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}`],Zt([l({type:String})],n.UUIFormLayoutItemElement.prototype,"description",2),Zt([v()],n.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),Zt([v()],n.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),n.UUIFormLayoutItemElement=Zt([b("uui-form-layout-item")],n.UUIFormLayoutItemElement);/**
|
|
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}`],me([l({reflect:!0})],n.UUIColorSliderElement.prototype,"type",2),me([l()],n.UUIColorSliderElement.prototype,"color",2),me([l({type:Number})],n.UUIColorSliderElement.prototype,"min",2),me([l({type:Number})],n.UUIColorSliderElement.prototype,"max",2),me([l({type:Number})],n.UUIColorSliderElement.prototype,"precision",2),me([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"vertical",2),me([l()],n.UUIColorSliderElement.prototype,"value",2),me([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"disabled",2),n.UUIColorSliderElement=me([b("uui-color-slider")],n.UUIColorSliderElement);var ih={grad:.9,turn:360,rad:360/(2*Math.PI)},ve=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},X=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},As=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Ls=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)}},mo=function(i){return{r:j(i.r),g:j(i.g),b:j(i.b),a:j(i.a,3)}},oh=/^#([0-9a-f]{3,8})$/i,ci=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},Ts=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),d=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(d<0?d+6:d),s:s?a/s*100:0,v:s/255*100,a:o}},js=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),d=r*(1-(e-s)*t),c=r*(1-(1-e+s)*t),h=s%6;return{r:255*[r,d,a,a,c,r][h],g:255*[c,r,r,d,a,a][h],b:255*[a,a,c,r,r,d][h],a:o}},Ns=function(i){return{h:As(i.h),s:X(i.s,0,100),l:X(i.l,0,100),a:X(i.a)}},Ms=function(i){return{h:j(i.h),s:j(i.s),l:j(i.l),a:j(i.a,3)}},Ds=function(i){return js((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=Ts(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,nh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ah=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hs={string:[[function(i){var e=oh.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=sh.exec(i)||ah.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ls({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)||nh.exec(i);if(!e)return null;var t,r,o=Ns({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(ih[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Ds(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return ve(e)&&ve(t)&&ve(r)?Ls({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!ve(e)||!ve(t)||!ve(r))return null;var a=Ns({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return Ds(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!ve(e)||!ve(t)||!ve(r))return null;var a=function(d){return{h:As(d.h),s:X(d.s,0,100),v:X(d.v,0,100),a:X(d.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return js(a)},"hsv"]]},Bs=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]},lh=function(i){return typeof i=="string"?Bs(i.trim(),Hs.string):typeof i=="object"&&i!==null?Bs(i,Hs.object):[null,void 0]},vo=function(i,e){var t=zt(i);return{h:t.h,s:X(t.s+100*e,0,100),l:t.l,a:t.a}},go=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},Rs=function(i,e){var t=zt(i);return{h:t.h,s:t.s,l:X(t.l+100*e,0,100),a:t.a}},fo=function(){function i(e){this.parsed=lh(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(go(this.rgba),2)},i.prototype.isDark=function(){return go(this.rgba)<.5},i.prototype.isLight=function(){return go(this.rgba)>=.5},i.prototype.toHex=function(){return e=mo(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?ci(j(255*s)):"","#"+ci(t)+ci(r)+ci(o)+a;var e,t,r,o,s,a},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,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return Ms(zt(this.rgba))},i.prototype.toHslString=function(){return e=Ms(zt(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=Ts(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 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(vo(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),ge(vo(this.rgba,-e))},i.prototype.grayscale=function(){return ge(vo(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),ge(Rs(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),ge(Rs(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}):j(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=zt(this.rgba);return typeof e=="number"?ge({h:e,s:t.s,l:t.l,a:t.a}):j(t.h)},i.prototype.isEqual=function(e){return this.toHex()===ge(e).toHex()},i}(),ge=function(i){return i instanceof fo?i:new fo(i)},uh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,di=(i,e,t,r)=>{for(var o=r>1?void 0:r?ch(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&uh(e,t,o),o};n.UUIColorSwatchElement=class extends te("label",Je(xt(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 fo((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="${oi({"color-swatch":!0,"color-swatch--transparent-bg":!0,"color-swatch--light":this.isLight,"color-swatch--big":this.showLabel})}"><div class="color-swatch__color" style="${re({backgroundColor:this.value})}"></div><div class="color-swatch__check">${ti}</div></div>${this._renderWithLabel()}</button>`}_renderWithLabel(){return this.showLabel?u`<div class="color-swatch__label"><strong>${this.renderLabel()}</strong> ${this.value}</div>`:U}},n.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}#swatch{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}`],di([l()],n.UUIColorSwatchElement.prototype,"value",1),di([l({type:Boolean,reflect:!0})],n.UUIColorSwatchElement.prototype,"disabled",2),di([l({type:Boolean,attribute:"show-label"})],n.UUIColorSwatchElement.prototype,"showLabel",2),n.UUIColorSwatchElement=di([b("uui-color-swatch")],n.UUIColorSwatchElement);var dh=Object.defineProperty,Vs=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,ph=Object.prototype.propertyIsEnumerable,Fs=(i,e,t)=>e in i?dh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Gs=(i,e)=>{for(var t in e||(e={}))hh.call(e,t)&&Fs(i,t,e[t]);if(Vs)for(var t of Vs(e))ph.call(e,t)&&Fs(i,t,e[t]);return i};let st=class extends S{constructor(e,t={}){super(e,Gs(Gs({},{bubbles:!0}),t))}};st.CHANGE="change";var bh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,yo=(i,e,t,r)=>{for(var o=r>1?void 0:r?mh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&bh(e,t,o),o};n.UUIColorSwatchesElement=class extends te("label",m){constructor(){super(),this.value="",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 st(st.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 st(st.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("selectable","selectable"),e.setAttribute("aria-checked","false"),e.setAttribute("role","radio"),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=!0}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIColorSwatchesElement.styles=[p`:host{display:flex;flex-wrap:wrap;gap:.4rem}`],yo([l()],n.UUIColorSwatchesElement.prototype,"value",2),yo([xe({selector:"uui-color-swatch"})],n.UUIColorSwatchesElement.prototype,"swatches",2),n.UUIColorSwatchesElement=yo([b("uui-color-swatches")],n.UUIColorSwatchesElement);var vh=Object.defineProperty,qs=Object.getOwnPropertySymbols,gh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,Ws=(i,e,t)=>e in i?vh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ks=(i,e)=>{for(var t in e||(e={}))gh.call(e,t)&&Ws(i,t,e[t]);if(qs)for(var t of qs(e))fh.call(e,t)&&Ws(i,t,e[t]);return i};let Q=class extends S{constructor(e,t={}){super(e,Ks(Ks({},{bubbles:!0}),t))}};Q.CHANGE="change",Q.INNER_SLOT_CHANGE="inner-slot-change";var yh=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,He=(i,e,t,r)=>{for(var o=r>1?void 0:r?_h(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&yh(e,t,o),o};n.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>`}},n.UUIComboboxListElement.styles=[p`:host{display:flex;flex-direction:column;box-sizing:border-box}`],He([l()],n.UUIComboboxListElement.prototype,"value",1),He([l({type:String})],n.UUIComboboxListElement.prototype,"displayValue",2),He([l({attribute:!1})],n.UUIComboboxListElement.prototype,"for",1),He([xe({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],n.UUIComboboxListElement.prototype,"_options",2),He([xe({flatten:!0,selector:"uui-combobox-list-option[active]"})],n.UUIComboboxListElement.prototype,"_activeOptions",2),He([g()],n.UUIComboboxListElement.prototype,"_value",2),n.UUIComboboxListElement=He([b("uui-combobox-list")],n.UUIComboboxListElement);var wh=Object.defineProperty,$h=Object.getOwnPropertyDescriptor,at=(i,e,t,r)=>{for(var o=r>1?void 0:r?$h(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wh(e,t,o),o};n.UUIComboboxListOptionElement=class extends Je(xt(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>`}},n.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)}`],at([g()],n.UUIComboboxListOptionElement.prototype,"_disabled",2),at([g()],n.UUIComboboxListOptionElement.prototype,"_displayValue",2),at([l({type:String})],n.UUIComboboxListOptionElement.prototype,"value",1),at([l({type:String,attribute:"display-value"})],n.UUIComboboxListOptionElement.prototype,"displayValue",1),at([l({type:Boolean,reflect:!0})],n.UUIComboboxListOptionElement.prototype,"disabled",1),n.UUIComboboxListOptionElement=at([b("uui-combobox-list-option")],n.UUIComboboxListOptionElement);var Uh=Object.defineProperty,Ys=Object.getOwnPropertySymbols,Eh=Object.prototype.hasOwnProperty,kh=Object.prototype.propertyIsEnumerable,Xs=(i,e,t)=>e in i?Uh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Zs=(i,e)=>{for(var t in e||(e={}))Eh.call(e,t)&&Xs(i,t,e[t]);if(Ys)for(var t of Ys(e))kh.call(e,t)&&Xs(i,t,e[t]);return i};let V=class extends S{constructor(e,t={}){super(e,Zs(Zs({},{bubbles:!0}),t))}};V.SEARCH="search",V.CHANGE="change";var Ih=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,J=(i,e,t,r)=>{for(var o=r>1?void 0:r?xh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ih(e,t,o),o};n.UUIComboboxElement=class extends ie(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 V(V.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 V(V.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 V(V.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 V(V.SEARCH)),this.dispatchEvent(new V(V.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="${jn.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>`}},n.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})],n.UUIComboboxElement.prototype,"value",1),J([l({type:String})],n.UUIComboboxElement.prototype,"search",1),J([l({type:Boolean})],n.UUIComboboxElement.prototype,"open",2),J([l({type:String})],n.UUIComboboxElement.prototype,"closeLabel",2),J([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"disabled",2),J([x("#combobox-input")],n.UUIComboboxElement.prototype,"_input",2),J([xe({flatten:!0,selector:"uui-combobox-list"})],n.UUIComboboxElement.prototype,"_comboboxListElements",2),J([g()],n.UUIComboboxElement.prototype,"_displayValue",2),J([g()],n.UUIComboboxElement.prototype,"_search",2),J([g()],n.UUIComboboxElement.prototype,"_isPhone",2),n.UUIComboboxElement=J([b("uui-combobox")],n.UUIComboboxElement);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,_o=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ch(e,t,o),o};n.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()}`}},n.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)}`],_o([l({type:String})],n.UUIDialogLayoutElement.prototype,"headline",2),_o([g()],n.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIDialogLayoutElement=_o([b("uui-dialog-layout")],n.UUIDialogLayoutElement);var Ph=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,zh=(i,e,t,r)=>{for(var o=r>1?void 0:r?Oh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ph(e,t,o),o};n.UUIDialogElement=class extends m{render(){return u`<slot></slot>`}},n.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))}`],n.UUIDialogElement=zh([b("uui-dialog")],n.UUIDialogElement);var Ah=Object.defineProperty,Qs=Object.getOwnPropertySymbols,Lh=Object.prototype.hasOwnProperty,Th=Object.prototype.propertyIsEnumerable,Js=(i,e,t)=>e in i?Ah(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ea=(i,e)=>{for(var t in e||(e={}))Lh.call(e,t)&&Js(i,t,e[t]);if(Qs)for(var t of Qs(e))Th.call(e,t)&&Js(i,t,e[t]);return i};let lt=class extends S{constructor(e,t={}){super(e,ea(ea({},{bubbles:!0}),t))}};lt.CHANGE="change";var jh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,At=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jh(e,t,o),o};n.UUIFileDropzoneElement=class extends te("",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 s=o.getAsFile();if(!s)continue;this._isAccepted(s)&&t.push(s)}else if(o.kind==="directory"){if(!("webkitGetAsEntry"in o))continue;const s=o.webkitGetAsEntry();r.push(...await this._readAllDirectoryEntries(s.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 lt(lt.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 lt(lt.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>`}},n.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}`],At([x("#input")],n.UUIFileDropzoneElement.prototype,"_input",2),At([x("#dropzone")],n.UUIFileDropzoneElement.prototype,"_dropzone",2),At([l({type:String})],n.UUIFileDropzoneElement.prototype,"accept",1),At([l({type:Boolean})],n.UUIFileDropzoneElement.prototype,"multiple",2),n.UUIFileDropzoneElement=At([b("uui-file-dropzone")],n.UUIFileDropzoneElement);let Mh=class{static humanFileSize(e,t=!1,r=1){const o=t?1e3:1024;if(Math.abs(e)<o)return e+" B";const s=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const d=10**r;do e/=o,++a;while(Math.round(Math.abs(e)*d)/d>=o&&a<s.length-1);return e.toFixed(r)+" "+s[a]}};var Dh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,ae=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dh(e,t,o),o};n.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`${Mh.humanFileSize(this._size,!0)}`:""}</span></div>`}},n.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()],n.UUIFilePreviewElement.prototype,"_name",2),ae([g()],n.UUIFilePreviewElement.prototype,"_url",2),ae([g()],n.UUIFilePreviewElement.prototype,"_extension",2),ae([g()],n.UUIFilePreviewElement.prototype,"_src",2),ae([g()],n.UUIFilePreviewElement.prototype,"_size",2),ae([g()],n.UUIFilePreviewElement.prototype,"_isDirectory",2),ae([g()],n.UUIFilePreviewElement.prototype,"_file",2),ae([g()],n.UUIFilePreviewElement.prototype,"_isImage",2),ae([l({attribute:!1})],n.UUIFilePreviewElement.prototype,"file",1),n.UUIFilePreviewElement=ae([b("uui-file-preview")],n.UUIFilePreviewElement);var Bh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,hi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Bh(e,t,o),o};n.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>`}},n.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}`],hi([l({type:String})],n.UUIFormLayoutItemElement.prototype,"description",2),hi([g()],n.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),hi([g()],n.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),n.UUIFormLayoutItemElement=hi([b("uui-form-layout-item")],n.UUIFormLayoutItemElement);/**
|
|
303
303
|
* @license
|
|
304
304
|
* Copyright 2017 Google LLC
|
|
305
305
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
306
|
-
*/const
|
|
306
|
+
*/const ta=(i,e,t)=>{const r=new Map;for(let o=e;o<=t;o++)r.set(i[o],o);return r},wo=ot(class extends rt{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=[],s=[];let a=0;for(const d of i)o[a]=r?r(d,a):a,s[a]=t(d,a),a++;return{values:s,keys:o}}render(i,e,t){return this.ct(i,e,t).values}update(i,[e,t,r]){var o;const s=Td(i),{values:a,keys:d}=this.ct(e,t,r);if(!Array.isArray(s))return this.ut=d,a;const c=(o=this.ut)!==null&&o!==void 0?o:this.ut=[],h=[];let v,f,_=0,$=s.length-1,E=0,k=a.length-1;for(;_<=$&&E<=k;)if(s[_]===null)_++;else if(s[$]===null)$--;else if(c[_]===d[E])h[E]=De(s[_],a[E]),_++,E++;else if(c[$]===d[k])h[k]=De(s[$],a[k]),$--,k--;else if(c[_]===d[k])h[k]=De(s[_],a[k]),Pt(i,h[k+1],s[_]),_++,k--;else if(c[$]===d[E])h[E]=De(s[$],a[E]),Pt(i,s[_],s[$]),$--,E++;else if(v===void 0&&(v=ta(d,E,k),f=ta(c,_,$)),v.has(c[_]))if(v.has(c[$])){const z=f.get(d[E]),Ue=z!==void 0?s[z]:null;if(Ue===null){const Ee=Pt(i,s[_]);De(Ee,a[E]),h[E]=Ee}else h[E]=De(Ue,a[E]),Pt(i,s[_],Ue),s[z]=null;E++}else uo(s[$]),$--;else uo(s[_]),_++;for(;E<=k;){const z=Pt(i,h[k+1]);De(z,a[E]),h[E++]=z}for(;_<=$;){const z=s[_++];z!==null&&uo(z)}return this.ut=d,ms(i,h),B}});var Vh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,ia=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vh(e,t,o),o};n.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 s=this.getRootNode();t=s?.getElementById(e)}const r=t||this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(tt.INVALID,this._onControlInvalid),o.removeEventListener(tt.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(tt.INVALID,this._onControlInvalid),this._for.addEventListener(tt.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${wo(this._messages,e=>u`<div>${e[1]}</div>`)}<slot name="message"></slot></div>`}},n.UUIFormValidationMessageElement.styles=[p`#messages{color:var(--uui-color-danger-standalone,#bf214e)}`],ia([l({reflect:!1,attribute:!0})],n.UUIFormValidationMessageElement.prototype,"for",1),n.UUIFormValidationMessageElement=ia([b("uui-form-validation-message")],n.UUIFormValidationMessageElement);var Gh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,Wh=(i,e,t,r)=>{for(var o=r>1?void 0:r?qh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gh(e,t,o),o};n.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>`}},n.UUIFormElement=Wh([b("uui-form")],n.UUIFormElement);/**
|
|
307
307
|
* @license
|
|
308
308
|
* Copyright 2017 Google LLC
|
|
309
309
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
310
|
-
*/class Qi extends Ke{constructor(e){if(super(e),this.et=$,e.type!==K.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===$||e==null)return this.ft=void 0,this.et=e;if(e===H)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:[]}}}Qi.directiveName="unsafeHTML",Qi.resultType=1;const Ji=We(Qi);var Vd=Object.defineProperty,ms=Object.getOwnPropertySymbols,Fd=Object.prototype.hasOwnProperty,Gd=Object.prototype.propertyIsEnumerable,vs=(i,e,t)=>e in i?Vd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,gs=(i,e)=>{for(var t in e||(e={}))Fd.call(e,t)&&vs(i,t,e[t]);if(ms)for(var t of ms(e))Gd.call(e,t)&&vs(i,t,e[t]);return i};let Je=class extends C{constructor(e,t={}){super(e,gs(gs({},{bubbles:!0,composed:!0}),t)),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};Je.ICON_REQUEST="icon-request";var qd=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,et=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qd(e,t,o),o};n.UUIIconElement=class extends m{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,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 Je(Je.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()}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:Ji(this.fallback):this._nameSvg!==null?Ji(this._nameSvg):this.svg!==null?Ji(this.svg):u`<slot></slot>`}},n.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)}`],et([v()],n.UUIIconElement.prototype,"_nameSvg",2),et([l()],n.UUIIconElement.prototype,"name",1),et([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),et([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),et([v()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=et([b("uui-icon")],n.UUIIconElement);let eo=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)}},to=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(Je.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Je.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new eo(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new eo}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var Kd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,fs=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Kd(e,t,o),o};n.UUIIconRegistryElement=class extends m{constructor(){super(),this._icons={},this._registry=new to,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>`}},fs([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=fs([b("uui-icon-registry")],n.UUIIconRegistryElement);const Xd=g`<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>`,Zd=g`<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>`,Qd=g`<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>`,Jd=g`<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>`,eh=g`<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>`,th=g`<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>`,ih=g`<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>`,oh=g`<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>`,rh=g`<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>`,nh=g`<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>`,sh=g`<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>`,ah=g`<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>`,lh=g`<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>`,uh=g`<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>`,ch=g`<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>`,dh=g`<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>`,hh=g`<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>`,ph=g`<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>`,bh=g`<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>`,mh=g`<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>`,vh=g`<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>`,gh=g`<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>`,fh=g`<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>`,yh=g`<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>`,_h=g`<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>`,wh=g`<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>`,Uh=g`<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>`,$h=g`<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>`,Eh=g`<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>`,kh=g`<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>`,Ih=g`<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>`,xh=g`<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>`,Ch=g`<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 ys=class extends to{constructor(){super(),this.defineIcon("add",Xd.strings[0]),this.defineIcon("alert",Zd.strings[0]),this.defineIcon("attachment",Qd.strings[0]),this.defineIcon("book-alt",Jd.strings[0]),this.defineIcon("calendar",eh.strings[0]),this.defineIcon("check",th.strings[0]),this.defineIcon("clipboard",ih.strings[0]),this.defineIcon("code",oh.strings[0]),this.defineIcon("colorpicker",rh.strings[0]),this.defineIcon("copy",nh.strings[0]),this.defineIcon("delete",sh.strings[0]),this.defineIcon("document",ah.strings[0]),this.defineIcon("download",lh.strings[0]),this.defineIcon("edit",uh.strings[0]),this.defineIcon("favorite",ch.strings[0]),this.defineIcon("folder",dh.strings[0]),this.defineIcon("forbidden",hh.strings[0]),this.defineIcon("info",ph.strings[0]),this.defineIcon("link",bh.strings[0]),this.defineIcon("lock",mh.strings[0]),this.defineIcon("pause",vh.strings[0]),this.defineIcon("picture",gh.strings[0]),this.defineIcon("play",fh.strings[0]),this.defineIcon("remove",yh.strings[0]),this.defineIcon("search",_h.strings[0]),this.defineIcon("see",wh.strings[0]),this.defineIcon("settings",Uh.strings[0]),this.defineIcon("subtract",$h.strings[0]),this.defineIcon("sync",Eh.strings[0]),this.defineIcon("unlock",kh.strings[0]),this.defineIcon("unsee",Ih.strings[0]),this.defineIcon("wand",xh.strings[0]),this.defineIcon("wrong",Ch.strings[0])}};var Sh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,Ph=(i,e,t,r)=>{for(var o=r>1?void 0:r?Oh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sh(e,t,o),o};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super(),this.registry=new ys}},n.UUIIconRegistryEssentialElement=Ph([b("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);var zh=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,tt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ah(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zh(e,t,o),o};n.UUIInputFileElement=class extends J(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(),_(this,"uui-icon"),_(this,"uui-file-dropzone"),_(this,"uui-button"),_(this,"uui-action-bar"),_(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],s=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=s;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,s),this._updateFileWrappers([s]);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 s=o instanceof File;r.append(this.name,s?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="${Bu.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${ps(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>`:$}</div>`}},n.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}`],tt([I("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),tt([I("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),tt([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),tt([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),tt([v()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=tt([b("uui-input-file")],n.UUIInputFileElement);var Lh=Object.defineProperty,_s=Object.getOwnPropertySymbols,Th=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable,ws=(i,e,t)=>e in i?Lh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Us=(i,e)=>{for(var t in e||(e={}))Th.call(e,t)&&ws(i,t,e[t]);if(_s)for(var t of _s(e))jh.call(e,t)&&ws(i,t,e[t]);return i};let ze=class extends C{constructor(e,t={}){super(e,Us(Us({},{bubbles:!0}),t))}};ze.CHANGE="change",ze.INPUT="input";var Nh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,T=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nh(e,t,o),o};n.UUIInputElement=class extends J(Q("",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 ze(ze.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new ze(ze.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(){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="${x(this.pattern)}" min="${x(this.min)}" max="${x(this.max)}" step="${x(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${x(this.autocomplete)}" placeholder="${x(this.placeholder)}" aria-label="${x(this.label)}" inputmode="${x(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}`}},n.UUIInputElement.formAssociated=!0,n.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%}#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)}: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}: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()],n.UUIInputElement.prototype,"min",2),T([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),T([l({type:String,attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),T([l()],n.UUIInputElement.prototype,"max",2),T([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),T([l({type:String,attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),T([l({type:Number})],n.UUIInputElement.prototype,"step",2),T([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),T([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),T([l()],n.UUIInputElement.prototype,"placeholder",2),T([l()],n.UUIInputElement.prototype,"autocomplete",2),T([l({type:Boolean,reflect:!0,attribute:"auto-width"})],n.UUIInputElement.prototype,"autoWidth",2),T([l({type:String})],n.UUIInputElement.prototype,"type",1),T([l({type:String})],n.UUIInputElement.prototype,"pattern",2),T([l({type:String})],n.UUIInputElement.prototype,"inputMode",2),T([I("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=T([b("uui-input")],n.UUIInputElement);var Dh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,$s=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dh(e,t,o),o};n.UUIInputLockElement=class extends n.UUIInputElement{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),_(this,"uui-icon"),_(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${Ru.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${Gu.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>`}},n.UUIInputLockElement.styles=[...n.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}`],$s([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",2),n.UUIInputLockElement=$s([b("uui-input-lock")],n.UUIInputLockElement);var Bh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,io=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Bh(e,t,o),o};n.UUIInputPasswordElement=class extends n.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(),_(this,"uui-icon"),_(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${Fu.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${qu.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>`}},n.UUIInputPasswordElement.styles=[...n.UUIInputElement.styles,p`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],io([v()],n.UUIInputPasswordElement.prototype,"passwordType",2),io([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=io([b("uui-input-password")],n.UUIInputPasswordElement);var Vh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,Gh=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vh(e,t,o),o};n.UUIKeyboardShortcutElement=class extends m{render(){return u`<slot></slot>`}},n.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}`],n.UUIKeyboardShortcutElement=Gh([b("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var qh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,Kh=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qh(e,t,o),o};n.UUIKeyElement=class extends m{render(){return u`<slot></slot>`}},n.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}`],n.UUIKeyElement=Kh([b("uui-key")],n.UUIKeyElement);var Yh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,Qt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yh(e,t,o),o};n.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>`:""}`}},n.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}`],Qt([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),Qt([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),Qt([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=Qt([b("uui-label")],n.UUILabelElement);var Zh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,oo=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zh(e,t,o),o};const Jh=(i,e,t)=>Math.min(Math.max(i,e),t);n.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=Jh(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>`}},n.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})],n.UUILoaderBarElement.prototype,"progress",1),oo([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=oo([b("uui-loader-bar")],n.UUILoaderBarElement);var ep=Object.defineProperty,tp=Object.getOwnPropertyDescriptor,ro=(i,e,t,r)=>{for(var o=r>1?void 0:r?tp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ep(e,t,o),o};n.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="${te(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.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}`],ro([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),ro([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=ro([b("uui-loader-circle")],n.UUILoaderCircleElement);var ip=Object.defineProperty,op=Object.getOwnPropertyDescriptor,rp=(i,e,t,r)=>{for(var o=r>1?void 0:r?op(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ip(e,t,o),o};n.UUILoaderElement=class extends m{render(){return u`<div></div><div></div><div></div>`}},n.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}}`],n.UUILoaderElement=rp([b("uui-loader")],n.UUILoaderElement);/**
|
|
310
|
+
*/class $o extends rt{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===B)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:[]}}}$o.directiveName="unsafeHTML",$o.resultType=1;const Uo=ot($o);var Kh=Object.defineProperty,oa=Object.getOwnPropertySymbols,Yh=Object.prototype.hasOwnProperty,Xh=Object.prototype.propertyIsEnumerable,ra=(i,e,t)=>e in i?Kh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,na=(i,e)=>{for(var t in e||(e={}))Yh.call(e,t)&&ra(i,t,e[t]);if(oa)for(var t of oa(e))Xh.call(e,t)&&ra(i,t,e[t]);return i};let ut=class extends S{constructor(e,t={}){super(e,na(na({},{bubbles:!0,composed:!0}),t)),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};ut.ICON_REQUEST="icon-request";var Zh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zh(e,t,o),o};n.UUIIconElement=class extends m{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,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 ut(ut.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()}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:Uo(this.fallback):this._nameSvg!==null?Uo(this._nameSvg):this.svg!==null?Uo(this.svg):u`<slot></slot>`}},n.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)}`],ct([g()],n.UUIIconElement.prototype,"_nameSvg",2),ct([l()],n.UUIIconElement.prototype,"name",1),ct([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),ct([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),ct([g()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=ct([b("uui-icon")],n.UUIIconElement);let Eo=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)}},ko=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(ut.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(ut.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new Eo(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Eo}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var Jh=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,sa=(i,e,t,r)=>{for(var o=r>1?void 0:r?ep(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jh(e,t,o),o};n.UUIIconRegistryElement=class extends m{constructor(){super(),this._icons={},this._registry=new ko,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>`}},sa([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=sa([b("uui-icon-registry")],n.UUIIconRegistryElement);const tp=y`<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>`,ip=y`<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>`,op=y`<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>`,rp=y`<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>`,np=y`<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>`,sp=y`<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>`,ap=y`<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>`,lp=y`<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>`,up=y`<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>`,cp=y`<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>`,dp=y`<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>`,hp=y`<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>`,pp=y`<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>`,bp=y`<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>`,mp=y`<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>`,vp=y`<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>`,gp=y`<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>`,fp=y`<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>`,yp=y`<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=y`<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>`,wp=y`<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>`,$p=y`<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>`,Up=y`<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>`,Ep=y`<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>`,kp=y`<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>`,Ip=y`<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>`,xp=y`<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>`,Cp=y`<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>`,Sp=y`<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>`,Pp=y`<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>`,Op=y`<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>`,zp=y`<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>`,Ap=y`<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 aa=class extends ko{constructor(){super(),this.defineIcon("add",tp.strings[0]),this.defineIcon("alert",ip.strings[0]),this.defineIcon("attachment",op.strings[0]),this.defineIcon("book-alt",rp.strings[0]),this.defineIcon("calendar",np.strings[0]),this.defineIcon("check",sp.strings[0]),this.defineIcon("clipboard",ap.strings[0]),this.defineIcon("code",lp.strings[0]),this.defineIcon("colorpicker",up.strings[0]),this.defineIcon("copy",cp.strings[0]),this.defineIcon("delete",dp.strings[0]),this.defineIcon("document",hp.strings[0]),this.defineIcon("download",pp.strings[0]),this.defineIcon("edit",bp.strings[0]),this.defineIcon("favorite",mp.strings[0]),this.defineIcon("folder",vp.strings[0]),this.defineIcon("forbidden",gp.strings[0]),this.defineIcon("info",fp.strings[0]),this.defineIcon("link",yp.strings[0]),this.defineIcon("lock",_p.strings[0]),this.defineIcon("pause",wp.strings[0]),this.defineIcon("picture",$p.strings[0]),this.defineIcon("play",Up.strings[0]),this.defineIcon("remove",Ep.strings[0]),this.defineIcon("search",kp.strings[0]),this.defineIcon("see",Ip.strings[0]),this.defineIcon("settings",xp.strings[0]),this.defineIcon("subtract",Cp.strings[0]),this.defineIcon("sync",Sp.strings[0]),this.defineIcon("unlock",Pp.strings[0]),this.defineIcon("unsee",Op.strings[0]),this.defineIcon("wand",zp.strings[0]),this.defineIcon("wrong",Ap.strings[0])}};var Lp=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,jp=(i,e,t,r)=>{for(var o=r>1?void 0:r?Tp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lp(e,t,o),o};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super(),this.registry=new aa}},n.UUIIconRegistryEssentialElement=jp([b("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);var Np=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,dt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Np(e,t,o),o};n.UUIInputFileElement=class extends ie(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],s=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=s;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,s),this._updateFileWrappers([s]);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 s=o instanceof File;r.append(this.name,s?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="${qc.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${wo(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>`}},n.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}`],dt([x("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),dt([x("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),dt([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),dt([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),dt([g()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=dt([b("uui-input-file")],n.UUIInputFileElement);var Dp=Object.defineProperty,la=Object.getOwnPropertySymbols,Hp=Object.prototype.hasOwnProperty,Bp=Object.prototype.propertyIsEnumerable,ua=(i,e,t)=>e in i?Dp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ca=(i,e)=>{for(var t in e||(e={}))Hp.call(e,t)&&ua(i,t,e[t]);if(la)for(var t of la(e))Bp.call(e,t)&&ua(i,t,e[t]);return i};let Be=class extends S{constructor(e,t={}){super(e,ca(ca({},{bubbles:!0}),t))}};Be.CHANGE="change",Be.INPUT="input";var Rp=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,N=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rp(e,t,o),o};n.UUIInputElement=class extends ie(te("",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 Be(Be.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Be(Be.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(){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="${C(this.pattern)}" min="${C(this.min)}" max="${C(this.max)}" step="${C(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${C(this.autocomplete)}" placeholder="${C(this.placeholder)}" aria-label="${C(this.label)}" inputmode="${C(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}`}},n.UUIInputElement.formAssociated=!0,n.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%}#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)}: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}: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}`],N([l()],n.UUIInputElement.prototype,"min",2),N([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),N([l({type:String,attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),N([l()],n.UUIInputElement.prototype,"max",2),N([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),N([l({type:String,attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),N([l({type:Number})],n.UUIInputElement.prototype,"step",2),N([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),N([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),N([l()],n.UUIInputElement.prototype,"placeholder",2),N([l()],n.UUIInputElement.prototype,"autocomplete",2),N([l({type:Boolean,reflect:!0,attribute:"auto-width"})],n.UUIInputElement.prototype,"autoWidth",2),N([l({type:String})],n.UUIInputElement.prototype,"type",1),N([l({type:String})],n.UUIInputElement.prototype,"pattern",2),N([l({type:String})],n.UUIInputElement.prototype,"inputMode",2),N([x("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=N([b("uui-input")],n.UUIInputElement);var Fp=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,da=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fp(e,t,o),o};n.UUIInputLockElement=class extends n.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="${Wc.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${Xc.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>`}},n.UUIInputLockElement.styles=[...n.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}`],da([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",2),n.UUIInputLockElement=da([b("uui-input-lock")],n.UUIInputLockElement);var qp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,Io=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qp(e,t,o),o};n.UUIInputPasswordElement=class extends n.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="${Yc.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${Zc.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>`}},n.UUIInputPasswordElement.styles=[...n.UUIInputElement.styles,p`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],Io([g()],n.UUIInputPasswordElement.prototype,"passwordType",2),Io([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=Io([b("uui-input-password")],n.UUIInputPasswordElement);var Kp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,Xp=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Kp(e,t,o),o};n.UUIKeyboardShortcutElement=class extends m{render(){return u`<slot></slot>`}},n.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}`],n.UUIKeyboardShortcutElement=Xp([b("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var Zp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,Jp=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zp(e,t,o),o};n.UUIKeyElement=class extends m{render(){return u`<slot></slot>`}},n.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}`],n.UUIKeyElement=Jp([b("uui-key")],n.UUIKeyElement);var e0=Object.defineProperty,t0=Object.getOwnPropertyDescriptor,pi=(i,e,t,r)=>{for(var o=r>1?void 0:r?t0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&e0(e,t,o),o};n.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>`:""}`}},n.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}`],pi([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),pi([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),pi([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=pi([b("uui-label")],n.UUILabelElement);var i0=Object.defineProperty,o0=Object.getOwnPropertyDescriptor,xo=(i,e,t,r)=>{for(var o=r>1?void 0:r?o0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&i0(e,t,o),o};const r0=(i,e,t)=>Math.min(Math.max(i,e),t);n.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=r0(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>`}},n.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}}`],xo([l({type:Number})],n.UUILoaderBarElement.prototype,"progress",1),xo([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=xo([b("uui-loader-bar")],n.UUILoaderBarElement);var n0=Object.defineProperty,s0=Object.getOwnPropertyDescriptor,Co=(i,e,t,r)=>{for(var o=r>1?void 0:r?s0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&n0(e,t,o),o};n.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="${re(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.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}`],Co([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),Co([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=Co([b("uui-loader-circle")],n.UUILoaderCircleElement);var a0=Object.defineProperty,l0=Object.getOwnPropertyDescriptor,u0=(i,e,t,r)=>{for(var o=r>1?void 0:r?l0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&a0(e,t,o),o};n.UUILoaderElement=class extends m{render(){return u`<div></div><div></div><div></div>`}},n.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}}`],n.UUILoaderElement=u0([b("uui-loader")],n.UUILoaderElement);/**
|
|
311
311
|
* @license
|
|
312
312
|
* Copyright 2017 Google LLC
|
|
313
313
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
314
|
-
*/const wt=(i,e)=>{var t,r;const o=i._$AN;if(o===void 0)return!1;for(const s of o)(r=(t=s)._$AO)===null||r===void 0||r.call(t,e,!1),wt(s,e);return!0},Jt=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},Es=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),ap(e)}};function np(i){this._$AN!==void 0?(Jt(this),this._$AM=i,Es(this)):this._$AM=i}function sp(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 s=t;s<r.length;s++)wt(r[s],!1),Jt(r[s]);else r!=null&&(wt(r,!1),Jt(r));else wt(this,i)}const ap=i=>{var e,t,r,o;i.type==K.CHILD&&((e=(r=i)._$AP)!==null&&e!==void 0||(r._$AP=sp),(t=(o=i)._$AQ)!==null&&t!==void 0||(o._$AQ=np))};let lp=class extends Ke{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),Es(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&&(wt(this,e),Jt(this))}setValue(e){if(En(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 no=new WeakMap,so=We(class extends lp{render(i){return $}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.ct=(t=i.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=i.element)),$}ot(i){var e;if(typeof this.G=="function"){const t=(e=this.ct)!==null&&e!==void 0?e:globalThis;let r=no.get(t);r===void 0&&(r=new WeakMap,no.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ct,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.ct,i)}else this.G.value=i}get rt(){var i,e,t;return typeof this.G=="function"?(e=no.get((i=this.ct)!==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 be=class extends C{};be.SHOW_CHILDREN="show-children",be.HIDE_CHILDREN="hide-children",be.CLICK_LABEL="click-label";var up=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,me=(i,e,t,r)=>{for(var o=r>1?void 0:r?cp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&up(e,t,o),o};n.UUIMenuItemElement=class extends At(Ve(bt(Q("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?be.HIDE_CHILDREN:be.SHOW_CHILDREN,t=new be(e,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.showChildren=!this.showChildren)},this._onLabelClicked=()=>{const e=new be(be.CLICK_LABEL);this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),_(this,"uui-symbol-expand"),_(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" ${so(this._labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${so(this._labelButtonChanged)} href="${x(this.href)}" target="${x(this.target||void 0)}" rel="${x(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" ${so(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>`:""}`}},n.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)}`],me([l({type:Boolean,reflect:!0})],n.UUIMenuItemElement.prototype,"disabled",2),me([l({type:Boolean,reflect:!0,attribute:"show-children"})],n.UUIMenuItemElement.prototype,"showChildren",2),me([l({type:Boolean,attribute:"has-children"})],n.UUIMenuItemElement.prototype,"hasChildren",2),me([l({type:Boolean,attribute:"loading"})],n.UUIMenuItemElement.prototype,"loading",2),me([l({type:String})],n.UUIMenuItemElement.prototype,"href",2),me([l({type:String})],n.UUIMenuItemElement.prototype,"target",2),me([l({type:String,attribute:"select-mode",reflect:!0})],n.UUIMenuItemElement.prototype,"selectMode",2),me([v()],n.UUIMenuItemElement.prototype,"iconSlotHasContent",2),n.UUIMenuItemElement=me([b("uui-menu-item")],n.UUIMenuItemElement);var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,it=(i,e,t,r)=>{for(var o=r>1?void 0:r?hp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dp(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",{bubbles:!0,cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent("close",{bubbles:!0,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.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}`],it([I("dialog")],R.prototype,"_dialogElement",2),it([l({type:Boolean,reflect:!0,attribute:"is-open"})],R.prototype,"isOpen",2),it([l({type:Boolean,reflect:!0,attribute:"is-closing"})],R.prototype,"isClosing",2),it([l({type:Number,reflect:!0})],R.prototype,"index",2),it([l({type:Number,reflect:!0,attribute:"unique-index"})],R.prototype,"uniqueIndex",2),it([l()],R.prototype,"transitionDuration",1);var pp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,ks=(i,e,t,r)=>{for(var o=r>1?void 0:r?bp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pp(e,t,o),o},Is=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},xs=(i,e,t)=>(Is(i,e,"read from private field"),t?t.call(i):e.get(i)),Cs=(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)},mp=(i,e,t)=>(Is(i,e,"access private method"),t),ei,ao,lo,Ss;n.UUIModalSidebarElement=class extends R{constructor(){super(),Cs(this,ei),Cs(this,lo),this.size="full",this.addEventListener("close",mp(this,lo,Ss).bind(this))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-offset",-xs(this,ei,ao)+"px")}updated(e){super.updated(e),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}render(){return u`<dialog><slot></slot></dialog>`}},ei=new WeakSet,ao=function(){var i,e;return(e=(i=this._dialogElement)==null?void 0:i.getBoundingClientRect().width)!=null?e:0},lo=new WeakSet,Ss=function(i){i.preventDefault(),!this.isClosing&&(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-xs(this,ei,ao)+"px"),setTimeout(()=>{this._closeModal()},this.transitionDuration))},n.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)))}`],ks([l({reflect:!0})],n.UUIModalSidebarElement.prototype,"size",2),n.UUIModalSidebarElement=ks([ki("uui-modal-sidebar")],n.UUIModalSidebarElement);var vp=Object.defineProperty,gp=Object.getOwnPropertyDescriptor,ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?gp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vp(e,t,o),o},Os=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Ps=(i,e,t)=>(Os(i,e,"read from private field"),t?t.call(i):e.get(i)),ti=(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)},ii=(i,e,t)=>(Os(i,e,"access private method"),t),uo,co,oi,ho,ri,po;n.UUIModalContainerElement=class extends m{constructor(){super(),ti(this,oi),ti(this,ri),this.sidebarGap=64,this.transitionDurationMS=250,ti(this,uo,()=>{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 n.UUIModalSidebarElement),this._modals.length===0){this.removeAttribute("backdrop");return}ii(this,oi,ho).call(this),ii(this,ri,po).call(this)}),ti(this,co,()=>{if(!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}ii(this,oi,ho).call(this),ii(this,ri,po).call(this)}),this.addEventListener("close",Ps(this,co))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return u`<slot @slotchange="${Ps(this,uo)}"></slot>`}},uo=new WeakMap,co=new WeakMap,oi=new WeakSet,ho=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 s=t?.filter(a=>a.constructor.name===r.constructor.name);r.uniqueIndex=(o=s?.indexOf(r))!=null?o:0})},ri=new WeakSet,po=function(){requestAnimationFrame(()=>{var i,e,t,r,o,s,a,c;let h=0;const d=(e=(i=this._sidebars)==null?void 0:i.filter(w=>!w.isClosing).reverse())!=null?e:[];for(let w=0;w<d.length;w++){const y=d[w],f=d[w+1];if(y.style.setProperty("--uui-modal-offset",h+"px"),f!=null&&f.hasAttribute("hide"))break;const U=(o=(r=(t=y.shadowRoot)==null?void 0:t.querySelector("dialog"))==null?void 0:r.getBoundingClientRect().width)!=null?o:0,E=(c=(a=(s=f?.shadowRoot)==null?void 0:s.querySelector("dialog"))==null?void 0:a.getBoundingClientRect().width)!=null?c:0,k=U+h+this.sidebarGap-E;h=k>0?k:0}})},n.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}`,ot([I("slot")],n.UUIModalContainerElement.prototype,"modalSlot",2),ot([v()],n.UUIModalContainerElement.prototype,"_modals",2),ot([v()],n.UUIModalContainerElement.prototype,"_sidebars",2),ot([l({type:Number})],n.UUIModalContainerElement.prototype,"sidebarGap",2),ot([l({type:Number})],n.UUIModalContainerElement.prototype,"transitionDurationMS",2),n.UUIModalContainerElement=ot([ki("uui-modal-container")],n.UUIModalContainerElement);var fp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,_p=(i,e,t,r)=>{for(var o=r>1?void 0:r?yp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fp(e,t,o),o};n.UUIModalDialogElement=class extends R{render(){return u`<dialog><slot></slot></dialog>`}},n.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)}`],n.UUIModalDialogElement=_p([ki("uui-modal-dialog")],n.UUIModalDialogElement);var wp=Object.defineProperty,zs=Object.getOwnPropertySymbols,Up=Object.prototype.hasOwnProperty,$p=Object.prototype.propertyIsEnumerable,As=(i,e,t)=>e in i?wp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ls=(i,e)=>{for(var t in e||(e={}))Up.call(e,t)&&As(i,t,e[t]);if(zs)for(var t of zs(e))$p.call(e,t)&&As(i,t,e[t]);return i};let we=class extends C{constructor(e,t={}){super(e,Ls(Ls({},{bubbles:!0}),t))}};we.CHANGE="change";var Ep=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,ve=(i,e,t,r)=>{for(var o=r>1?void 0:r?kp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ep(e,t,o),o};const Ip=45,bo=(i,e,t)=>Math.min(Math.max(i,e),t),xp=(i,e)=>Array.from({length:e-i+1},(t,r)=>i+r);n.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),_(this,"uui-button"),_(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,s)=>o+s.getBoundingClientRect().width,0),r=(e-t)/Ip/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 xp(bo(t,1,this.total),bo(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=bo(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new we(we.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new we(we.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new we(we.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>`}},n.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}`],ve([Sa("uui-button.nav")],n.UUIPaginationElement.prototype,"_navButtons",2),ve([I("#pages")],n.UUIPaginationElement.prototype,"_pagesGroup",2),ve([l()],n.UUIPaginationElement.prototype,"label",2),ve([l({reflect:!0,attribute:"aria-label"})],n.UUIPaginationElement.prototype,"ariaLabel",2),ve([l({type:Number})],n.UUIPaginationElement.prototype,"total",1),ve([v()],n.UUIPaginationElement.prototype,"_range",2),ve([v()],n.UUIPaginationElement.prototype,"_visiblePages",2),ve([l({type:Number})],n.UUIPaginationElement.prototype,"current",1),n.UUIPaginationElement=ve([b("uui-pagination")],n.UUIPaginationElement);let mo=class extends C{};mo.CLOSE="close";var Cp=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,Ut=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Cp(e,t,o),o};function ni(i,e,t){return i<e?e:i>t?t:i}n.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 mo(mo.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 s=e;for(;s=s.parentElement;)if(t=getComputedStyle(s),!(r&&t.position==="static")&&(o.test(t.overflow+t.overflowY+t.overflowX)&&this._scrollParents.push(s),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(),s=(t=this._trigger)==null?void 0:t.getBoundingClientRect();if(s!=null&&o!=null){const a=this._scrollParents.map(se=>se.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,o,a));let c=this._currentPlacement.indexOf("top")!==-1,h=this._currentPlacement.indexOf("bottom")!==-1,d=this._currentPlacement.indexOf("left")!==-1,w=this._currentPlacement.indexOf("right")!==-1;const y=this._currentPlacement.indexOf("-start")!==-1,f=this._currentPlacement.indexOf("-end")!==-1;let U=.5,E=.5,k=.5,j=.5,Te=0,at=0;if(this.placement==="auto"){const se=this._scrollParents[0],kt=se.clientWidth,Me=se.clientHeight,lt=s.x-o.width,ut=kt-(s.x+s.width)-o.width,Io=s.y-o.height,di=Me-(s.y+s.height)-o.height;let hi=.5,pi=.5;const j1=Math.max(lt,ut);let fa=Math.max(Io,di);di>Io&&di>this.margin&&(fa+=9999),j1>fa?(lt>ut?(hi=0,d=!0):(hi=1,w=!0),Te=this.margin):(Io>di?(pi=0,c=!0):(pi=1,h=!0),at=this.margin),U=hi,E=pi,k=1-hi,j=1-pi}else c&&(j=1,E=0),h&&(j=0,E=1),(c||h)&&(at=this.margin,y&&(k=0,U=0),f&&(k=1,U=1)),d&&(k=1,U=0),w&&(k=0,U=1),(d||w)&&(Te=this.margin,y&&(j=0,E=0),f&&(j=1,E=1));const Eo=-o.width*k+s.width*U-Te*(k*2-1),ko=-o.height*j+s.height*E-at*(j*2-1);let je=Eo,Ne=ko;c||h?(this._scrollParents.forEach((se,kt)=>{const Me=se===document.body?0:a[kt].x,lt=-s.x+Me,ut=se.clientWidth-s.x-s.width+Eo+Me-(o.width-s.width)*(1-U);je=ni(je,lt,ut)}),je=ni(je,-o.width,s.width)):(d||w)&&(this._scrollParents.forEach((se,kt)=>{const Me=se===document.body?0:a[kt].y,lt=-s.y+Me,ut=se.clientHeight-s.y-s.height+ko+Me-(o.height-s.height)*(1-E);Ne=ni(Ne,lt,ut)}),Ne=ni(Ne,-o.height,s.height)),(this._positionX!==je||this._positionY!==Ne)&&(this._positionX=je,this._positionY=Ne,Eo===je&&ko===Ne&&this._stopScrollListener(),r.style.left=`${this._positionX}px`,r.style.top=`${this._positionY}px`)}}_managePlacementFlip(e,t,r){const o=e.split("-"),s=o[0],a=o[1]||null;let c;return this._scrollParents.some((h,d)=>{const w=h===document.body?0:r[d].x,y=h===document.body?0:r[d].y;return s==="top"&&t.y-2<=y?(c="bottom",!0):s==="bottom"&&t.y+t.height+2>=h.clientHeight+y?(c="top",!0):s==="left"&&t.x-2<=w?(c="right",!0):s==="right"&&t.x+t.width+2>=h.clientWidth+w?(c="left",!0):!1}),c?(this._startScrollListener(),c+(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>`}},n.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(
|
|
314
|
+
*/const Lt=(i,e)=>{var t,r;const o=i._$AN;if(o===void 0)return!1;for(const s of o)(r=(t=s)._$AO)===null||r===void 0||r.call(t,e,!1),Lt(s,e);return!0},bi=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},ha=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),h0(e)}};function c0(i){this._$AN!==void 0?(bi(this),this._$AM=i,ha(this)):this._$AM=i}function d0(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 s=t;s<r.length;s++)Lt(r[s],!1),bi(r[s]);else r!=null&&(Lt(r,!1),bi(r));else Lt(this,i)}const h0=i=>{var e,t,r,o;i.type==Z.CHILD&&((e=(r=i)._$AP)!==null&&e!==void 0||(r._$AP=d0),(t=(o=i)._$AQ)!==null&&t!==void 0||(o._$AQ=c0))};let p0=class extends rt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),ha(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&&(Lt(this,e),bi(this))}setValue(e){if(ps(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 So=new WeakMap,Po=ot(class extends p0{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=So.get(t);r===void 0&&(r=new WeakMap,So.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=So.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 S{};fe.SHOW_CHILDREN="show-children",fe.HIDE_CHILDREN="hide-children",fe.CLICK_LABEL="click-label";var b0=Object.defineProperty,m0=Object.getOwnPropertyDescriptor,ye=(i,e,t,r)=>{for(var o=r>1?void 0:r?m0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&b0(e,t,o),o};n.UUIMenuItemElement=class extends Kt(Je(xt(te("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" ${Po(this._labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${Po(this._labelButtonChanged)} href="${C(this.href)}" target="${C(this.target||void 0)}" rel="${C(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" ${Po(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>`:""}`}},n.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})],n.UUIMenuItemElement.prototype,"disabled",2),ye([l({type:Boolean,reflect:!0,attribute:"show-children"})],n.UUIMenuItemElement.prototype,"showChildren",2),ye([l({type:Boolean,attribute:"has-children"})],n.UUIMenuItemElement.prototype,"hasChildren",2),ye([l({type:Boolean,attribute:"loading"})],n.UUIMenuItemElement.prototype,"loading",2),ye([l({type:String})],n.UUIMenuItemElement.prototype,"href",2),ye([l({type:String})],n.UUIMenuItemElement.prototype,"target",2),ye([l({type:String,attribute:"select-mode",reflect:!0})],n.UUIMenuItemElement.prototype,"selectMode",2),ye([g()],n.UUIMenuItemElement.prototype,"iconSlotHasContent",2),n.UUIMenuItemElement=ye([b("uui-menu-item")],n.UUIMenuItemElement);var v0=Object.defineProperty,g0=Object.getOwnPropertyDescriptor,ht=(i,e,t,r)=>{for(var o=r>1?void 0:r?g0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&v0(e,t,o),o};let F=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",{bubbles:!0,cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent("close",{bubbles:!0,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.remove()}};F.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}`],ht([x("dialog")],F.prototype,"_dialogElement",2),ht([l({type:Boolean,reflect:!0,attribute:"is-open"})],F.prototype,"isOpen",2),ht([l({type:Boolean,reflect:!0,attribute:"is-closing"})],F.prototype,"isClosing",2),ht([l({type:Number,reflect:!0})],F.prototype,"index",2),ht([l({type:Number,reflect:!0,attribute:"unique-index"})],F.prototype,"uniqueIndex",2),ht([l()],F.prototype,"transitionDuration",1);var f0=Object.defineProperty,y0=Object.getOwnPropertyDescriptor,pa=(i,e,t,r)=>{for(var o=r>1?void 0:r?y0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&f0(e,t,o),o},ba=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},ma=(i,e,t)=>(ba(i,e,"read from private field"),t?t.call(i):e.get(i)),va=(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)=>(ba(i,e,"access private method"),t),mi,Oo,zo,ga;n.UUIModalSidebarElement=class extends F{constructor(){super(),va(this,mi),va(this,zo),this.size="full",this.addEventListener("close",_0(this,zo,ga).bind(this))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-offset",-ma(this,mi,Oo)+"px")}updated(e){super.updated(e),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}render(){return u`<dialog><slot></slot></dialog>`}},mi=new WeakSet,Oo=function(){var i,e;return(e=(i=this._dialogElement)==null?void 0:i.getBoundingClientRect().width)!=null?e:0},zo=new WeakSet,ga=function(i){i.preventDefault(),!this.isClosing&&(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-ma(this,mi,Oo)+"px"),setTimeout(()=>{this._closeModal()},this.transitionDuration))},n.UUIModalSidebarElement.styles=[...F.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)))}`],pa([l({reflect:!0})],n.UUIModalSidebarElement.prototype,"size",2),n.UUIModalSidebarElement=pa([Wi("uui-modal-sidebar")],n.UUIModalSidebarElement);var w0=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?$0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&w0(e,t,o),o},fa=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},ya=(i,e,t)=>(fa(i,e,"read from private field"),t?t.call(i):e.get(i)),vi=(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)},gi=(i,e,t)=>(fa(i,e,"access private method"),t),Ao,Lo,fi,To,yi,jo;n.UUIModalContainerElement=class extends m{constructor(){super(),vi(this,fi),vi(this,yi),this.sidebarGap=64,this.transitionDurationMS=250,vi(this,Ao,()=>{var e,t;if(this._modals=(t=(e=this.modalSlot)==null?void 0:e.assignedElements({flatten:!0}).filter(r=>r instanceof F))!=null?t:[],this._sidebars=this._modals.filter(r=>r instanceof n.UUIModalSidebarElement),this._modals.length===0){this.removeAttribute("backdrop");return}gi(this,fi,To).call(this),gi(this,yi,jo).call(this)}),vi(this,Lo,()=>{if(!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}gi(this,fi,To).call(this),gi(this,yi,jo).call(this)}),this.addEventListener("close",ya(this,Lo))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return u`<slot @slotchange="${ya(this,Ao)}"></slot>`}},Ao=new WeakMap,Lo=new WeakMap,fi=new WeakSet,To=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 s=t?.filter(a=>a.constructor.name===r.constructor.name);r.uniqueIndex=(o=s?.indexOf(r))!=null?o:0})},yi=new WeakSet,jo=function(){requestAnimationFrame(()=>{var i,e,t,r,o,s,a,d;let c=0;const h=(e=(i=this._sidebars)==null?void 0:i.filter(v=>!v.isClosing).reverse())!=null?e:[];for(let v=0;v<h.length;v++){const f=h[v],_=h[v+1];if(f.style.setProperty("--uui-modal-offset",c+"px"),_!=null&&_.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=(d=(a=(s=_?.shadowRoot)==null?void 0:s.querySelector("dialog"))==null?void 0:a.getBoundingClientRect().width)!=null?d:0,k=$+c+this.sidebarGap-E;c=k>0?k:0}})},n.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}`,pt([x("slot")],n.UUIModalContainerElement.prototype,"modalSlot",2),pt([g()],n.UUIModalContainerElement.prototype,"_modals",2),pt([g()],n.UUIModalContainerElement.prototype,"_sidebars",2),pt([l({type:Number})],n.UUIModalContainerElement.prototype,"sidebarGap",2),pt([l({type:Number})],n.UUIModalContainerElement.prototype,"transitionDurationMS",2),n.UUIModalContainerElement=pt([Wi("uui-modal-container")],n.UUIModalContainerElement);var U0=Object.defineProperty,E0=Object.getOwnPropertyDescriptor,k0=(i,e,t,r)=>{for(var o=r>1?void 0:r?E0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&U0(e,t,o),o};n.UUIModalDialogElement=class extends F{render(){return u`<dialog><slot></slot></dialog>`}},n.UUIModalDialogElement.styles=[...F.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)}`],n.UUIModalDialogElement=k0([Wi("uui-modal-dialog")],n.UUIModalDialogElement);var I0=Object.defineProperty,_a=Object.getOwnPropertySymbols,x0=Object.prototype.hasOwnProperty,C0=Object.prototype.propertyIsEnumerable,wa=(i,e,t)=>e in i?I0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,$a=(i,e)=>{for(var t in e||(e={}))x0.call(e,t)&&wa(i,t,e[t]);if(_a)for(var t of _a(e))C0.call(e,t)&&wa(i,t,e[t]);return i};let Se=class extends S{constructor(e,t={}){super(e,$a($a({},{bubbles:!0}),t))}};Se.CHANGE="change";var S0=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,_e=(i,e,t,r)=>{for(var o=r>1?void 0:r?P0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&S0(e,t,o),o};const O0=45,No=(i,e,t)=>Math.min(Math.max(i,e),t),z0=(i,e)=>Array.from({length:e-i+1},(t,r)=>i+r);n.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,s)=>o+s.getBoundingClientRect().width,0),r=(e-t)/O0/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 z0(No(t,1,this.total),No(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=No(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new Se(Se.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new Se(Se.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new Se(Se.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>`}},n.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([$l("uui-button.nav")],n.UUIPaginationElement.prototype,"_navButtons",2),_e([x("#pages")],n.UUIPaginationElement.prototype,"_pagesGroup",2),_e([l()],n.UUIPaginationElement.prototype,"label",2),_e([l({reflect:!0,attribute:"aria-label"})],n.UUIPaginationElement.prototype,"ariaLabel",2),_e([l({type:Number})],n.UUIPaginationElement.prototype,"total",1),_e([g()],n.UUIPaginationElement.prototype,"_range",2),_e([g()],n.UUIPaginationElement.prototype,"_visiblePages",2),_e([l({type:Number})],n.UUIPaginationElement.prototype,"current",1),n.UUIPaginationElement=_e([b("uui-pagination")],n.UUIPaginationElement);let Mo=class extends S{};Mo.CLOSE="close";var A0=Object.defineProperty,L0=Object.getOwnPropertyDescriptor,Tt=(i,e,t,r)=>{for(var o=r>1?void 0:r?L0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&A0(e,t,o),o};function _i(i,e,t){return i<e?e:i>t?t:i}n.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 Mo(Mo.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 s=e;for(;s=s.parentElement;)if(t=getComputedStyle(s),!(r&&t.position==="static")&&(o.test(t.overflow+t.overflowY+t.overflowX)&&this._scrollParents.push(s),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(),s=(t=this._trigger)==null?void 0:t.getBoundingClientRect();if(s!=null&&o!=null){const a=this._scrollParents.map(ce=>ce.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,o,a));let d=this._currentPlacement.indexOf("top")!==-1,c=this._currentPlacement.indexOf("bottom")!==-1,h=this._currentPlacement.indexOf("left")!==-1,v=this._currentPlacement.indexOf("right")!==-1;const f=this._currentPlacement.indexOf("-start")!==-1,_=this._currentPlacement.indexOf("-end")!==-1;let $=.5,E=.5,k=.5,z=.5,Ue=0,Ee=0;if(this.placement==="auto"){const ce=this._scrollParents[0],Ht=ce.clientWidth,Ke=ce.clientHeight,wt=s.x-o.width,$t=Ht-(s.x+s.width)-o.width,ar=s.y-o.height,zi=Ke-(s.y+s.height)-o.height;let Ai=.5,Li=.5;const Fb=Math.max(wt,$t);let cl=Math.max(ar,zi);zi>ar&&zi>this.margin&&(cl+=9999),Fb>cl?(wt>$t?(Ai=0,h=!0):(Ai=1,v=!0),Ue=this.margin):(ar>zi?(Li=0,d=!0):(Li=1,c=!0),Ee=this.margin),$=Ai,E=Li,k=1-Ai,z=1-Li}else d&&(z=1,E=0),c&&(z=0,E=1),(d||c)&&(Ee=this.margin,f&&(k=0,$=0),_&&(k=1,$=1)),h&&(k=1,$=0),v&&(k=0,$=1),(h||v)&&(Ue=this.margin,f&&(z=0,E=0),_&&(z=1,E=1));const nr=-o.width*k+s.width*$-Ue*(k*2-1),sr=-o.height*z+s.height*E-Ee*(z*2-1);let qe=nr,We=sr;d||c?(this._scrollParents.forEach((ce,Ht)=>{const Ke=ce===document.body?0:a[Ht].x,wt=-s.x+Ke,$t=ce.clientWidth-s.x-s.width+nr+Ke-(o.width-s.width)*(1-$);qe=_i(qe,wt,$t)}),qe=_i(qe,-o.width,s.width)):(h||v)&&(this._scrollParents.forEach((ce,Ht)=>{const Ke=ce===document.body?0:a[Ht].y,wt=-s.y+Ke,$t=ce.clientHeight-s.y-s.height+sr+Ke-(o.height-s.height)*(1-E);We=_i(We,wt,$t)}),We=_i(We,-o.height,s.height)),(this._positionX!==qe||this._positionY!==We)&&(this._positionX=qe,this._positionY=We,nr===qe&&sr===We&&this._stopScrollListener(),r.style.left=`${this._positionX}px`,r.style.top=`${this._positionY}px`)}}_managePlacementFlip(e,t,r){const o=e.split("-"),s=o[0],a=o[1]||null;let d;return this._scrollParents.some((c,h)=>{const v=c===document.body?0:r[h].x,f=c===document.body?0:r[h].y;return s==="top"&&t.y-2<=f?(d="bottom",!0):s==="bottom"&&t.y+t.height+2>=c.clientHeight+f?(d="top",!0):s==="left"&&t.x-2<=v?(d="right",!0):s==="right"&&t.x+t.width+2>=c.clientWidth+v?(d="left",!0):!1}),d?(this._startScrollListener(),d+(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>`}},n.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
315
|
--uui-popover-toggle-slot-button-border-radius
|
|
316
316
|
);--uui-button-merge-border-left:var(
|
|
317
317
|
--uui-popover-toggle-slot-button-merge-border-left
|
|
318
|
-
)}`],Ut([I("#container")],n.UUIPopoverElement.prototype,"containerElement",2),Ut([l({type:Number})],n.UUIPopoverElement.prototype,"margin",2),Ut([l({type:String,reflect:!0})],n.UUIPopoverElement.prototype,"placement",1),Ut([l({type:Boolean,reflect:!0})],n.UUIPopoverElement.prototype,"open",1),n.UUIPopoverElement=Ut([b("uui-popover")],n.UUIPopoverElement);var Op=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,Ts=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Op(e,t,o),o};const zp=(i,e,t)=>Math.min(Math.max(i,e),t);n.UUIProgressBarElement=class extends m{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=zp(e,0,100),this.requestUpdate("progress",t)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${te(this._getProgressStyle())}"></div>`}},n.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%}`],Ts([l({type:Number})],n.UUIProgressBarElement.prototype,"progress",1),n.UUIProgressBarElement=Ts([b("uui-progress-bar")],n.UUIProgressBarElement);var Ap=Object.defineProperty,js=Object.getOwnPropertySymbols,Lp=Object.prototype.hasOwnProperty,Tp=Object.prototype.propertyIsEnumerable,Ns=(i,e,t)=>e in i?Ap(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ms=(i,e)=>{for(var t in e||(e={}))Lp.call(e,t)&&Ns(i,t,e[t]);if(js)for(var t of js(e))Tp.call(e,t)&&Ns(i,t,e[t]);return i};let rt=class extends C{constructor(e,t={}){super(e,Ms(Ms({},{bubbles:!0}),t))}};rt.CHANGE="change";var jp=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,Ae=(i,e,t,r)=>{for(var o=r>1?void 0:r?Np(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jp(e,t,o),o},Mp=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Ds=(i,e,t)=>(Mp(i,e,"read from private field"),t?t.call(i):e.get(i)),Hs=(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)},vo,go;n.UUIRadioElement=class extends m{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,Hs(this,vo,()=>{this.style.setProperty("--uui-show-focus-outline","1")}),Hs(this,go,()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("mousedown",Ds(this,go)),this.addEventListener("blur",Ds(this,vo))}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 rt(rt.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>`}},vo=new WeakMap,go=new WeakMap,n.UUIRadioElement.styles=[jt,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:${Nt}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],Ae([I("#input")],n.UUIRadioElement.prototype,"inputElement",2),Ae([l({type:String})],n.UUIRadioElement.prototype,"name",2),Ae([l({type:String})],n.UUIRadioElement.prototype,"value",2),Ae([l({type:String})],n.UUIRadioElement.prototype,"label",2),Ae([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"checked",1),Ae([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"disabled",1),n.UUIRadioElement=Ae([b("uui-radio")],n.UUIRadioElement);var Dp=Object.defineProperty,Bs=Object.getOwnPropertySymbols,Hp=Object.prototype.hasOwnProperty,Bp=Object.prototype.propertyIsEnumerable,Rs=(i,e,t)=>e in i?Dp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Vs=(i,e)=>{for(var t in e||(e={}))Hp.call(e,t)&&Rs(i,t,e[t]);if(Bs)for(var t of Bs(e))Bp.call(e,t)&&Rs(i,t,e[t]);return i};let si=class extends C{constructor(e,t={}){super(e,Vs(Vs({},{bubbles:!0}),t))}};si.CHANGE="change";var Rp=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,Fs=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rp(e,t,o),o};const Fp="ArrowLeft",Gp="ArrowUp",qp="ArrowRight",Wp="ArrowDown",Kp=" ";n.UUIRadioGroupElement=class extends J(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(rt.CHANGE,this._handleSelectOnClick),o.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=e.target.assignedElements({flatten:!0}).filter(o=>o instanceof n.UUIRadioElement),this._radioElements.length===0)return;this._radioElements.forEach(o=>{o.addEventListener(rt.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 s=(t+o*e)%r;if(s<0&&(s+=r),this._radioElements[s].disabled===!1)return this._radioElements[s];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 Fp:case Gp:{e.preventDefault(),this._selectPreviousElement();break}case qp:case Wp:{e.preventDefault(),this._selectNextElement();break}case Kp: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 si(si.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>`}},n.UUIRadioGroupElement.formAssociated=!0,n.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)}`],Fs([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"disabled",2),n.UUIRadioGroupElement=Fs([b("uui-radio-group")],n.UUIRadioGroupElement);var Yp=Object.defineProperty,Gs=Object.getOwnPropertySymbols,Xp=Object.prototype.hasOwnProperty,Zp=Object.prototype.propertyIsEnumerable,qs=(i,e,t)=>e in i?Yp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ws=(i,e)=>{for(var t in e||(e={}))Xp.call(e,t)&&qs(i,t,e[t]);if(Gs)for(var t of Gs(e))Zp.call(e,t)&&qs(i,t,e[t]);return i};let N=class extends C{constructor(e,t={}){super(e,Ws(Ws({},{bubbles:!0}),t))}};N.INPUT="input",N.CHANGE="change";var Qp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,S=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qp(e,t,o),o},e0=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},t0=(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)},i0=(i,e,t)=>(e0(i,e,"access private method"),t),fo,Ks;const Z=12,Ys=24;n.UUIRangeSliderElement=class extends J(m){constructor(){super(),t0(this,fo),this.disabled=!1,this.step=1,this.hideStepValues=!1,this.min=0,this.max=100,this._valueLow=0,this._valueHigh=100,this._trackWidth=0,this._currentThumbFocus="low",this._startPos=0,this._startLow=0,this._startHigh=0,this._onMouseDown=e=>{if(e.preventDefault(),this.disabled)return;window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove);const t=e.composedPath()[0],r=e.pageX;if(t==this._bothThumbsTarget?this._grabbingBoth=!0:this._grabbingBoth=!1,this._grabbingBoth){this._saveStartPoint(r,this.valueLow,this.valueHigh);return}this._moveThumb(r)},this._onMouseMove=e=>{e.preventDefault();const t=e.pageX,r=this._getValue(t);this._grabbingBoth?this._moveBoth(t):this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(r)),this.dispatchEvent(new N(N.INPUT))},this._onMouseUp=()=>{this._stop(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this._onTouchStart=e=>{if(e.preventDefault(),this.disabled)return;window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove);const t=e.composedPath()[0],r=e.touches[0].pageX;if(t==this._bothThumbsTarget?this._grabbingBoth=!0:this._grabbingBoth=!1,this._grabbingBoth){this._saveStartPoint(r,this.valueLow,this.valueHigh);return}this._moveThumb(r)},this._onTouchMove=e=>{const t=e.touches[0].pageX,r=this._getValue(t);this._grabbingBoth?this._moveBoth(t):this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(r)),this.dispatchEvent(new N(N.INPUT))},this._onTouchEnd=()=>{this._stop(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this.addEventListener("keypress",this._onKeypress),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),this.addValidator("stepMismatch",()=>"Step property needs to be higher than 0",()=>this.step<=0),this.addValidator("stepMismatch",()=>"Maxmimum gap needs to be higher than minimum gap",()=>!!this.maxGap&&!!this.minGap&&this.maxGap<=this.minGap),this.addValidator("rangeUnderflow",()=>`The lower end value (${this.valueLow}) cannot be below the the minimum value setting (${this.min})`,()=>this.valueLow<this.min),this.addValidator("rangeOverflow",()=>`The higher end value (${this.valueHigh}) cannot be above the the maximum value setting (${this.max})`,()=>this.valueHigh>this.max)}get value(){return this._value}set value(e){if(e instanceof String){super.value=e;const t=e.split(",");this.valueLow=parseInt(t[0]),this.valueHigh=parseInt(t[1])}}set valueLow(e){const t=this._valueHigh;if(e<=this.min){this._valueLow=this.min,super.value=`${this.min},${this.valueHigh}`,this.requestUpdate("valueLow",t);return}if(e>=this.valueHigh-this.step){this._valueLow=this.valueHigh-this.step,super.value=`${this.valueHigh-this.step},${this.valueHigh}`,this.requestUpdate("valueLow",t);return}this._valueLow=e,super.value=`${e},${this.valueHigh}`,this.requestUpdate("valueLow",t)}get valueLow(){return this._valueLow}set valueHigh(e){const t=this._valueHigh;if(e>=this.max){this._valueHigh=this.max,super.value=`${this.valueLow},${this.max}`,this.requestUpdate("valueHigh",t);return}if(e<=this.valueLow+this.step){this._valueHigh=this.valueLow+this.step,super.value=`${this.valueLow},${this.valueLow+this.step}`,this.requestUpdate("valueHigh",t);return}this._valueHigh=e,super.value=`${this.valueLow},${e}`,this.requestUpdate("valueHigh",t)}get valueHigh(){return this._valueHigh}getFormElement(){return this._currentInputFocus?this._currentInputFocus:this._inputLow}focus(){this._currentInputFocus?this._currentInputFocus.focus():this._inputLow.focus()}_onKeypress(e){e.key=="Enter"&&this.submit()}_sliderLowThumbPosition(){const e=(this.valueLow-this.min)/(this.max-this.min);return`${Math.floor(e*1e5)/1e3}%`}_sliderHighThumbPosition(){const e=(this.valueHigh-this.min)/(this.max-this.min);return`${Math.floor(e*1e5)/1e3}%`}_fillColor(){const e=(this.valueLow-this.min)/(this.max-this.min)*100,t=(this.valueHigh-this.min)/(this.max-this.min)*100;this._innerColor.style.left=`${e}%`,this._innerColor.style.right=`${100-t}%`}_moveThumb(e){const t=this._getValue(e);t>=this.valueHigh&&this._setThumb(this._thumbHigh),t<=this.valueLow&&this._setThumb(this._thumbLow),this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(t))}_stop(){this._grabbingBoth=!1,this.pristine=!1,this.dispatchEvent(new N(N.CHANGE))}_setThumb(e){this._currentThumbFocus=e===this._thumbLow?"low":"high",this._currentThumbFocus==="low"?this._currentInputFocus=this._inputLow:this._currentInputFocus=this._inputHigh,this.focus()}_setValueBasedOnCurrentThumb(e){this._currentThumbFocus==="low"?this.valueLow=e:this.valueHigh=e}_getValue(e){const t=(e-this._innerTrack.getBoundingClientRect().left)/(this._trackWidth-Z*2)*(this.max-this.min)+this.min;return Math.round(t/this.step)*this.step}_validateLowByMinGap(e){return!this.minGap||this.minGap<=this.step?e:e+this.minGap>=this.valueHigh?this.valueHigh-this.minGap:e}_validateLowByMaxGap(e){return this.maxGap&&this.valueHigh-e>=this.maxGap?this.valueHigh-this.maxGap:e}_validateHighByMinGap(e){return!this.minGap||this.minGap<=this.step?e:e<=this.valueLow+this.minGap?this.valueLow+this.minGap:e}_validateHighByMaxGap(e){return this.maxGap&&e>=this.valueLow+this.maxGap?this.valueLow+this.maxGap:e}_validateValueBasedOnCurrentThumb(e){if(this._currentThumbFocus=="low"){let r;return r=e<this.valueHigh-this.step?e:this.valueHigh-this.step,r=r>=this.min?r:this.min,r=this.minGap?this._validateLowByMinGap(r):r,r=this.maxGap?this._validateLowByMaxGap(r):r,r}let t;return t=e>this.valueLow+this.step?e:this.valueLow+this.step,t=t<=this.max?t:this.max,t=this.minGap?this._validateHighByMinGap(t):t,t=this.maxGap?this._validateHighByMaxGap(t):t,t}_saveStartPoint(e,t,r){this._startPos=e,this._startLow=t,this._startHigh=r}_moveBoth(e){const t=e-this._startPos,r=this.max-this.min,o=t/(this._trackWidth+Z*2),s=Math.round(o*r/this.step)*this.step,a=this._startLow+s,c=this._startHigh+s,h=this._getValidatedValues(a,c);a===h.low&&c===h.high&&(this.valueLow=a,this.valueHigh=c,this.dispatchEvent(new N(N.INPUT)))}_getValidatedValues(e,t){const r=e>this.min?e:this.min,o=t<this.max?t:this.max;return{low:r,high:o}}_onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new N(N.CHANGE))}_onLowInput(e){e.stopPropagation();let t=parseInt(this._inputLow.value);t=this._validateLowByMinGap(t),t=this._validateLowByMaxGap(t),this._inputLow.value=String(t),this.valueLow=t,this.dispatchEvent(new N(N.INPUT))}_onHighInput(e){e.stopPropagation();let t=parseInt(this._inputHigh.value);t=this._validateHighByMinGap(t),t=this._validateHighByMaxGap(t),this._inputHigh.value=String(t),this.valueHigh=t,this.dispatchEvent(new N(N.INPUT))}connectedCallback(){super.connectedCallback(),i0(this,fo,Ks).call(this),window.addEventListener("resize",()=>{this._trackWidth=this._outerTrack.offsetWidth})}updated(e){super.updated(e),this._trackWidth=this._outerTrack.offsetWidth,this._fillColor()}render(){return u`
|
|
318
|
+
)}`],Tt([x("#container")],n.UUIPopoverElement.prototype,"containerElement",2),Tt([l({type:Number})],n.UUIPopoverElement.prototype,"margin",2),Tt([l({type:String,reflect:!0})],n.UUIPopoverElement.prototype,"placement",1),Tt([l({type:Boolean,reflect:!0})],n.UUIPopoverElement.prototype,"open",1),n.UUIPopoverElement=Tt([b("uui-popover")],n.UUIPopoverElement);var T0=Object.defineProperty,j0=Object.getOwnPropertyDescriptor,Re=(i,e,t,r)=>{for(var o=r>1?void 0:r?j0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&T0(e,t,o),o},Do=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},R=(i,e,t)=>(Do(i,e,"read from private field"),t?t.call(i):e.get(i)),Ve=(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)},N0=(i,e,t,r)=>(Do(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Ua=(i,e,t)=>(Do(i,e,"access private method"),t),bt,Ho,wi,mt,jt,Bo,$i,Ro;n.UUIPopoverContainerElement=class extends m{constructor(){super(...arguments),Ve(this,$i),this.margin=0,this._placement="bottom-start",this._open=!1,this._actualPlacement=this._placement,Ve(this,bt,null),Ve(this,Ho,e=>{(!e.relatedTarget||!this.contains(e.relatedTarget))&&(this.hidePopover(),this._open=!1)}),Ve(this,wi,async e=>{var t;if(this._open=e.newState==="open",N0(this,bt,Gc(this,"popovertarget",this.id)),(t=R(this,bt))==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",R(this,mt));return}document.addEventListener("scroll",R(this,mt)),requestAnimationFrame(()=>{R(this,mt).call(this)})}),Ve(this,mt,()=>{this._open&&(this._actualPlacement=this._placement,this.style.opacity="0",R(this,jt).call(this,3))}),Ve(this,jt,e=>{if(R(this,Bo).call(this),e--,R(this,bt)===null)return;const t=this._actualPlacement.indexOf("top")!==-1,r=this._actualPlacement.indexOf("bottom")!==-1,o=this._actualPlacement.indexOf("left")!==-1,s=this._actualPlacement.indexOf("right")!==-1,a=this._actualPlacement.indexOf("-start")!==-1,d=this._actualPlacement.indexOf("-end")!==-1,c=R(this,bt).getBoundingClientRect(),h=this.getBoundingClientRect();let v=0,f=0;r&&(v=c.top+c.height,a&&(f=c.left),d&&(f=c.left+c.width-h.width),!a&&!d&&(f=c.left+c.width/2-h.width/2)),t&&(v=c.top-h.height,a&&(f=c.left),d&&(f=c.left+c.width-h.width),!a&&!d&&(f=c.left+c.width/2-h.width/2)),o&&(f=c.left-h.width,a&&(v=c.top),d&&(v=c.top+c.height-h.height),!a&&!d&&(v=c.top+c.height/2-h.height/2)),s&&(f=c.left+c.width,a&&(v=c.top),d&&(v=c.top+c.height-h.height),!a&&!d&&(v=c.top+c.height/2-h.height/2));const _=window.innerWidth,$=window.innerHeight,E=Math.min(0,c.top+c.height),k=Math.max(Math.min(v,$-h.height),c.top-h.height);if(Math.max(E,k)!==v&&(t||r)&&e>0){Ua(this,$i,Ro).call(this),R(this,jt).call(this,e);return}v=Math.max(E,k);const z=Math.min(0,c.left+c.width),Ue=Math.max(Math.min(f,_-h.width),c.left-h.width),Ee=Math.max(z,Ue);if(Ee!==f&&(o||s)&&e>0){Ua(this,$i,Ro).call(this),R(this,jt).call(this,e);return}f=Ee,(v+h.height<0||v>$||f+h.width<0||f>_)&&this.hidePopover(),this.style.transform=`translate(${f}px, ${v}px)`,this.style.opacity="1"}),Ve(this,Bo,()=>{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,R(this,mt).call(this)}connectedCallback(){if(super.connectedCallback(),this.addEventListener("focusout",R(this,Ho)),!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",R(this,wi))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",R(this,wi))}render(){return u`<slot></slot>`}},bt=new WeakMap,Ho=new WeakMap,wi=new WeakMap,mt=new WeakMap,jt=new WeakMap,Bo=new WeakMap,$i=new WeakSet,Ro=function(){const[i,e]=this._actualPlacement.split("-"),t=i==="top"?"bottom":i==="bottom"?"top":i==="left"?"right":"left";this._actualPlacement=`${t}-${e}`},n.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}`],Re([l({type:Number})],n.UUIPopoverContainerElement.prototype,"margin",2),Re([l({type:Boolean})],n.UUIPopoverContainerElement.prototype,"open",1),Re([l({type:String,reflect:!0})],n.UUIPopoverContainerElement.prototype,"placement",1),Re([g()],n.UUIPopoverContainerElement.prototype,"_placement",2),Re([g()],n.UUIPopoverContainerElement.prototype,"_open",2),Re([g()],n.UUIPopoverContainerElement.prototype,"_actualPlacement",2),n.UUIPopoverContainerElement=Re([b("uui-popover-container")],n.UUIPopoverContainerElement);var M0=Object.defineProperty,D0=Object.getOwnPropertyDescriptor,Ea=(i,e,t,r)=>{for(var o=r>1?void 0:r?D0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&M0(e,t,o),o};const H0=(i,e,t)=>Math.min(Math.max(i,e),t);n.UUIProgressBarElement=class extends m{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=H0(e,0,100),this.requestUpdate("progress",t)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${re(this._getProgressStyle())}"></div>`}},n.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%}`],Ea([l({type:Number})],n.UUIProgressBarElement.prototype,"progress",1),n.UUIProgressBarElement=Ea([b("uui-progress-bar")],n.UUIProgressBarElement);var B0=Object.defineProperty,ka=Object.getOwnPropertySymbols,R0=Object.prototype.hasOwnProperty,V0=Object.prototype.propertyIsEnumerable,Ia=(i,e,t)=>e in i?B0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,xa=(i,e)=>{for(var t in e||(e={}))R0.call(e,t)&&Ia(i,t,e[t]);if(ka)for(var t of ka(e))V0.call(e,t)&&Ia(i,t,e[t]);return i};let vt=class extends S{constructor(e,t={}){super(e,xa(xa({},{bubbles:!0}),t))}};vt.CHANGE="change";var F0=Object.defineProperty,G0=Object.getOwnPropertyDescriptor,Fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?G0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&F0(e,t,o),o},q0=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Ca=(i,e,t)=>(q0(i,e,"read from private field"),t?t.call(i):e.get(i)),Sa=(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)},Vo,Fo;n.UUIRadioElement=class extends m{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,Sa(this,Vo,()=>{this.style.setProperty("--uui-show-focus-outline","1")}),Sa(this,Fo,()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("mousedown",Ca(this,Fo)),this.addEventListener("blur",Ca(this,Vo))}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 vt(vt.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>`}},Vo=new WeakMap,Fo=new WeakMap,n.UUIRadioElement.styles=[Zt,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:${Qt}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],Fe([x("#input")],n.UUIRadioElement.prototype,"inputElement",2),Fe([l({type:String})],n.UUIRadioElement.prototype,"name",2),Fe([l({type:String})],n.UUIRadioElement.prototype,"value",2),Fe([l({type:String})],n.UUIRadioElement.prototype,"label",2),Fe([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"checked",1),Fe([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"disabled",1),n.UUIRadioElement=Fe([b("uui-radio")],n.UUIRadioElement);var W0=Object.defineProperty,Pa=Object.getOwnPropertySymbols,K0=Object.prototype.hasOwnProperty,Y0=Object.prototype.propertyIsEnumerable,Oa=(i,e,t)=>e in i?W0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,za=(i,e)=>{for(var t in e||(e={}))K0.call(e,t)&&Oa(i,t,e[t]);if(Pa)for(var t of Pa(e))Y0.call(e,t)&&Oa(i,t,e[t]);return i};let Ui=class extends S{constructor(e,t={}){super(e,za(za({},{bubbles:!0}),t))}};Ui.CHANGE="change";var X0=Object.defineProperty,Z0=Object.getOwnPropertyDescriptor,Aa=(i,e,t,r)=>{for(var o=r>1?void 0:r?Z0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&X0(e,t,o),o};const Q0="ArrowLeft",J0="ArrowUp",e1="ArrowRight",t1="ArrowDown",i1=" ";n.UUIRadioGroupElement=class extends ie(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(vt.CHANGE,this._handleSelectOnClick),o.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=e.target.assignedElements({flatten:!0}).filter(o=>o instanceof n.UUIRadioElement),this._radioElements.length===0)return;this._radioElements.forEach(o=>{o.addEventListener(vt.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 s=(t+o*e)%r;if(s<0&&(s+=r),this._radioElements[s].disabled===!1)return this._radioElements[s];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 Q0:case J0:{e.preventDefault(),this._selectPreviousElement();break}case e1:case t1:{e.preventDefault(),this._selectNextElement();break}case i1: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 Ui(Ui.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>`}},n.UUIRadioGroupElement.formAssociated=!0,n.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)}`],Aa([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"disabled",2),n.UUIRadioGroupElement=Aa([b("uui-radio-group")],n.UUIRadioGroupElement);var o1=Object.defineProperty,La=Object.getOwnPropertySymbols,r1=Object.prototype.hasOwnProperty,n1=Object.prototype.propertyIsEnumerable,Ta=(i,e,t)=>e in i?o1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ja=(i,e)=>{for(var t in e||(e={}))r1.call(e,t)&&Ta(i,t,e[t]);if(La)for(var t of La(e))n1.call(e,t)&&Ta(i,t,e[t]);return i};let M=class extends S{constructor(e,t={}){super(e,ja(ja({},{bubbles:!0}),t))}};M.INPUT="input",M.CHANGE="change";var s1=Object.defineProperty,a1=Object.getOwnPropertyDescriptor,P=(i,e,t,r)=>{for(var o=r>1?void 0:r?a1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&s1(e,t,o),o},l1=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},u1=(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)},c1=(i,e,t)=>(l1(i,e,"access private method"),t),Go,Na;const ee=12,Ma=24;n.UUIRangeSliderElement=class extends ie(m){constructor(){super(),u1(this,Go),this.disabled=!1,this.step=1,this.hideStepValues=!1,this.min=0,this.max=100,this._valueLow=0,this._valueHigh=100,this._trackWidth=0,this._currentThumbFocus="low",this._startPos=0,this._startLow=0,this._startHigh=0,this._onMouseDown=e=>{if(e.preventDefault(),this.disabled)return;window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove);const t=e.composedPath()[0],r=e.pageX;if(t==this._bothThumbsTarget?this._grabbingBoth=!0:this._grabbingBoth=!1,this._grabbingBoth){this._saveStartPoint(r,this.valueLow,this.valueHigh);return}this._moveThumb(r)},this._onMouseMove=e=>{e.preventDefault();const t=e.pageX,r=this._getValue(t);this._grabbingBoth?this._moveBoth(t):this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(r)),this.dispatchEvent(new M(M.INPUT))},this._onMouseUp=()=>{this._stop(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this._onTouchStart=e=>{if(e.preventDefault(),this.disabled)return;window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove);const t=e.composedPath()[0],r=e.touches[0].pageX;if(t==this._bothThumbsTarget?this._grabbingBoth=!0:this._grabbingBoth=!1,this._grabbingBoth){this._saveStartPoint(r,this.valueLow,this.valueHigh);return}this._moveThumb(r)},this._onTouchMove=e=>{const t=e.touches[0].pageX,r=this._getValue(t);this._grabbingBoth?this._moveBoth(t):this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(r)),this.dispatchEvent(new M(M.INPUT))},this._onTouchEnd=()=>{this._stop(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this.addEventListener("keypress",this._onKeypress),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),this.addValidator("stepMismatch",()=>"Step property needs to be higher than 0",()=>this.step<=0),this.addValidator("stepMismatch",()=>"Maxmimum gap needs to be higher than minimum gap",()=>!!this.maxGap&&!!this.minGap&&this.maxGap<=this.minGap),this.addValidator("rangeUnderflow",()=>`The lower end value (${this.valueLow}) cannot be below the the minimum value setting (${this.min})`,()=>this.valueLow<this.min),this.addValidator("rangeOverflow",()=>`The higher end value (${this.valueHigh}) cannot be above the the maximum value setting (${this.max})`,()=>this.valueHigh>this.max)}get value(){return this._value}set value(e){if(e instanceof String){super.value=e;const t=e.split(",");this.valueLow=parseInt(t[0]),this.valueHigh=parseInt(t[1])}}set valueLow(e){const t=this._valueHigh;if(e<=this.min){this._valueLow=this.min,super.value=`${this.min},${this.valueHigh}`,this.requestUpdate("valueLow",t);return}if(e>=this.valueHigh-this.step){this._valueLow=this.valueHigh-this.step,super.value=`${this.valueHigh-this.step},${this.valueHigh}`,this.requestUpdate("valueLow",t);return}this._valueLow=e,super.value=`${e},${this.valueHigh}`,this.requestUpdate("valueLow",t)}get valueLow(){return this._valueLow}set valueHigh(e){const t=this._valueHigh;if(e>=this.max){this._valueHigh=this.max,super.value=`${this.valueLow},${this.max}`,this.requestUpdate("valueHigh",t);return}if(e<=this.valueLow+this.step){this._valueHigh=this.valueLow+this.step,super.value=`${this.valueLow},${this.valueLow+this.step}`,this.requestUpdate("valueHigh",t);return}this._valueHigh=e,super.value=`${this.valueLow},${e}`,this.requestUpdate("valueHigh",t)}get valueHigh(){return this._valueHigh}getFormElement(){return this._currentInputFocus?this._currentInputFocus:this._inputLow}focus(){this._currentInputFocus?this._currentInputFocus.focus():this._inputLow.focus()}_onKeypress(e){e.key=="Enter"&&this.submit()}_sliderLowThumbPosition(){const e=(this.valueLow-this.min)/(this.max-this.min);return`${Math.floor(e*1e5)/1e3}%`}_sliderHighThumbPosition(){const e=(this.valueHigh-this.min)/(this.max-this.min);return`${Math.floor(e*1e5)/1e3}%`}_fillColor(){const e=(this.valueLow-this.min)/(this.max-this.min)*100,t=(this.valueHigh-this.min)/(this.max-this.min)*100;this._innerColor.style.left=`${e}%`,this._innerColor.style.right=`${100-t}%`}_moveThumb(e){const t=this._getValue(e);t>=this.valueHigh&&this._setThumb(this._thumbHigh),t<=this.valueLow&&this._setThumb(this._thumbLow),this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(t))}_stop(){this._grabbingBoth=!1,this.pristine=!1,this.dispatchEvent(new M(M.CHANGE))}_setThumb(e){this._currentThumbFocus=e===this._thumbLow?"low":"high",this._currentThumbFocus==="low"?this._currentInputFocus=this._inputLow:this._currentInputFocus=this._inputHigh,this.focus()}_setValueBasedOnCurrentThumb(e){this._currentThumbFocus==="low"?this.valueLow=e:this.valueHigh=e}_getValue(e){const t=(e-this._innerTrack.getBoundingClientRect().left)/(this._trackWidth-ee*2)*(this.max-this.min)+this.min;return Math.round(t/this.step)*this.step}_validateLowByMinGap(e){return!this.minGap||this.minGap<=this.step?e:e+this.minGap>=this.valueHigh?this.valueHigh-this.minGap:e}_validateLowByMaxGap(e){return this.maxGap&&this.valueHigh-e>=this.maxGap?this.valueHigh-this.maxGap:e}_validateHighByMinGap(e){return!this.minGap||this.minGap<=this.step?e:e<=this.valueLow+this.minGap?this.valueLow+this.minGap:e}_validateHighByMaxGap(e){return this.maxGap&&e>=this.valueLow+this.maxGap?this.valueLow+this.maxGap:e}_validateValueBasedOnCurrentThumb(e){if(this._currentThumbFocus=="low"){let r;return r=e<this.valueHigh-this.step?e:this.valueHigh-this.step,r=r>=this.min?r:this.min,r=this.minGap?this._validateLowByMinGap(r):r,r=this.maxGap?this._validateLowByMaxGap(r):r,r}let t;return t=e>this.valueLow+this.step?e:this.valueLow+this.step,t=t<=this.max?t:this.max,t=this.minGap?this._validateHighByMinGap(t):t,t=this.maxGap?this._validateHighByMaxGap(t):t,t}_saveStartPoint(e,t,r){this._startPos=e,this._startLow=t,this._startHigh=r}_moveBoth(e){const t=e-this._startPos,r=this.max-this.min,o=t/(this._trackWidth+ee*2),s=Math.round(o*r/this.step)*this.step,a=this._startLow+s,d=this._startHigh+s,c=this._getValidatedValues(a,d);a===c.low&&d===c.high&&(this.valueLow=a,this.valueHigh=d,this.dispatchEvent(new M(M.INPUT)))}_getValidatedValues(e,t){const r=e>this.min?e:this.min,o=t<this.max?t:this.max;return{low:r,high:o}}_onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new M(M.CHANGE))}_onLowInput(e){e.stopPropagation();let t=parseInt(this._inputLow.value);t=this._validateLowByMinGap(t),t=this._validateLowByMaxGap(t),this._inputLow.value=String(t),this.valueLow=t,this.dispatchEvent(new M(M.INPUT))}_onHighInput(e){e.stopPropagation();let t=parseInt(this._inputHigh.value);t=this._validateHighByMinGap(t),t=this._validateHighByMaxGap(t),this._inputHigh.value=String(t),this.valueHigh=t,this.dispatchEvent(new M(M.INPUT))}connectedCallback(){super.connectedCallback(),c1(this,Go,Na).call(this),window.addEventListener("resize",()=>{this._trackWidth=this._outerTrack.offsetWidth})}updated(e){super.updated(e),this._trackWidth=this._outerTrack.offsetWidth,this._fillColor()}render(){return u`
|
|
319
319
|
<div id="range-slider">
|
|
320
320
|
${this.renderNativeInputs()}
|
|
321
321
|
<div id="inner-track">
|
|
@@ -363,8 +363,8 @@
|
|
|
363
363
|
<rect x="9" y="9" height="3" rx="2" />
|
|
364
364
|
${this.renderSteps()}
|
|
365
365
|
</svg>
|
|
366
|
-
</div>`}renderSteps(){const e=(this.max-this.min)/this.step,t=(this._trackWidth-
|
|
367
|
-
${s.map(
|
|
366
|
+
</div>`}renderSteps(){const e=(this.max-this.min)/this.step,t=(this._trackWidth-ee*2)/e,r=this._trackWidth/(this.max-this.min);if(t>=Ma){let o=0;const s=[];for(o;o<=e;o++)s.push(o*t);const a=this.disabled==!1?"filled":"filled-disabled";return y`
|
|
367
|
+
${s.map(d=>{const c=d+ee;return c/r>this.valueLow-this.min&&c/r<this.valueHigh-this.min?y`<circle class="track-step ${a}" cx="${c}" cy="50%" r="4.5" />`:y`<circle class="track-step" cx="${c}" cy="50%" r="4.5" />`})}`}else return y``}renderStepValues(){if(this.hideStepValues)return U;const e=(this.max-this.min)/this.step;if((this._trackWidth-ee*2)/e>=Ma&&e<=20){let t=0;const r=[];for(t;t<=e;t++)r.push(t*this.step+this.min);return u` ${r.map(o=>u`<span><span>${o}</span></span>`)}`}else return U}},Go=new WeakSet,Na=function(i){this._value=i||`${this.valueLow},${this.valueHigh}`},n.UUIRangeSliderElement.styles=[Sn,p`
|
|
368
368
|
:host {
|
|
369
369
|
display: block;
|
|
370
370
|
min-height: 50px;
|
|
@@ -475,8 +475,8 @@
|
|
|
475
475
|
position: absolute;
|
|
476
476
|
height: 3px;
|
|
477
477
|
background-color: var(--uui-color-border-standalone,#c2c2c2);
|
|
478
|
-
left: ${
|
|
479
|
-
right: ${
|
|
478
|
+
left: ${ee}px; /* Match TRACK_MARGIN */
|
|
479
|
+
right: ${ee}px; /* Match TRACK_MARGIN */
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
#range-slider:hover #inner-track,
|
|
@@ -504,8 +504,8 @@
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
#step-values {
|
|
507
|
-
margin: 0 ${
|
|
508
|
-
padding-top: ${
|
|
507
|
+
margin: 0 ${ee}px; /* Match TRACK_MARGIN */
|
|
508
|
+
padding-top: ${ee+3}px;
|
|
509
509
|
display: flex;
|
|
510
510
|
align-items: flex-end;
|
|
511
511
|
box-sizing: border-box;
|
|
@@ -530,13 +530,13 @@
|
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
.svg-wrapper {
|
|
533
|
-
margin: 0 ${-1*
|
|
533
|
+
margin: 0 ${-1*ee}px;
|
|
534
534
|
height: 18px;
|
|
535
535
|
transform: translateY(-75%);
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
.svg-wrapper svg {
|
|
539
|
-
margin-top: ${
|
|
539
|
+
margin-top: ${ee/2}px;
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
/** FOCUS */
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
input[type='range']:disabled::-ms-thumb {
|
|
703
703
|
cursor: default;
|
|
704
704
|
}
|
|
705
|
-
`],n.UUIRangeSliderElement.formAssociated=!0,S([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"disabled",2),S([l({type:String})],n.UUIRangeSliderElement.prototype,"label",2),S([l({type:Number})],n.UUIRangeSliderElement.prototype,"step",2),S([l({type:Boolean,attribute:"hide-step-values"})],n.UUIRangeSliderElement.prototype,"hideStepValues",2),S([l({type:Number})],n.UUIRangeSliderElement.prototype,"min",2),S([l({type:Number})],n.UUIRangeSliderElement.prototype,"max",2),S([l({type:Number,attribute:"min-gap"})],n.UUIRangeSliderElement.prototype,"minGap",2),S([l({type:Number,attribute:"max-gap"})],n.UUIRangeSliderElement.prototype,"maxGap",2),S([l({type:String})],n.UUIRangeSliderElement.prototype,"value",1),S([l({type:Number,attribute:"value-low"})],n.UUIRangeSliderElement.prototype,"valueLow",1),S([l({type:Number,attribute:"value-high"})],n.UUIRangeSliderElement.prototype,"valueHigh",1),S([v()],n.UUIRangeSliderElement.prototype,"_trackWidth",2),S([v()],n.UUIRangeSliderElement.prototype,"_currentInputFocus",2),S([v()],n.UUIRangeSliderElement.prototype,"_currentThumbFocus",2),S([v()],n.UUIRangeSliderElement.prototype,"_grabbingBoth",2),S([v()],n.UUIRangeSliderElement.prototype,"_startPos",2),S([v()],n.UUIRangeSliderElement.prototype,"_startLow",2),S([v()],n.UUIRangeSliderElement.prototype,"_startHigh",2),S([I("#low-input")],n.UUIRangeSliderElement.prototype,"_inputLow",2),S([I("#high-input")],n.UUIRangeSliderElement.prototype,"_inputHigh",2),S([I("#range-slider")],n.UUIRangeSliderElement.prototype,"_outerTrack",2),S([I("#inner-track")],n.UUIRangeSliderElement.prototype,"_innerTrack",2),S([I("#low-thumb")],n.UUIRangeSliderElement.prototype,"_thumbLow",2),S([I("#high-thumb")],n.UUIRangeSliderElement.prototype,"_thumbHigh",2),S([I(".color")],n.UUIRangeSliderElement.prototype,"_innerColor",2),S([I(".color-target")],n.UUIRangeSliderElement.prototype,"_bothThumbsTarget",2),n.UUIRangeSliderElement=S([b("uui-range-slider")],n.UUIRangeSliderElement);var o0=Object.defineProperty,r0=Object.getOwnPropertyDescriptor,n0=(i,e,t,r)=>{for(var o=r>1?void 0:r?r0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&o0(e,t,o),o};n.UUIRefListElement=class extends m{render(){return u`<slot></slot>`}},n.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)}`],n.UUIRefListElement=n0([b("uui-ref-list")],n.UUIRefListElement);class nt extends C{}nt.OPEN="open";var s0=Object.defineProperty,a0=Object.getOwnPropertyDescriptor,yo=(i,e,t,r)=>{for(var o=r>1?void 0:r?a0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&s0(e,t,o),o};n.UUIRefElement=class extends At(Ve(m)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){e.stopPropagation(),this.dispatchEvent(new nt(nt.OPEN))}handleOpenKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new nt(nt.OPEN)))}},n.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})],n.UUIRefElement.prototype,"disabled",2),yo([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"error",2),n.UUIRefElement=yo([b("uui-ref")],n.UUIRefElement);var l0=Object.defineProperty,u0=Object.getOwnPropertyDescriptor,ai=(i,e,t,r)=>{for(var o=r>1?void 0:r?u0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&l0(e,t,o),o};n.UUIRefNodeElement=class extends n.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(),_(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>`}},n.UUIRefNodeElement.styles=[...n.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)}`],ai([l({type:String})],n.UUIRefNodeElement.prototype,"name",2),ai([l({type:String})],n.UUIRefNodeElement.prototype,"detail",2),ai([v()],n.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),n.UUIRefNodeElement=ai([b("uui-ref-node")],n.UUIRefNodeElement);var c0=Object.defineProperty,d0=Object.getOwnPropertyDescriptor,Xs=(i,e,t,r)=>{for(var o=r>1?void 0:r?d0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&c0(e,t,o),o};n.UUIRefNodeDataTypeElement=class extends n.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>`}},n.UUIRefNodeDataTypeElement.styles=[...n.UUIRefNodeElement.styles],Xs([l({type:String})],n.UUIRefNodeDataTypeElement.prototype,"alias",2),n.UUIRefNodeDataTypeElement=Xs([b("uui-ref-node-data-type")],n.UUIRefNodeDataTypeElement);var h0=Object.defineProperty,p0=Object.getOwnPropertyDescriptor,Zs=(i,e,t,r)=>{for(var o=r>1?void 0:r?p0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&h0(e,t,o),o};n.UUIRefNodeDocumentTypeElement=class extends n.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>`}},n.UUIRefNodeDocumentTypeElement.styles=[...n.UUIRefNodeElement.styles],Zs([l({type:String})],n.UUIRefNodeDocumentTypeElement.prototype,"alias",2),n.UUIRefNodeDocumentTypeElement=Zs([b("uui-ref-node-document-type")],n.UUIRefNodeDocumentTypeElement);var b0=Object.defineProperty,m0=Object.getOwnPropertyDescriptor,v0=(i,e,t,r)=>{for(var o=r>1?void 0:r?m0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&b0(e,t,o),o};n.UUIRefNodeFormElement=class extends n.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>'}},n.UUIRefNodeFormElement.styles=[...n.UUIRefNodeElement.styles],n.UUIRefNodeFormElement=v0([b("uui-ref-node-form")],n.UUIRefNodeFormElement);var g0=Object.defineProperty,f0=Object.getOwnPropertyDescriptor,Qs=(i,e,t,r)=>{for(var o=r>1?void 0:r?f0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&g0(e,t,o),o};n.UUIRefNodeMemberElement=class extends n.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>`}},n.UUIRefNodeMemberElement.styles=[...n.UUIRefNodeElement.styles],Qs([l({type:String,attribute:"group-name"})],n.UUIRefNodeMemberElement.prototype,"groupName",2),n.UUIRefNodeMemberElement=Qs([b("uui-ref-node-member")],n.UUIRefNodeMemberElement);var y0=Object.defineProperty,_0=Object.getOwnPropertyDescriptor,_o=(i,e,t,r)=>{for(var o=r>1?void 0:r?_0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&y0(e,t,o),o};n.UUIRefNodePackageElement=class extends n.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>`}},n.UUIRefNodePackageElement.styles=[...n.UUIRefNodeElement.styles],_o([l({type:String})],n.UUIRefNodePackageElement.prototype,"version",2),_o([l({type:String})],n.UUIRefNodePackageElement.prototype,"author",2),n.UUIRefNodePackageElement=_o([b("uui-ref-node-package")],n.UUIRefNodePackageElement);var w0=Object.defineProperty,U0=Object.getOwnPropertyDescriptor,Js=(i,e,t,r)=>{for(var o=r>1?void 0:r?U0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&w0(e,t,o),o};n.UUIRefNodeUserElement=class extends n.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>`}},n.UUIRefNodeUserElement.styles=[...n.UUIRefNodeElement.styles],Js([l({type:String,attribute:"group-name"})],n.UUIRefNodeUserElement.prototype,"groupName",2),n.UUIRefNodeUserElement=Js([b("uui-ref-node-user")],n.UUIRefNodeUserElement);var $0=Object.defineProperty,E0=Object.getOwnPropertyDescriptor,ea=(i,e,t,r)=>{for(var o=r>1?void 0:r?E0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$0(e,t,o),o};n.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>`}},n.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}`],ea([l({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],n.UUIScrollContainerElement.prototype,"enforceScroll",2),n.UUIScrollContainerElement=ea([b("uui-scroll-container")],n.UUIScrollContainerElement);var k0=Object.defineProperty,ta=Object.getOwnPropertySymbols,I0=Object.prototype.hasOwnProperty,x0=Object.prototype.propertyIsEnumerable,ia=(i,e,t)=>e in i?k0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,oa=(i,e)=>{for(var t in e||(e={}))I0.call(e,t)&&ia(i,t,e[t]);if(ta)for(var t of ta(e))x0.call(e,t)&&ia(i,t,e[t]);return i};let li=class extends C{constructor(e,t={}){super(e,oa(oa({},{bubbles:!0}),t))}};li.CHANGE="change";var C0=Object.defineProperty,S0=Object.getOwnPropertyDescriptor,ne=(i,e,t,r)=>{for(var o=r>1?void 0:r?S0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&C0(e,t,o),o};n.UUISelectElement=class extends J(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 li(li.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`${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>`}},n.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)}`],ne([l({type:String})],n.UUISelectElement.prototype,"label",2),ne([l()],n.UUISelectElement.prototype,"placeholder",2),ne([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"disabled",2),ne([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"error",2),ne([l({type:Array,attribute:!1})],n.UUISelectElement.prototype,"options",2),ne([v()],n.UUISelectElement.prototype,"_groups",2),ne([l()],n.UUISelectElement.prototype,"disabledGroups",2),ne([v()],n.UUISelectElement.prototype,"_disabledGroups",2),ne([I("#native")],n.UUISelectElement.prototype,"_input",2),n.UUISelectElement=ne([b("uui-select")],n.UUISelectElement);const O0=p`
|
|
705
|
+
`],n.UUIRangeSliderElement.formAssociated=!0,P([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"disabled",2),P([l({type:String})],n.UUIRangeSliderElement.prototype,"label",2),P([l({type:Number})],n.UUIRangeSliderElement.prototype,"step",2),P([l({type:Boolean,attribute:"hide-step-values"})],n.UUIRangeSliderElement.prototype,"hideStepValues",2),P([l({type:Number})],n.UUIRangeSliderElement.prototype,"min",2),P([l({type:Number})],n.UUIRangeSliderElement.prototype,"max",2),P([l({type:Number,attribute:"min-gap"})],n.UUIRangeSliderElement.prototype,"minGap",2),P([l({type:Number,attribute:"max-gap"})],n.UUIRangeSliderElement.prototype,"maxGap",2),P([l({type:String})],n.UUIRangeSliderElement.prototype,"value",1),P([l({type:Number,attribute:"value-low"})],n.UUIRangeSliderElement.prototype,"valueLow",1),P([l({type:Number,attribute:"value-high"})],n.UUIRangeSliderElement.prototype,"valueHigh",1),P([g()],n.UUIRangeSliderElement.prototype,"_trackWidth",2),P([g()],n.UUIRangeSliderElement.prototype,"_currentInputFocus",2),P([g()],n.UUIRangeSliderElement.prototype,"_currentThumbFocus",2),P([g()],n.UUIRangeSliderElement.prototype,"_grabbingBoth",2),P([g()],n.UUIRangeSliderElement.prototype,"_startPos",2),P([g()],n.UUIRangeSliderElement.prototype,"_startLow",2),P([g()],n.UUIRangeSliderElement.prototype,"_startHigh",2),P([x("#low-input")],n.UUIRangeSliderElement.prototype,"_inputLow",2),P([x("#high-input")],n.UUIRangeSliderElement.prototype,"_inputHigh",2),P([x("#range-slider")],n.UUIRangeSliderElement.prototype,"_outerTrack",2),P([x("#inner-track")],n.UUIRangeSliderElement.prototype,"_innerTrack",2),P([x("#low-thumb")],n.UUIRangeSliderElement.prototype,"_thumbLow",2),P([x("#high-thumb")],n.UUIRangeSliderElement.prototype,"_thumbHigh",2),P([x(".color")],n.UUIRangeSliderElement.prototype,"_innerColor",2),P([x(".color-target")],n.UUIRangeSliderElement.prototype,"_bothThumbsTarget",2),n.UUIRangeSliderElement=P([b("uui-range-slider")],n.UUIRangeSliderElement);var d1=Object.defineProperty,h1=Object.getOwnPropertyDescriptor,p1=(i,e,t,r)=>{for(var o=r>1?void 0:r?h1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&d1(e,t,o),o};n.UUIRefListElement=class extends m{render(){return u`<slot></slot>`}},n.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)}`],n.UUIRefListElement=p1([b("uui-ref-list")],n.UUIRefListElement);class gt extends S{}gt.OPEN="open";var b1=Object.defineProperty,m1=Object.getOwnPropertyDescriptor,qo=(i,e,t,r)=>{for(var o=r>1?void 0:r?m1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&b1(e,t,o),o};n.UUIRefElement=class extends Kt(Je(m)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){e.stopPropagation(),this.dispatchEvent(new gt(gt.OPEN))}handleOpenKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new gt(gt.OPEN)))}},n.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}`],qo([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"disabled",2),qo([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"error",2),n.UUIRefElement=qo([b("uui-ref")],n.UUIRefElement);var v1=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,Ei=(i,e,t,r)=>{for(var o=r>1?void 0:r?g1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&v1(e,t,o),o};n.UUIRefNodeElement=class extends n.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>`}},n.UUIRefNodeElement.styles=[...n.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)}`],Ei([l({type:String})],n.UUIRefNodeElement.prototype,"name",2),Ei([l({type:String})],n.UUIRefNodeElement.prototype,"detail",2),Ei([g()],n.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),n.UUIRefNodeElement=Ei([b("uui-ref-node")],n.UUIRefNodeElement);var f1=Object.defineProperty,y1=Object.getOwnPropertyDescriptor,Da=(i,e,t,r)=>{for(var o=r>1?void 0:r?y1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&f1(e,t,o),o};n.UUIRefNodeDataTypeElement=class extends n.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>`}},n.UUIRefNodeDataTypeElement.styles=[...n.UUIRefNodeElement.styles],Da([l({type:String})],n.UUIRefNodeDataTypeElement.prototype,"alias",2),n.UUIRefNodeDataTypeElement=Da([b("uui-ref-node-data-type")],n.UUIRefNodeDataTypeElement);var _1=Object.defineProperty,w1=Object.getOwnPropertyDescriptor,Ha=(i,e,t,r)=>{for(var o=r>1?void 0:r?w1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_1(e,t,o),o};n.UUIRefNodeDocumentTypeElement=class extends n.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>`}},n.UUIRefNodeDocumentTypeElement.styles=[...n.UUIRefNodeElement.styles],Ha([l({type:String})],n.UUIRefNodeDocumentTypeElement.prototype,"alias",2),n.UUIRefNodeDocumentTypeElement=Ha([b("uui-ref-node-document-type")],n.UUIRefNodeDocumentTypeElement);var $1=Object.defineProperty,U1=Object.getOwnPropertyDescriptor,E1=(i,e,t,r)=>{for(var o=r>1?void 0:r?U1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$1(e,t,o),o};n.UUIRefNodeFormElement=class extends n.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>'}},n.UUIRefNodeFormElement.styles=[...n.UUIRefNodeElement.styles],n.UUIRefNodeFormElement=E1([b("uui-ref-node-form")],n.UUIRefNodeFormElement);var k1=Object.defineProperty,I1=Object.getOwnPropertyDescriptor,Ba=(i,e,t,r)=>{for(var o=r>1?void 0:r?I1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&k1(e,t,o),o};n.UUIRefNodeMemberElement=class extends n.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>`}},n.UUIRefNodeMemberElement.styles=[...n.UUIRefNodeElement.styles],Ba([l({type:String,attribute:"group-name"})],n.UUIRefNodeMemberElement.prototype,"groupName",2),n.UUIRefNodeMemberElement=Ba([b("uui-ref-node-member")],n.UUIRefNodeMemberElement);var x1=Object.defineProperty,C1=Object.getOwnPropertyDescriptor,Wo=(i,e,t,r)=>{for(var o=r>1?void 0:r?C1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&x1(e,t,o),o};n.UUIRefNodePackageElement=class extends n.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>`}},n.UUIRefNodePackageElement.styles=[...n.UUIRefNodeElement.styles],Wo([l({type:String})],n.UUIRefNodePackageElement.prototype,"version",2),Wo([l({type:String})],n.UUIRefNodePackageElement.prototype,"author",2),n.UUIRefNodePackageElement=Wo([b("uui-ref-node-package")],n.UUIRefNodePackageElement);var S1=Object.defineProperty,P1=Object.getOwnPropertyDescriptor,Ra=(i,e,t,r)=>{for(var o=r>1?void 0:r?P1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&S1(e,t,o),o};n.UUIRefNodeUserElement=class extends n.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>`}},n.UUIRefNodeUserElement.styles=[...n.UUIRefNodeElement.styles],Ra([l({type:String,attribute:"group-name"})],n.UUIRefNodeUserElement.prototype,"groupName",2),n.UUIRefNodeUserElement=Ra([b("uui-ref-node-user")],n.UUIRefNodeUserElement);var O1=Object.defineProperty,z1=Object.getOwnPropertyDescriptor,Va=(i,e,t,r)=>{for(var o=r>1?void 0:r?z1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&O1(e,t,o),o};n.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>`}},n.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}`],Va([l({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],n.UUIScrollContainerElement.prototype,"enforceScroll",2),n.UUIScrollContainerElement=Va([b("uui-scroll-container")],n.UUIScrollContainerElement);var A1=Object.defineProperty,Fa=Object.getOwnPropertySymbols,L1=Object.prototype.hasOwnProperty,T1=Object.prototype.propertyIsEnumerable,Ga=(i,e,t)=>e in i?A1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,qa=(i,e)=>{for(var t in e||(e={}))L1.call(e,t)&&Ga(i,t,e[t]);if(Fa)for(var t of Fa(e))T1.call(e,t)&&Ga(i,t,e[t]);return i};let ki=class extends S{constructor(e,t={}){super(e,qa(qa({},{bubbles:!0}),t))}};ki.CHANGE="change";var j1=Object.defineProperty,N1=Object.getOwnPropertyDescriptor,le=(i,e,t,r)=>{for(var o=r>1?void 0:r?N1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&j1(e,t,o),o};n.UUISelectElement=class extends ie(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 ki(ki.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>`}},n.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})],n.UUISelectElement.prototype,"label",2),le([l()],n.UUISelectElement.prototype,"placeholder",2),le([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"disabled",2),le([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"error",2),le([l({type:Array,attribute:!1})],n.UUISelectElement.prototype,"options",2),le([g()],n.UUISelectElement.prototype,"_groups",2),le([l()],n.UUISelectElement.prototype,"disabledGroups",2),le([g()],n.UUISelectElement.prototype,"_disabledGroups",2),le([x("#native")],n.UUISelectElement.prototype,"_input",2),n.UUISelectElement=le([b("uui-select")],n.UUISelectElement);const M1=p`
|
|
706
706
|
input[type='range'] {
|
|
707
707
|
left: 0;
|
|
708
708
|
position: absolute;
|
|
@@ -809,15 +809,15 @@
|
|
|
809
809
|
input[type='range']:focus::-ms-fill-upper {
|
|
810
810
|
background: transparent;
|
|
811
811
|
}
|
|
812
|
-
`;var
|
|
813
|
-
${i.map(t=>{if(e>=
|
|
814
|
-
`,
|
|
812
|
+
`;var D1=Object.defineProperty,Wa=Object.getOwnPropertySymbols,H1=Object.prototype.hasOwnProperty,B1=Object.prototype.propertyIsEnumerable,Ka=(i,e,t)=>e in i?D1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ya=(i,e)=>{for(var t in e||(e={}))H1.call(e,t)&&Ka(i,t,e[t]);if(Wa)for(var t of Wa(e))B1.call(e,t)&&Ka(i,t,e[t]);return i};let Ge=class extends S{constructor(e,t={}){super(e,Ya(Ya({},{bubbles:!0}),t))}};Ge.INPUT="input",Ge.CHANGE="change";var R1=Object.defineProperty,V1=Object.getOwnPropertyDescriptor,G=(i,e,t,r)=>{for(var o=r>1?void 0:r?V1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&R1(e,t,o),o};const Nt=12,Xa=24,F1=(i,e)=>y`
|
|
813
|
+
${i.map(t=>{if(e>=Xa){const r=Math.round(Nt+e*i.indexOf(t));return y`<circle class="track-step" cx="${r}" cy="50%" r="4.5" />`}return y``})}
|
|
814
|
+
`,G1=(i,e,t)=>t?U:u`<div id="step-values">
|
|
815
815
|
${i.map(r=>u` <span
|
|
816
816
|
><span>
|
|
817
|
-
${i.length<=20&&e>=
|
|
817
|
+
${i.length<=20&&e>=Xa?r.toFixed(0):U}
|
|
818
818
|
</span></span
|
|
819
819
|
>`)}
|
|
820
|
-
</div>`,
|
|
820
|
+
</div>`,q1=(i,e,t)=>Array.from({length:(e-i)/t+1},(r,o)=>i+o*t);n.UUISliderElement=class extends ie(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=q1(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-Nt*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 Ge(Ge.INPUT))}_onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Ge(Ge.CHANGE))}render(){return u`
|
|
821
821
|
<input
|
|
822
822
|
id="input"
|
|
823
823
|
type="range"
|
|
@@ -832,17 +832,17 @@
|
|
|
832
832
|
<div id="track" aria-hidden="true">
|
|
833
833
|
<svg height="100%" width="100%">
|
|
834
834
|
<rect x="9" y="9" height="3" rx="2" />
|
|
835
|
-
${
|
|
835
|
+
${F1(this._steps,this._stepWidth)}
|
|
836
836
|
</svg>
|
|
837
837
|
|
|
838
838
|
<div id="track-inner" aria-hidden="true">
|
|
839
|
-
<div id="thumb" style=${
|
|
839
|
+
<div id="thumb" style=${re({left:this._sliderPosition})}>
|
|
840
840
|
<div id="thumb-label">${this.value}</div>
|
|
841
841
|
</div>
|
|
842
842
|
</div>
|
|
843
843
|
</div>
|
|
844
|
-
${
|
|
845
|
-
`}},n.UUISliderElement.formAssociated=!0,n.UUISliderElement.styles=[
|
|
844
|
+
${G1(this._steps,this._stepWidth,this.hideStepValues)}
|
|
845
|
+
`}},n.UUISliderElement.formAssociated=!0,n.UUISliderElement.styles=[Sn,M1,p`
|
|
846
846
|
:host {
|
|
847
847
|
display: inline-block;
|
|
848
848
|
width: 100%;
|
|
@@ -890,8 +890,8 @@
|
|
|
890
890
|
|
|
891
891
|
#track-inner {
|
|
892
892
|
position: absolute;
|
|
893
|
-
left: ${
|
|
894
|
-
right: ${
|
|
893
|
+
left: ${Nt}px; /* Match TRACK_MARGIN */
|
|
894
|
+
right: ${Nt}px; /* Match TRACK_MARGIN */
|
|
895
895
|
}
|
|
896
896
|
|
|
897
897
|
#thumb {
|
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
#step-values {
|
|
953
|
-
margin: 0 ${
|
|
953
|
+
margin: 0 ${Nt}px; /* Match TRACK_MARGIN */
|
|
954
954
|
margin-top: 6px;
|
|
955
955
|
display: flex;
|
|
956
956
|
align-items: flex-end;
|
|
@@ -981,6 +981,6 @@
|
|
|
981
981
|
:host(:not([pristine]):invalid) #thumb:after {
|
|
982
982
|
background-color: var(--uui-color-danger,#d42054);
|
|
983
983
|
}
|
|
984
|
-
`],V([l({type:Boolean,attribute:"hide-step-values"})],n.UUISliderElement.prototype,"hideStepValues",2),V([l({type:Number})],n.UUISliderElement.prototype,"min",2),V([l({type:Number})],n.UUISliderElement.prototype,"max",2),V([l({type:Number})],n.UUISliderElement.prototype,"step",2),V([l({type:String})],n.UUISliderElement.prototype,"value",1),V([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"disabled",2),V([l({type:String})],n.UUISliderElement.prototype,"label",2),V([I("#input")],n.UUISliderElement.prototype,"_input",2),V([I("#track")],n.UUISliderElement.prototype,"_track",2),V([v()],n.UUISliderElement.prototype,"_stepWidth",2),V([v()],n.UUISliderElement.prototype,"_steps",2),V([v()],n.UUISliderElement.prototype,"_sliderPosition",2),n.UUISliderElement=V([b("uui-slider")],n.UUISliderElement);var D0=Object.defineProperty,H0=Object.getOwnPropertyDescriptor,la=(i,e,t,r)=>{for(var o=r>1?void 0:r?H0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&D0(e,t,o),o};n.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>`}},n.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)}`],la([l({type:Boolean,reflect:!0})],n.UUISymbolExpandElement.prototype,"open",2),n.UUISymbolExpandElement=la([b("uui-symbol-expand")],n.UUISymbolExpandElement);var B0=Object.defineProperty,R0=Object.getOwnPropertyDescriptor,ua=(i,e,t,r)=>{for(var o=r>1?void 0:r?R0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&B0(e,t,o),o};n.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>`}},n.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)}`],ua([l({type:Boolean,reflect:!0})],n.UUISymbolFileDropzoneElement.prototype,"error",2),n.UUISymbolFileDropzoneElement=ua([b("uui-symbol-file-dropzone")],n.UUISymbolFileDropzoneElement);var V0=Object.defineProperty,F0=Object.getOwnPropertyDescriptor,wo=(i,e,t,r)=>{for(var o=r>1?void 0:r?F0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&V0(e,t,o),o};n.UUISymbolFileThumbnailElement=class extends m{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),_(this,"uui-icon")}render(){return this.src?u`<img src="${this.src}" alt="${this.alt}">`:u`<uui-icon name="picture" .fallback="${Vu.strings[0]}"></uui-icon>`}},n.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)}`],wo([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"src",2),wo([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"alt",2),n.UUISymbolFileThumbnailElement=wo([b("uui-symbol-file-thumbnail")],n.UUISymbolFileThumbnailElement);var G0=Object.defineProperty,q0=Object.getOwnPropertyDescriptor,ca=(i,e,t,r)=>{for(var o=r>1?void 0:r?q0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&G0(e,t,o),o};n.UUISymbolLockElement=class extends m{constructor(){super(...arguments),this.open=!1}render(){return g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?g`<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>`:g`<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>`}},n.UUISymbolLockElement.styles=[p`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],ca([l({type:Boolean,reflect:!0})],n.UUISymbolLockElement.prototype,"open",2),n.UUISymbolLockElement=ca([b("uui-symbol-lock")],n.UUISymbolLockElement);var W0=Object.defineProperty,K0=Object.getOwnPropertyDescriptor,Y0=(i,e,t,r)=>{for(var o=r>1?void 0:r?K0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&W0(e,t,o),o};n.UUISymbolMoreElement=class extends m{render(){return u`•••`}},n.UUISymbolMoreElement.styles=[p`:host{display:inline-block;font-size:.8em;vertical-align:top;margin-top:.27em;line-height:1em;user-select:none}`],n.UUISymbolMoreElement=Y0([b("uui-symbol-more")],n.UUISymbolMoreElement);var X0=Object.defineProperty,Z0=Object.getOwnPropertyDescriptor,da=(i,e,t,r)=>{for(var o=r>1?void 0:r?Z0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&X0(e,t,o),o};n.UUISymbolSortElement=class extends bt(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>`}},n.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))}`],da([l({type:Boolean,reflect:!0})],n.UUISymbolSortElement.prototype,"descending",2),n.UUISymbolSortElement=da([b("uui-symbol-sort")],n.UUISymbolSortElement);var Q0=Object.defineProperty,J0=Object.getOwnPropertyDescriptor,e1=(i,e,t,r)=>{for(var o=r>1?void 0:r?J0(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Q0(e,t,o),o};n.UUITableElement=class extends m{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},n.UUITableElement.styles=[p`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],n.UUITableElement=e1([b("uui-table")],n.UUITableElement);var t1=Object.defineProperty,i1=Object.getOwnPropertyDescriptor,ui=(i,e,t,r)=>{for(var o=r>1?void 0:r?i1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&t1(e,t,o),o};n.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>`}},n.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}`],ui([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],n.UUITableCellElement.prototype,"disableChildInteraction",2),ui([l({type:Boolean,reflect:!0,attribute:"no-padding"})],n.UUITableCellElement.prototype,"noPadding",2),ui([l({type:Boolean,reflect:!0,attribute:"clip-text"})],n.UUITableCellElement.prototype,"clipText",2),n.UUITableCellElement=ui([b("uui-table-cell")],n.UUITableCellElement);var o1=Object.defineProperty,r1=Object.getOwnPropertyDescriptor,n1=(i,e,t,r)=>{for(var o=r>1?void 0:r?r1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&o1(e,t,o),o};n.UUITableColumnElement=class extends m{},n.UUITableColumnElement.styles=[p`:host{display:table-column}`],n.UUITableColumnElement=n1([b("uui-table-column")],n.UUITableColumnElement);var s1=Object.defineProperty,a1=Object.getOwnPropertyDescriptor,l1=(i,e,t,r)=>{for(var o=r>1?void 0:r?a1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&s1(e,t,o),o};n.UUITableHeadCellElement=class extends n.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},n.UUITableHeadCellElement.styles=[...n.UUITableCellElement.styles,p`:host{border-top:none}`],n.UUITableHeadCellElement=l1([b("uui-table-head-cell")],n.UUITableHeadCellElement);var u1=Object.defineProperty,c1=Object.getOwnPropertyDescriptor,d1=(i,e,t,r)=>{for(var o=r>1?void 0:r?c1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&u1(e,t,o),o};n.UUITableHeadElement=class extends m{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},n.UUITableHeadElement.styles=[p`:host{display:table-header-group;font-weight:700}`],n.UUITableHeadElement=d1([b("uui-table-head")],n.UUITableHeadElement);var h1=Object.defineProperty,p1=Object.getOwnPropertyDescriptor,ha=(i,e,t,r)=>{for(var o=r>1?void 0:r?p1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&h1(e,t,o),o};n.UUITableRowElement=class extends At(Ve(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 n.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},n.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)}`],ha([ye({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],n.UUITableRowElement.prototype,"slotCellNodes",2),n.UUITableRowElement=ha([b("uui-table-row")],n.UUITableRowElement);var b1=Object.defineProperty,m1=Object.getOwnPropertyDescriptor,ci=(i,e,t,r)=>{for(var o=r>1?void 0:r?m1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&b1(e,t,o),o};n.UUITabElement=class extends bt(Q("",m)){constructor(){super(),this.disabled=!1,this.addEventListener("click",this.onHostClick)}onHostClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}render(){return this.href?u`<a id="button" href="${x(this.disabled?void 0:this.href)}" target="${x(this.target||void 0)}" rel="${x(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>`}},n.UUITabElement.styles=[p`:host{color:var(--uui-tab-text,var(--uui-color-interactive,#1b264f));font-family:inherit}#button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);border:none;box-sizing:border-box;min-height:32px;font-size:inherit;height:100%;min-width:70px;background:0 0;color:inherit;cursor:pointer;font-family:inherit;text-decoration:none;line-height:normal}: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;height:0;width:calc(100% - 16px);left:auto;right:auto;background-color:var(--uui-color-current,#f5c1bc);bottom:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}#button:hover::before{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([active]) #button::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}: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)}`],ci([l({type:Boolean,reflect:!0})],n.UUITabElement.prototype,"disabled",2),ci([l({type:String})],n.UUITabElement.prototype,"href",2),ci([l({type:String})],n.UUITabElement.prototype,"target",2),n.UUITabElement=ci([b("uui-tab")],n.UUITabElement);var v1=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,pa=(i,e,t,r)=>{for(var o=r>1?void 0:r?g1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&v1(e,t,o),o};n.UUITabGroupElement=class extends m{constructor(){super(...arguments),this._tabElements=[],this._onTabClicked=e=>{const t=e.currentTarget;this._elementIsTabLike(t)&&(t.active=!0,this._tabElements.filter(r=>r!==t).forEach(r=>{this._elementIsTabLike(r)&&(r.active=!1)}))}}_setTabArray(){this._tabElements=this._slottedNodes?this._slottedNodes:[]}_onSlotChange(){this._tabElements.forEach(e=>{e.removeEventListener("click",this._onTabClicked)}),this._setTabArray(),this._tabElements.forEach(e=>{e.addEventListener("click",this._onTabClicked)})}_elementIsTabLike(e){return e instanceof n.UUITabElement||"active"in e}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tablist")}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>`}},n.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)}`],pa([ye({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],n.UUITabGroupElement.prototype,"_slottedNodes",2),n.UUITabGroupElement=pa([b("uui-tab-group")],n.UUITabGroupElement);class f1 extends C{}class y1 extends C{}var _1=Object.defineProperty,w1=Object.getOwnPropertyDescriptor,Uo=(i,e,t,r)=>{for(var o=r>1?void 0:r?w1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_1(e,t,o),o};n.UUITagElement=class extends m{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return u`<slot></slot>`}},n.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)}`],Uo([l({reflect:!0})],n.UUITagElement.prototype,"color",2),Uo([l({reflect:!0})],n.UUITagElement.prototype,"look",2),n.UUITagElement=Uo([b("uui-tag")],n.UUITagElement);var U1=Object.defineProperty,ba=Object.getOwnPropertySymbols,$1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable,ma=(i,e,t)=>e in i?U1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,va=(i,e)=>{for(var t in e||(e={}))$1.call(e,t)&&ma(i,t,e[t]);if(ba)for(var t of ba(e))E1.call(e,t)&&ma(i,t,e[t]);return i};class Et extends C{constructor(e,t={}){super(e,va(va({},{bubbles:!0}),t))}}Et.CHANGE="change",Et.INPUT="input";var k1=Object.defineProperty,I1=Object.getOwnPropertyDescriptor,M=(i,e,t,r)=>{for(var o=r>1?void 0:r?I1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&k1(e,t,o),o};n.UUITextareaElement=class extends J(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)}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 Et(Et.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>t.clientHeight&&(t.style.height=t.scrollHeight+"px"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=r}render(){return u`<textarea id="textarea" .rows="${this.rows}" .cols="${this.cols}" .value="${this.value}" .name="${this.name}" wrap="${x(this.wrap)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
|
|
985
|
-
</textarea>`}},n.UUITextareaElement.formAssociated=!0,n.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:var(--uui-size-5,15px);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()],n.UUITextareaElement.prototype,"placeholder",2),M([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"disabled",2),M([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"readonly",2),M([l({type:String})],n.UUITextareaElement.prototype,"name",2),M([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"error",2),M([l({type:Number})],n.UUITextareaElement.prototype,"minlength",2),M([l({type:String,attribute:"minlength-message"})],n.UUITextareaElement.prototype,"minlengthMessage",2),M([l({type:Number})],n.UUITextareaElement.prototype,"maxlength",2),M([l({type:String,attribute:"maxlength-message"})],n.UUITextareaElement.prototype,"maxlengthMessage",2),M([I("#textarea")],n.UUITextareaElement.prototype,"_textarea",2),M([l({type:Boolean,attribute:"auto-height",reflect:!0})],n.UUITextareaElement.prototype,"autoHeight",2),M([l({type:String})],n.UUITextareaElement.prototype,"label",2),M([l({type:Number})],n.UUITextareaElement.prototype,"rows",2),M([l({type:Number})],n.UUITextareaElement.prototype,"cols",2),M([l({type:String})],n.UUITextareaElement.prototype,"wrap",2),n.UUITextareaElement=M([b("uui-textarea")],n.UUITextareaElement);class D extends C{}D.OPENING="opening",D.OPENED="opened",D.CLOSING="closing",D.CLOSED="closed";var x1=Object.defineProperty,C1=Object.getOwnPropertyDescriptor,st=(i,e,t,r)=>{for(var o=r>1?void 0:r?C1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&x1(e,t,o),o};n.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 Hu(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(),_(this,"uui-button"),_(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="${qr.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},n.UUIToastNotificationElement.styles=[Ot,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)}`],st([l({reflect:!0})],n.UUIToastNotificationElement.prototype,"color",2),st([l({type:Number})],n.UUIToastNotificationElement.prototype,"autoClose",1),st([I("#toast")],n.UUIToastNotificationElement.prototype,"_toastEl",2),st([v()],n.UUIToastNotificationElement.prototype,"_animate",2),st([l({type:Boolean,reflect:!0})],n.UUIToastNotificationElement.prototype,"open",1),n.UUIToastNotificationElement=st([b("uui-toast-notification")],n.UUIToastNotificationElement);var S1=Object.defineProperty,O1=Object.getOwnPropertyDescriptor,ga=(i,e,t,r)=>{for(var o=r>1?void 0:r?O1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&S1(e,t,o),o};n.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>`}},n.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}`],ga([l({type:Number,reflect:!0,attribute:"auto-close"})],n.UUIToastNotificationContainerElement.prototype,"_autoClose",2),n.UUIToastNotificationContainerElement=ga([b("uui-toast-notification-container")],n.UUIToastNotificationContainerElement);var P1=Object.defineProperty,z1=Object.getOwnPropertyDescriptor,$o=(i,e,t,r)=>{for(var o=r>1?void 0:r?z1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&P1(e,t,o),o};n.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>`}},n.UUIToastNotificationLayoutElement.styles=[Ot,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)}`],$o([l({type:String})],n.UUIToastNotificationLayoutElement.prototype,"headline",2),$o([v()],n.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIToastNotificationLayoutElement=$o([b("uui-toast-notification-layout")],n.UUIToastNotificationLayoutElement);var A1=Object.defineProperty,L1=Object.getOwnPropertyDescriptor,T1=(i,e,t,r)=>{for(var o=r>1?void 0:r?L1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&A1(e,t,o),o};n.UUIToggleElement=class extends ee{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-check">${Ht}</div><div id="icon-wrong">${Wr}</div></div>`}},n.UUIToggleElement.formAssociated=!0,n.UUIToggleElement.styles=[...ee.styles,jt,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:${Nt}}: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)}`],n.UUIToggleElement=T1([b("uui-toggle")],n.UUIToggleElement),n.ActiveMixin=Xa,n.FormControlMixin=ul,n.InterfaceColorValues=hl,n.InterfaceHeadingValues=pl,n.InterfaceLookValues=dl,n.LabelMixin=Ja,n.SelectOnlyMixin=sl,n.SelectableMixin=il,n.Timer=bl,n.UUIBlinkAnimationValue=za,n.UUIBlinkKeyframes=Pa,n.UUIBooleanInputElement=ee,n.UUIBooleanInputEvent=Lt,n.UUIButtonInlineCreateEvent=Mt,n.UUICardEvent=Ye,n.UUIColorAreaEvent=Ft,n.UUIColorPickerChangeEvent=Wt,n.UUIColorSliderEvent=Kt,n.UUIColorSwatchesEvent=Xe,n.UUIComboboxEvent=B,n.UUIComboboxListEvent=Y,n.UUIEvent=Ci,n.UUIFileDropzoneEvent=Qe,n.UUIFormControlEvent=Ie,n.UUIHorizontalPulseAnimationValue=La,n.UUIHorizontalPulseKeyframes=Aa,n.UUIHorizontalShakeAnimationValue=ja,n.UUIHorizontalShakeKeyframes=Ta,n.UUIIconHost=eo,n.UUIIconRegistry=to,n.UUIIconRegistryEssential=ys,n.UUIIconRequestEvent=Je,n.UUIInputEvent=ze,n.UUIMenuItemEvent=be,n.UUIModalElement=R,n.UUIPaginationEvent=we,n.UUIRadioEvent=rt,n.UUIRadioGroupEvent=si,n.UUIRefEvent=nt,n.UUISelectEvent=li,n.UUISelectableEvent=xe,n.UUISliderEvent=Le,n.UUITabEvent=f1,n.UUITabGroupEvent=y1,n.UUITextStyles=Ot,n.UUITextareaEvent=Et,n.UUIToastNotificationEvent=D,n.clamp=gl,n.defineElement=cl,n.demandCustomElement=ml,n.drag=vl,n.reverseNumberInRange=fl,n.toHex=yl});
|
|
984
|
+
`],G([l({type:Boolean,attribute:"hide-step-values"})],n.UUISliderElement.prototype,"hideStepValues",2),G([l({type:Number})],n.UUISliderElement.prototype,"min",2),G([l({type:Number})],n.UUISliderElement.prototype,"max",2),G([l({type:Number})],n.UUISliderElement.prototype,"step",2),G([l({type:String})],n.UUISliderElement.prototype,"value",1),G([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"disabled",2),G([l({type:String})],n.UUISliderElement.prototype,"label",2),G([x("#input")],n.UUISliderElement.prototype,"_input",2),G([x("#track")],n.UUISliderElement.prototype,"_track",2),G([g()],n.UUISliderElement.prototype,"_stepWidth",2),G([g()],n.UUISliderElement.prototype,"_steps",2),G([g()],n.UUISliderElement.prototype,"_sliderPosition",2),n.UUISliderElement=G([b("uui-slider")],n.UUISliderElement);var W1=Object.defineProperty,K1=Object.getOwnPropertyDescriptor,Za=(i,e,t,r)=>{for(var o=r>1?void 0:r?K1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&W1(e,t,o),o};n.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>`}},n.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)}`],Za([l({type:Boolean,reflect:!0})],n.UUISymbolExpandElement.prototype,"open",2),n.UUISymbolExpandElement=Za([b("uui-symbol-expand")],n.UUISymbolExpandElement);var Y1=Object.defineProperty,X1=Object.getOwnPropertyDescriptor,Qa=(i,e,t,r)=>{for(var o=r>1?void 0:r?X1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Y1(e,t,o),o};n.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>`}},n.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)}`],Qa([l({type:Boolean,reflect:!0})],n.UUISymbolFileDropzoneElement.prototype,"error",2),n.UUISymbolFileDropzoneElement=Qa([b("uui-symbol-file-dropzone")],n.UUISymbolFileDropzoneElement);var Z1=Object.defineProperty,Q1=Object.getOwnPropertyDescriptor,Ko=(i,e,t,r)=>{for(var o=r>1?void 0:r?Q1(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Z1(e,t,o),o};n.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="${Kc.strings[0]}"></uui-icon>`}},n.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)}`],Ko([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"src",2),Ko([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"alt",2),n.UUISymbolFileThumbnailElement=Ko([b("uui-symbol-file-thumbnail")],n.UUISymbolFileThumbnailElement);var J1=Object.defineProperty,eb=Object.getOwnPropertyDescriptor,Ja=(i,e,t,r)=>{for(var o=r>1?void 0:r?eb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&J1(e,t,o),o};n.UUISymbolLockElement=class extends m{constructor(){super(...arguments),this.open=!1}render(){return y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?y`<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>`:y`<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>`}},n.UUISymbolLockElement.styles=[p`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],Ja([l({type:Boolean,reflect:!0})],n.UUISymbolLockElement.prototype,"open",2),n.UUISymbolLockElement=Ja([b("uui-symbol-lock")],n.UUISymbolLockElement);var tb=Object.defineProperty,ib=Object.getOwnPropertyDescriptor,ob=(i,e,t,r)=>{for(var o=r>1?void 0:r?ib(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tb(e,t,o),o};n.UUISymbolMoreElement=class extends m{render(){return u`•••`}},n.UUISymbolMoreElement.styles=[p`:host{display:inline-block;font-size:.8em;vertical-align:top;margin-top:.27em;line-height:1em;user-select:none}`],n.UUISymbolMoreElement=ob([b("uui-symbol-more")],n.UUISymbolMoreElement);var rb=Object.defineProperty,nb=Object.getOwnPropertyDescriptor,el=(i,e,t,r)=>{for(var o=r>1?void 0:r?nb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rb(e,t,o),o};n.UUISymbolSortElement=class extends xt(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>`}},n.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})],n.UUISymbolSortElement.prototype,"descending",2),n.UUISymbolSortElement=el([b("uui-symbol-sort")],n.UUISymbolSortElement);var sb=Object.defineProperty,ab=Object.getOwnPropertyDescriptor,lb=(i,e,t,r)=>{for(var o=r>1?void 0:r?ab(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sb(e,t,o),o};n.UUITableElement=class extends m{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},n.UUITableElement.styles=[p`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],n.UUITableElement=lb([b("uui-table")],n.UUITableElement);var ub=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,Ii=(i,e,t,r)=>{for(var o=r>1?void 0:r?cb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ub(e,t,o),o};n.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>`}},n.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}`],Ii([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],n.UUITableCellElement.prototype,"disableChildInteraction",2),Ii([l({type:Boolean,reflect:!0,attribute:"no-padding"})],n.UUITableCellElement.prototype,"noPadding",2),Ii([l({type:Boolean,reflect:!0,attribute:"clip-text"})],n.UUITableCellElement.prototype,"clipText",2),n.UUITableCellElement=Ii([b("uui-table-cell")],n.UUITableCellElement);var db=Object.defineProperty,hb=Object.getOwnPropertyDescriptor,pb=(i,e,t,r)=>{for(var o=r>1?void 0:r?hb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&db(e,t,o),o};n.UUITableColumnElement=class extends m{},n.UUITableColumnElement.styles=[p`:host{display:table-column}`],n.UUITableColumnElement=pb([b("uui-table-column")],n.UUITableColumnElement);var bb=Object.defineProperty,mb=Object.getOwnPropertyDescriptor,vb=(i,e,t,r)=>{for(var o=r>1?void 0:r?mb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&bb(e,t,o),o};n.UUITableHeadCellElement=class extends n.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},n.UUITableHeadCellElement.styles=[...n.UUITableCellElement.styles,p`:host{border-top:none}`],n.UUITableHeadCellElement=vb([b("uui-table-head-cell")],n.UUITableHeadCellElement);var gb=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,yb=(i,e,t,r)=>{for(var o=r>1?void 0:r?fb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&gb(e,t,o),o};n.UUITableHeadElement=class extends m{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},n.UUITableHeadElement.styles=[p`:host{display:table-header-group;font-weight:700}`],n.UUITableHeadElement=yb([b("uui-table-head")],n.UUITableHeadElement);var _b=Object.defineProperty,wb=Object.getOwnPropertyDescriptor,tl=(i,e,t,r)=>{for(var o=r>1?void 0:r?wb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_b(e,t,o),o};n.UUITableRowElement=class extends Kt(Je(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 n.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},n.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([xe({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],n.UUITableRowElement.prototype,"slotCellNodes",2),n.UUITableRowElement=tl([b("uui-table-row")],n.UUITableRowElement);var $b=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Mt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ub(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$b(e,t,o),o};n.UUITabElement=class extends xt(te("",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="${C(this.disabled?void 0:this.href)}" target="${C(this.target||void 0)}" rel="${C(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>`}},n.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-4,12px));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}`],Mt([l({type:Boolean,reflect:!0})],n.UUITabElement.prototype,"disabled",2),Mt([l({type:String})],n.UUITabElement.prototype,"href",2),Mt([l({type:String})],n.UUITabElement.prototype,"target",2),Mt([l({type:String,reflect:!0})],n.UUITabElement.prototype,"orientation",2),n.UUITabElement=Mt([b("uui-tab")],n.UUITabElement);var Eb=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,xi=(i,e,t,r)=>{for(var o=r>1?void 0:r?kb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Eb(e,t,o),o},Yo=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},I=(i,e,t)=>(Yo(i,e,"read from private field"),t?t.call(i):e.get(i)),q=(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)},Xo=(i,e,t,r)=>(Yo(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Pe=(i,e,t)=>(Yo(i,e,"access private method"),t),we,$e,ft,ue,Ci,Si,Zo,il,Qo,ol,yt,Pi,Jo,er,rl,tr,nl,Oi,ir;n.UUITabGroupElement=class extends m{constructor(){super(...arguments),q(this,Zo),q(this,Qo),q(this,Pi),q(this,er),q(this,tr),q(this,Oi),this.dropdownContentDirection="vertical",q(this,we,[]),q(this,$e,[]),q(this,ft,new Map),q(this,ue,[]),q(this,Ci,0),q(this,Si,new ResizeObserver(Pe(this,Zo,il).bind(this))),q(this,yt,e=>{const t=e.currentTarget;if(Pe(this,Oi,ir).call(this,t)){t.active=!0;const r=I(this,ft).get(t);r&&(r.active=!0),[...I(this,we),...I(this,$e)].filter(o=>o!==t&&o!==r).forEach(o=>{Pe(this,Oi,ir).call(this,o)&&(o.active=!1)}),I(this,$e).some(o=>o.active&&o!==r)?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside")}})}connectedCallback(){super.connectedCallback(),I(this,Si).observe(this),this.hasAttribute("role")||this.setAttribute("role","tablist")}disconnectedCallback(){super.disconnectedCallback(),I(this,Si).unobserve(this)}render(){return u`<slot @slotchange="${Pe(this,Qo,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">${wo(I(this,$e),e=>u`${e}`)}</div></uui-popover-container>`}},we=new WeakMap,$e=new WeakMap,ft=new WeakMap,ue=new WeakMap,Ci=new WeakMap,Si=new WeakMap,Zo=new WeakSet,il=function(i){Pe(this,Pi,Jo).call(this,i[0].contentBoxSize[0].inlineSize)},Qo=new WeakSet,ol=function(){I(this,we).forEach(i=>{i.removeEventListener("click",I(this,yt))}),Pe(this,tr,nl).call(this),I(this,we).forEach(i=>{i.addEventListener("click",I(this,yt))})},yt=new WeakMap,Pi=new WeakSet,Jo=function(i){const e=this._moreButtonElement.offsetWidth;if(I(this,ue).slice(-1)[0]<i&&I(this,$e).length===0)return;let t=Number.MAX_VALUE;for(let o=I(this,ue).length-1;o>-1;o--){const s=I(this,ue)[o],a=i-(o!==I(this,ue).length-1?e:0);if(s<a){t=o;break}}if(t===I(this,Ci))return;Xo(this,Ci,t),I(this,$e).forEach(o=>{o.removeEventListener("click",I(this,yt))}),Xo(this,$e,[]),I(this,ft).clear();let r=!1;for(let o=0;o<I(this,ue).length;o++){const s=I(this,ue)[o],a=I(this,we)[o],d=i-(o!==I(this,ue).length-1?e:0);if(s<d)a.style.display="",this._moreButtonElement.style.display="none";else{const c=a.cloneNode(!0);c.addEventListener("click",I(this,yt)),c.classList.add("hidden-tab"),c.style.display="",c.orientation=this.dropdownContentDirection,I(this,ft).set(c,a),I(this,ft).set(a,c),I(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()},er=new WeakSet,rl=function(){let i=0;for(let e=0;e<I(this,we).length;e++)i+=I(this,we)[e].offsetWidth,I(this,ue)[e]=i;Pe(this,Pi,Jo).call(this,this.offsetWidth)},tr=new WeakSet,nl=function(){Xo(this,we,this._slottedNodes?this._slottedNodes:[]),Pe(this,er,rl).call(this)},Oi=new WeakSet,ir=function(i){return i instanceof n.UUITabElement||"active"in i},n.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}`],xi([x("#more-button")],n.UUITabGroupElement.prototype,"_moreButtonElement",2),xi([xe({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],n.UUITabGroupElement.prototype,"_slottedNodes",2),xi([l({type:String,reflect:!0,attribute:"dropdown-content-direction"})],n.UUITabGroupElement.prototype,"dropdownContentDirection",2),n.UUITabGroupElement=xi([b("uui-tab-group")],n.UUITabGroupElement);class Ib extends S{}class xb extends S{}var Cb=Object.defineProperty,Sb=Object.getOwnPropertyDescriptor,or=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Cb(e,t,o),o};n.UUITagElement=class extends m{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return u`<slot></slot>`}},n.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)}`],or([l({reflect:!0})],n.UUITagElement.prototype,"color",2),or([l({reflect:!0})],n.UUITagElement.prototype,"look",2),n.UUITagElement=or([b("uui-tag")],n.UUITagElement);var Pb=Object.defineProperty,sl=Object.getOwnPropertySymbols,Ob=Object.prototype.hasOwnProperty,zb=Object.prototype.propertyIsEnumerable,al=(i,e,t)=>e in i?Pb(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ll=(i,e)=>{for(var t in e||(e={}))Ob.call(e,t)&&al(i,t,e[t]);if(sl)for(var t of sl(e))zb.call(e,t)&&al(i,t,e[t]);return i};class Dt extends S{constructor(e,t={}){super(e,ll(ll({},{bubbles:!0}),t))}}Dt.CHANGE="change",Dt.INPUT="input";var Ab=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,D=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ab(e,t,o),o};n.UUITextareaElement=class extends ie(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)}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 Dt(Dt.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>t.clientHeight&&(t.style.height=t.scrollHeight+"px"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=r}render(){return u`<textarea id="textarea" .rows="${this.rows}" .cols="${this.cols}" .value="${this.value}" .name="${this.name}" wrap="${C(this.wrap)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
|
|
985
|
+
</textarea>`}},n.UUITextareaElement.formAssociated=!0,n.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:var(--uui-size-5,15px);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)}`],D([l()],n.UUITextareaElement.prototype,"placeholder",2),D([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"disabled",2),D([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"readonly",2),D([l({type:String})],n.UUITextareaElement.prototype,"name",2),D([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"error",2),D([l({type:Number})],n.UUITextareaElement.prototype,"minlength",2),D([l({type:String,attribute:"minlength-message"})],n.UUITextareaElement.prototype,"minlengthMessage",2),D([l({type:Number})],n.UUITextareaElement.prototype,"maxlength",2),D([l({type:String,attribute:"maxlength-message"})],n.UUITextareaElement.prototype,"maxlengthMessage",2),D([x("#textarea")],n.UUITextareaElement.prototype,"_textarea",2),D([l({type:Boolean,attribute:"auto-height",reflect:!0})],n.UUITextareaElement.prototype,"autoHeight",2),D([l({type:String})],n.UUITextareaElement.prototype,"label",2),D([l({type:Number})],n.UUITextareaElement.prototype,"rows",2),D([l({type:Number})],n.UUITextareaElement.prototype,"cols",2),D([l({type:String})],n.UUITextareaElement.prototype,"wrap",2),n.UUITextareaElement=D([b("uui-textarea")],n.UUITextareaElement);class H extends S{}H.OPENING="opening",H.OPENED="opened",H.CLOSING="closing",H.CLOSED="closed";var Tb=Object.defineProperty,jb=Object.getOwnPropertyDescriptor,_t=(i,e,t,r)=>{for(var o=r>1?void 0:r?jb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tb(e,t,o),o};n.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 Fc(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 H(H.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 H(H.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var e;if(this._open===!1)return;const t=new H(H.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 H(H.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="${jn.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},n.UUIToastNotificationElement.styles=[Gt,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)}`],_t([l({reflect:!0})],n.UUIToastNotificationElement.prototype,"color",2),_t([l({type:Number})],n.UUIToastNotificationElement.prototype,"autoClose",1),_t([x("#toast")],n.UUIToastNotificationElement.prototype,"_toastEl",2),_t([g()],n.UUIToastNotificationElement.prototype,"_animate",2),_t([l({type:Boolean,reflect:!0})],n.UUIToastNotificationElement.prototype,"open",1),n.UUIToastNotificationElement=_t([b("uui-toast-notification")],n.UUIToastNotificationElement);var Nb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,ul=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nb(e,t,o),o};n.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(H.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(H.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>`}},n.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"})],n.UUIToastNotificationContainerElement.prototype,"_autoClose",2),n.UUIToastNotificationContainerElement=ul([b("uui-toast-notification-container")],n.UUIToastNotificationContainerElement);var Db=Object.defineProperty,Hb=Object.getOwnPropertyDescriptor,rr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Db(e,t,o),o};n.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>`}},n.UUIToastNotificationLayoutElement.styles=[Gt,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)}`],rr([l({type:String})],n.UUIToastNotificationLayoutElement.prototype,"headline",2),rr([g()],n.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIToastNotificationLayoutElement=rr([b("uui-toast-notification-layout")],n.UUIToastNotificationLayoutElement);var Bb=Object.defineProperty,Rb=Object.getOwnPropertyDescriptor,Vb=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Bb(e,t,o),o};n.UUIToggleElement=class extends oe{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-check">${ti}</div><div id="icon-wrong">${Nn}</div></div>`}},n.UUIToggleElement.formAssociated=!0,n.UUIToggleElement.styles=[...oe.styles,Zt,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:${Qt}}: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)}`],n.UUIToggleElement=Vb([b("uui-toggle")],n.UUIToggleElement),n.ActiveMixin=Vl,n.FormControlMixin=iu,n.InterfaceColorValues=vu,n.InterfaceHeadingValues=gu,n.InterfaceLookValues=mu,n.LabelMixin=ql,n.PopoverTargetMixin=pu,n.SelectOnlyMixin=Jl,n.SelectableMixin=Yl,n.Timer=ou,n.UUIBlinkAnimationValue=kl,n.UUIBlinkKeyframes=El,n.UUIBooleanInputElement=oe,n.UUIBooleanInputEvent=Yt,n.UUIButtonInlineCreateEvent=Jt,n.UUICardEvent=nt,n.UUIColorAreaEvent=ni,n.UUIColorPickerChangeEvent=li,n.UUIColorSliderEvent=ui,n.UUIColorSwatchesEvent=st,n.UUIComboboxEvent=V,n.UUIComboboxListEvent=Q,n.UUIEvent=Xi,n.UUIFileDropzoneEvent=lt,n.UUIFormControlEvent=Te,n.UUIHorizontalPulseAnimationValue=xl,n.UUIHorizontalPulseKeyframes=Il,n.UUIHorizontalShakeAnimationValue=Sl,n.UUIHorizontalShakeKeyframes=Cl,n.UUIIconHost=Eo,n.UUIIconRegistry=ko,n.UUIIconRegistryEssential=aa,n.UUIIconRequestEvent=ut,n.UUIInputEvent=Be,n.UUIMenuItemEvent=fe,n.UUIModalElement=F,n.UUIPaginationEvent=Se,n.UUIRadioEvent=vt,n.UUIRadioGroupEvent=Ui,n.UUIRefEvent=gt,n.UUISelectEvent=ki,n.UUISelectableEvent=je,n.UUISliderEvent=Ge,n.UUITabEvent=Ib,n.UUITabGroupEvent=xb,n.UUITextStyles=Gt,n.UUITextareaEvent=Dt,n.UUIToastNotificationEvent=H,n.clamp=su,n.defineElement=bu,n.demandCustomElement=ru,n.drag=nu,n.findAncestorByAttributeValue=Vr,n.reverseNumberInRange=au,n.toHex=lu});
|
|
986
986
|
//# sourceMappingURL=uui.min.js.map
|