@deepfuture/dui-cdn 1.4.4 → 1.4.6
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/dui.js +9 -30
- package/dui.min.js +289 -319
- package/package.json +1 -1
package/dui.min.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
\f\r]`,bc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j_=/-->/g,K_=/>/g,li=RegExp(`>|${
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),W_=/'/g,Y_=/"/g,Q_=/^(?:script|style|textarea|title)$/i,Sb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),Zr=Sb(1),_6=Sb(2),R6=Sb(3),pi=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),G_=new WeakMap,di=ci.createTreeWalker(ci,129);function Z_(i,r){if(!Tb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return q_!==void 0?q_.createHTML(r):r}var z3=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=bc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===bc?$[1]==="!--"?d=j_:$[1]!==void 0?d=K_:$[2]!==void 0?(Q_.test($[2])&&(s=RegExp("</"+$[2],"g")),d=li):$[3]!==void 0&&(d=li):d===li?$[0]===">"?(d=s??bc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?li:$[3]==='"'?Y_:W_):d===Y_||d===W_?d=li:d===j_||d===K_?d=bc:(d=li,s=void 0);let S=d===li&&i[m+1].startsWith("/>")?" ":"";l+=d===bc?g+I3:y>=0?(e.push(E),g.slice(0,y)+X_+g.slice(y)+Cs+S):g+Cs+(y===-2?m:S)}return[Z_(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},wc=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=z3(r,t);if(this.el=i.createElement(E,e),di.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=di.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(X_)){let _=$[d++],S=s.getAttribute(y).split(Cs),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?wb:O[1]==="?"?kb:O[1]==="@"?Eb:Dn}),s.removeAttribute(y)}else y.startsWith(Cs)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(Q_.test(s.tagName)){let y=s.textContent.split(Cs),_=y.length-1;if(_>0){s.textContent=Ah?Ah.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],xc()),di.nextNode(),g.push({type:2,index:++l});s.append(y[_],xc())}}}else if(s.nodeType===8)if(s.data===J_)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(Cs,y+1))!==-1;)g.push({type:7,index:l}),y+=Cs.length-1}l++}}static createElement(r,t){let e=ci.createElement("template");return e.innerHTML=r,e}};function Nn(i,r,t=i,e){if(r===pi)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=yc(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=Nn(i,s._$AS(i,r.values),s,e)),r}var yb=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??ci).importNode(t,!0);di.currentNode=s;let l=di.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new kc(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Cb(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=di.nextNode(),d++)}return di.currentNode=ci,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},kc=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Nn(this,r,t),yc(r)?r===ve||r==null||r===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):r!==this._$AH&&r!==pi&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):L3(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==ve&&yc(this._$AH)?this._$AA.nextSibling.data=r:this.T(ci.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=wc.createElement(Z_(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new yb(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=G_.get(r.strings);return t===void 0&&G_.set(r.strings,t=new wc(r)),t}k(r){Tb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(xc()),this.O(xc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=U_(r).nextSibling;U_(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ve}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=Nn(this,r,t,0),d=!yc(r)||r!==this._$AH&&r!==pi,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=Nn(this,m[e+g],t,g),E===pi&&(E=this._$AH[g]),d||=!yc(E)||E!==this._$AH[g],E===ve?r=ve:r!==ve&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},wb=class extends Dn{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===ve?void 0:r}},kb=class extends Dn{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==ve)}},Eb=class extends Dn{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=Nn(this,r,t,0)??ve)===pi)return;let e=this._$AH,s=r===ve&&e!==ve||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==ve&&(e===ve||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Cb=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){Nn(this,r)}};var O3=$b.litHtmlPolyfillSupport;O3?.(wc,kc),($b.litHtmlVersions??=[]).push("3.3.2");var tR=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new kc(r.insertBefore(xc(),l),l,void 0,t??{})}return s._$AI(i),s};var Ab=globalThis,Hn=class extends Qr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=tR(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pi}};Hn._$litElement$=!0,Hn.finalized=!0,Ab.litElementHydrateSupport?.({LitElement:Hn});var M3=Ab.litElementPolyfillSupport;M3?.({LitElement:Hn});(Ab.litElementVersions??=[]).push("4.2.2");var _h=globalThis,Rh=_h.ShadowRoot&&(_h.ShadyCSS===void 0||_h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_b=Symbol(),eR=new WeakMap,Ec=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==_b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(Rh&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=eR.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&eR.set(t,r))}return r}toString(){return this.cssText}},oR=i=>new Ec(typeof i=="string"?i:i+"",void 0,_b),b=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new Ec(t,i,_b)},Ih=(i,r)=>{if(Rh)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=_h.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},Rb=Rh?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return oR(t)})(i):i;var{is:N3,defineProperty:D3,getOwnPropertyDescriptor:H3,getOwnPropertyNames:B3,getOwnPropertySymbols:F3,getPrototypeOf:V3}=Object,Lh=globalThis,rR=Lh.trustedTypes,P3=rR?rR.emptyScript:"",U3=Lh.reactiveElementPolyfillSupport,Cc=(i,r)=>i,$c={toAttribute(i,r){switch(r){case Boolean:i=i?P3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){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}},zh=(i,r)=>!N3(i,r),sR={attribute:!0,type:String,converter:$c,reflect:!1,useDefault:!1,hasChanged:zh};Symbol.metadata??=Symbol("metadata"),Lh.litPropertyMetadata??=new WeakMap;var ts=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=sR){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&D3(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=H3(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??sR}static _$Ei(){if(this.hasOwnProperty(Cc("elementProperties")))return;let r=V3(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Cc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cc("properties"))){let t=this.properties,e=[...B3(t),...F3(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(Rb(s))}else r!==void 0&&t.push(Rb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ih(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$c).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$c;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??zh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};ts.elementStyles=[],ts.shadowRootOptions={mode:"open"},ts[Cc("elementProperties")]=new Map,ts[Cc("finalized")]=new Map,U3?.({ReactiveElement:ts}),(Lh.reactiveElementVersions??=[]).push("2.1.2");var Lb=globalThis,iR=i=>i,Oh=Lb.trustedTypes,nR=Oh?Oh.createPolicy("lit-html",{createHTML:i=>i}):void 0,zb="$lit$",es=`lit$${Math.random().toFixed(9).slice(2)}$`,Ob="?"+es,q3=`<${Ob}>`,mi=document,Sc=()=>mi.createComment(""),Ac=i=>i===null||typeof i!="object"&&typeof i!="function",Mb=Array.isArray,hR=i=>Mb(i)||typeof i?.[Symbol.iterator]=="function",Ib=`[
|
|
1
|
+
var y3=Object.create;var fb=Object.defineProperty;var x3=Object.getOwnPropertyDescriptor;var N_=(i,r)=>(r=Symbol[i])?r:Symbol.for("Symbol."+i),Mn=i=>{throw TypeError(i)};var D_=(i,r,t)=>r in i?fb(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t;var M_=(i,r)=>fb(i,"name",{value:r,configurable:!0});var A=i=>[,,,y3(i?.[N_("metadata")]??null)],H_=["class","method","getter","setter","accessor","field","value","get","set"],mc=i=>i!==void 0&&typeof i!="function"?Mn("Function expected"):i,w3=(i,r,t,e,s)=>({kind:H_[i],name:r,metadata:e,addInitializer:l=>t._?Mn("Already initialized"):s.push(mc(l||null))}),T=(i,r)=>D_(r,N_("metadata"),i[3]),n=(i,r,t,e)=>{for(var s=0,l=i[r>>1],d=l&&l.length;s<d;s++)r&1?l[s].call(t):e=l[s].call(t,e);return e},c=(i,r,t,e,s,l)=>{var d,m,g,E,$,x=r&7,_=!!(r&8),S=!!(r&16),z=x>3?i.length+1:x?_?1:2:0,B=H_[x+5],j=x>3&&(i[z-1]=[]),K=i[z]||(i[z]=[]),F=x&&(!S&&!_&&(s=s.prototype),x<5&&(x>3||!S)&&x3(x<4?s:{get[t](){return o(this,l)},set[t](J){return h(this,l,J)}},t));x?S&&x<4&&M_(l,(x>2?"set ":x>1?"get ":"")+t):M_(s,t);for(var G=e.length-1;G>=0;G--)E=w3(x,t,g={},i[3],K),x&&(E.static=_,E.private=S,$=E.access={has:S?J=>k3(s,J):J=>t in J},x^3&&($.get=S?J=>(x^1?o:p)(J,s,x^4?l:F.get):J=>J[t]),x>2&&($.set=S?(J,ge)=>h(J,s,ge,x^4?l:F.set):(J,ge)=>J[t]=ge)),m=(0,e[G])(x?x<4?S?l:F[B]:x>4?void 0:{get:F.get,set:F.set}:s,E),g._=1,x^4||m===void 0?mc(m)&&(x>4?j.unshift(m):x?S?l=m:F[B]=m:s=m):typeof m!="object"||m===null?Mn("Object expected"):(mc(d=m.get)&&(F.get=d),mc(d=m.set)&&(F.set=d),mc(d=m.init)&&j.unshift(d));return x||T(i,s),F&&fb(s,t,F),S?x^4?l:F:s},v=(i,r,t)=>D_(i,typeof r!="symbol"?r+"":r,t),gb=(i,r,t)=>r.has(i)||Mn("Cannot "+t),k3=(i,r)=>Object(r)!==r?Mn('Cannot use the "in" operator on this value'):i.has(r),o=(i,r,t)=>(gb(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?Mn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),h=(i,r,t,e)=>(gb(i,r,"write to private field"),e?e.call(i,t):r.set(i,t),t),p=(i,r,t)=>(gb(i,r,"access private method"),t);var Cs=(i,r,t,e)=>({set _(s){h(i,r,s,t)},get _(){return o(i,r,e)}});var Ch=globalThis,$h=Ch.ShadowRoot&&(Ch.ShadyCSS===void 0||Ch.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vb=Symbol(),B_=new WeakMap,fc=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==vb)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if($h&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=B_.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&B_.set(t,r))}return r}toString(){return this.cssText}},Qr=i=>new fc(typeof i=="string"?i:i+"",void 0,vb),k=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new fc(t,i,vb)},F_=(i,r)=>{if($h)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=Ch.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},bb=$h?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return Qr(t)})(i):i;var{is:E3,defineProperty:C3,getOwnPropertyDescriptor:$3,getOwnPropertyNames:T3,getOwnPropertySymbols:S3,getPrototypeOf:A3}=Object,Th=globalThis,V_=Th.trustedTypes,_3=V_?V_.emptyScript:"",R3=Th.reactiveElementPolyfillSupport,gc=(i,r)=>i,vc={toAttribute(i,r){switch(r){case Boolean:i=i?_3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){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}},Sh=(i,r)=>!E3(i,r),P_={attribute:!0,type:String,converter:vc,reflect:!1,useDefault:!1,hasChanged:Sh};Symbol.metadata??=Symbol("metadata"),Th.litPropertyMetadata??=new WeakMap;var Zr=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=P_){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&C3(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=$3(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??P_}static _$Ei(){if(this.hasOwnProperty(gc("elementProperties")))return;let r=A3(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(gc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gc("properties"))){let t=this.properties,e=[...T3(t),...S3(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(bb(s))}else r!==void 0&&t.push(bb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return F_(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:vc).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:vc;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??Sh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};Zr.elementStyles=[],Zr.shadowRootOptions={mode:"open"},Zr[gc("elementProperties")]=new Map,Zr[gc("finalized")]=new Map,R3?.({ReactiveElement:Zr}),(Th.reactiveElementVersions??=[]).push("2.1.2");var $b=globalThis,U_=i=>i,Ah=$b.trustedTypes,q_=Ah?Ah.createPolicy("lit-html",{createHTML:i=>i}):void 0,X_="$lit$",$s=`lit$${Math.random().toFixed(9).slice(2)}$`,J_="?"+$s,I3=`<${J_}>`,ci=document,yc=()=>ci.createComment(""),xc=i=>i===null||typeof i!="object"&&typeof i!="function",Tb=Array.isArray,L3=i=>Tb(i)||typeof i?.[Symbol.iterator]=="function",yb=`[
|
|
2
|
+
\f\r]`,bc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j_=/-->/g,K_=/>/g,li=RegExp(`>|${yb}(?:([^\\s"'>=/]+)(${yb}*=${yb}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),W_=/'/g,Y_=/"/g,Q_=/^(?:script|style|textarea|title)$/i,Sb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),ts=Sb(1),_6=Sb(2),R6=Sb(3),pi=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),G_=new WeakMap,di=ci.createTreeWalker(ci,129);function Z_(i,r){if(!Tb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return q_!==void 0?q_.createHTML(r):r}var O3=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=bc;for(let m=0;m<t;m++){let g=i[m],E,$,x=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===bc?$[1]==="!--"?d=j_:$[1]!==void 0?d=K_:$[2]!==void 0?(Q_.test($[2])&&(s=RegExp("</"+$[2],"g")),d=li):$[3]!==void 0&&(d=li):d===li?$[0]===">"?(d=s??bc,x=-1):$[1]===void 0?x=-2:(x=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?li:$[3]==='"'?Y_:W_):d===Y_||d===W_?d=li:d===j_||d===K_?d=bc:(d=li,s=void 0);let S=d===li&&i[m+1].startsWith("/>")?" ":"";l+=d===bc?g+I3:x>=0?(e.push(E),g.slice(0,x)+X_+g.slice(x)+$s+S):g+$s+(x===-2?m:S)}return[Z_(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},wc=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=O3(r,t);if(this.el=i.createElement(E,e),di.currentNode=this.el.content,t===2||t===3){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(s=di.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let x of s.getAttributeNames())if(x.endsWith(X_)){let _=$[d++],S=s.getAttribute(x).split($s),z=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:z[2],strings:S,ctor:z[1]==="."?wb:z[1]==="?"?kb:z[1]==="@"?Eb:Dn}),s.removeAttribute(x)}else x.startsWith($s)&&(g.push({type:6,index:l}),s.removeAttribute(x));if(Q_.test(s.tagName)){let x=s.textContent.split($s),_=x.length-1;if(_>0){s.textContent=Ah?Ah.emptyScript:"";for(let S=0;S<_;S++)s.append(x[S],yc()),di.nextNode(),g.push({type:2,index:++l});s.append(x[_],yc())}}}else if(s.nodeType===8)if(s.data===J_)g.push({type:2,index:l});else{let x=-1;for(;(x=s.data.indexOf($s,x+1))!==-1;)g.push({type:7,index:l}),x+=$s.length-1}l++}}static createElement(r,t){let e=ci.createElement("template");return e.innerHTML=r,e}};function Nn(i,r,t=i,e){if(r===pi)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=xc(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=Nn(i,s._$AS(i,r.values),s,e)),r}var xb=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??ci).importNode(t,!0);di.currentNode=s;let l=di.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new kc(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Cb(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=di.nextNode(),d++)}return di.currentNode=ci,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},kc=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Nn(this,r,t),xc(r)?r===ve||r==null||r===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):r!==this._$AH&&r!==pi&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):L3(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==ve&&xc(this._$AH)?this._$AA.nextSibling.data=r:this.T(ci.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=wc.createElement(Z_(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new xb(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=G_.get(r.strings);return t===void 0&&G_.set(r.strings,t=new wc(r)),t}k(r){Tb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(yc()),this.O(yc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=U_(r).nextSibling;U_(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ve}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=Nn(this,r,t,0),d=!xc(r)||r!==this._$AH&&r!==pi,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=Nn(this,m[e+g],t,g),E===pi&&(E=this._$AH[g]),d||=!xc(E)||E!==this._$AH[g],E===ve?r=ve:r!==ve&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},wb=class extends Dn{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===ve?void 0:r}},kb=class extends Dn{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==ve)}},Eb=class extends Dn{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=Nn(this,r,t,0)??ve)===pi)return;let e=this._$AH,s=r===ve&&e!==ve||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==ve&&(e===ve||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Cb=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){Nn(this,r)}};var z3=$b.litHtmlPolyfillSupport;z3?.(wc,kc),($b.litHtmlVersions??=[]).push("3.3.2");var tR=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new kc(r.insertBefore(yc(),l),l,void 0,t??{})}return s._$AI(i),s};var Ab=globalThis,Hn=class extends Zr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=tR(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pi}};Hn._$litElement$=!0,Hn.finalized=!0,Ab.litElementHydrateSupport?.({LitElement:Hn});var M3=Ab.litElementPolyfillSupport;M3?.({LitElement:Hn});(Ab.litElementVersions??=[]).push("4.2.2");var _h=globalThis,Rh=_h.ShadowRoot&&(_h.ShadyCSS===void 0||_h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_b=Symbol(),eR=new WeakMap,Ec=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==_b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(Rh&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=eR.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&eR.set(t,r))}return r}toString(){return this.cssText}},oR=i=>new Ec(typeof i=="string"?i:i+"",void 0,_b),b=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new Ec(t,i,_b)},Ih=(i,r)=>{if(Rh)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=_h.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},Rb=Rh?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return oR(t)})(i):i;var{is:N3,defineProperty:D3,getOwnPropertyDescriptor:H3,getOwnPropertyNames:B3,getOwnPropertySymbols:F3,getPrototypeOf:V3}=Object,Lh=globalThis,rR=Lh.trustedTypes,P3=rR?rR.emptyScript:"",U3=Lh.reactiveElementPolyfillSupport,Cc=(i,r)=>i,$c={toAttribute(i,r){switch(r){case Boolean:i=i?P3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){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}},Oh=(i,r)=>!N3(i,r),sR={attribute:!0,type:String,converter:$c,reflect:!1,useDefault:!1,hasChanged:Oh};Symbol.metadata??=Symbol("metadata"),Lh.litPropertyMetadata??=new WeakMap;var es=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=sR){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&D3(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=H3(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??sR}static _$Ei(){if(this.hasOwnProperty(Cc("elementProperties")))return;let r=V3(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Cc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cc("properties"))){let t=this.properties,e=[...B3(t),...F3(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(Rb(s))}else r!==void 0&&t.push(Rb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ih(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$c).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$c;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??Oh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};es.elementStyles=[],es.shadowRootOptions={mode:"open"},es[Cc("elementProperties")]=new Map,es[Cc("finalized")]=new Map,U3?.({ReactiveElement:es}),(Lh.reactiveElementVersions??=[]).push("2.1.2");var Lb=globalThis,iR=i=>i,zh=Lb.trustedTypes,nR=zh?zh.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ob="$lit$",os=`lit$${Math.random().toFixed(9).slice(2)}$`,zb="?"+os,q3=`<${zb}>`,mi=document,Sc=()=>mi.createComment(""),Ac=i=>i===null||typeof i!="object"&&typeof i!="function",Mb=Array.isArray,hR=i=>Mb(i)||typeof i?.[Symbol.iterator]=="function",Ib=`[
|
|
4
4
|
\f\r]`,Tc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aR=/-->/g,lR=/>/g,hi=RegExp(`>|${Ib}(?:([^\\s"'>=/]+)(${Ib}*=${Ib}*(?:[^
|
|
5
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),dR=/'/g,cR=/"/g,uR=/^(?:script|style|textarea|title)$/i,Nb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),f=Nb(1),Fh=Nb(2),W6=Nb(3),Ee=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pR=new WeakMap,ui=mi.createTreeWalker(mi,129);function mR(i,r){if(!Mb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return nR!==void 0?nR.createHTML(r):r}var fR=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=Tc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===Tc?$[1]==="!--"?d=aR:$[1]!==void 0?d=lR:$[2]!==void 0?(uR.test($[2])&&(s=RegExp("</"+$[2],"g")),d=hi):$[3]!==void 0&&(d=hi):d===hi?$[0]===">"?(d=s??Tc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?hi:$[3]==='"'?cR:dR):d===cR||d===dR?d=hi:d===aR||d===lR?d=Tc:(d=hi,s=void 0);let S=d===hi&&i[m+1].startsWith("/>")?" ":"";l+=d===Tc?g+q3:y>=0?(e.push(E),g.slice(0,y)+zb+g.slice(y)+es+S):g+es+(y===-2?m:S)}return[mR(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},_c=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=fR(r,t);if(this.el=i.createElement(E,e),ui.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=ui.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(zb)){let _=$[d++],S=s.getAttribute(y).split(es),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?Nh:O[1]==="?"?Dh:O[1]==="@"?Hh:gi}),s.removeAttribute(y)}else y.startsWith(es)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(uR.test(s.tagName)){let y=s.textContent.split(es),_=y.length-1;if(_>0){s.textContent=Oh?Oh.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],Sc()),ui.nextNode(),g.push({type:2,index:++l});s.append(y[_],Sc())}}}else if(s.nodeType===8)if(s.data===Ob)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(es,y+1))!==-1;)g.push({type:7,index:l}),y+=es.length-1}l++}}static createElement(r,t){let e=mi.createElement("template");return e.innerHTML=r,e}};function fi(i,r,t=i,e){if(r===Ee)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=Ac(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=fi(i,s._$AS(i,r.values),s,e)),r}var Mh=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??mi).importNode(t,!0);ui.currentNode=s;let l=ui.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new Bn(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Bh(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=ui.nextNode(),d++)}return ui.currentNode=mi,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},Bn=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=fi(this,r,t),Ac(r)?r===L||r==null||r===""?(this._$AH!==L&&this._$AR(),this._$AH=L):r!==this._$AH&&r!==Ee&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):hR(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==L&&Ac(this._$AH)?this._$AA.nextSibling.data=r:this.T(mi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=_c.createElement(mR(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new Mh(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=pR.get(r.strings);return t===void 0&&pR.set(r.strings,t=new _c(r)),t}k(r){Mb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(Sc()),this.O(Sc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=iR(r).nextSibling;iR(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=L,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=fi(this,r,t,0),d=!Ac(r)||r!==this._$AH&&r!==Ee,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=fi(this,m[e+g],t,g),E===Ee&&(E=this._$AH[g]),d||=!Ac(E)||E!==this._$AH[g],E===L?r=L:r!==L&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Nh=class extends gi{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===L?void 0:r}},Dh=class extends gi{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==L)}},Hh=class extends gi{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=fi(this,r,t,0)??L)===Ee)return;let e=this._$AH,s=r===L&&e!==L||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==L&&(e===L||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Bh=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){fi(this,r)}},gR={M:zb,P:es,A:Ob,C:1,L:fR,R:Mh,D:hR,V:fi,I:Bn,H:gi,N:Dh,U:Hh,B:Nh,F:Bh},j3=Lb.litHtmlPolyfillSupport;j3?.(_c,Bn),(Lb.litHtmlVersions??=[]).push("3.3.2");var Vh=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new Bn(r.insertBefore(Sc(),l),l,void 0,t??{})}return s._$AI(i),s};var Db=globalThis,x=class extends ts{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Vh(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};x._$litElement$=!0,x.finalized=!0,Db.litElementHydrateSupport?.({LitElement:x});var K3=Db.litElementPolyfillSupport;K3?.({LitElement:x});(Db.litElementVersions??=[]).push("4.2.2");var W3={attribute:!0,type:String,converter:$c,reflect:!1,hasChanged:zh},Y3=(i=W3,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(i){return(r,t)=>typeof t=="object"?Y3(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}function C(i){return u({...i,state:!0,attribute:!1})}var vi=(i,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,t),t);function vR(i,r){return(t,e,s)=>{let l=d=>d.renderRoot?.querySelector(i)??null;if(r){let{get:d,set:m}=typeof e=="object"?t:s??(()=>{let g=Symbol();return{get(){return this[g]},set(E){this[g]=E}}})();return vi(t,e,{get(){let g=d.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&m.call(this,g)),g}})}return vi(t,e,{get(){return l(this)}})}}var $s=class extends Event{constructor(r,t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t,this.callback=e,this.subscribe=s??!1}};var q=class{constructor(r,t,e,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,d)),this.unsubscribe=d},this.host=r,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new $s(this.context,this.host,this.t,this.subscribe))}};var Ph=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,t=!1){let e=t||!Object.is(r,this.o);this.o=r,e&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},r!==void 0&&(this.value=r)}addCallback(r,t,e){if(!e)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:t});let{disposer:s}=this.subscriptions.get(r);r(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Hb=class extends Event{constructor(r,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t}},Fn=class extends Ph{constructor(r,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=s=>{if(s.context!==this.context)return;let l=s.contextTarget??s.composedPath()[0];l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let l=new Set;for(let[d,{consumerHost:m}]of this.subscriptions)l.has(d)||(l.add(d),m.dispatchEvent(new $s(this.context,m,d,!0)));s.stopPropagation()},this.host=r,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Hb(this.context,this.host))}};function lt({context:i}){return(r,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return r.get.call(this)},set(s){return e.get(this).setValue(s),r.set.call(this,s)},init(s){return e.set(this,new Fn(this,{context:i,initialValue:s})),s}};{r.constructor.addInitializer(d=>{e.set(d,new Fn(d,{context:i}))});let s=Object.getOwnPropertyDescriptor(r,t),l;if(s===void 0){let d=new WeakMap;l={get(){return d.get(this)},set(m){e.get(this).setValue(m),d.set(this,m)},configurable:!0,enumerable:!0}}else{let d=s.set;l={...s,set(m){e.get(this).setValue(m),d?.call(this,m)}}}return void Object.defineProperty(r,t,l)}}}function Nt({context:i,subscribe:r}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new q(this,{context:i,callback:s=>{t.set.call(this,s)},subscribe:r})}):t.constructor.addInitializer(s=>{new q(s,{context:i,callback:l=>{s[e]=l},subscribe:r})})}}var w=b`
|
|
5
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),dR=/'/g,cR=/"/g,uR=/^(?:script|style|textarea|title)$/i,Nb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),f=Nb(1),Fh=Nb(2),W6=Nb(3),Ee=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pR=new WeakMap,ui=mi.createTreeWalker(mi,129);function mR(i,r){if(!Mb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return nR!==void 0?nR.createHTML(r):r}var fR=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=Tc;for(let m=0;m<t;m++){let g=i[m],E,$,x=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===Tc?$[1]==="!--"?d=aR:$[1]!==void 0?d=lR:$[2]!==void 0?(uR.test($[2])&&(s=RegExp("</"+$[2],"g")),d=hi):$[3]!==void 0&&(d=hi):d===hi?$[0]===">"?(d=s??Tc,x=-1):$[1]===void 0?x=-2:(x=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?hi:$[3]==='"'?cR:dR):d===cR||d===dR?d=hi:d===aR||d===lR?d=Tc:(d=hi,s=void 0);let S=d===hi&&i[m+1].startsWith("/>")?" ":"";l+=d===Tc?g+q3:x>=0?(e.push(E),g.slice(0,x)+Ob+g.slice(x)+os+S):g+os+(x===-2?m:S)}return[mR(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},_c=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=fR(r,t);if(this.el=i.createElement(E,e),ui.currentNode=this.el.content,t===2||t===3){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(s=ui.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let x of s.getAttributeNames())if(x.endsWith(Ob)){let _=$[d++],S=s.getAttribute(x).split(os),z=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:z[2],strings:S,ctor:z[1]==="."?Nh:z[1]==="?"?Dh:z[1]==="@"?Hh:gi}),s.removeAttribute(x)}else x.startsWith(os)&&(g.push({type:6,index:l}),s.removeAttribute(x));if(uR.test(s.tagName)){let x=s.textContent.split(os),_=x.length-1;if(_>0){s.textContent=zh?zh.emptyScript:"";for(let S=0;S<_;S++)s.append(x[S],Sc()),ui.nextNode(),g.push({type:2,index:++l});s.append(x[_],Sc())}}}else if(s.nodeType===8)if(s.data===zb)g.push({type:2,index:l});else{let x=-1;for(;(x=s.data.indexOf(os,x+1))!==-1;)g.push({type:7,index:l}),x+=os.length-1}l++}}static createElement(r,t){let e=mi.createElement("template");return e.innerHTML=r,e}};function fi(i,r,t=i,e){if(r===Ee)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=Ac(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=fi(i,s._$AS(i,r.values),s,e)),r}var Mh=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??mi).importNode(t,!0);ui.currentNode=s;let l=ui.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new Bn(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Bh(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=ui.nextNode(),d++)}return ui.currentNode=mi,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},Bn=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=fi(this,r,t),Ac(r)?r===L||r==null||r===""?(this._$AH!==L&&this._$AR(),this._$AH=L):r!==this._$AH&&r!==Ee&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):hR(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==L&&Ac(this._$AH)?this._$AA.nextSibling.data=r:this.T(mi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=_c.createElement(mR(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new Mh(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=pR.get(r.strings);return t===void 0&&pR.set(r.strings,t=new _c(r)),t}k(r){Mb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(Sc()),this.O(Sc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=iR(r).nextSibling;iR(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=L,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=fi(this,r,t,0),d=!Ac(r)||r!==this._$AH&&r!==Ee,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=fi(this,m[e+g],t,g),E===Ee&&(E=this._$AH[g]),d||=!Ac(E)||E!==this._$AH[g],E===L?r=L:r!==L&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Nh=class extends gi{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===L?void 0:r}},Dh=class extends gi{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==L)}},Hh=class extends gi{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=fi(this,r,t,0)??L)===Ee)return;let e=this._$AH,s=r===L&&e!==L||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==L&&(e===L||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Bh=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){fi(this,r)}},gR={M:Ob,P:os,A:zb,C:1,L:fR,R:Mh,D:hR,V:fi,I:Bn,H:gi,N:Dh,U:Hh,B:Nh,F:Bh},j3=Lb.litHtmlPolyfillSupport;j3?.(_c,Bn),(Lb.litHtmlVersions??=[]).push("3.3.2");var Vh=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new Bn(r.insertBefore(Sc(),l),l,void 0,t??{})}return s._$AI(i),s};var Db=globalThis,y=class extends es{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Vh(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};y._$litElement$=!0,y.finalized=!0,Db.litElementHydrateSupport?.({LitElement:y});var K3=Db.litElementPolyfillSupport;K3?.({LitElement:y});(Db.litElementVersions??=[]).push("4.2.2");var W3={attribute:!0,type:String,converter:$c,reflect:!1,hasChanged:Oh},Y3=(i=W3,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(i){return(r,t)=>typeof t=="object"?Y3(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}function C(i){return u({...i,state:!0,attribute:!1})}var vi=(i,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,t),t);function vR(i,r){return(t,e,s)=>{let l=d=>d.renderRoot?.querySelector(i)??null;if(r){let{get:d,set:m}=typeof e=="object"?t:s??(()=>{let g=Symbol();return{get(){return this[g]},set(E){this[g]=E}}})();return vi(t,e,{get(){let g=d.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&m.call(this,g)),g}})}return vi(t,e,{get(){return l(this)}})}}var Ts=class extends Event{constructor(r,t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t,this.callback=e,this.subscribe=s??!1}};var q=class{constructor(r,t,e,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,d)),this.unsubscribe=d},this.host=r,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Ts(this.context,this.host,this.t,this.subscribe))}};var Ph=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,t=!1){let e=t||!Object.is(r,this.o);this.o=r,e&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},r!==void 0&&(this.value=r)}addCallback(r,t,e){if(!e)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:t});let{disposer:s}=this.subscriptions.get(r);r(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Hb=class extends Event{constructor(r,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t}},Fn=class extends Ph{constructor(r,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=s=>{if(s.context!==this.context)return;let l=s.contextTarget??s.composedPath()[0];l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let l=new Set;for(let[d,{consumerHost:m}]of this.subscriptions)l.has(d)||(l.add(d),m.dispatchEvent(new Ts(this.context,m,d,!0)));s.stopPropagation()},this.host=r,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Hb(this.context,this.host))}};function lt({context:i}){return(r,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return r.get.call(this)},set(s){return e.get(this).setValue(s),r.set.call(this,s)},init(s){return e.set(this,new Fn(this,{context:i,initialValue:s})),s}};{r.constructor.addInitializer(d=>{e.set(d,new Fn(d,{context:i}))});let s=Object.getOwnPropertyDescriptor(r,t),l;if(s===void 0){let d=new WeakMap;l={get(){return d.get(this)},set(m){e.get(this).setValue(m),d.set(this,m)},configurable:!0,enumerable:!0}}else{let d=s.set;l={...s,set(m){e.get(this).setValue(m),d?.call(this,m)}}}return void Object.defineProperty(r,t,l)}}}function Nt({context:i,subscribe:r}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new q(this,{context:i,callback:s=>{t.set.call(this,s)},subscribe:r})}):t.constructor.addInitializer(s=>{new q(s,{context:i,callback:l=>{s[e]=l},subscribe:r})})}}var w=b`
|
|
6
6
|
* {
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
}
|
|
@@ -101,7 +101,7 @@ var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDe
|
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
}
|
|
104
|
-
`,bR,xR,
|
|
104
|
+
`,bR,yR,xR,wR,kR,ER,CR,$R,TR,SR,_t,Bb,Fb,Vb,Pb,Ub,qb,jb,Kb,Wb,AR,Gb,Po,Vn,ir,Rc,jh,Kh,Wh,Yh,Yb,qh,ye=class extends(SR=y,TR=[u({type:Array})],$R=[u({type:Array,attribute:"default-value"})],CR=[u({type:Boolean})],ER=[u({type:Boolean})],kR=[u({type:Boolean,attribute:"loop-focus"})],wR=[u({type:String})],xR=[u({type:Boolean,attribute:"keep-mounted"})],yR=[C()],bR=[lt({context:Uh}),C()],SR){constructor(){super(...arguments);a(this,Po);a(this,Bb,n(_t,8,this)),n(_t,11,this);a(this,Fb,n(_t,12,this,[])),n(_t,15,this);a(this,Vb,n(_t,16,this,!1)),n(_t,19,this);a(this,Pb,n(_t,20,this,!1)),n(_t,23,this);a(this,Ub,n(_t,24,this,!0)),n(_t,27,this);a(this,qb,n(_t,28,this,"vertical")),n(_t,31,this);a(this,jb,n(_t,32,this,!1)),n(_t,35,this);a(this,Kb,n(_t,36,this,[])),n(_t,39,this);a(this,Vn,new Map);a(this,ir,[]);a(this,Rc,()=>this.value??o(this,Po,AR));a(this,jh,t=>{let e=[...o(this,Rc).call(this)],s=e.indexOf(t),l;s>=0?l=e.filter(d=>d!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&h(this,Po,l,Gb),this.dispatchEvent(Xb(l))});a(this,Kh,(t,e)=>{o(this,Vn).set(t,e),o(this,ir).includes(t)||o(this,ir).push(t)});a(this,Wh,t=>{o(this,Vn).delete(t),h(this,ir,o(this,ir).filter(e=>e!==t))});a(this,Yh,(t,e)=>{let s=o(this,ir).indexOf(t);if(s===-1)return;let l=o(this,ir).length,d;switch(e){case"next":s<l-1?d=s+1:this.loopFocus&&(d=0);break;case"prev":s>0?d=s-1:this.loopFocus&&(d=l-1);break;case"first":d=0;break;case"last":d=l-1;break}if(d!==void 0){let m=o(this,ir)[d];o(this,Vn).get(m)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});a(this,Yb,n(_t,40,this,p(this,Po,qh).call(this))),n(_t,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Po,[...this.defaultValue],Gb),this._ctx=p(this,Po,qh).call(this)}willUpdate(){this._ctx=p(this,Po,qh).call(this)}render(){return f`
|
|
105
105
|
<div
|
|
106
106
|
part="root"
|
|
107
107
|
data-orientation=${this.orientation}
|
|
@@ -109,7 +109,7 @@ var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDe
|
|
|
109
109
|
>
|
|
110
110
|
<slot></slot>
|
|
111
111
|
</div>
|
|
112
|
-
`}};_t=A(SR),Bb=new WeakMap,Fb=new WeakMap,Vb=new WeakMap,Pb=new WeakMap,Ub=new WeakMap,qb=new WeakMap,jb=new WeakMap,Kb=new WeakMap,Po=new WeakSet,Vn=new WeakMap,
|
|
112
|
+
`}};_t=A(SR),Bb=new WeakMap,Fb=new WeakMap,Vb=new WeakMap,Pb=new WeakMap,Ub=new WeakMap,qb=new WeakMap,jb=new WeakMap,Kb=new WeakMap,Po=new WeakSet,Vn=new WeakMap,ir=new WeakMap,Rc=new WeakMap,jh=new WeakMap,Kh=new WeakMap,Wh=new WeakMap,Yh=new WeakMap,Yb=new WeakMap,qh=function(){return{openValues:o(this,Rc).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:o(this,jh),registerItem:o(this,Kh),unregisterItem:o(this,Wh),focusItem:o(this,Yh)}},c(_t,4,"value",TR,ye,Bb),c(_t,4,"defaultValue",$R,ye,Fb),c(_t,4,"disabled",CR,ye,Vb),c(_t,4,"multiple",ER,ye,Pb),c(_t,4,"loopFocus",kR,ye,Ub),c(_t,4,"orientation",wR,ye,qb),c(_t,4,"keepMounted",xR,ye,jb),Wb=c(_t,20,"#internalOpenValues",yR,Po,Kb),AR=Wb.get,Gb=Wb.set,c(_t,4,"_ctx",bR,ye,Yb),T(_t,ye),v(ye,"tagName","dui-accordion"),v(ye,"styles",[w,G3]);var hy=M("open-change",{bubbles:!0,composed:!0}),X3=b`
|
|
113
113
|
:host {
|
|
114
114
|
display: block;
|
|
115
115
|
}
|
|
@@ -137,19 +137,19 @@ var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDe
|
|
|
137
137
|
contain: content;
|
|
138
138
|
transition-property: height;
|
|
139
139
|
}
|
|
140
|
-
`,_R,RR,IR,LR,zR,
|
|
140
|
+
`,_R,RR,IR,LR,OR,zR,MR,NR,qt,Jb,Qb,Zb,ty,ey,ly,Gh,P,oy,ry,Xh,Jh,sy,iy,DR,bi,ny,ay,dy,Qh,Pn,xi,yi,Ic,cy,py,HR,BR,Zh,tu,eu,wo=class extends(NR=y,MR=[u({type:String})],zR=[u({type:Boolean})],OR=[Nt({context:Uh,subscribe:!0})],LR=[C()],IR=[C()],RR=[C()],_R=[C()],NR){constructor(){super(...arguments);a(this,P);a(this,Jb,n(qt,8,this,"")),n(qt,11,this);a(this,Qb,n(qt,12,this,!1)),n(qt,15,this);a(this,Zb,n(qt,16,this)),n(qt,19,this);a(this,ty,n(qt,20,this,!1)),n(qt,23,this);a(this,oy,n(qt,24,this,!1)),n(qt,27,this);a(this,sy,n(qt,28,this,"0")),n(qt,31,this);a(this,ny,n(qt,32,this,!1)),n(qt,35,this);a(this,Pn);a(this,xi,0);a(this,Zh,t=>{t.propertyName==="height"&&(o(this,P,Xh)?(h(this,P,!1,Jh),this._ctx?.keepMounted||h(this,P,!1,Qh)):o(this,P,yi)&&h(this,P,"auto",bi))});a(this,tu,()=>{o(this,P,Ic)||this._ctx.toggle(this.value)});a(this,eu,t=>{if(o(this,P,Ic))return;let e=this._ctx.orientation==="vertical",s=e?"ArrowDown":"ArrowRight",l=e?"ArrowUp":"ArrowLeft";switch(t.key){case s:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case l:t.preventDefault(),this._ctx.focusItem(this.value,"prev");break;case"Home":t.preventDefault(),this._ctx.focusItem(this.value,"first");break;case"End":t.preventDefault(),this._ctx.focusItem(this.value,"last");break}})}connectedCallback(){super.connectedCallback(),this._ctx?.registerItem(this.value,this)}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(this.value)}willUpdate(){let t=o(this,P,yi);o(this,Pn)===void 0?(h(this,P,t,Qh),h(this,P,t?"auto":"0",bi)):o(this,Pn)!==t&&(t?p(this,P,HR).call(this):p(this,P,BR).call(this),this.dispatchEvent(hy({value:this.value,open:t}))),h(this,Pn,t)}render(){let t=o(this,P,dy)||this._ctx?.keepMounted;return f`
|
|
141
141
|
<div
|
|
142
142
|
part="item"
|
|
143
|
-
?data-open=${o(this,P,
|
|
143
|
+
?data-open=${o(this,P,yi)}
|
|
144
144
|
?data-disabled=${o(this,P,Ic)}
|
|
145
145
|
>
|
|
146
146
|
<h3 part="header">
|
|
147
147
|
<button
|
|
148
148
|
part="trigger"
|
|
149
|
-
id=${o(this,P,
|
|
150
|
-
aria-expanded=${o(this,P,
|
|
151
|
-
aria-controls=${o(this,P,
|
|
152
|
-
?data-open=${o(this,P,
|
|
149
|
+
id=${o(this,P,cy)}
|
|
150
|
+
aria-expanded=${o(this,P,yi)}
|
|
151
|
+
aria-controls=${o(this,P,py)}
|
|
152
|
+
?data-open=${o(this,P,yi)}
|
|
153
153
|
?data-disabled=${o(this,P,Ic)}
|
|
154
154
|
@click=${o(this,tu)}
|
|
155
155
|
@keydown=${o(this,eu)}
|
|
@@ -160,14 +160,14 @@ var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDe
|
|
|
160
160
|
${t?f`
|
|
161
161
|
<div
|
|
162
162
|
part="panel"
|
|
163
|
-
id=${o(this,P,
|
|
163
|
+
id=${o(this,P,py)}
|
|
164
164
|
role="region"
|
|
165
|
-
aria-labelledby=${o(this,P,
|
|
165
|
+
aria-labelledby=${o(this,P,cy)}
|
|
166
166
|
style="height: ${o(this,P,DR)}"
|
|
167
|
-
?data-open=${o(this,P,
|
|
168
|
-
?data-starting-style=${o(this,P,
|
|
167
|
+
?data-open=${o(this,P,yi)&&!o(this,P,ly)}
|
|
168
|
+
?data-starting-style=${o(this,P,ly)}
|
|
169
169
|
?data-ending-style=${o(this,P,Xh)}
|
|
170
|
-
?hidden=${!o(this,P,
|
|
170
|
+
?hidden=${!o(this,P,dy)&&!o(this,P,Xh)}
|
|
171
171
|
@transitionend=${o(this,Zh)}
|
|
172
172
|
>
|
|
173
173
|
<div part="content">
|
|
@@ -176,7 +176,7 @@ var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDe
|
|
|
176
176
|
</div>
|
|
177
177
|
`:L}
|
|
178
178
|
</div>
|
|
179
|
-
`}};qt=A(NR),Jb=new WeakMap,Qb=new WeakMap,Zb=new WeakMap,
|
|
179
|
+
`}};qt=A(NR),Jb=new WeakMap,Qb=new WeakMap,Zb=new WeakMap,ty=new WeakMap,P=new WeakSet,oy=new WeakMap,sy=new WeakMap,ny=new WeakMap,Pn=new WeakMap,xi=new WeakMap,yi=function(){return this._ctx?.openValues.includes(this.value)??!1},Ic=function(){return this.disabled||this._ctx?.disabled},cy=function(){return`dui-trigger-${this.value}`},py=function(){return`dui-panel-${this.value}`},HR=function(){let t=++Cs(this,xi)._;h(this,P,!1,Jh),h(this,P,!0,Qh),h(this,P,!0,Gh),h(this,P,"0",bi),requestAnimationFrame(()=>{if(o(this,xi)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),h(this,P,!1,Gh)})},BR=function(){let t=++Cs(this,xi)._;h(this,P,!1,Gh);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),requestAnimationFrame(()=>{o(this,xi)===t&&(h(this,P,!0,Jh),h(this,P,"0",bi))})},Zh=new WeakMap,tu=new WeakMap,eu=new WeakMap,c(qt,4,"value",MR,wo,Jb),c(qt,4,"disabled",zR,wo,Qb),c(qt,4,"_ctx",OR,wo,Zb),ey=c(qt,20,"#starting",LR,P,ty),ly=ey.get,Gh=ey.set,ry=c(qt,20,"#ending",IR,P,oy),Xh=ry.get,Jh=ry.set,iy=c(qt,20,"#panelHeight",RR,P,sy),DR=iy.get,bi=iy.set,ay=c(qt,20,"#visible",_R,P,ny),dy=ay.get,Qh=ay.set,T(qt,wo),v(wo,"tagName","dui-accordion-item"),v(wo,"styles",[w,X3]);var FR=`/* =================================================================
|
|
180
180
|
* DUI Design Tokens
|
|
181
181
|
* =================================================================
|
|
182
182
|
* Combined token system: spacing, typography, borders, elevation,
|
|
@@ -574,36 +574,6 @@ var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDe
|
|
|
574
574
|
--prose-kbd-border: var(--border-strong);
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
-
/* =================================================================
|
|
578
|
-
* Base document styles
|
|
579
|
-
* ================================================================= */
|
|
580
|
-
:root {
|
|
581
|
-
color: var(--text-1);
|
|
582
|
-
font-family: var(--font-sans);
|
|
583
|
-
line-height: var(--line-height-normal);
|
|
584
|
-
-webkit-font-smoothing: antialiased;
|
|
585
|
-
-moz-osx-font-smoothing: grayscale;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/* =================================================================
|
|
589
|
-
* Heading defaults
|
|
590
|
-
* ================================================================= */
|
|
591
|
-
h1 { font-size: var(--text-4xl); line-height: var(--text-4xl--line-height); } /* 36 / 40 */
|
|
592
|
-
h2 { font-size: var(--text-3xl); line-height: var(--text-3xl--line-height); } /* 30 / 36 */
|
|
593
|
-
h3 { font-size: var(--text-2xl); line-height: var(--text-2xl--line-height); } /* 24 / 32 */
|
|
594
|
-
h4 { font-size: var(--text-xl); line-height: var(--text-xl--line-height); } /* 20 / 28 */
|
|
595
|
-
h5 { font-size: var(--text-lg); line-height: var(--text-lg--line-height); } /* 18 / 28 */
|
|
596
|
-
h6 { font-size: var(--text-base); line-height: var(--text-base--line-height); } /* 16 / 24 */
|
|
597
|
-
|
|
598
|
-
/* =================================================================
|
|
599
|
-
* Baseline grid trim \u2014 prose elements anchor visible glyph edges,
|
|
600
|
-
* not CSS line-box edges, to the 4px grid.
|
|
601
|
-
* ================================================================= */
|
|
602
|
-
h1, h2, h3, h4, h5, h6,
|
|
603
|
-
p, li, blockquote, dt, dd,
|
|
604
|
-
label, legend, caption, figcaption, th, td {
|
|
605
|
-
text-box: trim-both cap alphabetic;
|
|
606
|
-
}
|
|
607
577
|
`;var VR=`/* =================================================================
|
|
608
578
|
* CSS @property Declarations
|
|
609
579
|
* =================================================================
|
|
@@ -965,7 +935,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
965
935
|
inherits: true;
|
|
966
936
|
initial-value: 0.5rem;
|
|
967
937
|
}
|
|
968
|
-
`;var
|
|
938
|
+
`;var uy=new CSSStyleSheet;uy.replaceSync(VR+`
|
|
969
939
|
`+FR);var PR=`/* =================================================================
|
|
970
940
|
* DUI Prose \u2014 Rich-text / markdown content styles
|
|
971
941
|
* =================================================================
|
|
@@ -1216,11 +1186,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1216
1186
|
cursor: pointer;
|
|
1217
1187
|
font-weight: var(--font-weight-medium);
|
|
1218
1188
|
}
|
|
1219
|
-
`;var
|
|
1189
|
+
`;var my=new CSSStyleSheet;my.replaceSync(PR);for(let i of[uy,my])i&&!document.adoptedStyleSheets.includes(i)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,i]);var J3=k`
|
|
1220
1190
|
::slotted(:last-child) {
|
|
1221
1191
|
--accordion-item-border: none;
|
|
1222
1192
|
}
|
|
1223
|
-
`,Un=class extends
|
|
1193
|
+
`,Un=class extends ye{static styles=[...ye.styles,J3]};customElements.define(Un.tagName,Un);var UR=Qr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`),Q3=k`
|
|
1224
1194
|
/* ── Item ── */
|
|
1225
1195
|
|
|
1226
1196
|
[part="item"] {
|
|
@@ -1314,11 +1284,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1314
1284
|
transition-duration: 0s;
|
|
1315
1285
|
}
|
|
1316
1286
|
}
|
|
1317
|
-
`,qn=class extends wo{static styles=[...wo.styles,Q3]};customElements.define(qn.tagName,qn);var
|
|
1287
|
+
`,qn=class extends wo{static styles=[...wo.styles,Q3]};customElements.define(qn.tagName,qn);var Ss=Symbol("dui-alert-dialog");var su=M("open-change",{bubbles:!0,composed:!0}),Z3=b`
|
|
1318
1288
|
:host {
|
|
1319
1289
|
display: contents;
|
|
1320
1290
|
}
|
|
1321
|
-
`,qR,jR,KR,WR,YR,so,
|
|
1291
|
+
`,qR,jR,KR,WR,YR,so,fy,gy,vy,by,GR,ou,Ve,wi,iu,nu,au,lu,XR,du,cu,yy,ru,ko=class extends(YR=y,WR=[u({type:Boolean,reflect:!0})],KR=[u({type:Boolean,attribute:"default-open"})],jR=[C()],qR=[lt({context:Ss}),C()],YR){constructor(){super(...arguments);a(this,Ve);a(this,fy,n(so,8,this)),n(so,11,this);a(this,gy,n(so,12,this,!1)),n(so,15,this);a(this,vy,n(so,16,this,!1)),n(so,19,this);a(this,wi,crypto.randomUUID().slice(0,8));a(this,iu,`dui-alert-dialog-${o(this,wi)}`);a(this,nu,`dui-alert-trigger-${o(this,wi)}`);a(this,au,`dui-alert-title-${o(this,wi)}`);a(this,lu,`dui-alert-desc-${o(this,wi)}`);a(this,du,()=>{this.open===void 0&&h(this,Ve,!0,ou),this.dispatchEvent(su({open:!0}))});a(this,cu,()=>{this.open===void 0&&h(this,Ve,!1,ou),this.dispatchEvent(su({open:!1}))});a(this,yy,n(so,20,this,p(this,Ve,ru).call(this))),n(so,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ve,!0,ou),this._ctx=p(this,Ve,ru).call(this)}willUpdate(){this._ctx=p(this,Ve,ru).call(this)}render(){return f`<slot></slot>`}};so=A(YR),fy=new WeakMap,gy=new WeakMap,vy=new WeakMap,Ve=new WeakSet,wi=new WeakMap,iu=new WeakMap,nu=new WeakMap,au=new WeakMap,lu=new WeakMap,XR=function(){return this.open??o(this,Ve,GR)},du=new WeakMap,cu=new WeakMap,yy=new WeakMap,ru=function(){return{open:o(this,Ve,XR),dialogId:o(this,iu),triggerId:o(this,nu),titleId:o(this,au),descriptionId:o(this,lu),openDialog:o(this,du),closeDialog:o(this,cu)}},c(so,4,"open",WR,ko,fy),c(so,4,"defaultOpen",KR,ko,gy),by=c(so,20,"#internalOpen",jR,Ve,vy),GR=by.get,ou=by.set,c(so,4,"_ctx",qR,ko,yy),T(so,ko),v(ko,"tagName","dui-alert-dialog"),v(ko,"styles",[w,Z3]);var t4=b`
|
|
1322
1292
|
:host {
|
|
1323
1293
|
display: contents;
|
|
1324
1294
|
}
|
|
@@ -1326,7 +1296,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1326
1296
|
.Trigger {
|
|
1327
1297
|
display: contents;
|
|
1328
1298
|
}
|
|
1329
|
-
`,Lc=class extends
|
|
1299
|
+
`,Lc=class extends y{static tagName="dui-alert-dialog-trigger";static styles=[w,t4,e4];#t=new q(this,{context:Ss,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let r=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
|
|
1330
1300
|
<span
|
|
1331
1301
|
class="Trigger"
|
|
1332
1302
|
part="trigger"
|
|
@@ -1368,13 +1338,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
1368
1338
|
z-index: 1000;
|
|
1369
1339
|
transition-property: opacity, transform;
|
|
1370
1340
|
}
|
|
1371
|
-
`,QR,ZR,tI,eI,oI,rI,sI,ie,
|
|
1341
|
+
`,QR,ZR,tI,eI,oI,rI,sI,ie,xy,wy,ky,Ey,Cy,Kn,_y,et,$y,Ty,Ry,Iy,Sy,Ay,rs,Ly,Wn,As,iI,nI,Oy,aI,lI,uu,dI,Eo=class extends(sI=y,rI=[u({type:Boolean,attribute:"keep-mounted"})],oI=[u({attribute:"initial-focus"})],eI=[u({attribute:"final-focus"})],tI=[C()],ZR=[C()],QR=[C()],sI){constructor(){super(...arguments);a(this,et);a(this,xy,n(ie,8,this,!1)),n(ie,11,this);a(this,wy,n(ie,12,this)),n(ie,15,this);a(this,ky,n(ie,16,this)),n(ie,19,this);a(this,Ey,n(ie,20,this,!1)),n(ie,23,this);a(this,$y,n(ie,24,this,!1)),n(ie,27,this);a(this,Sy,n(ie,28,this,!1)),n(ie,31,this);a(this,Wn);a(this,As,new q(this,{context:Ss,subscribe:!0}));a(this,uu,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,As).value?.closeDialog()),t.key==="Tab"&&p(this,et,dI).call(this,t)})}updated(){let t=o(this,As).value?.open??!1;t&&!o(this,et,Kn)?p(this,et,iI).call(this):!t&&o(this,et,Kn)&&!o(this,et,rs)&&p(this,et,nI).call(this)}willUpdate(){o(this,et,Kn)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,As).value?.open??!1,e=o(this,As).value?.titleId??"",s=o(this,As).value?.descriptionId??"";return!o(this,et,Kn)&&!this.keepMounted?f``:f`
|
|
1372
1342
|
<div
|
|
1373
1343
|
part="backdrop"
|
|
1374
|
-
?data-open="${t&&!o(this,et,
|
|
1375
|
-
?data-closed="${!t||o(this,et,
|
|
1376
|
-
?data-starting-style="${o(this,et,
|
|
1377
|
-
?data-ending-style="${o(this,et,
|
|
1344
|
+
?data-open="${t&&!o(this,et,rs)}"
|
|
1345
|
+
?data-closed="${!t||o(this,et,rs)}"
|
|
1346
|
+
?data-starting-style="${o(this,et,Ry)}"
|
|
1347
|
+
?data-ending-style="${o(this,et,rs)}"
|
|
1378
1348
|
></div>
|
|
1379
1349
|
<div
|
|
1380
1350
|
part="popup"
|
|
@@ -1382,10 +1352,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
1382
1352
|
aria-modal="true"
|
|
1383
1353
|
aria-labelledby="${e}"
|
|
1384
1354
|
aria-describedby="${s}"
|
|
1385
|
-
?data-open="${t&&!o(this,et,
|
|
1386
|
-
?data-closed="${!t||o(this,et,
|
|
1387
|
-
?data-starting-style="${o(this,et,
|
|
1388
|
-
?data-ending-style="${o(this,et,
|
|
1355
|
+
?data-open="${t&&!o(this,et,rs)}"
|
|
1356
|
+
?data-closed="${!t||o(this,et,rs)}"
|
|
1357
|
+
?data-starting-style="${o(this,et,Ry)}"
|
|
1358
|
+
?data-ending-style="${o(this,et,rs)}"
|
|
1389
1359
|
tabindex="-1"
|
|
1390
1360
|
@keydown="${o(this,uu)}"
|
|
1391
1361
|
>
|
|
@@ -1393,15 +1363,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
1393
1363
|
<p part="description" id="${s}"><slot name="description"></slot></p>
|
|
1394
1364
|
<slot></slot>
|
|
1395
1365
|
</div>
|
|
1396
|
-
`}};ie=A(sI),
|
|
1366
|
+
`}};ie=A(sI),xy=new WeakMap,wy=new WeakMap,ky=new WeakMap,Ey=new WeakMap,et=new WeakSet,$y=new WeakMap,Sy=new WeakMap,Wn=new WeakMap,As=new WeakMap,iI=async function(){h(this,Wn,document.activeElement??void 0),h(this,et,!0,_y),h(this,et,!0,Iy),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,et,!1,Iy),await this.updateComplete,p(this,et,aI).call(this)},nI=function(){h(this,et,!0,Ly);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,et,Oy).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,et,Oy).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},Oy=function(){!o(this,et,rs)&&!o(this,et,Kn)||(h(this,et,!1,Ly),this.keepMounted||h(this,et,!1,_y),p(this,et,lI).call(this))},aI=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},lI=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Wn)?.focus(),h(this,Wn,void 0)},uu=new WeakMap,dI=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},c(ie,4,"keepMounted",rI,Eo,xy),c(ie,4,"initialFocus",oI,Eo,wy),c(ie,4,"finalFocus",eI,Eo,ky),Cy=c(ie,20,"#mounted",tI,et,Ey),Kn=Cy.get,_y=Cy.set,Ty=c(ie,20,"#startingStyle",ZR,et,$y),Ry=Ty.get,Iy=Ty.set,Ay=c(ie,20,"#endingStyle",QR,et,Sy),rs=Ay.get,Ly=Ay.set,T(ie,Eo),v(Eo,"tagName","dui-alert-dialog-popup"),v(Eo,"styles",[w,s4,i4]);var n4=b`
|
|
1397
1367
|
:host {
|
|
1398
1368
|
display: contents;
|
|
1399
1369
|
}
|
|
1400
|
-
`,
|
|
1370
|
+
`,Oc=class extends y{static tagName="dui-alert-dialog-close";static styles=[w,n4];#t=new q(this,{context:Ss,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
1401
1371
|
<span @click="${this.#e}">
|
|
1402
1372
|
<slot></slot>
|
|
1403
1373
|
</span>
|
|
1404
|
-
`}};var a4=k``,Yn=class extends ko{static styles=[...ko.styles,a4]};customElements.define(Yn.tagName,Yn);var Gn=class extends
|
|
1374
|
+
`}};var a4=k``,Yn=class extends ko{static styles=[...ko.styles,a4]};customElements.define(Yn.tagName,Yn);var Gn=class extends Oc{};customElements.define(Gn.tagName,Gn);var l4=k`
|
|
1405
1375
|
/* ── Backdrop ── */
|
|
1406
1376
|
|
|
1407
1377
|
[part="backdrop"] {
|
|
@@ -1468,7 +1438,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1468
1438
|
transition-duration: 0s;
|
|
1469
1439
|
}
|
|
1470
1440
|
}
|
|
1471
|
-
`,Xn=class extends Eo{static styles=[...Eo.styles,l4]};customElements.define(Xn.tagName,Xn);var Jn=class extends Lc{};customElements.define(Jn.tagName,Jn);var
|
|
1441
|
+
`,Xn=class extends Eo{static styles=[...Eo.styles,l4]};customElements.define(Xn.tagName,Xn);var Jn=class extends Lc{};customElements.define(Jn.tagName,Jn);var Ky=M("loading-status-change",{bubbles:!0,composed:!0}),d4=b`
|
|
1472
1442
|
:host {
|
|
1473
1443
|
--avatar-size: var(--space-12);
|
|
1474
1444
|
display: inline-block;
|
|
@@ -1498,7 +1468,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1498
1468
|
height: 100%;
|
|
1499
1469
|
width: 100%;
|
|
1500
1470
|
}
|
|
1501
|
-
`,cI,pI,hI,uI,mI,fI,gI,ne,
|
|
1471
|
+
`,cI,pI,hI,uI,mI,fI,gI,ne,zy,My,Ny,Dy,Hy,By,vI,bI,Tt,Fy,Vy,yI,mu,_s,ki,zc,Py,Uy,qy,jy,io=class extends(gI=y,fI=[u()],mI=[u()],uI=[u({type:Number,attribute:"fallback-delay"})],hI=[u({reflect:!0})],pI=[C()],cI=[C()],gI){constructor(){super(...arguments);a(this,Tt);a(this,zy,n(ne,8,this)),n(ne,11,this);a(this,My,n(ne,12,this,"")),n(ne,15,this);a(this,Ny,n(ne,16,this)),n(ne,19,this);a(this,Dy,n(ne,20,this)),n(ne,23,this);a(this,Hy,n(ne,24,this,"idle")),n(ne,27,this);a(this,Fy,n(ne,28,this,!1)),n(ne,31,this);a(this,_s);a(this,ki)}connectedCallback(){super.connectedCallback(),p(this,Tt,qy).call(this),p(this,Tt,Py).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Tt,Uy).call(this),p(this,Tt,jy).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&p(this,Tt,Py).call(this),t.has("fallbackDelay")&&p(this,Tt,qy).call(this)}render(){let t=this.src&&o(this,Tt,vI)==="loaded",e=!t&&o(this,Tt,yI);return f`
|
|
1502
1472
|
<span part="root">
|
|
1503
1473
|
${t?f`
|
|
1504
1474
|
<img
|
|
@@ -1510,7 +1480,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1510
1480
|
<span part="fallback"><slot></slot></span>
|
|
1511
1481
|
`:L}
|
|
1512
1482
|
</span>
|
|
1513
|
-
`}};ne=A(gI),
|
|
1483
|
+
`}};ne=A(gI),zy=new WeakMap,My=new WeakMap,Ny=new WeakMap,Dy=new WeakMap,Hy=new WeakMap,Tt=new WeakSet,Fy=new WeakMap,_s=new WeakMap,ki=new WeakMap,zc=function(t){h(this,Tt,t,bI),this.dispatchEvent(Ky({status:t}))},Py=function(){if(p(this,Tt,Uy).call(this),!this.src){p(this,Tt,zc).call(this,"error");return}p(this,Tt,zc).call(this,"loading");let t=new Image;t.onload=()=>p(this,Tt,zc).call(this,"loaded"),t.onerror=()=>p(this,Tt,zc).call(this,"error"),t.src=this.src,h(this,_s,t)},Uy=function(){o(this,_s)&&(o(this,_s).onload=null,o(this,_s).onerror=null,h(this,_s,void 0))},qy=function(){if(p(this,Tt,jy).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){h(this,Tt,!0,mu);return}h(this,Tt,!1,mu),h(this,ki,setTimeout(()=>{h(this,Tt,!0,mu)},this.fallbackDelay))},jy=function(){o(this,ki)!==void 0&&(clearTimeout(o(this,ki)),h(this,ki,void 0))},c(ne,4,"src",fI,io,zy),c(ne,4,"alt",mI,io,My),c(ne,4,"fallbackDelay",uI,io,Ny),c(ne,4,"size",hI,io,Dy),By=c(ne,20,"#imageStatus",pI,Tt,Hy),vI=By.get,bI=By.set,Vy=c(ne,20,"#delayPassed",cI,Tt,Fy),yI=Vy.get,mu=Vy.set,T(ne,io),v(io,"tagName","dui-avatar"),v(io,"styles",[w,d4]);var c4=k`
|
|
1514
1484
|
:host {
|
|
1515
1485
|
--avatar-bg: oklch(from var(--foreground) l c h / 0.08);
|
|
1516
1486
|
--avatar-fg: var(--text-2);
|
|
@@ -1539,7 +1509,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1539
1509
|
display: inline-flex;
|
|
1540
1510
|
align-items: center;
|
|
1541
1511
|
}
|
|
1542
|
-
`,Zn=class extends
|
|
1512
|
+
`,Zn=class extends y{static tagName="dui-badge";static styles=[w,p4];render(){return f`
|
|
1543
1513
|
<span part="root">
|
|
1544
1514
|
<slot></slot>
|
|
1545
1515
|
</span>
|
|
@@ -1643,7 +1613,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1643
1613
|
margin: 0;
|
|
1644
1614
|
padding: 0;
|
|
1645
1615
|
}
|
|
1646
|
-
`,ea=class extends
|
|
1616
|
+
`,ea=class extends y{static tagName="dui-breadcrumb";static styles=[w,u4];render(){return f`
|
|
1647
1617
|
<nav aria-label="breadcrumb">
|
|
1648
1618
|
<ol part="root">
|
|
1649
1619
|
<slot></slot>
|
|
@@ -1658,7 +1628,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1658
1628
|
display: inline-flex;
|
|
1659
1629
|
align-items: center;
|
|
1660
1630
|
}
|
|
1661
|
-
`,oa=class extends
|
|
1631
|
+
`,oa=class extends y{static tagName="dui-breadcrumb-item";static styles=[w,m4];render(){return f`
|
|
1662
1632
|
<li part="root">
|
|
1663
1633
|
<slot></slot>
|
|
1664
1634
|
</li>
|
|
@@ -1671,7 +1641,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1671
1641
|
display: inline-flex;
|
|
1672
1642
|
align-items: center;
|
|
1673
1643
|
}
|
|
1674
|
-
`,ra=class extends
|
|
1644
|
+
`,ra=class extends y{static tagName="dui-breadcrumb-link";static styles=[w,f4];render(){return f`
|
|
1675
1645
|
<span part="root">
|
|
1676
1646
|
<slot></slot>
|
|
1677
1647
|
</span>
|
|
@@ -1684,7 +1654,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1684
1654
|
display: inline-flex;
|
|
1685
1655
|
align-items: center;
|
|
1686
1656
|
}
|
|
1687
|
-
`,sa=class extends
|
|
1657
|
+
`,sa=class extends y{static tagName="dui-breadcrumb-page";static styles=[w,g4];render(){return f`
|
|
1688
1658
|
<span
|
|
1689
1659
|
role="link"
|
|
1690
1660
|
aria-disabled="true"
|
|
@@ -1702,7 +1672,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1702
1672
|
display: flex;
|
|
1703
1673
|
align-items: center;
|
|
1704
1674
|
}
|
|
1705
|
-
`,ia=class extends
|
|
1675
|
+
`,ia=class extends y{static tagName="dui-breadcrumb-separator";static styles=[w,v4];render(){return f`
|
|
1706
1676
|
<li
|
|
1707
1677
|
role="presentation"
|
|
1708
1678
|
aria-hidden="true"
|
|
@@ -1722,7 +1692,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1722
1692
|
align-items: center;
|
|
1723
1693
|
justify-content: center;
|
|
1724
1694
|
}
|
|
1725
|
-
`,na=class extends
|
|
1695
|
+
`,na=class extends y{static tagName="dui-breadcrumb-ellipsis";static styles=[w,b4];render(){return f`
|
|
1726
1696
|
<span
|
|
1727
1697
|
role="presentation"
|
|
1728
1698
|
aria-hidden="true"
|
|
@@ -1730,19 +1700,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
1730
1700
|
>
|
|
1731
1701
|
<slot>…</slot>
|
|
1732
1702
|
</span>
|
|
1733
|
-
`}};var
|
|
1703
|
+
`}};var y4=k`
|
|
1734
1704
|
[part="root"] {
|
|
1735
1705
|
gap: var(--space-2);
|
|
1736
1706
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
1737
1707
|
font-family: var(--font-sans);
|
|
1738
1708
|
color: var(--text-2);
|
|
1739
1709
|
}
|
|
1740
|
-
`,aa=class extends ea{static styles=[...ea.styles,
|
|
1710
|
+
`,aa=class extends ea{static styles=[...ea.styles,y4]};customElements.define(aa.tagName,aa);var x4=k`
|
|
1741
1711
|
[part="root"] {
|
|
1742
1712
|
color: var(--text-2);
|
|
1743
1713
|
width: var(--space-4);
|
|
1744
1714
|
}
|
|
1745
|
-
`,la=class extends na{static styles=[...na.styles,
|
|
1715
|
+
`,la=class extends na{static styles=[...na.styles,x4]};customElements.define(la.tagName,la);var w4=k`
|
|
1746
1716
|
[part="root"] {
|
|
1747
1717
|
gap: var(--space-1_5);
|
|
1748
1718
|
}
|
|
@@ -1770,7 +1740,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1770
1740
|
--icon-size: var(--space-3_5);
|
|
1771
1741
|
color: color-mix(in oklch, var(--text-2) 50%, transparent);
|
|
1772
1742
|
}
|
|
1773
|
-
`,ha=class extends ia{static styles=[...ia.styles,C4]};customElements.define(ha.tagName,ha);var
|
|
1743
|
+
`,ha=class extends ia{static styles=[...ia.styles,C4]};customElements.define(ha.tagName,ha);var Jy=M("dui-navigate",{bubbles:!0,composed:!0}),$4=b`
|
|
1774
1744
|
:host {
|
|
1775
1745
|
display: inline-block;
|
|
1776
1746
|
}
|
|
@@ -1795,7 +1765,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1795
1765
|
user-select: none;
|
|
1796
1766
|
-webkit-tap-highlight-color: transparent;
|
|
1797
1767
|
}
|
|
1798
|
-
`,
|
|
1768
|
+
`,xI,wI,kI,EI,CI,no,Wy,Yy,Gy,Xy,fu,gu,ua,$I,TI,Pe=class extends(CI=y,EI=[u({type:Boolean,reflect:!0})],kI=[u({type:Boolean,attribute:"focusable-when-disabled"})],wI=[u()],xI=[u()],CI){constructor(){super(...arguments);a(this,ua);a(this,Wy,n(no,8,this,!1)),n(no,11,this);a(this,Yy,n(no,12,this,!1)),n(no,15,this);a(this,Gy,n(no,16,this,"button")),n(no,19,this);a(this,Xy,n(no,20,this)),n(no,23,this);a(this,fu,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});a(this,gu,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(Jy({href:this.href})))})}render(){return this.href!==void 0?p(this,ua,TI).call(this):p(this,ua,$I).call(this)}};no=A(CI),Wy=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,Xy=new WeakMap,fu=new WeakMap,gu=new WeakMap,ua=new WeakSet,$I=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
|
|
1799
1769
|
<button
|
|
1800
1770
|
part="root"
|
|
1801
1771
|
type="${this.type}"
|
|
@@ -1814,7 +1784,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1814
1784
|
>
|
|
1815
1785
|
<slot></slot>
|
|
1816
1786
|
</a>
|
|
1817
|
-
`},c(no,4,"disabled",EI,Pe,
|
|
1787
|
+
`},c(no,4,"disabled",EI,Pe,Wy),c(no,4,"focusableWhenDisabled",kI,Pe,Yy),c(no,4,"type",wI,Pe,Gy),c(no,4,"href",xI,Pe,Xy),T(no,Pe),v(Pe,"tagName","dui-button"),v(Pe,"shadowRootOptions",{...y.shadowRootOptions,delegatesFocus:!0}),v(Pe,"styles",[w,$4]);var T4=k`
|
|
1818
1788
|
/* =================================================================
|
|
1819
1789
|
* Two-axis variant system:
|
|
1820
1790
|
* variant → semantic intent (neutral, primary, danger)
|
|
@@ -2035,7 +2005,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2035
2005
|
:host([data-open][appearance="soft"]) [part="root"]:not(:disabled):not([aria-disabled="true"]) {
|
|
2036
2006
|
background: oklch(from var(--_intent-base) l c h / 0.18);
|
|
2037
2007
|
}
|
|
2038
|
-
`,ma=class extends Pe{static styles=[...Pe.styles,T4]};customElements.define(ma.tagName,ma);var
|
|
2008
|
+
`,ma=class extends Pe{static styles=[...Pe.styles,T4]};customElements.define(ma.tagName,ma);var yx=M("value-change",{bubbles:!0,composed:!0}),S4=b`
|
|
2039
2009
|
:host {
|
|
2040
2010
|
display: inline-block;
|
|
2041
2011
|
}
|
|
@@ -2095,7 +2065,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2095
2065
|
[part="day"]:disabled {
|
|
2096
2066
|
cursor: not-allowed;
|
|
2097
2067
|
}
|
|
2098
|
-
`,SI,AI,_I,RI,II,LI,zI,
|
|
2068
|
+
`,SI,AI,_I,RI,II,LI,OI,zI,MI,NI,DI,HI,ct,Qy,Zy,tx,ex,ox,rx,sx,ix,nx,BI,ux,D,ax,lx,mx,vu,dx,cx,bu,yu,px,hx,xu,wu,fx,Uo,ku,Mc,Eu,gx,FI,VI,PI,vx,bx,Cu,$u,Tu,Su,$e=class extends(HI=y,DI=[u()],NI=[u({attribute:"default-value"})],MI=[u()],zI=[u()],OI=[u()],LI=[u({type:Boolean,reflect:!0})],II=[u({type:Boolean,reflect:!0,attribute:"read-only"})],RI=[C()],_I=[C()],AI=[C()],SI=[C()],HI){constructor(){super(...arguments);a(this,D);a(this,Qy,n(ct,8,this)),n(ct,11,this);a(this,Zy,n(ct,12,this)),n(ct,15,this);a(this,tx,n(ct,16,this)),n(ct,19,this);a(this,ex,n(ct,20,this)),n(ct,23,this);a(this,ox,n(ct,24,this,"en-US")),n(ct,27,this);a(this,rx,n(ct,28,this,!1)),n(ct,31,this);a(this,sx,n(ct,32,this,!1)),n(ct,35,this);a(this,ix,n(ct,36,this)),n(ct,39,this);a(this,ax,n(ct,40,this,new Date)),n(ct,43,this);a(this,dx,n(ct,44,this,new Date().getMonth())),n(ct,47,this);a(this,px,n(ct,48,this,new Date().getFullYear())),n(ct,51,this);a(this,Cu,t=>{let e=t.currentTarget,s=e.dataset.date;s&&!e.disabled&&p(this,D,vx).call(this,s)});a(this,$u,t=>{let e=new Date(o(this,D,mx)),s=!0;switch(t.key){case"ArrowLeft":e.setDate(e.getDate()-1);break;case"ArrowRight":e.setDate(e.getDate()+1);break;case"ArrowUp":e.setDate(e.getDate()-7);break;case"ArrowDown":e.setDate(e.getDate()+7);break;case"PageUp":t.shiftKey?e.setFullYear(e.getFullYear()-1):e.setMonth(e.getMonth()-1);break;case"PageDown":t.shiftKey?e.setFullYear(e.getFullYear()+1):e.setMonth(e.getMonth()+1);break;case"Home":{e.setDate(1);break}case"End":{let l=p(this,D,Eu).call(this,e.getFullYear(),e.getMonth());e.setDate(l);break}case"Enter":case" ":t.preventDefault(),p(this,D,Mc).call(this,e)||p(this,D,vx).call(this,p(this,D,Uo).call(this,e));return;default:s=!1}s&&(t.preventDefault(),h(this,D,e,vu),h(this,D,e.getMonth(),yu),h(this,D,e.getFullYear(),wu),this.updateComplete.then(()=>{let l=p(this,D,Uo).call(this,e);this.shadowRoot?.querySelector(`[data-date="${l}"]`)?.focus()}))});a(this,Tu,()=>{p(this,D,bx).call(this,-1)});a(this,Su,()=>{p(this,D,bx).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,D,this.defaultValue,ux);let t=o(this,D,fx);if(t){let e=new Date(t+"T00:00:00");h(this,D,e.getMonth(),yu),h(this,D,e.getFullYear(),wu),h(this,D,e,vu)}}render(){let t=p(this,D,FI).call(this),e=p(this,D,VI).call(this),s=p(this,D,PI).call(this),l=p(this,D,Uo).call(this,o(this,D,mx));return f`
|
|
2099
2069
|
<div part="root" role="grid" @keydown="${o(this,$u)}">
|
|
2100
2070
|
<div part="header">
|
|
2101
2071
|
<button
|
|
@@ -2136,7 +2106,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2136
2106
|
`)}
|
|
2137
2107
|
</div>
|
|
2138
2108
|
</div>
|
|
2139
|
-
`}};ct=A(HI),
|
|
2109
|
+
`}};ct=A(HI),Qy=new WeakMap,Zy=new WeakMap,tx=new WeakMap,ex=new WeakMap,ox=new WeakMap,rx=new WeakMap,sx=new WeakMap,ix=new WeakMap,D=new WeakSet,ax=new WeakMap,dx=new WeakMap,px=new WeakMap,fx=function(){return this.value??o(this,D,BI)},Uo=function(t){let e=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${e}-${s}-${l}`},ku=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},Mc=function(t){if(this.disabled)return!0;let e=p(this,D,Uo).call(this,t);return!!(this.min&&e<this.min||this.max&&e>this.max)},Eu=function(t,e){return new Date(t,e+1,0).getDate()},gx=function(){try{let t=new Intl.Locale(this.locale),e=t.weekInfo??t.getWeekInfo?.();return e?.firstDay===7?0:e?.firstDay??0}catch{return 0}},FI=function(){let t=o(this,D,xu),e=o(this,D,bu),s=p(this,D,Eu).call(this,t,e),l=new Date(t,e,1).getDay(),d=p(this,D,gx).call(this),m=new Date,g=o(this,D,fx),E=l-d;E<0&&(E+=7);let $=[],x=e===0?11:e-1,_=e===0?t-1:t,S=p(this,D,Eu).call(this,_,x);for(let F=E-1;F>=0;F--){let G=S-F,J=new Date(_,x,G);$.push({date:J,day:G,iso:p(this,D,Uo).call(this,J),isToday:p(this,D,ku).call(this,J,m),isSelected:p(this,D,Uo).call(this,J)===g,isOutsideMonth:!0,isDisabled:p(this,D,Mc).call(this,J)})}for(let F=1;F<=s;F++){let G=new Date(t,e,F);$.push({date:G,day:F,iso:p(this,D,Uo).call(this,G),isToday:p(this,D,ku).call(this,G,m),isSelected:p(this,D,Uo).call(this,G)===g,isOutsideMonth:!1,isDisabled:p(this,D,Mc).call(this,G)})}let z=42-$.length,B=e===11?0:e+1,j=e===11?t+1:t;for(let F=1;F<=z;F++){let G=new Date(j,B,F);$.push({date:G,day:F,iso:p(this,D,Uo).call(this,G),isToday:p(this,D,ku).call(this,G,m),isSelected:p(this,D,Uo).call(this,G)===g,isOutsideMonth:!0,isDisabled:p(this,D,Mc).call(this,G)})}let K=[];for(let F=0;F<$.length;F+=7)K.push($.slice(F,F+7));return K},VI=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),e=p(this,D,gx).call(this),s=[];for(let l=0;l<7;l++){let d=new Date(2015,0,4+e+l);s.push(t.format(d))}return s},PI=function(){let t=new Date(o(this,D,xu),o(this,D,bu),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},vx=function(t){this.disabled||this.readOnly||(this.value===void 0&&h(this,D,t,ux),this.dispatchEvent(yx({value:t})))},bx=function(t){let e=o(this,D,bu)+t,s=o(this,D,xu);e<0?(e=11,s--):e>11&&(e=0,s++),h(this,D,e,yu),h(this,D,s,wu),h(this,D,new Date(s,e,1),vu)},Cu=new WeakMap,$u=new WeakMap,Tu=new WeakMap,Su=new WeakMap,c(ct,4,"value",DI,$e,Qy),c(ct,4,"defaultValue",NI,$e,Zy),c(ct,4,"min",MI,$e,tx),c(ct,4,"max",zI,$e,ex),c(ct,4,"locale",OI,$e,ox),c(ct,4,"disabled",LI,$e,rx),c(ct,4,"readOnly",II,$e,sx),nx=c(ct,20,"#internalValue",RI,D,ix),BI=nx.get,ux=nx.set,lx=c(ct,20,"#focusedDate",_I,D,ax),mx=lx.get,vu=lx.set,cx=c(ct,20,"#viewMonth",AI,D,dx),bu=cx.get,yu=cx.set,hx=c(ct,20,"#viewYear",SI,D,px),xu=hx.get,wu=hx.set,T(ct,$e),v($e,"tagName","dui-calendar"),v($e,"styles",[w,S4]);var A4=k`
|
|
2140
2110
|
[part="root"] {
|
|
2141
2111
|
padding: var(--space-3);
|
|
2142
2112
|
font-family: var(--font-sans);
|
|
@@ -2258,9 +2228,9 @@ label, legend, caption, figcaption, th, td {
|
|
|
2258
2228
|
display: flex;
|
|
2259
2229
|
align-items: center;
|
|
2260
2230
|
}
|
|
2261
|
-
`,UI,qI,jI,KI,
|
|
2231
|
+
`,UI,qI,jI,KI,nr,xx,wx,kx,WI,YI,lr,Ex,Cx,GI,XI,Nc,Dc,Hc,ga,Au,ar=class extends(KI=y,jI=[u({reflect:!0})],qI=[C()],UI=[C()],KI){constructor(){super(...arguments);a(this,lr);a(this,xx,n(nr,8,this,"")),n(nr,11,this);a(this,wx,n(nr,12,this,!1)),n(nr,15,this);a(this,Ex,n(nr,16,this,!1)),n(nr,19,this);a(this,Nc,!1);a(this,Dc,!1);a(this,Hc,!1);a(this,ga,t=>{let e=t.target,s=e.assignedElements().length>0;e.name==="title"?h(this,Nc,s):e.name==="description"?h(this,Dc,s):e.name==="action"&&h(this,Hc,s),h(this,lr,o(this,Nc)||o(this,Dc)||o(this,Hc),YI)});a(this,Au,t=>{let e=t.target;h(this,lr,e.assignedElements().length>0,XI)})}render(){return f`
|
|
2262
2232
|
<div part="root">
|
|
2263
|
-
<div part="header" ?hidden=${!o(this,
|
|
2233
|
+
<div part="header" ?hidden=${!o(this,lr,WI)}>
|
|
2264
2234
|
<div part="header-text">
|
|
2265
2235
|
<slot name="title" @slotchange=${o(this,ga)}></slot>
|
|
2266
2236
|
<slot
|
|
@@ -2275,11 +2245,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
2275
2245
|
<div part="content">
|
|
2276
2246
|
<slot></slot>
|
|
2277
2247
|
</div>
|
|
2278
|
-
<div part="footer" ?hidden=${!o(this,
|
|
2248
|
+
<div part="footer" ?hidden=${!o(this,lr,GI)}>
|
|
2279
2249
|
<slot name="footer" @slotchange=${o(this,Au)}></slot>
|
|
2280
2250
|
</div>
|
|
2281
2251
|
</div>
|
|
2282
|
-
`}};
|
|
2252
|
+
`}};nr=A(KI),xx=new WeakMap,wx=new WeakMap,lr=new WeakSet,Ex=new WeakMap,Nc=new WeakMap,Dc=new WeakMap,Hc=new WeakMap,ga=new WeakMap,Au=new WeakMap,c(nr,4,"size",jI,ar,xx),kx=c(nr,20,"#hasHeader",qI,lr,wx),WI=kx.get,YI=kx.set,Cx=c(nr,20,"#hasFooter",UI,lr,Ex),GI=Cx.get,XI=Cx.set,T(nr,ar),v(ar,"tagName","dui-card"),v(ar,"styles",[w,_4]);var R4=k`
|
|
2283
2253
|
/* ---------------------------------------------------------------
|
|
2284
2254
|
* Size tokens
|
|
2285
2255
|
* --------------------------------------------------------------- */
|
|
@@ -2367,7 +2337,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2367
2337
|
gap: var(--space-2);
|
|
2368
2338
|
justify-content: flex-end;
|
|
2369
2339
|
}
|
|
2370
|
-
`,va=class extends
|
|
2340
|
+
`,va=class extends ar{static styles=[...ar.styles,R4]};customElements.define(va.tagName,va);var I4=b`
|
|
2371
2341
|
:host {
|
|
2372
2342
|
display: block;
|
|
2373
2343
|
min-width: 100%;
|
|
@@ -2397,15 +2367,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
2397
2367
|
--_columns: 1;
|
|
2398
2368
|
}
|
|
2399
2369
|
}
|
|
2400
|
-
`,JI,QI,_u,$
|
|
2370
|
+
`,JI,QI,_u,$x,dr=class extends(QI=y,JI=[u({reflect:!0})],QI){constructor(){super(...arguments);a(this,$x,n(_u,8,this,"3")),n(_u,11,this)}render(){return f`
|
|
2401
2371
|
<div part="root">
|
|
2402
2372
|
<slot></slot>
|
|
2403
2373
|
</div>
|
|
2404
|
-
`}};_u=A(QI),$
|
|
2374
|
+
`}};_u=A(QI),$x=new WeakMap,c(_u,4,"columns",JI,dr,$x),T(_u,dr),v(dr,"tagName","dui-card-grid"),v(dr,"styles",[w,I4]);var L4=k`
|
|
2405
2375
|
[part="root"] {
|
|
2406
2376
|
gap: var(--space-4);
|
|
2407
2377
|
}
|
|
2408
|
-
`,ba=class extends
|
|
2378
|
+
`,ba=class extends dr{static styles=[...dr.styles,L4]};customElements.define(ba.tagName,ba);var Ru=Symbol("dui-checkbox-group");var Bx=M("checked-change",{bubbles:!0,composed:!0}),O4=b`
|
|
2409
2379
|
:host {
|
|
2410
2380
|
display: inline-flex;
|
|
2411
2381
|
align-items: start;
|
|
@@ -2448,7 +2418,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2448
2418
|
display: none;
|
|
2449
2419
|
}
|
|
2450
2420
|
|
|
2451
|
-
`,
|
|
2421
|
+
`,z4=f`
|
|
2452
2422
|
<svg
|
|
2453
2423
|
class="Icon"
|
|
2454
2424
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -2474,7 +2444,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2474
2444
|
>
|
|
2475
2445
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
2476
2446
|
</svg>
|
|
2477
|
-
`,ZI,tL,eL,oL,rL,sL,iL,nL,aL,lL,dL,
|
|
2447
|
+
`,ZI,tL,eL,oL,rL,sL,iL,nL,aL,lL,dL,ya,gt,Tx,Sx,Ax,_x,Rx,Ix,Lx,Ox,zx,Mx,Nx,cL,Dx,le,Ei,Bc,pL,Hx,hL,Fc,Vc,Iu,ae=class extends(dL=y,lL=[u({type:Boolean,reflect:!0})],aL=[u({type:Boolean,attribute:"default-checked"})],nL=[u({type:Boolean,reflect:!0})],iL=[u({type:Boolean,reflect:!0})],sL=[u({type:Boolean,reflect:!0,attribute:"read-only"})],rL=[u({type:Boolean,reflect:!0})],oL=[u()],eL=[u()],tL=[u({type:Boolean})],ZI=[C()],dL){constructor(){super();a(this,le);a(this,ya);a(this,Tx,n(gt,8,this)),n(gt,11,this);a(this,Sx,n(gt,12,this,!1)),n(gt,15,this);a(this,Ax,n(gt,16,this,!1)),n(gt,19,this);a(this,_x,n(gt,20,this,!1)),n(gt,23,this);a(this,Rx,n(gt,24,this,!1)),n(gt,27,this);a(this,Ix,n(gt,28,this,!1)),n(gt,31,this);a(this,Lx,n(gt,32,this)),n(gt,35,this);a(this,Ox,n(gt,36,this)),n(gt,39,this);a(this,zx,n(gt,40,this,!1)),n(gt,43,this);a(this,Mx,n(gt,44,this,!1)),n(gt,47,this);a(this,Ei,new q(this,{context:Ru,subscribe:!0}));a(this,Fc,t=>{o(this,Vc).call(this)});a(this,Vc,()=>{if(o(this,le,Hx)||this.readOnly)return;let t=o(this,Ei).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!o(this,le,Bc)):t.toggle(this.value);return}let e=!o(this,le,Bc);this.checked===void 0&&(h(this,le,e,Dx),this.indeterminate=!1),this.dispatchEvent(Bx({checked:e,indeterminate:!1}))});a(this,Iu,t=>{t.key===" "&&(t.preventDefault(),o(this,Vc).call(this))});h(this,ya,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,le,!0,Dx),this.addEventListener("click",o(this,Fc))}willUpdate(){p(this,le,hL).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Fc))}render(){let t=o(this,le,Bc),e=o(this,le,pL),s=o(this,le,Hx),l=t||e;return f`
|
|
2478
2448
|
<span
|
|
2479
2449
|
part="root"
|
|
2480
2450
|
role="checkbox"
|
|
@@ -2497,11 +2467,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
2497
2467
|
?data-unchecked="${!t&&!e}"
|
|
2498
2468
|
?data-indeterminate="${e}"
|
|
2499
2469
|
>
|
|
2500
|
-
${l?e?M4:
|
|
2470
|
+
${l?e?M4:z4:L}
|
|
2501
2471
|
</span>
|
|
2502
2472
|
</span>
|
|
2503
2473
|
<slot></slot>
|
|
2504
|
-
`}};gt=A(dL),
|
|
2474
|
+
`}};gt=A(dL),ya=new WeakMap,Tx=new WeakMap,Sx=new WeakMap,Ax=new WeakMap,_x=new WeakMap,Rx=new WeakMap,Ix=new WeakMap,Lx=new WeakMap,Ox=new WeakMap,zx=new WeakMap,Mx=new WeakMap,le=new WeakSet,Ei=new WeakMap,Bc=function(){let t=o(this,Ei).value;return t&&this.value!==void 0?this.parent?t.allValues.length>0&&t.allValues.every(e=>t.checkedValues.includes(e)):t.checkedValues.includes(this.value):this.checked??o(this,le,cL)},pL=function(){let t=o(this,Ei).value;if(t&&this.parent&&this.value!==void 0){let e=t.allValues.filter(s=>t.checkedValues.includes(s)).length;return e>0&&e<t.allValues.length}return this.indeterminate},Hx=function(){return this.disabled||(o(this,Ei).value?.disabled??!1)},hL=function(){o(this,le,Bc)?o(this,ya).setFormValue(this.value??"on"):o(this,ya).setFormValue(null)},Fc=new WeakMap,Vc=new WeakMap,Iu=new WeakMap,c(gt,4,"checked",lL,ae,Tx),c(gt,4,"defaultChecked",aL,ae,Sx),c(gt,4,"indeterminate",nL,ae,Ax),c(gt,4,"disabled",iL,ae,_x),c(gt,4,"readOnly",sL,ae,Rx),c(gt,4,"required",rL,ae,Ix),c(gt,4,"name",oL,ae,Lx),c(gt,4,"value",eL,ae,Ox),c(gt,4,"parent",tL,ae,zx),Nx=c(gt,20,"#internalChecked",ZI,le,Mx),cL=Nx.get,Dx=Nx.set,T(gt,ae),v(ae,"tagName","dui-checkbox"),v(ae,"formAssociated",!0),v(ae,"styles",[w,O4]);var zu=M("value-change",{bubbles:!0,composed:!0}),N4=b`
|
|
2505
2475
|
:host {
|
|
2506
2476
|
display: block;
|
|
2507
2477
|
}
|
|
@@ -2511,7 +2481,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2511
2481
|
flex-direction: column;
|
|
2512
2482
|
align-items: start;
|
|
2513
2483
|
}
|
|
2514
|
-
`,uL,mL,fL,gL,vL,bL,
|
|
2484
|
+
`,uL,mL,fL,gL,vL,bL,yL,de,Fx,Vx,Px,Ux,qx,jx,xL,Lu,Co,Pc,Mu,Nu,Kx,Ou,Ue=class extends(yL=y,bL=[u({attribute:!1})],vL=[u({attribute:!1})],gL=[u({attribute:!1})],fL=[u({type:Boolean,reflect:!0})],mL=[C()],uL=[lt({context:Ru}),C()],yL){constructor(){super(...arguments);a(this,Co);a(this,Fx,n(de,8,this)),n(de,11,this);a(this,Vx,n(de,12,this,[])),n(de,15,this);a(this,Px,n(de,16,this,[])),n(de,19,this);a(this,Ux,n(de,20,this,!1)),n(de,23,this);a(this,qx,n(de,24,this,[])),n(de,27,this);a(this,Pc,()=>this.value??o(this,Co,xL));a(this,Mu,t=>{let e=o(this,Pc).call(this),s=e.includes(t)?e.filter(l=>l!==t):[...e,t];this.value===void 0&&h(this,Co,s,Lu),this.dispatchEvent(zu(s))});a(this,Nu,t=>{let e=t?[...this.allValues]:[];this.value===void 0&&h(this,Co,e,Lu),this.dispatchEvent(zu(e))});a(this,Kx,n(de,28,this,p(this,Co,Ou).call(this))),n(de,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Co,[...this.defaultValue],Lu),this._ctx=p(this,Co,Ou).call(this)}willUpdate(){this._ctx=p(this,Co,Ou).call(this)}render(){return f`
|
|
2515
2485
|
<div
|
|
2516
2486
|
part="root"
|
|
2517
2487
|
role="group"
|
|
@@ -2519,7 +2489,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2519
2489
|
>
|
|
2520
2490
|
<slot></slot>
|
|
2521
2491
|
</div>
|
|
2522
|
-
`}};de=A(
|
|
2492
|
+
`}};de=A(yL),Fx=new WeakMap,Vx=new WeakMap,Px=new WeakMap,Ux=new WeakMap,qx=new WeakMap,Co=new WeakSet,Pc=new WeakMap,Mu=new WeakMap,Nu=new WeakMap,Kx=new WeakMap,Ou=function(){return{checkedValues:o(this,Pc).call(this),allValues:this.allValues,disabled:this.disabled,toggle:o(this,Mu),toggleAll:o(this,Nu)}},c(de,4,"value",bL,Ue,Fx),c(de,4,"defaultValue",vL,Ue,Vx),c(de,4,"allValues",gL,Ue,Px),c(de,4,"disabled",fL,Ue,Ux),jx=c(de,20,"#internalValues",mL,Co,qx),xL=jx.get,Lu=jx.set,c(de,4,"_ctx",uL,Ue,Kx),T(de,Ue),v(Ue,"tagName","dui-checkbox-group"),v(Ue,"styles",[w,N4]);var D4=k`
|
|
2523
2493
|
:host {
|
|
2524
2494
|
--checkbox-size: var(--space-4_5);
|
|
2525
2495
|
gap: var(--space-2);
|
|
@@ -2572,7 +2542,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2572
2542
|
width: var(--space-3);
|
|
2573
2543
|
height: var(--space-3);
|
|
2574
2544
|
}
|
|
2575
|
-
`,
|
|
2545
|
+
`,xa=class extends ae{static styles=[...ae.styles,D4]};customElements.define(xa.tagName,xa);var H4=k`
|
|
2576
2546
|
[part="root"] {
|
|
2577
2547
|
gap: var(--space-1);
|
|
2578
2548
|
}
|
|
@@ -2613,7 +2583,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2613
2583
|
contain: content;
|
|
2614
2584
|
transition-property: height;
|
|
2615
2585
|
}
|
|
2616
|
-
`,wL,kL,EL,CL,$L,TL,SL,AL,_L,RL,Rt,
|
|
2586
|
+
`,wL,kL,EL,CL,$L,TL,SL,AL,_L,RL,Rt,Wx,Yx,Gx,Xx,Jx,Qx,a0,Du,W,Zx,t0,Hu,Bu,e0,o0,IL,Ci,r0,s0,l0,Fu,i0,n0,LL,d0,$i,Ti,Rs,Uc,OL,zL,Vu,Pu,ao=class extends(RL=y,_L=[u({type:Boolean,reflect:!0})],AL=[u({type:Boolean,attribute:"default-open"})],SL=[u({type:Boolean,reflect:!0})],TL=[u({type:Boolean,attribute:"keep-mounted"})],$L=[C()],CL=[C()],EL=[C()],kL=[C()],wL=[C()],RL){constructor(){super(...arguments);a(this,W);a(this,Wx,n(Rt,8,this,!1)),n(Rt,11,this);a(this,Yx,n(Rt,12,this,!1)),n(Rt,15,this);a(this,Gx,n(Rt,16,this,!1)),n(Rt,19,this);a(this,Xx,n(Rt,20,this,!1)),n(Rt,23,this);a(this,Jx,n(Rt,24,this,!1)),n(Rt,27,this);a(this,Zx,n(Rt,28,this,!1)),n(Rt,31,this);a(this,e0,n(Rt,32,this,"0")),n(Rt,35,this);a(this,r0,n(Rt,36,this,!1)),n(Rt,39,this);a(this,i0,n(Rt,40,this,!1)),n(Rt,43,this);a(this,$i);a(this,Ti,0);a(this,Rs,!1);a(this,Vu,t=>{t.propertyName==="height"&&(o(this,W,Hu)?(h(this,W,!1,Bu),this.keepMounted||h(this,W,!1,Fu)):o(this,W,Uc)&&h(this,W,"auto",Ci))});a(this,Pu,()=>{if(this.disabled)return;let t=!o(this,W,Uc);o(this,Rs)||h(this,W,t,d0),this.dispatchEvent(c0({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,Rs,this.hasAttribute("open")),!o(this,Rs)&&this.defaultOpen&&h(this,W,!0,d0)}willUpdate(t){t.has("open")&&o(this,$i)!==void 0&&h(this,Rs,!0);let e=o(this,W,Uc);o(this,$i)===void 0?(h(this,W,e,Fu),h(this,W,e?"auto":"0",Ci)):o(this,$i)!==e&&(e?p(this,W,OL).call(this):p(this,W,zL).call(this)),h(this,$i,e)}render(){let t=o(this,W,Uc),e=o(this,W,l0)||this.keepMounted;return f`
|
|
2617
2587
|
<button
|
|
2618
2588
|
part="trigger"
|
|
2619
2589
|
aria-expanded=${t}
|
|
@@ -2640,7 +2610,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2640
2610
|
</div>
|
|
2641
2611
|
</div>
|
|
2642
2612
|
`:L}
|
|
2643
|
-
`}};Rt=A(RL),
|
|
2613
|
+
`}};Rt=A(RL),Wx=new WeakMap,Yx=new WeakMap,Gx=new WeakMap,Xx=new WeakMap,Jx=new WeakMap,W=new WeakSet,Zx=new WeakMap,e0=new WeakMap,r0=new WeakMap,i0=new WeakMap,$i=new WeakMap,Ti=new WeakMap,Rs=new WeakMap,Uc=function(){return o(this,Rs)?this.open:o(this,W,LL)},OL=function(){let t=++Cs(this,Ti)._;h(this,W,!1,Bu),h(this,W,!0,Fu),h(this,W,!0,Du),h(this,W,"0",Ci),requestAnimationFrame(()=>{if(o(this,Ti)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),h(this,W,!1,Du)})},zL=function(){let t=++Cs(this,Ti)._;h(this,W,!1,Du);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),requestAnimationFrame(()=>{o(this,Ti)===t&&(h(this,W,!0,Bu),h(this,W,"0",Ci))})},Vu=new WeakMap,Pu=new WeakMap,c(Rt,4,"open",_L,ao,Wx),c(Rt,4,"defaultOpen",AL,ao,Yx),c(Rt,4,"disabled",SL,ao,Gx),c(Rt,4,"keepMounted",TL,ao,Xx),Qx=c(Rt,20,"#starting",$L,W,Jx),a0=Qx.get,Du=Qx.set,t0=c(Rt,20,"#ending",CL,W,Zx),Hu=t0.get,Bu=t0.set,o0=c(Rt,20,"#panelHeight",EL,W,e0),IL=o0.get,Ci=o0.set,s0=c(Rt,20,"#visible",kL,W,r0),l0=s0.get,Fu=s0.set,n0=c(Rt,20,"#internalOpen",wL,W,i0),LL=n0.get,d0=n0.set,T(Rt,ao),v(ao,"tagName","dui-collapsible"),v(ao,"styles",[w,B4]);var ML=Qr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`),F4=k`
|
|
2644
2614
|
/* ── Trigger ── */
|
|
2645
2615
|
|
|
2646
2616
|
[part="trigger"] {
|
|
@@ -2725,12 +2695,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
2725
2695
|
transition-duration: 0s;
|
|
2726
2696
|
}
|
|
2727
2697
|
}
|
|
2728
|
-
`,ka=class extends ao{static styles=[...ao.styles,F4]};customElements.define(ka.tagName,ka);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ea=i=>(...r)=>({_$litDirective$:i,values:r}),Rs=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,e){this._$Ct=r,this._$AM=t,this._$Ci=e}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var{I:V4}=gR,NL=i=>i;var HL=i=>i.strings===void 0,DL=()=>document.createComment(""),Ca=(i,r,t)=>{let e=i._$AA.parentNode,s=r===void 0?i._$AB:r._$AA;if(t===void 0){let l=e.insertBefore(DL(),s),d=e.insertBefore(DL(),s);t=new V4(l,d,i,i.options)}else{let l=t._$AB.nextSibling,d=t._$AM,m=d!==i;if(m){let g;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(g=i._$AU)!==d._$AU&&t._$AP(g)}if(l!==s||m){let g=t._$AA;for(;g!==l;){let E=NL(g).nextSibling;NL(e).insertBefore(g,s),g=E}}}return t},Is=(i,r,t=i)=>(i._$AI(r,t),i),P4={},Uu=(i,r=P4)=>i._$AH=r,BL=i=>i._$AH,qu=i=>{i._$AR(),i._$AA.remove()};var FL=(i,r,t)=>{let e=new Map;for(let s=r;s<=t;s++)e.set(i[s],s);return e},Si=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,r,t){let e;t===void 0?t=r:r!==void 0&&(e=r);let s=[],l=[],d=0;for(let m of i)s[d]=e?e(m,d):d,l[d]=t(m,d),d++;return{values:l,keys:s}}render(i,r,t){return this.dt(i,r,t).values}update(i,[r,t,e]){let s=BL(i),{values:l,keys:d}=this.dt(r,t,e);if(!Array.isArray(s))return this.ut=d,l;let m=this.ut??=[],g=[],E,$,y=0,_=s.length-1,S=0,O=l.length-1;for(;y<=_&&S<=O;)if(s[y]===null)y++;else if(s[_]===null)_--;else if(m[y]===d[S])g[S]=Is(s[y],l[S]),y++,S++;else if(m[_]===d[O])g[O]=Is(s[_],l[O]),_--,O--;else if(m[y]===d[O])g[O]=Is(s[y],l[O]),Ca(i,g[O+1],s[y]),y++,O--;else if(m[_]===d[S])g[S]=Is(s[_],l[S]),Ca(i,s[y],s[_]),_--,S++;else if(E===void 0&&(E=FL(d,S,O),$=FL(m,y,_)),E.has(m[y]))if(E.has(m[_])){let B=$.get(d[S]),j=B!==void 0?s[B]:null;if(j===null){let K=Ca(i,s[y]);Is(K,l[S]),g[S]=K}else g[S]=Is(j,l[S]),Ca(i,s[y],j),s[B]=null;S++}else qu(s[_]),_--;else qu(s[y]),y++;for(;S<=O;){let B=Ca(i,g[O+1]);Is(B,l[S]),g[S++]=B}for(;y<=_;){let B=s[y++];B!==null&&qu(B)}return this.ut=d,Uu(i,g),Ee}});var dr=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.PROPERTY&&i.type!==qo.ATTRIBUTE&&i.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!HL(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===Ee||r===L)return r;let t=i.element,e=i.name;if(i.type===qo.PROPERTY){if(r===t[e])return Ee}else if(i.type===qo.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(e))return Ee}else if(i.type===qo.ATTRIBUTE&&t.getAttribute(e)===r+"")return Ee;return Uu(i),r}});var ju=new Map,VL=(i,r)=>{for(let[t,e]of ju)t!==i&&e();ju.clear(),ju.set(i,r)},p0=i=>{ju.delete(i)};var Ls=Math.min,Me=Math.max,jc=Math.round,Kc=Math.floor,jo=i=>({x:i,y:i}),U4={left:"right",right:"left",bottom:"top",top:"bottom"};function h0(i,r,t){return Me(i,Ls(r,t))}function $a(i,r){return typeof i=="function"?i(r):i}function rs(i){return i.split("-")[0]}function Ta(i){return i.split("-")[1]}function u0(i){return i==="x"?"y":"x"}function m0(i){return i==="y"?"height":"width"}function cr(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function f0(i){return u0(cr(i))}function qL(i,r,t){t===void 0&&(t=!1);let e=Ta(i),s=f0(i),l=m0(s),d=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(d=qc(d)),[d,qc(d)]}function jL(i){let r=qc(i);return[Ku(i),r,Ku(r)]}function Ku(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var PL=["left","right"],UL=["right","left"],q4=["top","bottom"],j4=["bottom","top"];function K4(i,r,t){switch(i){case"top":case"bottom":return t?r?UL:PL:r?PL:UL;case"left":case"right":return r?q4:j4;default:return[]}}function KL(i,r,t,e){let s=Ta(i),l=K4(rs(i),t==="start",e);return s&&(l=l.map(d=>d+"-"+s),r&&(l=l.concat(l.map(Ku)))),l}function qc(i){let r=rs(i);return U4[r]+i.slice(r.length)}function W4(i){return{top:0,right:0,bottom:0,left:0,...i}}function WL(i){return typeof i!="number"?W4(i):{top:i,right:i,bottom:i,left:i}}function Ai(i){let{x:r,y:t,width:e,height:s}=i;return{width:e,height:s,top:t,left:r,right:r+e,bottom:t+s,x:r,y:t}}function YL(i,r,t){let{reference:e,floating:s}=i,l=cr(r),d=f0(r),m=m0(d),g=rs(r),E=l==="y",$=e.x+e.width/2-s.width/2,y=e.y+e.height/2-s.height/2,_=e[m]/2-s[m]/2,S;switch(g){case"top":S={x:$,y:e.y-s.height};break;case"bottom":S={x:$,y:e.y+e.height};break;case"right":S={x:e.x+e.width,y};break;case"left":S={x:e.x-s.width,y};break;default:S={x:e.x,y:e.y}}switch(Ta(r)){case"start":S[d]-=_*(t&&E?-1:1);break;case"end":S[d]+=_*(t&&E?-1:1);break}return S}async function GL(i,r){var t;r===void 0&&(r={});let{x:e,y:s,platform:l,rects:d,elements:m,strategy:g}=i,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:y="floating",altBoundary:_=!1,padding:S=0}=$a(r,i),O=WL(S),j=m[_?y==="floating"?"reference":"floating":y],K=Ai(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(j)))==null||t?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:E,rootBoundary:$,strategy:g})),F=y==="floating"?{x:e,y:s,width:d.floating.width,height:d.floating.height}:d.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),J=await(l.isElement==null?void 0:l.isElement(G))?await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1}:{x:1,y:1},ge=Ai(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:F,offsetParent:G,strategy:g}):F);return{top:(K.top-ge.top+O.top)/J.y,bottom:(ge.bottom-K.bottom+O.bottom)/J.y,left:(K.left-ge.left+O.left)/J.x,right:(ge.right-K.right+O.right)/J.x}}var Y4=50,XL=async(i,r,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:d}=t,m=d.detectOverflow?d:{...d,detectOverflow:GL},g=await(d.isRTL==null?void 0:d.isRTL(r)),E=await d.getElementRects({reference:i,floating:r,strategy:s}),{x:$,y}=YL(E,e,g),_=e,S=0,O={};for(let B=0;B<l.length;B++){let j=l[B];if(!j)continue;let{name:K,fn:F}=j,{x:G,y:J,data:ge,reset:Oe}=await F({x:$,y,initialPlacement:e,placement:_,strategy:s,middlewareData:O,rects:E,platform:m,elements:{reference:i,floating:r}});$=G??$,y=J??y,O[K]={...O[K],...ge},Oe&&S<Y4&&(S++,typeof Oe=="object"&&(Oe.placement&&(_=Oe.placement),Oe.rects&&(E=Oe.rects===!0?await d.getElementRects({reference:i,floating:r,strategy:s}):Oe.rects),{x:$,y}=YL(E,_,g)),B=-1)}return{x:$,y,placement:_,strategy:s,middlewareData:O}};var JL=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,e;let{placement:s,middlewareData:l,rects:d,initialPlacement:m,platform:g,elements:E}=r,{mainAxis:$=!0,crossAxis:y=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:B=!0,...j}=$a(i,r);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let K=rs(s),F=cr(m),G=rs(m)===m,J=await(g.isRTL==null?void 0:g.isRTL(E.floating)),ge=_||(G||!B?[qc(m)]:jL(m)),Oe=O!=="none";!_&&Oe&&ge.push(...KL(m,B,O,J));let rr=[m,...ge],si=await g.detectOverflow(r,j),ii=[],Xr=((e=l.flip)==null?void 0:e.overflows)||[];if($&&ii.push(si[K]),y){let ni=qL(s,d,J);ii.push(si[ni[0]],si[ni[1]])}if(Xr=[...Xr,{placement:s,overflows:ii}],!ii.every(ni=>ni<=0)){var cc,pc;let ni=(((cc=l.flip)==null?void 0:cc.index)||0)+1,mb=rr[ni];if(mb&&(!(y==="alignment"?F!==cr(mb):!1)||Xr.every(Vo=>cr(Vo.placement)===F?Vo.overflows[0]>0:!0)))return{data:{index:ni,overflows:Xr},reset:{placement:mb}};let uc=(pc=Xr.filter(ai=>ai.overflows[0]<=0).sort((ai,Vo)=>ai.overflows[1]-Vo.overflows[1])[0])==null?void 0:pc.placement;if(!uc)switch(S){case"bestFit":{var hc;let ai=(hc=Xr.filter(Vo=>{if(Oe){let ks=cr(Vo.placement);return ks===F||ks==="y"}return!0}).map(Vo=>[Vo.placement,Vo.overflows.filter(ks=>ks>0).reduce((ks,b3)=>ks+b3,0)]).sort((Vo,ks)=>Vo[1]-ks[1])[0])==null?void 0:hc[0];ai&&(uc=ai);break}case"initialPlacement":uc=m;break}if(s!==uc)return{reset:{placement:uc}}}return{}}}};var G4=new Set(["left","top"]);async function X4(i,r){let{placement:t,platform:e,elements:s}=i,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),d=rs(t),m=Ta(t),g=cr(t)==="y",E=G4.has(d)?-1:1,$=l&&g?-1:1,y=$a(r,i),{mainAxis:_,crossAxis:S,alignmentAxis:O}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof O=="number"&&(S=m==="end"?O*-1:O),g?{x:S*$,y:_*E}:{x:_*E,y:S*$}}var QL=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,e;let{x:s,y:l,placement:d,middlewareData:m}=r,g=await X4(r,i);return d===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:s+g.x,y:l+g.y,data:{...g,placement:d}}}}},ZL=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:e,placement:s,platform:l}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:K=>{let{x:F,y:G}=K;return{x:F,y:G}}},...E}=$a(i,r),$={x:t,y:e},y=await l.detectOverflow(r,E),_=cr(rs(s)),S=u0(_),O=$[S],B=$[_];if(d){let K=S==="y"?"top":"left",F=S==="y"?"bottom":"right",G=O+y[K],J=O-y[F];O=h0(G,O,J)}if(m){let K=_==="y"?"top":"left",F=_==="y"?"bottom":"right",G=B+y[K],J=B-y[F];B=h0(G,B,J)}let j=g.fn({...r,[S]:O,[_]:B});return{...j,data:{x:j.x-t,y:j.y-e,enabled:{[S]:d,[_]:m}}}}}};var tz=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var t,e;let{placement:s,rects:l,platform:d,elements:m}=r,{apply:g=()=>{},...E}=$a(i,r),$=await d.detectOverflow(r,E),y=rs(s),_=Ta(s),S=cr(s)==="y",{width:O,height:B}=l.floating,j,K;y==="top"||y==="bottom"?(j=y,K=_===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(K=y,j=_==="end"?"top":"bottom");let F=B-$.top-$.bottom,G=O-$.left-$.right,J=Ls(B-$[j],F),ge=Ls(O-$[K],G),Oe=!r.middlewareData.shift,rr=J,si=ge;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(si=G),(e=r.middlewareData.shift)!=null&&e.enabled.y&&(rr=F),Oe&&!_){let Xr=Me($.left,0),cc=Me($.right,0),pc=Me($.top,0),hc=Me($.bottom,0);S?si=O-2*(Xr!==0||cc!==0?Xr+cc:Me($.left,$.right)):rr=B-2*(pc!==0||hc!==0?pc+hc:Me($.top,$.bottom))}await g({...r,availableWidth:si,availableHeight:rr});let ii=await d.getDimensions(m.floating);return O!==ii.width||B!==ii.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<"u"}function Ri(i){return oz(i)?(i.nodeName||"").toLowerCase():"#document"}function qe(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function Ko(i){var r;return(r=(oz(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function oz(i){return Wu()?i instanceof Node||i instanceof qe(i).Node:!1}function $o(i){return Wu()?i instanceof Element||i instanceof qe(i).Element:!1}function pr(i){return Wu()?i instanceof HTMLElement||i instanceof qe(i).HTMLElement:!1}function ez(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof qe(i).ShadowRoot}function Aa(i){let{overflow:r,overflowX:t,overflowY:e,display:s}=To(i);return/auto|scroll|overlay|hidden|clip/.test(r+e+t)&&s!=="inline"&&s!=="contents"}function rz(i){return/^(table|td|th)$/.test(Ri(i))}function Wc(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var J4=/transform|translate|scale|rotate|perspective|filter/,Q4=/paint|layout|strict|content/,_i=i=>!!i&&i!=="none",g0;function Yu(i){let r=$o(i)?To(i):i;return _i(r.transform)||_i(r.translate)||_i(r.scale)||_i(r.rotate)||_i(r.perspective)||!Gu()&&(_i(r.backdropFilter)||_i(r.filter))||J4.test(r.willChange||"")||Q4.test(r.contain||"")}function sz(i){let r=ss(i);for(;pr(r)&&!Ii(r);){if(Yu(r))return r;if(Wc(r))return null;r=ss(r)}return null}function Gu(){return g0==null&&(g0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),g0}function Ii(i){return/^(html|body|#document)$/.test(Ri(i))}function To(i){return qe(i).getComputedStyle(i)}function Yc(i){return $o(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function ss(i){if(Ri(i)==="html")return i;let r=i.assignedSlot||i.parentNode||ez(i)&&i.host||Ko(i);return ez(r)?r.host:r}function iz(i){let r=ss(i);return Ii(r)?i.ownerDocument?i.ownerDocument.body:i.body:pr(r)&&Aa(r)?r:iz(r)}function Sa(i,r,t){var e;r===void 0&&(r=[]),t===void 0&&(t=!0);let s=iz(i),l=s===((e=i.ownerDocument)==null?void 0:e.body),d=qe(s);if(l){let m=Xu(d);return r.concat(d,d.visualViewport||[],Aa(s)?s:[],m&&t?Sa(m):[])}else return r.concat(s,Sa(s,[],t))}function Xu(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function dz(i){let r=To(i),t=parseFloat(r.width)||0,e=parseFloat(r.height)||0,s=pr(i),l=s?i.offsetWidth:t,d=s?i.offsetHeight:e,m=jc(t)!==l||jc(e)!==d;return m&&(t=l,e=d),{width:t,height:e,$:m}}function b0(i){return $o(i)?i:i.contextElement}function _a(i){let r=b0(i);if(!pr(r))return jo(1);let t=r.getBoundingClientRect(),{width:e,height:s,$:l}=dz(r),d=(l?jc(t.width):t.width)/e,m=(l?jc(t.height):t.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}var Z4=jo(0);function cz(i){let r=qe(i);return!Gu()||!r.visualViewport?Z4:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tV(i,r,t){return r===void 0&&(r=!1),!t||r&&t!==qe(i)?!1:r}function Li(i,r,t,e){r===void 0&&(r=!1),t===void 0&&(t=!1);let s=i.getBoundingClientRect(),l=b0(i),d=jo(1);r&&(e?$o(e)&&(d=_a(e)):d=_a(i));let m=tV(l,t,e)?cz(l):jo(0),g=(s.left+m.x)/d.x,E=(s.top+m.y)/d.y,$=s.width/d.x,y=s.height/d.y;if(l){let _=qe(l),S=e&&$o(e)?qe(e):e,O=_,B=Xu(O);for(;B&&e&&S!==O;){let j=_a(B),K=B.getBoundingClientRect(),F=To(B),G=K.left+(B.clientLeft+parseFloat(F.paddingLeft))*j.x,J=K.top+(B.clientTop+parseFloat(F.paddingTop))*j.y;g*=j.x,E*=j.y,$*=j.x,y*=j.y,g+=G,E+=J,O=qe(B),B=Xu(O)}}return Ai({width:$,height:y,x:g,y:E})}function Ju(i,r){let t=Yc(i).scrollLeft;return r?r.left+t:Li(Ko(i)).left+t}function pz(i,r){let t=i.getBoundingClientRect(),e=t.left+r.scrollLeft-Ju(i,t),s=t.top+r.scrollTop;return{x:e,y:s}}function eV(i){let{elements:r,rect:t,offsetParent:e,strategy:s}=i,l=s==="fixed",d=Ko(e),m=r?Wc(r.floating):!1;if(e===d||m&&l)return t;let g={scrollLeft:0,scrollTop:0},E=jo(1),$=jo(0),y=pr(e);if((y||!y&&!l)&&((Ri(e)!=="body"||Aa(d))&&(g=Yc(e)),y)){let S=Li(e);E=_a(e),$.x=S.x+e.clientLeft,$.y=S.y+e.clientTop}let _=d&&!y&&!l?pz(d,g):jo(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-g.scrollLeft*E.x+$.x+_.x,y:t.y*E.y-g.scrollTop*E.y+$.y+_.y}}function oV(i){return Array.from(i.getClientRects())}function rV(i){let r=Ko(i),t=Yc(i),e=i.ownerDocument.body,s=Me(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth),l=Me(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ju(i),m=-t.scrollTop;return To(e).direction==="rtl"&&(d+=Me(r.clientWidth,e.clientWidth)-s),{width:s,height:l,x:d,y:m}}var nz=25;function sV(i,r){let t=qe(i),e=Ko(i),s=t.visualViewport,l=e.clientWidth,d=e.clientHeight,m=0,g=0;if(s){l=s.width,d=s.height;let $=Gu();(!$||$&&r==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}let E=Ju(e);if(E<=0){let $=e.ownerDocument,y=$.body,_=getComputedStyle(y),S=$.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,O=Math.abs(e.clientWidth-y.clientWidth-S);O<=nz&&(l-=O)}else E<=nz&&(l+=E);return{width:l,height:d,x:m,y:g}}function iV(i,r){let t=Li(i,!0,r==="fixed"),e=t.top+i.clientTop,s=t.left+i.clientLeft,l=pr(i)?_a(i):jo(1),d=i.clientWidth*l.x,m=i.clientHeight*l.y,g=s*l.x,E=e*l.y;return{width:d,height:m,x:g,y:E}}function az(i,r,t){let e;if(r==="viewport")e=sV(i,t);else if(r==="document")e=rV(Ko(i));else if($o(r))e=iV(r,t);else{let s=cz(i);e={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Ai(e)}function hz(i,r){let t=ss(i);return t===r||!$o(t)||Ii(t)?!1:To(t).position==="fixed"||hz(t,r)}function nV(i,r){let t=r.get(i);if(t)return t;let e=Sa(i,[],!1).filter(m=>$o(m)&&Ri(m)!=="body"),s=null,l=To(i).position==="fixed",d=l?ss(i):i;for(;$o(d)&&!Ii(d);){let m=To(d),g=Yu(d);!g&&m.position==="fixed"&&(s=null),(l?!g&&!s:!g&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Aa(d)&&!g&&hz(i,d))?e=e.filter($=>$!==d):s=m,d=ss(d)}return r.set(i,e),e}function aV(i){let{element:r,boundary:t,rootBoundary:e,strategy:s}=i,d=[...t==="clippingAncestors"?Wc(r)?[]:nV(r,this._c):[].concat(t),e],m=az(r,d[0],s),g=m.top,E=m.right,$=m.bottom,y=m.left;for(let _=1;_<d.length;_++){let S=az(r,d[_],s);g=Me(S.top,g),E=Ls(S.right,E),$=Ls(S.bottom,$),y=Me(S.left,y)}return{width:E-y,height:$-g,x:y,y:g}}function lV(i){let{width:r,height:t}=dz(i);return{width:r,height:t}}function dV(i,r,t){let e=pr(r),s=Ko(r),l=t==="fixed",d=Li(i,!0,l,r),m={scrollLeft:0,scrollTop:0},g=jo(0);function E(){g.x=Ju(s)}if(e||!e&&!l)if((Ri(r)!=="body"||Aa(s))&&(m=Yc(r)),e){let S=Li(r,!0,l,r);g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}else s&&E();l&&!e&&s&&E();let $=s&&!e&&!l?pz(s,m):jo(0),y=d.left+m.scrollLeft-g.x-$.x,_=d.top+m.scrollTop-g.y-$.y;return{x:y,y:_,width:d.width,height:d.height}}function v0(i){return To(i).position==="static"}function lz(i,r){if(!pr(i)||To(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return Ko(i)===t&&(t=t.ownerDocument.body),t}function uz(i,r){let t=qe(i);if(Wc(i))return t;if(!pr(i)){let s=ss(i);for(;s&&!Ii(s);){if($o(s)&&!v0(s))return s;s=ss(s)}return t}let e=lz(i,r);for(;e&&rz(e)&&v0(e);)e=lz(e,r);return e&&Ii(e)&&v0(e)&&!Yu(e)?t:e||sz(i)||t}var cV=async function(i){let r=this.getOffsetParent||uz,t=this.getDimensions,e=await t(i.floating);return{reference:dV(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function pV(i){return To(i).direction==="rtl"}var x0={convertOffsetParentRelativeRectToViewportRelativeRect:eV,getDocumentElement:Ko,getClippingRect:aV,getOffsetParent:uz,getElementRects:cV,getClientRects:oV,getDimensions:lV,getScale:_a,isElement:$o,isRTL:pV};function mz(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function hV(i,r){let t=null,e,s=Ko(i);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),l();let E=i.getBoundingClientRect(),{left:$,top:y,width:_,height:S}=E;if(m||r(),!_||!S)return;let O=Kc(y),B=Kc(s.clientWidth-($+_)),j=Kc(s.clientHeight-(y+S)),K=Kc($),G={rootMargin:-O+"px "+-B+"px "+-j+"px "+-K+"px",threshold:Me(0,Ls(1,g))||1},J=!0;function ge(Oe){let rr=Oe[0].intersectionRatio;if(rr!==g){if(!J)return d();rr?d(!1,rr):e=setTimeout(()=>{d(!1,1e-7)},1e3)}rr===1&&!mz(E,i.getBoundingClientRect())&&d(),J=!1}try{t=new IntersectionObserver(ge,{...G,root:s.ownerDocument})}catch{t=new IntersectionObserver(ge,G)}t.observe(i)}return d(!0),l}function fz(i,r,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,E=b0(i),$=s||l?[...E?Sa(E):[],...r?Sa(r):[]]:[];$.forEach(K=>{s&&K.addEventListener("scroll",t,{passive:!0}),l&&K.addEventListener("resize",t)});let y=E&&m?hV(E,t):null,_=-1,S=null;d&&(S=new ResizeObserver(K=>{let[F]=K;F&&F.target===E&&S&&r&&(S.unobserve(r),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(r)})),t()}),E&&!g&&S.observe(E),r&&S.observe(r));let O,B=g?Li(i):null;g&&j();function j(){let K=Li(i);B&&!mz(B,K)&&t(),B=K,O=requestAnimationFrame(j)}return t(),()=>{var K;$.forEach(F=>{s&&F.removeEventListener("scroll",t),l&&F.removeEventListener("resize",t)}),y?.(),(K=S)==null||K.disconnect(),S=null,g&&cancelAnimationFrame(O)}}var gz=QL;var vz=ZL,bz=JL,y0=tz;var xz=(i,r,t)=>{let e=new Map,s={platform:x0,...t},l={...s.platform,_c:e};return XL(i,r,{...s,platform:l})};var yz=()=>new Promise(i=>requestAnimationFrame(()=>requestAnimationFrame(()=>i()))),wz=(i,r,t=200)=>{let e=!1,s=()=>{e||(e=!0,i.removeEventListener("transitionend",l),clearTimeout(d),r())},l=()=>s();i.addEventListener("transitionend",l);let d=setTimeout(s,t)},Ra=i=>f`
|
|
2698
|
+
`,ka=class extends ao{static styles=[...ao.styles,F4]};customElements.define(ka.tagName,ka);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ea=i=>(...r)=>({_$litDirective$:i,values:r}),Is=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,e){this._$Ct=r,this._$AM=t,this._$Ci=e}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var{I:V4}=gR,NL=i=>i;var HL=i=>i.strings===void 0,DL=()=>document.createComment(""),Ca=(i,r,t)=>{let e=i._$AA.parentNode,s=r===void 0?i._$AB:r._$AA;if(t===void 0){let l=e.insertBefore(DL(),s),d=e.insertBefore(DL(),s);t=new V4(l,d,i,i.options)}else{let l=t._$AB.nextSibling,d=t._$AM,m=d!==i;if(m){let g;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(g=i._$AU)!==d._$AU&&t._$AP(g)}if(l!==s||m){let g=t._$AA;for(;g!==l;){let E=NL(g).nextSibling;NL(e).insertBefore(g,s),g=E}}}return t},Ls=(i,r,t=i)=>(i._$AI(r,t),i),P4={},Uu=(i,r=P4)=>i._$AH=r,BL=i=>i._$AH,qu=i=>{i._$AR(),i._$AA.remove()};var FL=(i,r,t)=>{let e=new Map;for(let s=r;s<=t;s++)e.set(i[s],s);return e},Si=Ea(class extends Is{constructor(i){if(super(i),i.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,r,t){let e;t===void 0?t=r:r!==void 0&&(e=r);let s=[],l=[],d=0;for(let m of i)s[d]=e?e(m,d):d,l[d]=t(m,d),d++;return{values:l,keys:s}}render(i,r,t){return this.dt(i,r,t).values}update(i,[r,t,e]){let s=BL(i),{values:l,keys:d}=this.dt(r,t,e);if(!Array.isArray(s))return this.ut=d,l;let m=this.ut??=[],g=[],E,$,x=0,_=s.length-1,S=0,z=l.length-1;for(;x<=_&&S<=z;)if(s[x]===null)x++;else if(s[_]===null)_--;else if(m[x]===d[S])g[S]=Ls(s[x],l[S]),x++,S++;else if(m[_]===d[z])g[z]=Ls(s[_],l[z]),_--,z--;else if(m[x]===d[z])g[z]=Ls(s[x],l[z]),Ca(i,g[z+1],s[x]),x++,z--;else if(m[_]===d[S])g[S]=Ls(s[_],l[S]),Ca(i,s[x],s[_]),_--,S++;else if(E===void 0&&(E=FL(d,S,z),$=FL(m,x,_)),E.has(m[x]))if(E.has(m[_])){let B=$.get(d[S]),j=B!==void 0?s[B]:null;if(j===null){let K=Ca(i,s[x]);Ls(K,l[S]),g[S]=K}else g[S]=Ls(j,l[S]),Ca(i,s[x],j),s[B]=null;S++}else qu(s[_]),_--;else qu(s[x]),x++;for(;S<=z;){let B=Ca(i,g[z+1]);Ls(B,l[S]),g[S++]=B}for(;x<=_;){let B=s[x++];B!==null&&qu(B)}return this.ut=d,Uu(i,g),Ee}});var cr=Ea(class extends Is{constructor(i){if(super(i),i.type!==qo.PROPERTY&&i.type!==qo.ATTRIBUTE&&i.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!HL(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===Ee||r===L)return r;let t=i.element,e=i.name;if(i.type===qo.PROPERTY){if(r===t[e])return Ee}else if(i.type===qo.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(e))return Ee}else if(i.type===qo.ATTRIBUTE&&t.getAttribute(e)===r+"")return Ee;return Uu(i),r}});var ju=new Map,VL=(i,r)=>{for(let[t,e]of ju)t!==i&&e();ju.clear(),ju.set(i,r)},p0=i=>{ju.delete(i)};var Os=Math.min,Me=Math.max,jc=Math.round,Kc=Math.floor,jo=i=>({x:i,y:i}),U4={left:"right",right:"left",bottom:"top",top:"bottom"};function h0(i,r,t){return Me(i,Os(r,t))}function $a(i,r){return typeof i=="function"?i(r):i}function ss(i){return i.split("-")[0]}function Ta(i){return i.split("-")[1]}function u0(i){return i==="x"?"y":"x"}function m0(i){return i==="y"?"height":"width"}function pr(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function f0(i){return u0(pr(i))}function qL(i,r,t){t===void 0&&(t=!1);let e=Ta(i),s=f0(i),l=m0(s),d=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(d=qc(d)),[d,qc(d)]}function jL(i){let r=qc(i);return[Ku(i),r,Ku(r)]}function Ku(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var PL=["left","right"],UL=["right","left"],q4=["top","bottom"],j4=["bottom","top"];function K4(i,r,t){switch(i){case"top":case"bottom":return t?r?UL:PL:r?PL:UL;case"left":case"right":return r?q4:j4;default:return[]}}function KL(i,r,t,e){let s=Ta(i),l=K4(ss(i),t==="start",e);return s&&(l=l.map(d=>d+"-"+s),r&&(l=l.concat(l.map(Ku)))),l}function qc(i){let r=ss(i);return U4[r]+i.slice(r.length)}function W4(i){return{top:0,right:0,bottom:0,left:0,...i}}function WL(i){return typeof i!="number"?W4(i):{top:i,right:i,bottom:i,left:i}}function Ai(i){let{x:r,y:t,width:e,height:s}=i;return{width:e,height:s,top:t,left:r,right:r+e,bottom:t+s,x:r,y:t}}function YL(i,r,t){let{reference:e,floating:s}=i,l=pr(r),d=f0(r),m=m0(d),g=ss(r),E=l==="y",$=e.x+e.width/2-s.width/2,x=e.y+e.height/2-s.height/2,_=e[m]/2-s[m]/2,S;switch(g){case"top":S={x:$,y:e.y-s.height};break;case"bottom":S={x:$,y:e.y+e.height};break;case"right":S={x:e.x+e.width,y:x};break;case"left":S={x:e.x-s.width,y:x};break;default:S={x:e.x,y:e.y}}switch(Ta(r)){case"start":S[d]-=_*(t&&E?-1:1);break;case"end":S[d]+=_*(t&&E?-1:1);break}return S}async function GL(i,r){var t;r===void 0&&(r={});let{x:e,y:s,platform:l,rects:d,elements:m,strategy:g}=i,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:x="floating",altBoundary:_=!1,padding:S=0}=$a(r,i),z=WL(S),j=m[_?x==="floating"?"reference":"floating":x],K=Ai(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(j)))==null||t?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:E,rootBoundary:$,strategy:g})),F=x==="floating"?{x:e,y:s,width:d.floating.width,height:d.floating.height}:d.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),J=await(l.isElement==null?void 0:l.isElement(G))?await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1}:{x:1,y:1},ge=Ai(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:F,offsetParent:G,strategy:g}):F);return{top:(K.top-ge.top+z.top)/J.y,bottom:(ge.bottom-K.bottom+z.bottom)/J.y,left:(K.left-ge.left+z.left)/J.x,right:(ge.right-K.right+z.right)/J.x}}var Y4=50,XL=async(i,r,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:d}=t,m=d.detectOverflow?d:{...d,detectOverflow:GL},g=await(d.isRTL==null?void 0:d.isRTL(r)),E=await d.getElementRects({reference:i,floating:r,strategy:s}),{x:$,y:x}=YL(E,e,g),_=e,S=0,z={};for(let B=0;B<l.length;B++){let j=l[B];if(!j)continue;let{name:K,fn:F}=j,{x:G,y:J,data:ge,reset:ze}=await F({x:$,y:x,initialPlacement:e,placement:_,strategy:s,middlewareData:z,rects:E,platform:m,elements:{reference:i,floating:r}});$=G??$,x=J??x,z[K]={...z[K],...ge},ze&&S<Y4&&(S++,typeof ze=="object"&&(ze.placement&&(_=ze.placement),ze.rects&&(E=ze.rects===!0?await d.getElementRects({reference:i,floating:r,strategy:s}):ze.rects),{x:$,y:x}=YL(E,_,g)),B=-1)}return{x:$,y:x,placement:_,strategy:s,middlewareData:z}};var JL=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,e;let{placement:s,middlewareData:l,rects:d,initialPlacement:m,platform:g,elements:E}=r,{mainAxis:$=!0,crossAxis:x=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:B=!0,...j}=$a(i,r);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let K=ss(s),F=pr(m),G=ss(m)===m,J=await(g.isRTL==null?void 0:g.isRTL(E.floating)),ge=_||(G||!B?[qc(m)]:jL(m)),ze=z!=="none";!_&&ze&&ge.push(...KL(m,B,z,J));let sr=[m,...ge],si=await g.detectOverflow(r,j),ii=[],Jr=((e=l.flip)==null?void 0:e.overflows)||[];if($&&ii.push(si[K]),x){let ni=qL(s,d,J);ii.push(si[ni[0]],si[ni[1]])}if(Jr=[...Jr,{placement:s,overflows:ii}],!ii.every(ni=>ni<=0)){var cc,pc;let ni=(((cc=l.flip)==null?void 0:cc.index)||0)+1,mb=sr[ni];if(mb&&(!(x==="alignment"?F!==pr(mb):!1)||Jr.every(Vo=>pr(Vo.placement)===F?Vo.overflows[0]>0:!0)))return{data:{index:ni,overflows:Jr},reset:{placement:mb}};let uc=(pc=Jr.filter(ai=>ai.overflows[0]<=0).sort((ai,Vo)=>ai.overflows[1]-Vo.overflows[1])[0])==null?void 0:pc.placement;if(!uc)switch(S){case"bestFit":{var hc;let ai=(hc=Jr.filter(Vo=>{if(ze){let Es=pr(Vo.placement);return Es===F||Es==="y"}return!0}).map(Vo=>[Vo.placement,Vo.overflows.filter(Es=>Es>0).reduce((Es,b3)=>Es+b3,0)]).sort((Vo,Es)=>Vo[1]-Es[1])[0])==null?void 0:hc[0];ai&&(uc=ai);break}case"initialPlacement":uc=m;break}if(s!==uc)return{reset:{placement:uc}}}return{}}}};var G4=new Set(["left","top"]);async function X4(i,r){let{placement:t,platform:e,elements:s}=i,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),d=ss(t),m=Ta(t),g=pr(t)==="y",E=G4.has(d)?-1:1,$=l&&g?-1:1,x=$a(r,i),{mainAxis:_,crossAxis:S,alignmentAxis:z}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return m&&typeof z=="number"&&(S=m==="end"?z*-1:z),g?{x:S*$,y:_*E}:{x:_*E,y:S*$}}var QL=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,e;let{x:s,y:l,placement:d,middlewareData:m}=r,g=await X4(r,i);return d===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:s+g.x,y:l+g.y,data:{...g,placement:d}}}}},ZL=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:e,placement:s,platform:l}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:K=>{let{x:F,y:G}=K;return{x:F,y:G}}},...E}=$a(i,r),$={x:t,y:e},x=await l.detectOverflow(r,E),_=pr(ss(s)),S=u0(_),z=$[S],B=$[_];if(d){let K=S==="y"?"top":"left",F=S==="y"?"bottom":"right",G=z+x[K],J=z-x[F];z=h0(G,z,J)}if(m){let K=_==="y"?"top":"left",F=_==="y"?"bottom":"right",G=B+x[K],J=B-x[F];B=h0(G,B,J)}let j=g.fn({...r,[S]:z,[_]:B});return{...j,data:{x:j.x-t,y:j.y-e,enabled:{[S]:d,[_]:m}}}}}};var tO=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var t,e;let{placement:s,rects:l,platform:d,elements:m}=r,{apply:g=()=>{},...E}=$a(i,r),$=await d.detectOverflow(r,E),x=ss(s),_=Ta(s),S=pr(s)==="y",{width:z,height:B}=l.floating,j,K;x==="top"||x==="bottom"?(j=x,K=_===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(K=x,j=_==="end"?"top":"bottom");let F=B-$.top-$.bottom,G=z-$.left-$.right,J=Os(B-$[j],F),ge=Os(z-$[K],G),ze=!r.middlewareData.shift,sr=J,si=ge;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(si=G),(e=r.middlewareData.shift)!=null&&e.enabled.y&&(sr=F),ze&&!_){let Jr=Me($.left,0),cc=Me($.right,0),pc=Me($.top,0),hc=Me($.bottom,0);S?si=z-2*(Jr!==0||cc!==0?Jr+cc:Me($.left,$.right)):sr=B-2*(pc!==0||hc!==0?pc+hc:Me($.top,$.bottom))}await g({...r,availableWidth:si,availableHeight:sr});let ii=await d.getDimensions(m.floating);return z!==ii.width||B!==ii.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<"u"}function Ri(i){return oO(i)?(i.nodeName||"").toLowerCase():"#document"}function qe(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function Ko(i){var r;return(r=(oO(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function oO(i){return Wu()?i instanceof Node||i instanceof qe(i).Node:!1}function $o(i){return Wu()?i instanceof Element||i instanceof qe(i).Element:!1}function hr(i){return Wu()?i instanceof HTMLElement||i instanceof qe(i).HTMLElement:!1}function eO(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof qe(i).ShadowRoot}function Aa(i){let{overflow:r,overflowX:t,overflowY:e,display:s}=To(i);return/auto|scroll|overlay|hidden|clip/.test(r+e+t)&&s!=="inline"&&s!=="contents"}function rO(i){return/^(table|td|th)$/.test(Ri(i))}function Wc(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var J4=/transform|translate|scale|rotate|perspective|filter/,Q4=/paint|layout|strict|content/,_i=i=>!!i&&i!=="none",g0;function Yu(i){let r=$o(i)?To(i):i;return _i(r.transform)||_i(r.translate)||_i(r.scale)||_i(r.rotate)||_i(r.perspective)||!Gu()&&(_i(r.backdropFilter)||_i(r.filter))||J4.test(r.willChange||"")||Q4.test(r.contain||"")}function sO(i){let r=is(i);for(;hr(r)&&!Ii(r);){if(Yu(r))return r;if(Wc(r))return null;r=is(r)}return null}function Gu(){return g0==null&&(g0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),g0}function Ii(i){return/^(html|body|#document)$/.test(Ri(i))}function To(i){return qe(i).getComputedStyle(i)}function Yc(i){return $o(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function is(i){if(Ri(i)==="html")return i;let r=i.assignedSlot||i.parentNode||eO(i)&&i.host||Ko(i);return eO(r)?r.host:r}function iO(i){let r=is(i);return Ii(r)?i.ownerDocument?i.ownerDocument.body:i.body:hr(r)&&Aa(r)?r:iO(r)}function Sa(i,r,t){var e;r===void 0&&(r=[]),t===void 0&&(t=!0);let s=iO(i),l=s===((e=i.ownerDocument)==null?void 0:e.body),d=qe(s);if(l){let m=Xu(d);return r.concat(d,d.visualViewport||[],Aa(s)?s:[],m&&t?Sa(m):[])}else return r.concat(s,Sa(s,[],t))}function Xu(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function dO(i){let r=To(i),t=parseFloat(r.width)||0,e=parseFloat(r.height)||0,s=hr(i),l=s?i.offsetWidth:t,d=s?i.offsetHeight:e,m=jc(t)!==l||jc(e)!==d;return m&&(t=l,e=d),{width:t,height:e,$:m}}function b0(i){return $o(i)?i:i.contextElement}function _a(i){let r=b0(i);if(!hr(r))return jo(1);let t=r.getBoundingClientRect(),{width:e,height:s,$:l}=dO(r),d=(l?jc(t.width):t.width)/e,m=(l?jc(t.height):t.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}var Z4=jo(0);function cO(i){let r=qe(i);return!Gu()||!r.visualViewport?Z4:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tV(i,r,t){return r===void 0&&(r=!1),!t||r&&t!==qe(i)?!1:r}function Li(i,r,t,e){r===void 0&&(r=!1),t===void 0&&(t=!1);let s=i.getBoundingClientRect(),l=b0(i),d=jo(1);r&&(e?$o(e)&&(d=_a(e)):d=_a(i));let m=tV(l,t,e)?cO(l):jo(0),g=(s.left+m.x)/d.x,E=(s.top+m.y)/d.y,$=s.width/d.x,x=s.height/d.y;if(l){let _=qe(l),S=e&&$o(e)?qe(e):e,z=_,B=Xu(z);for(;B&&e&&S!==z;){let j=_a(B),K=B.getBoundingClientRect(),F=To(B),G=K.left+(B.clientLeft+parseFloat(F.paddingLeft))*j.x,J=K.top+(B.clientTop+parseFloat(F.paddingTop))*j.y;g*=j.x,E*=j.y,$*=j.x,x*=j.y,g+=G,E+=J,z=qe(B),B=Xu(z)}}return Ai({width:$,height:x,x:g,y:E})}function Ju(i,r){let t=Yc(i).scrollLeft;return r?r.left+t:Li(Ko(i)).left+t}function pO(i,r){let t=i.getBoundingClientRect(),e=t.left+r.scrollLeft-Ju(i,t),s=t.top+r.scrollTop;return{x:e,y:s}}function eV(i){let{elements:r,rect:t,offsetParent:e,strategy:s}=i,l=s==="fixed",d=Ko(e),m=r?Wc(r.floating):!1;if(e===d||m&&l)return t;let g={scrollLeft:0,scrollTop:0},E=jo(1),$=jo(0),x=hr(e);if((x||!x&&!l)&&((Ri(e)!=="body"||Aa(d))&&(g=Yc(e)),x)){let S=Li(e);E=_a(e),$.x=S.x+e.clientLeft,$.y=S.y+e.clientTop}let _=d&&!x&&!l?pO(d,g):jo(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-g.scrollLeft*E.x+$.x+_.x,y:t.y*E.y-g.scrollTop*E.y+$.y+_.y}}function oV(i){return Array.from(i.getClientRects())}function rV(i){let r=Ko(i),t=Yc(i),e=i.ownerDocument.body,s=Me(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth),l=Me(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ju(i),m=-t.scrollTop;return To(e).direction==="rtl"&&(d+=Me(r.clientWidth,e.clientWidth)-s),{width:s,height:l,x:d,y:m}}var nO=25;function sV(i,r){let t=qe(i),e=Ko(i),s=t.visualViewport,l=e.clientWidth,d=e.clientHeight,m=0,g=0;if(s){l=s.width,d=s.height;let $=Gu();(!$||$&&r==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}let E=Ju(e);if(E<=0){let $=e.ownerDocument,x=$.body,_=getComputedStyle(x),S=$.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,z=Math.abs(e.clientWidth-x.clientWidth-S);z<=nO&&(l-=z)}else E<=nO&&(l+=E);return{width:l,height:d,x:m,y:g}}function iV(i,r){let t=Li(i,!0,r==="fixed"),e=t.top+i.clientTop,s=t.left+i.clientLeft,l=hr(i)?_a(i):jo(1),d=i.clientWidth*l.x,m=i.clientHeight*l.y,g=s*l.x,E=e*l.y;return{width:d,height:m,x:g,y:E}}function aO(i,r,t){let e;if(r==="viewport")e=sV(i,t);else if(r==="document")e=rV(Ko(i));else if($o(r))e=iV(r,t);else{let s=cO(i);e={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Ai(e)}function hO(i,r){let t=is(i);return t===r||!$o(t)||Ii(t)?!1:To(t).position==="fixed"||hO(t,r)}function nV(i,r){let t=r.get(i);if(t)return t;let e=Sa(i,[],!1).filter(m=>$o(m)&&Ri(m)!=="body"),s=null,l=To(i).position==="fixed",d=l?is(i):i;for(;$o(d)&&!Ii(d);){let m=To(d),g=Yu(d);!g&&m.position==="fixed"&&(s=null),(l?!g&&!s:!g&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Aa(d)&&!g&&hO(i,d))?e=e.filter($=>$!==d):s=m,d=is(d)}return r.set(i,e),e}function aV(i){let{element:r,boundary:t,rootBoundary:e,strategy:s}=i,d=[...t==="clippingAncestors"?Wc(r)?[]:nV(r,this._c):[].concat(t),e],m=aO(r,d[0],s),g=m.top,E=m.right,$=m.bottom,x=m.left;for(let _=1;_<d.length;_++){let S=aO(r,d[_],s);g=Me(S.top,g),E=Os(S.right,E),$=Os(S.bottom,$),x=Me(S.left,x)}return{width:E-x,height:$-g,x,y:g}}function lV(i){let{width:r,height:t}=dO(i);return{width:r,height:t}}function dV(i,r,t){let e=hr(r),s=Ko(r),l=t==="fixed",d=Li(i,!0,l,r),m={scrollLeft:0,scrollTop:0},g=jo(0);function E(){g.x=Ju(s)}if(e||!e&&!l)if((Ri(r)!=="body"||Aa(s))&&(m=Yc(r)),e){let S=Li(r,!0,l,r);g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}else s&&E();l&&!e&&s&&E();let $=s&&!e&&!l?pO(s,m):jo(0),x=d.left+m.scrollLeft-g.x-$.x,_=d.top+m.scrollTop-g.y-$.y;return{x,y:_,width:d.width,height:d.height}}function v0(i){return To(i).position==="static"}function lO(i,r){if(!hr(i)||To(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return Ko(i)===t&&(t=t.ownerDocument.body),t}function uO(i,r){let t=qe(i);if(Wc(i))return t;if(!hr(i)){let s=is(i);for(;s&&!Ii(s);){if($o(s)&&!v0(s))return s;s=is(s)}return t}let e=lO(i,r);for(;e&&rO(e)&&v0(e);)e=lO(e,r);return e&&Ii(e)&&v0(e)&&!Yu(e)?t:e||sO(i)||t}var cV=async function(i){let r=this.getOffsetParent||uO,t=this.getDimensions,e=await t(i.floating);return{reference:dV(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function pV(i){return To(i).direction==="rtl"}var y0={convertOffsetParentRelativeRectToViewportRelativeRect:eV,getDocumentElement:Ko,getClippingRect:aV,getOffsetParent:uO,getElementRects:cV,getClientRects:oV,getDimensions:lV,getScale:_a,isElement:$o,isRTL:pV};function mO(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function hV(i,r){let t=null,e,s=Ko(i);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),l();let E=i.getBoundingClientRect(),{left:$,top:x,width:_,height:S}=E;if(m||r(),!_||!S)return;let z=Kc(x),B=Kc(s.clientWidth-($+_)),j=Kc(s.clientHeight-(x+S)),K=Kc($),G={rootMargin:-z+"px "+-B+"px "+-j+"px "+-K+"px",threshold:Me(0,Os(1,g))||1},J=!0;function ge(ze){let sr=ze[0].intersectionRatio;if(sr!==g){if(!J)return d();sr?d(!1,sr):e=setTimeout(()=>{d(!1,1e-7)},1e3)}sr===1&&!mO(E,i.getBoundingClientRect())&&d(),J=!1}try{t=new IntersectionObserver(ge,{...G,root:s.ownerDocument})}catch{t=new IntersectionObserver(ge,G)}t.observe(i)}return d(!0),l}function fO(i,r,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,E=b0(i),$=s||l?[...E?Sa(E):[],...r?Sa(r):[]]:[];$.forEach(K=>{s&&K.addEventListener("scroll",t,{passive:!0}),l&&K.addEventListener("resize",t)});let x=E&&m?hV(E,t):null,_=-1,S=null;d&&(S=new ResizeObserver(K=>{let[F]=K;F&&F.target===E&&S&&r&&(S.unobserve(r),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(r)})),t()}),E&&!g&&S.observe(E),r&&S.observe(r));let z,B=g?Li(i):null;g&&j();function j(){let K=Li(i);B&&!mO(B,K)&&t(),B=K,z=requestAnimationFrame(j)}return t(),()=>{var K;$.forEach(F=>{s&&F.removeEventListener("scroll",t),l&&F.removeEventListener("resize",t)}),x?.(),(K=S)==null||K.disconnect(),S=null,g&&cancelAnimationFrame(z)}}var gO=QL;var vO=ZL,bO=JL,x0=tO;var yO=(i,r,t)=>{let e=new Map,s={platform:y0,...t},l={...s.platform,_c:e};return XL(i,r,{...s,platform:l})};var xO=()=>new Promise(i=>requestAnimationFrame(()=>requestAnimationFrame(()=>i()))),wO=(i,r,t=200)=>{let e=!1,s=()=>{e||(e=!0,i.removeEventListener("transitionend",l),clearTimeout(d),r())},l=()=>s();i.addEventListener("transitionend",l);let d=setTimeout(s,t)},Ra=i=>f`
|
|
2729
2699
|
<svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${i}">
|
|
2730
2700
|
<polygon class="arrow-fill" points="0,0 5,6 10,0" />
|
|
2731
2701
|
<path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
|
|
2732
2702
|
</svg>
|
|
2733
|
-
`,uV={...
|
|
2703
|
+
`,uV={...y0,getOffsetParent:()=>window},mV=i=>({name:"alignInner",fn(r){let t=i.getElement();if(!t)return{};let e=i.padding??8,{rects:s}=r,l=r.elements.floating,d=l.getBoundingClientRect(),m=t.getBoundingClientRect(),g=m.top-d.top+m.height/2,E=i.getReferenceInner?.(),x=(E?E.getBoundingClientRect().top+E.getBoundingClientRect().height/2:s.reference.y+s.reference.height/2)-g,_=globalThis.innerHeight,S=d.height,z=e,B=_-S-e,j=Math.max(z,Math.min(x,B)),K=l.shadowRoot?.querySelector(".Popup")??l.querySelector(".Popup");if(K&&j!==x){let J=x-j;K.scrollTop=Math.max(0,K.scrollTop-J)}x=j;let F=m.left-d.left;return{x:E?E.getBoundingClientRect().left-F:s.reference.x,y:x,reset:!1}}}),fV=(i,r,t={})=>{let{placement:e="bottom-start",offsetPx:s=4,matchWidth:l=!1,minMatchWidth:d=!1,padding:m=8}=t,E=t.alignToInner?.getElement()!=null?[mV(t.alignToInner)]:[gO(s),bO(),vO({padding:m})];return l?E.push(x0({apply({rects:$,elements:x}){Object.assign(x.floating.style,{width:`${$.reference.width}px`})}})):d&&E.push(x0({apply({rects:$,elements:x}){Object.assign(x.floating.style,{minWidth:`${$.reference.width}px`})}})),yO(i,r,{placement:e,strategy:"fixed",middleware:E,platform:uV})},kO=(i,r,t={})=>{let{onPosition:e,...s}=t;return fO(i,r,()=>{fV(i,r,s).then(l=>{Object.assign(r.style,{left:`${l.x}px`,top:`${l.y}px`}),e?.(l)})})};var Te=class{#t;#e;#o;#n;#d;#c;#a;#f;#g;#l;#s;#m;#p;#h;#w;#y;#k;#v=[];#r=null;#b=null;#i=!1;#u=!1;#x=0;get isOpen(){return this.#i}get isAnimating(){return this.#u}get isStarting(){return this.#i&&this.#u}get isEnding(){return!this.#i&&this.#u}get positionerElement(){return this.#r}get renderRoot(){return this.#r?.shadowRoot??this.#r}set placement(r){this.#d=r}set offset(r){this.#c=r}constructor(r,t){this.#t=r,this.#e=t.getAnchor,this.#o=t.matchWidth??!0,this.#n=t.minMatchWidth??!1,this.#d=t.placement??"bottom-start",this.#c=t.offset??4,this.#a=t.styles,this.#f=t.onOpen,this.#g=t.onClose,this.#l=t.onPosition,this.#s=t.renderPopup,this.#m=t.contentContainer,this.#p=t.contentSelector,this.#h=t.forwardProperties??[],this.#w=t.getOverlayRoot??(()=>document.body),this.#y=t.alignToInner,this.#k=t.alignToInnerReference,r.addController(this)}hostConnected(){document.addEventListener("click",this.#C)}hostDisconnected(){document.removeEventListener("click",this.#C),this.#z(),p0(this.#t)}hostUpdated(){if(this.#i?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#s&&(this.#i||this.isEnding)){let r=this.renderRoot;r&&Vh(this.#s(this),r)}this.#m&&this.#i&&this.#v.length===0&&this.#L()}open(){if(this.#i)return;this.#x++;let r=this.#x;VL(this.#t,()=>this.close()),this.#i=!0,this.#u=!0,this.#A(),this.#I(),this.#f?.(),this.#t.requestUpdate(),xO().then(()=>{r===this.#x&&(this.#u=!1,this.#t.requestUpdate())})}close(){if(!this.#i)return;this.#x++,this.#u=!0,this.#t.requestUpdate();let r=this.renderRoot?.querySelector(".Popup");if(!r){this.#E();return}wO(r,()=>this.#E())}#E(){this.#i&&(this.#i=!1,this.#u=!1,this.#T(),p0(this.#t),this.#g?.(),this.#_(),this.#t.requestUpdate())}#C=r=>{if(!this.#i)return;let t=r.composedPath();!t.includes(this.#t)&&!this.#S(t)&&this.close()};#S(r){return this.#r?r.includes(this.#r):!1}#A(){if(this.#r){this.#r.style.display="block",this.#$(this.#r);return}let r=this.#w(),t=document.createElement("div");t.style.position="fixed",t.style.display="block",t.style.zIndex="1000",t.style.pointerEvents="none",t.setAttribute("data-floating-portal",""),t.setAttribute("data-dui-portal-for",this.#t.tagName.toLowerCase());let e=this.#t.constructor,s=d=>d?Array.isArray(d)?d.flatMap(s):[d]:[],l=[...s(e.styles),...this.#a??[]];if(l.length>0){let d=t.attachShadow({mode:"open"});Ih(d,l)}this.#$(t),r.appendChild(t),this.#r=t}#$(r){if(this.#h.length===0)return;let t=getComputedStyle(this.#t);for(let e of this.#h){let s=t.getPropertyValue(e).trim();s&&r.style.setProperty(e,s)}}#_(){this.#r&&(this.#r.style.display="none")}#R(){this.#r?.remove(),this.#r=null}#I(){if(this.#b)return;let r=this.#e(),t=this.#r;!r||!t||(this.#b=kO(r,t,{placement:this.#d,offsetPx:this.#c,matchWidth:this.#o,minMatchWidth:this.#n,onPosition:this.#l,alignToInner:this.#y?{getElement:this.#y,getReferenceInner:this.#k}:void 0}))}#T(){this.#b?.(),this.#b=null}#L(){let r=this.renderRoot?.querySelector(this.#m);if(!r)return;let t=this.#p?Array.from(this.#t.querySelectorAll(`:scope > ${this.#p}`)):Array.from(this.#t.childNodes);for(let e of t)r.appendChild(e),this.#v.push(e)}#O(){for(let r of this.#v)this.#t.appendChild(r);this.#v=[]}#z(){this.#T(),this.#O(),this.#R()}};var M0=M("value-change",{bubbles:!0,composed:!0}),Zu=M("values-change",{bubbles:!0,composed:!0}),gV=b`
|
|
2734
2704
|
:host {
|
|
2735
2705
|
display: block;
|
|
2736
2706
|
}
|
|
@@ -2838,7 +2808,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2838
2808
|
text-overflow: ellipsis;
|
|
2839
2809
|
white-space: nowrap;
|
|
2840
2810
|
}
|
|
2841
|
-
`],
|
|
2811
|
+
`],EO,CO,$O,TO,SO,AO,_O,RO,IO,LO,Ia,It,w0,k0,E0,C0,$0,T0,S0,Q,OO,A0,_0,ns,ur,R0,I0,Qu,Oi,oe,Gc,zi,L0,tm,em,om,O0,z0,rm,sm,im,nm,am,lm,xe=class extends(LO=y,IO=[u({attribute:!1})],RO=[u({type:String})],_O=[u({attribute:!1})],AO=[u({type:Boolean,reflect:!0})],SO=[u({type:String})],TO=[u({type:Boolean,reflect:!0})],$O=[u({type:String})],CO=[C()],EO=[C()],LO){constructor(){super();a(this,Q);a(this,Ia);a(this,w0,n(It,8,this,[])),n(It,11,this);a(this,k0,n(It,12,this,"")),n(It,15,this);a(this,E0,n(It,16,this,new Set)),n(It,19,this);a(this,C0,n(It,20,this,!1)),n(It,23,this);a(this,$0,n(It,24,this,"Search...")),n(It,27,this);a(this,T0,n(It,28,this,!1)),n(It,31,this);a(this,S0,n(It,32,this,"")),n(It,35,this);a(this,A0,n(It,36,this,-1)),n(It,39,this);a(this,R0,n(It,40,this,"")),n(It,43,this);a(this,oe,new Te(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:bV,onOpen:()=>{if(h(this,Q,-1,ur),!this.multiple){h(this,Q,"",Oi);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(h(this,Q,-1,ur),!this.multiple){let t=this.options.find(e=>e.value===this.value);h(this,Q,t?.label??"",Oi)}},renderPopup:t=>{let e=o(this,Q,L0),s=e.length===0;return f`
|
|
2842
2812
|
<div
|
|
2843
2813
|
class="Popup"
|
|
2844
2814
|
?data-starting-style="${t.isStarting}"
|
|
@@ -2847,7 +2817,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2847
2817
|
<dui-scroll-area>
|
|
2848
2818
|
<div
|
|
2849
2819
|
class="List"
|
|
2850
|
-
id="${o(this,
|
|
2820
|
+
id="${o(this,zi)}"
|
|
2851
2821
|
role="listbox"
|
|
2852
2822
|
aria-labelledby="${o(this,Gc)}"
|
|
2853
2823
|
?data-empty="${s}"
|
|
@@ -2859,7 +2829,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2859
2829
|
</div>
|
|
2860
2830
|
</dui-scroll-area>
|
|
2861
2831
|
</div>
|
|
2862
|
-
`}}));a(this,Gc,`combobox-input-${crypto.randomUUID().slice(0,8)}`);a(this,
|
|
2832
|
+
`}}));a(this,Gc,`combobox-input-${crypto.randomUUID().slice(0,8)}`);a(this,zi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);a(this,tm,t=>{let e=t.target;h(this,Q,e.value,Oi),o(this,oe).isOpen||this.disabled||o(this,oe).open(),h(this,Q,-1,ur)});a(this,em,()=>{!o(this,oe).isOpen&&!this.disabled&&o(this,oe).open()});a(this,om,t=>{let e=o(this,Q,L0);switch(t.key){case"ArrowDown":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.min(o(this,Q,ns)+1,e.length-1),ur):this.disabled||o(this,oe).open();break;case"ArrowUp":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.max(o(this,Q,ns)-1,0),ur):this.disabled||o(this,oe).open();break;case"Enter":{if(t.preventDefault(),o(this,oe).isOpen){let s=o(this,Q,ns)>=0?o(this,Q,ns):0,l=e[s];l&&p(this,Q,O0).call(this,l)}else this.disabled||o(this,oe).open();break}case"Escape":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,"",Oi),o(this,oe).close());break;case"Tab":o(this,oe).isOpen&&o(this,oe).close();break;case"Home":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,0,ur));break;case"End":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,e.length-1,ur));break;case"Backspace":if(this.multiple&&o(this,Q,Qu)===""&&this.values.size>0){let s=Array.from(this.values).at(-1);s&&p(this,Q,z0).call(this,s)}break}});a(this,rm,t=>{p(this,Q,O0).call(this,t)});a(this,sm,t=>{t.preventDefault()});a(this,im,()=>{o(this,Q,ns)!==-1&&h(this,Q,-1,ur)});a(this,nm,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});a(this,am,t=>{let s=this.options.find(l=>l.value===t)?.label??t;return f`
|
|
2863
2833
|
<span class="Chip">
|
|
2864
2834
|
<span class="ChipLabel">${s}</span>
|
|
2865
2835
|
<button
|
|
@@ -2867,16 +2837,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
2867
2837
|
type="button"
|
|
2868
2838
|
tabindex="-1"
|
|
2869
2839
|
@mousedown="${l=>l.preventDefault()}"
|
|
2870
|
-
@click="${l=>{l.stopPropagation(),p(this,Q,
|
|
2840
|
+
@click="${l=>{l.stopPropagation(),p(this,Q,z0).call(this,t)}}"
|
|
2871
2841
|
>
|
|
2872
2842
|
<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></dui-icon>
|
|
2873
2843
|
</button>
|
|
2874
2844
|
</span>
|
|
2875
|
-
`});a(this,lm,(t,e)=>{let s=this.multiple?this.values.has(t.value):t.value===this.value,l=e===o(this,Q,
|
|
2845
|
+
`});a(this,lm,(t,e)=>{let s=this.multiple?this.values.has(t.value):t.value===this.value,l=e===o(this,Q,ns);return f`
|
|
2876
2846
|
<div
|
|
2877
2847
|
class="Item"
|
|
2878
2848
|
role="option"
|
|
2879
|
-
id="${o(this,
|
|
2849
|
+
id="${o(this,zi)}-option-${e}"
|
|
2880
2850
|
aria-selected="${s}"
|
|
2881
2851
|
?data-selected="${s}"
|
|
2882
2852
|
?data-highlighted="${l}"
|
|
@@ -2887,7 +2857,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2887
2857
|
${s?f`<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></dui-icon>`:L}
|
|
2888
2858
|
</span>
|
|
2889
2859
|
</div>
|
|
2890
|
-
`});h(this,Ia,this.attachInternals())}willUpdate(){p(this,Q,
|
|
2860
|
+
`});h(this,Ia,this.attachInternals())}willUpdate(){p(this,Q,OO).call(this)}render(){let t=f`
|
|
2891
2861
|
<input
|
|
2892
2862
|
class="Input"
|
|
2893
2863
|
id="${o(this,Gc)}"
|
|
@@ -2896,9 +2866,9 @@ label, legend, caption, figcaption, th, td {
|
|
|
2896
2866
|
autocomplete="off"
|
|
2897
2867
|
aria-haspopup="listbox"
|
|
2898
2868
|
aria-expanded="${o(this,oe).isOpen}"
|
|
2899
|
-
aria-controls="${o(this,
|
|
2900
|
-
aria-activedescendant="${o(this,Q,
|
|
2901
|
-
.value="${
|
|
2869
|
+
aria-controls="${o(this,zi)}"
|
|
2870
|
+
aria-activedescendant="${o(this,Q,ns)>=0?`${o(this,zi)}-option-${o(this,Q,ns)}`:L}"
|
|
2871
|
+
.value="${cr(o(this,Q,Qu))}"
|
|
2902
2872
|
.placeholder="${this.placeholder}"
|
|
2903
2873
|
?disabled="${this.disabled}"
|
|
2904
2874
|
@input="${o(this,tm)}"
|
|
@@ -2921,7 +2891,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2921
2891
|
${t}
|
|
2922
2892
|
<dui-icon class="Arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></dui-icon>
|
|
2923
2893
|
</div>
|
|
2924
|
-
`}};It=A(
|
|
2894
|
+
`}};It=A(LO),Ia=new WeakMap,w0=new WeakMap,k0=new WeakMap,E0=new WeakMap,C0=new WeakMap,$0=new WeakMap,T0=new WeakMap,S0=new WeakMap,Q=new WeakSet,OO=function(){if(this.multiple){let t=new FormData;for(let e of this.values)t.append(this.name||"values",e);o(this,Ia).setFormValue(t)}else o(this,Ia).setFormValue(this.value||null)},A0=new WeakMap,R0=new WeakMap,oe=new WeakMap,Gc=new WeakMap,zi=new WeakMap,L0=function(){let t=o(this,Q,Qu).toLowerCase(),e=this.options;return t?e.filter(s=>s.label.toLowerCase().includes(t)):e},tm=new WeakMap,em=new WeakMap,om=new WeakMap,O0=function(t){if(this.multiple){let e=new Set(this.values),s=!e.has(t.value);s?e.add(t.value):e.delete(t.value),this.values=e,h(this,Q,"",Oi),h(this,Q,-1,ur),this.dispatchEvent(Zu({value:t.value,selected:s,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,h(this,Q,t.label,Oi),this.dispatchEvent(M0({value:t.value,option:t})),o(this,oe).close()},z0=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(Zu({value:t,selected:!1,values:e}))},rm=new WeakMap,sm=new WeakMap,im=new WeakMap,nm=new WeakMap,am=new WeakMap,lm=new WeakMap,c(It,4,"options",IO,xe,w0),c(It,4,"value",RO,xe,k0),c(It,4,"values",_O,xe,E0),c(It,4,"multiple",AO,xe,C0),c(It,4,"placeholder",SO,xe,$0),c(It,4,"disabled",TO,xe,T0),c(It,4,"name",$O,xe,S0),_0=c(It,20,"#highlightedIndex",CO,Q,A0),ns=_0.get,ur=_0.set,I0=c(It,20,"#inputValue",EO,Q,R0),Qu=I0.get,Oi=I0.set,T(It,xe),v(xe,"tagName","dui-combobox"),v(xe,"formAssociated",!0),v(xe,"styles",[w,gV,vV]);var yV=k`
|
|
2925
2895
|
/* ---- Chips (multi-select container) ---- */
|
|
2926
2896
|
|
|
2927
2897
|
.Chips {
|
|
@@ -3077,13 +3047,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
3077
3047
|
color: var(--text-2);
|
|
3078
3048
|
text-align: center;
|
|
3079
3049
|
}
|
|
3080
|
-
`,La=class extends
|
|
3050
|
+
`,La=class extends xe{static styles=[...xe.styles,yV]};customElements.define(La.tagName,La);var So=Symbol("dui-command");var Xc=(i,r,t,e)=>{if(!i)return 1;let s=i.toLowerCase(),l=r.toLowerCase(),d=t.toLowerCase();if(l===s)return 1;if(l.startsWith(s))return .8;if(d.startsWith(s))return .75;if(l.includes(s))return .7;if(d.includes(s))return .6;for(let m of e)if(m.toLowerCase().startsWith(s))return .5;for(let m of e)if(m.toLowerCase().includes(s))return .4;return 0};var xV=M("select",{bubbles:!0,composed:!0}),wV=M("search-change",{bubbles:!0,composed:!0}),kV=M("escape",{bubbles:!0,composed:!0}),EV=0,CV=()=>`dui-command-${++EV}`,$V=b`
|
|
3081
3051
|
:host {
|
|
3082
3052
|
display: flex;
|
|
3083
3053
|
flex-direction: column;
|
|
3084
3054
|
overflow: hidden;
|
|
3085
3055
|
}
|
|
3086
|
-
`,
|
|
3056
|
+
`,zO,MO,NO,DO,HO,BO,FO,VO,jt,N0,D0,H0,B0,F0,V0,zs,PO,pt,P0,U0,Jc,Qc,Ms,Ns,Zc,mr,cm,UO,pm,Oa,hm,um,mm,fm,gm,vm,bm,ym,xm,tp,ep,q0,dm,je=class extends(VO=y,FO=[u({type:Boolean})],BO=[u({type:Boolean,attribute:"should-filter"})],HO=[u({type:String})],DO=[u({attribute:!1})],NO=[C()],MO=[C()],zO=[lt({context:So}),C()],VO){constructor(){super(...arguments);a(this,pt);a(this,N0,n(jt,8,this,!1)),n(jt,11,this);a(this,D0,n(jt,12,this,!0)),n(jt,15,this);a(this,H0,n(jt,16,this)),n(jt,19,this);a(this,B0,n(jt,20,this)),n(jt,23,this);a(this,F0,n(jt,24,this,"")),n(jt,27,this);a(this,P0,n(jt,28,this)),n(jt,31,this);a(this,Ms,new Map);a(this,Ns,[]);a(this,Zc,new Set);a(this,mr,new Map);a(this,cm,CV());a(this,pm,t=>this.shouldFilter?o(this,mr).get(t)??0:1);a(this,hm,()=>p(this,pt,Oa).call(this).length);a(this,um,t=>p(this,pt,Oa).call(this).filter(e=>e.groupId===t).length);a(this,mm,t=>{o(this,Ms).set(t.id,t),o(this,Ns).includes(t.id)||o(this,Ns).push(t.id);let e=this.filter?this.filter(t.value,o(this,pt,zs),t.keywords):Xc(o(this,pt,zs),t.value,t.textContent,t.keywords);if(o(this,mr).set(t.id,e),!o(this,pt,Jc)){let s=p(this,pt,Oa).call(this);s.length>0&&!s[0].disabled&&h(this,pt,s[0].id,Qc)}this.requestUpdate()});a(this,fm,t=>{o(this,Ms).delete(t),h(this,Ns,o(this,Ns).filter(e=>e!==t)),o(this,mr).delete(t),this.requestUpdate()});a(this,gm,t=>{o(this,Ms).set(t.id,t);let e=this.filter?this.filter(t.value,o(this,pt,zs),t.keywords):Xc(o(this,pt,zs),t.value,t.textContent,t.keywords);o(this,mr).set(t.id,e),this.requestUpdate()});a(this,vm,t=>{o(this,Zc).add(t)});a(this,bm,t=>{o(this,Zc).delete(t)});a(this,ym,t=>{h(this,pt,t,PO),p(this,pt,UO).call(this);let s=p(this,pt,Oa).call(this).find(l=>!l.disabled);h(this,pt,s?.id,Qc),this.dispatchEvent(wV(t))});a(this,xm,t=>{h(this,pt,t,Qc)});a(this,tp,t=>{this.dispatchEvent(xV(t))});a(this,ep,t=>{let e=p(this,pt,Oa).call(this).filter(d=>!d.disabled);if(e.length===0)return;let s=e.findIndex(d=>d.id===o(this,pt,Jc)),l=d=>{let m=e[d];m&&h(this,pt,m.id,Qc)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s<e.length-1?l(s+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s>0?l(s-1):this.loop&&l(e.length-1);break}case"Home":{t.preventDefault(),l(0);break}case"End":{t.preventDefault(),l(e.length-1);break}case"Enter":{t.preventDefault();let d=e.find(m=>m.id===o(this,pt,Jc));d&&o(this,tp).call(this,d.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(kV());break}}});a(this,q0,n(jt,32,this,p(this,pt,dm).call(this))),n(jt,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",o(this,ep)),this._ctx=p(this,pt,dm).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",o(this,ep))}willUpdate(){this._ctx=p(this,pt,dm).call(this)}render(){return f`<slot></slot>`}};jt=A(VO),N0=new WeakMap,D0=new WeakMap,H0=new WeakMap,B0=new WeakMap,F0=new WeakMap,pt=new WeakSet,P0=new WeakMap,Ms=new WeakMap,Ns=new WeakMap,Zc=new WeakMap,mr=new WeakMap,cm=new WeakMap,UO=function(){o(this,mr).clear();for(let[t,e]of o(this,Ms)){let s=this.filter?this.filter(e.value,o(this,pt,zs),e.keywords):Xc(o(this,pt,zs),e.value,e.textContent,e.keywords);o(this,mr).set(t,s)}},pm=new WeakMap,Oa=function(){return o(this,Ns).map(t=>o(this,Ms).get(t)).filter(t=>t?this.shouldFilter?(o(this,mr).get(t.id)??0)>0:!0:!1)},hm=new WeakMap,um=new WeakMap,mm=new WeakMap,fm=new WeakMap,gm=new WeakMap,vm=new WeakMap,bm=new WeakMap,ym=new WeakMap,xm=new WeakMap,tp=new WeakMap,ep=new WeakMap,q0=new WeakMap,dm=function(){return{search:o(this,pt,zs),selectedItemId:o(this,pt,Jc),listId:o(this,cm),loop:this.loop,shouldFilter:this.shouldFilter,getScore:o(this,pm),getVisibleCount:o(this,hm),getGroupVisibleCount:o(this,um),registerItem:o(this,mm),unregisterItem:o(this,fm),updateItem:o(this,gm),registerGroup:o(this,vm),unregisterGroup:o(this,bm),setSearch:o(this,ym),selectItem:o(this,xm),handleItemSelect:o(this,tp)}},c(jt,4,"loop",FO,je,N0),c(jt,4,"shouldFilter",BO,je,D0),c(jt,4,"value",HO,je,H0),c(jt,4,"filter",DO,je,B0),V0=c(jt,20,"#search",NO,pt,F0),zs=V0.get,PO=V0.set,U0=c(jt,20,"#selectedItemId",MO,pt,P0),Jc=U0.get,Qc=U0.set,c(jt,4,"_ctx",zO,je,q0),T(jt,je),v(je,"tagName","dui-command"),v(je,"styles",[w,$V]);var TV=b`
|
|
3087
3057
|
:host {
|
|
3088
3058
|
display: block;
|
|
3089
3059
|
}
|
|
@@ -3106,7 +3076,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3106
3076
|
background: transparent;
|
|
3107
3077
|
padding: 0;
|
|
3108
3078
|
}
|
|
3109
|
-
`,
|
|
3079
|
+
`,qO,jO,KO,Mi,j0,K0,za,wm,km,Wo=class extends(KO=y,jO=[u({type:String})],qO=[Nt({context:So,subscribe:!0})],KO){constructor(){super(...arguments);a(this,j0,n(Mi,8,this,"Search...")),n(Mi,11,this);a(this,K0,n(Mi,12,this)),n(Mi,15,this);a(this,za);a(this,wm,t=>{let e=t.target;this._ctx?.setSearch(e.value)});a(this,km,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(o(this,za)!==void 0&&this._ctx?.search===""&&o(this,za)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}h(this,za,this._ctx?.search)}render(){return f`
|
|
3110
3080
|
<div class="InputWrapper">
|
|
3111
3081
|
<svg
|
|
3112
3082
|
class="SearchIcon"
|
|
@@ -3135,7 +3105,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3135
3105
|
@keydown="${o(this,km)}"
|
|
3136
3106
|
/>
|
|
3137
3107
|
</div>
|
|
3138
|
-
`}};Mi=A(
|
|
3108
|
+
`}};Mi=A(KO),j0=new WeakMap,K0=new WeakMap,za=new WeakMap,wm=new WeakMap,km=new WeakMap,c(Mi,4,"placeholder",jO,Wo,j0),c(Mi,4,"_ctx",qO,Wo,K0),T(Mi,Wo),v(Wo,"tagName","dui-command-input"),v(Wo,"styles",[w,TV]);var SV=b`
|
|
3139
3109
|
:host {
|
|
3140
3110
|
display: block;
|
|
3141
3111
|
}
|
|
@@ -3143,7 +3113,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3143
3113
|
.List {
|
|
3144
3114
|
overflow: hidden;
|
|
3145
3115
|
}
|
|
3146
|
-
`,
|
|
3116
|
+
`,WO,YO,Em,W0,fr=class extends(YO=y,WO=[Nt({context:So,subscribe:!0})],YO){constructor(){super(...arguments);a(this,W0,n(Em,8,this)),n(Em,11,this)}render(){return f`
|
|
3147
3117
|
<dui-scroll-area>
|
|
3148
3118
|
<div
|
|
3149
3119
|
class="List"
|
|
@@ -3153,7 +3123,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3153
3123
|
<slot></slot>
|
|
3154
3124
|
</div>
|
|
3155
3125
|
</dui-scroll-area>
|
|
3156
|
-
`}};Em=A(
|
|
3126
|
+
`}};Em=A(YO),W0=new WeakMap,c(Em,4,"_ctx",WO,fr,W0),T(Em,fr),v(fr,"tagName","dui-command-list"),v(fr,"styles",[w,SV]);var AV=0,_V=()=>`dui-command-group-${++AV}`,RV=b`
|
|
3157
3127
|
:host {
|
|
3158
3128
|
display: block;
|
|
3159
3129
|
}
|
|
@@ -3165,12 +3135,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
3165
3135
|
.Group {
|
|
3166
3136
|
overflow: hidden;
|
|
3167
3137
|
}
|
|
3168
|
-
`,
|
|
3138
|
+
`,GO,XO,JO,Ni,Y0,G0,Di,Yo=class extends(JO=y,XO=[u({type:String})],GO=[Nt({context:So,subscribe:!0})],JO){constructor(){super(...arguments);a(this,Y0,n(Ni,8,this,"")),n(Ni,11,this);a(this,G0,n(Ni,12,this)),n(Ni,15,this);a(this,Di,_V())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",o(this,Di)),this._ctx?.registerGroup(o(this,Di))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(o(this,Di))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(o(this,Di))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
|
|
3169
3139
|
<div class="Group" role="group" aria-label="${this.heading||L}">
|
|
3170
3140
|
${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:L}
|
|
3171
3141
|
<slot></slot>
|
|
3172
3142
|
</div>
|
|
3173
|
-
`}};Ni=A(
|
|
3143
|
+
`}};Ni=A(JO),Y0=new WeakMap,G0=new WeakMap,Di=new WeakMap,c(Ni,4,"heading",XO,Yo,Y0),c(Ni,4,"_ctx",GO,Yo,G0),T(Ni,Yo),v(Yo,"tagName","dui-command-group"),v(Yo,"styles",[w,RV]);var IV=0,LV=()=>`dui-command-item-${++IV}`,OV=b`
|
|
3174
3144
|
:host {
|
|
3175
3145
|
display: block;
|
|
3176
3146
|
}
|
|
@@ -3187,11 +3157,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3187
3157
|
user-select: none;
|
|
3188
3158
|
outline: none;
|
|
3189
3159
|
}
|
|
3190
|
-
`,
|
|
3160
|
+
`,QO,ZO,tz,ez,oz,lo,X0,J0,Q0,Z0,gr,Ma,Na,Da,Ha,Ke,op,rz,sz,tw,Cm,$m,co=class extends(oz=y,ez=[u({type:String})],tz=[u({type:Array,attribute:!1})],ZO=[u({type:Boolean})],QO=[Nt({context:So,subscribe:!0})],oz){constructor(){super(...arguments);a(this,Ke);a(this,X0,n(lo,8,this,"")),n(lo,11,this);a(this,J0,n(lo,12,this,[])),n(lo,15,this);a(this,Q0,n(lo,16,this,!1)),n(lo,19,this);a(this,Z0,n(lo,20,this)),n(lo,23,this);a(this,gr,LV());a(this,Ma);a(this,Na);a(this,Da);a(this,Ha,!1);a(this,Cm,()=>{!this.disabled&&this._ctx?.selectedItemId!==o(this,gr)&&this._ctx?.selectItem(o(this,gr))});a(this,$m,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(p(this,Ke,tw).call(this)),h(this,Ha,!0),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(o(this,gr)),h(this,Ha,!1)}willUpdate(){if(o(this,Ha)){let t=o(this,Ma)!==this.value,e=o(this,Na)!==this.keywords,s=o(this,Da)!==this.disabled;(t||e||s)&&(this._ctx?.updateItem(p(this,Ke,tw).call(this)),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))}this._ctx?.shouldFilter?o(this,Ke,rz)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),o(this,Ke,op)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){o(this,Ke,op)&&this.scrollIntoView({block:"nearest"})}render(){return f`
|
|
3191
3161
|
<div
|
|
3192
3162
|
class="Item"
|
|
3193
3163
|
role="option"
|
|
3194
|
-
id="${o(this,
|
|
3164
|
+
id="${o(this,gr)}"
|
|
3195
3165
|
aria-selected="${o(this,Ke,op)}"
|
|
3196
3166
|
aria-disabled="${this.disabled}"
|
|
3197
3167
|
?data-selected="${o(this,Ke,op)}"
|
|
@@ -3201,7 +3171,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3201
3171
|
>
|
|
3202
3172
|
<slot></slot>
|
|
3203
3173
|
</div>
|
|
3204
|
-
`}};lo=A(
|
|
3174
|
+
`}};lo=A(oz),X0=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Z0=new WeakMap,gr=new WeakMap,Ma=new WeakMap,Na=new WeakMap,Da=new WeakMap,Ha=new WeakMap,Ke=new WeakSet,op=function(){return this._ctx?.selectedItemId===o(this,gr)},rz=function(){return this._ctx?this._ctx.getScore(o(this,gr))>0:!0},sz=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},tw=function(){return{id:o(this,gr),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:p(this,Ke,sz).call(this)}},Cm=new WeakMap,$m=new WeakMap,c(lo,4,"value",ez,co,X0),c(lo,4,"keywords",tz,co,J0),c(lo,4,"disabled",ZO,co,Q0),c(lo,4,"_ctx",QO,co,Z0),T(lo,co),v(co,"tagName","dui-command-item"),v(co,"styles",[w,OV]);var zV=b`
|
|
3205
3175
|
:host {
|
|
3206
3176
|
display: block;
|
|
3207
3177
|
}
|
|
@@ -3213,20 +3183,20 @@ label, legend, caption, figcaption, th, td {
|
|
|
3213
3183
|
.Empty {
|
|
3214
3184
|
text-align: center;
|
|
3215
3185
|
}
|
|
3216
|
-
`,
|
|
3186
|
+
`,iz,nz,Tm,ew,vr=class extends(nz=y,iz=[Nt({context:So,subscribe:!0})],nz){constructor(){super(...arguments);a(this,ew,n(Tm,8,this)),n(Tm,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
|
|
3217
3187
|
<div class="Empty" role="status">
|
|
3218
3188
|
<slot></slot>
|
|
3219
3189
|
</div>
|
|
3220
|
-
`}};Tm=A(
|
|
3190
|
+
`}};Tm=A(nz),ew=new WeakMap,c(Tm,4,"_ctx",iz,vr,ew),T(Tm,vr),v(vr,"tagName","dui-command-empty"),v(vr,"styles",[w,zV]);var MV=b`
|
|
3221
3191
|
:host {
|
|
3222
3192
|
display: block;
|
|
3223
3193
|
}
|
|
3224
|
-
`,Ba=class extends
|
|
3194
|
+
`,Ba=class extends y{static tagName="dui-command-separator";static styles=[w,MV];render(){return f`<div class="Separator" role="separator"></div>`}};var NV=b`
|
|
3225
3195
|
:host {
|
|
3226
3196
|
display: inline-flex;
|
|
3227
3197
|
margin-left: auto;
|
|
3228
3198
|
}
|
|
3229
|
-
`,Fa=class extends
|
|
3199
|
+
`,Fa=class extends y{static tagName="dui-command-shortcut";static styles=[w,NV];render(){return f`<span class="Shortcut"><slot></slot></span>`}};var DV=k`
|
|
3230
3200
|
:host {
|
|
3231
3201
|
border-radius: var(--radius-md);
|
|
3232
3202
|
background: var(--surface-3);
|
|
@@ -3238,7 +3208,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3238
3208
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
3239
3209
|
color: var(--text-2);
|
|
3240
3210
|
}
|
|
3241
|
-
`,Pa=class extends
|
|
3211
|
+
`,Pa=class extends vr{static styles=[...vr.styles,HV]};customElements.define(Pa.tagName,Pa);var BV=k`
|
|
3242
3212
|
.Group {
|
|
3243
3213
|
padding: var(--space-1_5);
|
|
3244
3214
|
}
|
|
@@ -3302,7 +3272,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3302
3272
|
.List {
|
|
3303
3273
|
padding: var(--space-1) 0;
|
|
3304
3274
|
}
|
|
3305
|
-
`,Ka=class extends
|
|
3275
|
+
`,Ka=class extends fr{static styles=[...fr.styles,PV]};customElements.define(Ka.tagName,Ka);var UV=k`
|
|
3306
3276
|
.Separator {
|
|
3307
3277
|
height: var(--border-width-thin);
|
|
3308
3278
|
margin-inline: calc(-1 * var(--space-1));
|
|
@@ -3313,7 +3283,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3313
3283
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
3314
3284
|
color: var(--text-2);
|
|
3315
3285
|
}
|
|
3316
|
-
`,Ya=class extends Fa{static styles=[...Fa.styles,qV]};customElements.define(Ya.tagName,Ya);var
|
|
3286
|
+
`,Ya=class extends Fa{static styles=[...Fa.styles,qV]};customElements.define(Ya.tagName,Ya);var az="important",jV=" !"+az,Ga=Ea(class extends Is{constructor(i){if(super(i),i.type!==qo.ATTRIBUTE||i.name!=="style"||i.strings?.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((r,t)=>{let e=i[t];return e==null?r:r+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(i,[r]){let{style:t}=i.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(r)),this.render(r);for(let e of this.ft)r[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in r){let s=r[e];if(s!=null){this.ft.add(e);let l=typeof s=="string"&&s.endsWith(jV);e.includes("-")||l?t.setProperty(e,l?s.slice(0,-11):s,l?az:""):t[e]=s}}return Ee}});var KV=M("sort-change",{bubbles:!0,composed:!0}),WV=M("page-change",{bubbles:!0,composed:!0}),YV=f`<svg
|
|
3317
3287
|
xmlns="http://www.w3.org/2000/svg"
|
|
3318
3288
|
width="100%"
|
|
3319
3289
|
height="100%"
|
|
@@ -3423,34 +3393,34 @@ label, legend, caption, figcaption, th, td {
|
|
|
3423
3393
|
.PageButton:disabled {
|
|
3424
3394
|
cursor: not-allowed;
|
|
3425
3395
|
}
|
|
3426
|
-
`,
|
|
3396
|
+
`,lz,dz,cz,pz,hz,uz,mz,fz,gz,Dt,ow,rw,sw,iw,nw,aw,lw,as,Sm,V,dw,cw,ls,Am,pw,hw,uw,mw,rp,vz,bz,sp,yz,xz,wz,kz,We=class extends(gz=y,fz=[u({attribute:!1})],mz=[u({attribute:!1})],uz=[u({type:Number,attribute:"page-size"})],hz=[u({attribute:!1})],pz=[u({attribute:"empty-text"})],cz=[C()],dz=[C()],lz=[C()],gz){constructor(){super(...arguments);a(this,V);a(this,ow,n(Dt,8,this,[])),n(Dt,11,this);a(this,rw,n(Dt,12,this,[])),n(Dt,15,this);a(this,sw,n(Dt,16,this,10)),n(Dt,19,this);a(this,iw,n(Dt,20,this)),n(Dt,23,this);a(this,nw,n(Dt,24,this,"No results.")),n(Dt,27,this);a(this,aw,n(Dt,28,this,null)),n(Dt,31,this);a(this,dw,n(Dt,32,this,1)),n(Dt,35,this);a(this,pw,n(Dt,36,this,[])),n(Dt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&h(this,V,1,Am);let e=QV(this.data,o(this,V,as));this.pageSize>0?h(this,V,ZV(e,o(this,V,ls),this.pageSize),mw):h(this,V,e,mw)}}render(){return f`
|
|
3427
3397
|
<div class="DataTable" part="root">
|
|
3428
3398
|
<div class="TableWindow" part="table-window">
|
|
3429
3399
|
<table part="table">
|
|
3430
|
-
${p(this,V,
|
|
3400
|
+
${p(this,V,xz).call(this)} ${p(this,V,wz).call(this)}
|
|
3431
3401
|
</table>
|
|
3432
3402
|
</div>
|
|
3433
|
-
${p(this,V,
|
|
3403
|
+
${p(this,V,kz).call(this)}
|
|
3434
3404
|
</div>
|
|
3435
|
-
`}};Dt=A(
|
|
3436
|
-
>${o(this,V,
|
|
3437
|
-
>`:f`<span class="SortIcon">${YV}</span>`:L},
|
|
3405
|
+
`}};Dt=A(gz),ow=new WeakMap,rw=new WeakMap,sw=new WeakMap,iw=new WeakMap,nw=new WeakMap,aw=new WeakMap,V=new WeakSet,dw=new WeakMap,pw=new WeakMap,rp=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},vz=function(){return{page:o(this,V,ls),pageSize:this.pageSize,totalRows:this.data.length,totalPages:o(this,V,rp)}},bz=function(t){o(this,V,as)?.column===t?o(this,V,as).direction==="asc"?h(this,V,{column:t,direction:"desc"},Sm):h(this,V,null,Sm):h(this,V,{column:t,direction:"asc"},Sm),h(this,V,1,Am),this.dispatchEvent(KV(o(this,V,as)))},sp=function(t){h(this,V,Math.max(1,Math.min(t,o(this,V,rp))),Am),this.dispatchEvent(WV(o(this,V,vz)))},yz=function(t){return t.sortable?o(this,V,as)?.column===t.key?f`<span class="SortIcon"
|
|
3406
|
+
>${o(this,V,as).direction==="asc"?GV:XV}</span
|
|
3407
|
+
>`:f`<span class="SortIcon">${YV}</span>`:L},xz=function(){return f`
|
|
3438
3408
|
<thead>
|
|
3439
3409
|
<tr>
|
|
3440
|
-
${this.columns.map(t=>{let e=t.width?{width:t.width}:{},s=t.sortable?o(this,V,
|
|
3410
|
+
${this.columns.map(t=>{let e=t.width?{width:t.width}:{},s=t.sortable?o(this,V,as)?.column===t.key?o(this,V,as).direction==="asc"?"ascending":"descending":"none":void 0;return f`
|
|
3441
3411
|
<th
|
|
3442
3412
|
style=${Ga(e)}
|
|
3443
3413
|
aria-sort=${s??L}
|
|
3444
|
-
@click=${t.sortable?()=>p(this,V,
|
|
3414
|
+
@click=${t.sortable?()=>p(this,V,bz).call(this,t.key):L}
|
|
3445
3415
|
>
|
|
3446
3416
|
<span class="HeaderContent">
|
|
3447
|
-
${t.header} ${p(this,V,
|
|
3417
|
+
${t.header} ${p(this,V,yz).call(this,t)}
|
|
3448
3418
|
</span>
|
|
3449
3419
|
</th>
|
|
3450
3420
|
`})}
|
|
3451
3421
|
</tr>
|
|
3452
3422
|
</thead>
|
|
3453
|
-
`},
|
|
3423
|
+
`},wz=function(){if(o(this,V,uw).length===0)return f`
|
|
3454
3424
|
<tbody>
|
|
3455
3425
|
<tr class="EmptyRow">
|
|
3456
3426
|
<td colspan=${this.columns.length}>${this.emptyText}</td>
|
|
@@ -3464,7 +3434,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3464
3434
|
</tr>
|
|
3465
3435
|
`)}
|
|
3466
3436
|
</tbody>
|
|
3467
|
-
`},
|
|
3437
|
+
`},kz=function(){if(this.pageSize<=0||this.data.length===0)return L;let t=(o(this,V,ls)-1)*this.pageSize+1,e=Math.min(o(this,V,ls)*this.pageSize,this.data.length),s=o(this,V,ls)===1,l=o(this,V,ls)===o(this,V,rp);return f`
|
|
3468
3438
|
<div class="Pagination" part="pagination">
|
|
3469
3439
|
<div class="PageInfo">
|
|
3470
3440
|
<span>${t}-${e} of ${this.data.length}</span>
|
|
@@ -3481,7 +3451,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3481
3451
|
<button
|
|
3482
3452
|
class="PageButton"
|
|
3483
3453
|
?disabled=${s}
|
|
3484
|
-
@click=${()=>p(this,V,sp).call(this,o(this,V,
|
|
3454
|
+
@click=${()=>p(this,V,sp).call(this,o(this,V,ls)-1)}
|
|
3485
3455
|
aria-label="Previous page"
|
|
3486
3456
|
>
|
|
3487
3457
|
<dui-icon style="--icon-size: var(--text-sm)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg></dui-icon>
|
|
@@ -3489,7 +3459,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3489
3459
|
<button
|
|
3490
3460
|
class="PageButton"
|
|
3491
3461
|
?disabled=${l}
|
|
3492
|
-
@click=${()=>p(this,V,sp).call(this,o(this,V,
|
|
3462
|
+
@click=${()=>p(this,V,sp).call(this,o(this,V,ls)+1)}
|
|
3493
3463
|
aria-label="Next page"
|
|
3494
3464
|
>
|
|
3495
3465
|
<dui-icon style="--icon-size: var(--text-sm)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg></dui-icon>
|
|
@@ -3504,7 +3474,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3504
3474
|
</button>
|
|
3505
3475
|
</div>
|
|
3506
3476
|
</div>
|
|
3507
|
-
`},c(Dt,4,"columns",
|
|
3477
|
+
`},c(Dt,4,"columns",fz,We,ow),c(Dt,4,"data",mz,We,rw),c(Dt,4,"pageSize",uz,We,sw),c(Dt,4,"rowKey",hz,We,iw),c(Dt,4,"emptyText",pz,We,nw),lw=c(Dt,20,"#sort",cz,V,aw),as=lw.get,Sm=lw.set,cw=c(Dt,20,"#page",dz,V,dw),ls=cw.get,Am=cw.set,hw=c(Dt,20,"#displayRows",lz,V,pw),uw=hw.get,mw=hw.set,T(Dt,We),v(We,"tagName","dui-data-table"),v(We,"styles",[w,tP,eP]);var oP=k`
|
|
3508
3478
|
.DataTable {
|
|
3509
3479
|
gap: var(--space-2);
|
|
3510
3480
|
}
|
|
@@ -3616,11 +3586,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3616
3586
|
0 0 0 var(--focus-ring-offset) var(--background),
|
|
3617
3587
|
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
|
|
3618
3588
|
}
|
|
3619
|
-
`,Xa=class extends We{static styles=[...We.styles,oP]};customElements.define(Xa.tagName,Xa);var
|
|
3589
|
+
`,Xa=class extends We{static styles=[...We.styles,oP]};customElements.define(Xa.tagName,Xa);var Ds=Symbol("dui-dialog");var Im=M("open-change",{bubbles:!0,composed:!0}),rP=b`
|
|
3620
3590
|
:host {
|
|
3621
3591
|
display: contents;
|
|
3622
3592
|
}
|
|
3623
|
-
`,
|
|
3593
|
+
`,Ez,Cz,$z,Tz,Sz,po,fw,gw,vw,bw,Az,_m,Ye,Hi,Lm,Om,zm,Mm,_z,Nm,Dm,yw,Rm,Ao=class extends(Sz=y,Tz=[u({type:Boolean,reflect:!0})],$z=[u({type:Boolean,attribute:"default-open"})],Cz=[C()],Ez=[lt({context:Ds}),C()],Sz){constructor(){super(...arguments);a(this,Ye);a(this,fw,n(po,8,this)),n(po,11,this);a(this,gw,n(po,12,this,!1)),n(po,15,this);a(this,vw,n(po,16,this,!1)),n(po,19,this);a(this,Hi,crypto.randomUUID().slice(0,8));a(this,Lm,`dui-dialog-${o(this,Hi)}`);a(this,Om,`dui-trigger-${o(this,Hi)}`);a(this,zm,`dui-title-${o(this,Hi)}`);a(this,Mm,`dui-desc-${o(this,Hi)}`);a(this,Nm,()=>{this.open===void 0&&h(this,Ye,!0,_m),this.dispatchEvent(Im({open:!0}))});a(this,Dm,()=>{this.open===void 0&&h(this,Ye,!1,_m),this.dispatchEvent(Im({open:!1}))});a(this,yw,n(po,20,this,p(this,Ye,Rm).call(this))),n(po,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ye,!0,_m),this._ctx=p(this,Ye,Rm).call(this)}willUpdate(){this._ctx=p(this,Ye,Rm).call(this)}render(){return f`<slot></slot>`}};po=A(Sz),fw=new WeakMap,gw=new WeakMap,vw=new WeakMap,Ye=new WeakSet,Hi=new WeakMap,Lm=new WeakMap,Om=new WeakMap,zm=new WeakMap,Mm=new WeakMap,_z=function(){return this.open??o(this,Ye,Az)},Nm=new WeakMap,Dm=new WeakMap,yw=new WeakMap,Rm=function(){return{open:o(this,Ye,_z),dialogId:o(this,Lm),triggerId:o(this,Om),titleId:o(this,zm),descriptionId:o(this,Mm),openDialog:o(this,Nm),closeDialog:o(this,Dm)}},c(po,4,"open",Tz,Ao,fw),c(po,4,"defaultOpen",$z,Ao,gw),bw=c(po,20,"#internalOpen",Cz,Ye,vw),Az=bw.get,_m=bw.set,c(po,4,"_ctx",Ez,Ao,yw),T(po,Ao),v(Ao,"tagName","dui-dialog"),v(Ao,"styles",[w,rP]);var sP=b`
|
|
3624
3594
|
:host {
|
|
3625
3595
|
display: contents;
|
|
3626
3596
|
}
|
|
@@ -3628,7 +3598,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3628
3598
|
.Trigger {
|
|
3629
3599
|
display: contents;
|
|
3630
3600
|
}
|
|
3631
|
-
`,ip=class extends
|
|
3601
|
+
`,ip=class extends y{static tagName="dui-dialog-trigger";static styles=[w,sP,iP];#t=new q(this,{context:Ds,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let r=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
|
|
3632
3602
|
<span
|
|
3633
3603
|
class="Trigger"
|
|
3634
3604
|
part="trigger"
|
|
@@ -3670,13 +3640,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
3670
3640
|
z-index: 1000;
|
|
3671
3641
|
transition-property: opacity, transform;
|
|
3672
3642
|
}
|
|
3673
|
-
`,
|
|
3643
|
+
`,Rz,Iz,Lz,Oz,zz,Mz,Nz,Dz,Kt,xw,ww,kw,Ew,Cw,$w,Ja,Rw,ot,Tw,Sw,Iw,Lw,Aw,_w,ds,Ow,Qa,cs,Hz,Bz,zw,Fz,Vz,Hm,Pz,Bm,ho=class extends(Dz=y,Nz=[u({type:Boolean,attribute:"keep-mounted"})],Mz=[u({attribute:"initial-focus"})],zz=[u({attribute:"final-focus"})],Oz=[u()],Lz=[C()],Iz=[C()],Rz=[C()],Dz){constructor(){super(...arguments);a(this,ot);a(this,xw,n(Kt,8,this,!1)),n(Kt,11,this);a(this,ww,n(Kt,12,this)),n(Kt,15,this);a(this,kw,n(Kt,16,this)),n(Kt,19,this);a(this,Ew,n(Kt,20,this)),n(Kt,23,this);a(this,Cw,n(Kt,24,this,!1)),n(Kt,27,this);a(this,Tw,n(Kt,28,this,!1)),n(Kt,31,this);a(this,Aw,n(Kt,32,this,!1)),n(Kt,35,this);a(this,Qa);a(this,cs,new q(this,{context:Ds,subscribe:!0}));a(this,Hm,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,cs).value?.closeDialog()),t.key==="Tab"&&p(this,ot,Pz).call(this,t)});a(this,Bm,()=>{o(this,cs).value?.closeDialog()})}updated(){let t=o(this,cs).value?.open??!1;t&&!o(this,ot,Ja)?p(this,ot,Hz).call(this):!t&&o(this,ot,Ja)&&!o(this,ot,ds)&&p(this,ot,Bz).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),o(this,ot,Ja)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,cs).value?.open??!1,e=o(this,cs).value?.titleId??"",s=o(this,cs).value?.descriptionId??"";return!o(this,ot,Ja)&&!this.keepMounted?f``:f`
|
|
3674
3644
|
<div
|
|
3675
3645
|
part="backdrop"
|
|
3676
|
-
?data-open="${t&&!o(this,ot,
|
|
3677
|
-
?data-closed="${!t||o(this,ot,
|
|
3646
|
+
?data-open="${t&&!o(this,ot,ds)}"
|
|
3647
|
+
?data-closed="${!t||o(this,ot,ds)}"
|
|
3678
3648
|
?data-starting-style="${o(this,ot,Iw)}"
|
|
3679
|
-
?data-ending-style="${o(this,ot,
|
|
3649
|
+
?data-ending-style="${o(this,ot,ds)}"
|
|
3680
3650
|
@click="${o(this,Bm)}"
|
|
3681
3651
|
></div>
|
|
3682
3652
|
<div
|
|
@@ -3685,10 +3655,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
3685
3655
|
aria-modal="true"
|
|
3686
3656
|
aria-labelledby="${e}"
|
|
3687
3657
|
aria-describedby="${s}"
|
|
3688
|
-
?data-open="${t&&!o(this,ot,
|
|
3689
|
-
?data-closed="${!t||o(this,ot,
|
|
3658
|
+
?data-open="${t&&!o(this,ot,ds)}"
|
|
3659
|
+
?data-closed="${!t||o(this,ot,ds)}"
|
|
3690
3660
|
?data-starting-style="${o(this,ot,Iw)}"
|
|
3691
|
-
?data-ending-style="${o(this,ot,
|
|
3661
|
+
?data-ending-style="${o(this,ot,ds)}"
|
|
3692
3662
|
tabindex="-1"
|
|
3693
3663
|
@keydown="${o(this,Hm)}"
|
|
3694
3664
|
>
|
|
@@ -3696,11 +3666,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3696
3666
|
<p part="description" id="${s}"><slot name="description"></slot></p>
|
|
3697
3667
|
<slot></slot>
|
|
3698
3668
|
</div>
|
|
3699
|
-
`}};Kt=A(
|
|
3669
|
+
`}};Kt=A(Dz),xw=new WeakMap,ww=new WeakMap,kw=new WeakMap,Ew=new WeakMap,Cw=new WeakMap,ot=new WeakSet,Tw=new WeakMap,Aw=new WeakMap,Qa=new WeakMap,cs=new WeakMap,Hz=async function(){h(this,Qa,document.activeElement??void 0),h(this,ot,!0,Rw),h(this,ot,!0,Lw),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,ot,!1,Lw),await this.updateComplete,p(this,ot,Fz).call(this)},Bz=function(){h(this,ot,!0,Ow);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,ot,zw).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,ot,zw).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},zw=function(){!o(this,ot,ds)&&!o(this,ot,Ja)||(h(this,ot,!1,Ow),this.keepMounted||h(this,ot,!1,Rw),p(this,ot,Vz).call(this))},Fz=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},Vz=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Qa)?.focus(),h(this,Qa,void 0)},Hm=new WeakMap,Pz=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},Bm=new WeakMap,c(Kt,4,"keepMounted",Nz,ho,xw),c(Kt,4,"initialFocus",Mz,ho,ww),c(Kt,4,"finalFocus",zz,ho,kw),c(Kt,4,"width",Oz,ho,Ew),$w=c(Kt,20,"#mounted",Lz,ot,Cw),Ja=$w.get,Rw=$w.set,Sw=c(Kt,20,"#startingStyle",Iz,ot,Tw),Iw=Sw.get,Lw=Sw.set,_w=c(Kt,20,"#endingStyle",Rz,ot,Aw),ds=_w.get,Ow=_w.set,T(Kt,ho),v(ho,"tagName","dui-dialog-popup"),v(ho,"styles",[w,nP,aP]);var lP=b`
|
|
3700
3670
|
:host {
|
|
3701
3671
|
display: contents;
|
|
3702
3672
|
}
|
|
3703
|
-
`,np=class extends
|
|
3673
|
+
`,np=class extends y{static tagName="dui-dialog-close";static styles=[w,lP];#t=new q(this,{context:Ds,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
3704
3674
|
<span @click="${this.#e}">
|
|
3705
3675
|
<slot></slot>
|
|
3706
3676
|
</span>
|
|
@@ -3794,11 +3764,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3794
3764
|
input[type="file"] {
|
|
3795
3765
|
display: none;
|
|
3796
3766
|
}
|
|
3797
|
-
`,
|
|
3767
|
+
`,Uz,qz,jz,Kz,Wz,Yz,Gz,Xz,Jz,Qz,Lt,Mw,Nw,Dw,Hw,Bw,Fw,Vw,Pw,Uw,qw,Zz,Fm,Ne,Vm,Pm,Um,qm,jm,Km,Wm,jw,t2,e2,Wt=class Wt extends(Qz=y,Jz=[u({type:String,reflect:!0})],Xz=[u({type:Boolean,reflect:!0})],Gz=[u({type:Boolean,reflect:!0})],Yz=[u({type:Number,reflect:!0,attribute:"max-files"})],Wz=[u({type:Number,reflect:!0,attribute:"max-size"})],Kz=[u({type:Number,reflect:!0,attribute:"min-size"})],jz=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],qz=[u({type:Boolean,reflect:!0,attribute:"no-style"})],Uz=[C()],Qz){constructor(){super(...arguments);a(this,Ne);a(this,Mw,n(Lt,8,this)),n(Lt,11,this);a(this,Nw,n(Lt,12,this,!1)),n(Lt,15,this);a(this,Dw,n(Lt,16,this,!1)),n(Lt,19,this);a(this,Hw,n(Lt,20,this,1/0)),n(Lt,23,this);a(this,Bw,n(Lt,24,this,1/0)),n(Lt,27,this);a(this,Fw,n(Lt,28,this,0)),n(Lt,31,this);a(this,Vw,n(Lt,32,this,!1)),n(Lt,35,this);a(this,Pw,n(Lt,36,this,!1)),n(Lt,39,this);a(this,Uw,n(Lt,40,this,!1)),n(Lt,43,this);a(this,Vm,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Ne,!0,Fm),this.dispatchEvent(pP()))});a(this,Pm,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(hP()))});a(this,Um,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Ne,!1,Fm),this.dispatchEvent(uP()))});a(this,qm,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){h(this,Ne,!1,Fm);try{let e=Array.from(t.dataTransfer?.files??[]);p(this,Ne,jw).call(this,e)}catch(e){this.dispatchEvent(ap({error:e,code:Wt.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});a(this,jm,()=>{this.disabled||this.openFileDialog()});a(this,Km,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});a(this,Wm,t=>{if(this.disabled)return;let e=t.target,s=Array.from(e.files??[]);try{p(this,Ne,jw).call(this,s)}catch(l){this.dispatchEvent(ap({error:l,code:Wt.ERROR_CODES.FILE_PROCESSING_FAILED}))}finally{e.value=""}})}connectedCallback(){super.connectedCallback(),this.autoFocus&&!this.disabled&&this.updateComplete.then(()=>{this.shadowRoot?.querySelector("[part='root']")?.focus()})}openFileDialog(){if(this.disabled)return;let t=this.shadowRoot?.querySelector('input[type="file"]');if(t)try{t.click()}catch(e){this.dispatchEvent(ap({error:e,code:Wt.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
|
|
3798
3768
|
<div
|
|
3799
3769
|
part="root"
|
|
3800
3770
|
tabindex="${this.disabled?-1:0}"
|
|
3801
|
-
?data-dragover="${o(this,Ne,
|
|
3771
|
+
?data-dragover="${o(this,Ne,Zz)}"
|
|
3802
3772
|
?data-disabled="${this.disabled}"
|
|
3803
3773
|
@dragenter="${o(this,Vm)}"
|
|
3804
3774
|
@dragover="${o(this,Pm)}"
|
|
@@ -3821,7 +3791,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3821
3791
|
aria-hidden="true"
|
|
3822
3792
|
hidden
|
|
3823
3793
|
/>
|
|
3824
|
-
`}};Lt=A(
|
|
3794
|
+
`}};Lt=A(Qz),Mw=new WeakMap,Nw=new WeakMap,Dw=new WeakMap,Hw=new WeakMap,Bw=new WeakMap,Fw=new WeakMap,Vw=new WeakMap,Pw=new WeakMap,Uw=new WeakMap,Ne=new WeakSet,Vm=new WeakMap,Pm=new WeakMap,Um=new WeakMap,qm=new WeakMap,jm=new WeakMap,Km=new WeakMap,Wm=new WeakMap,jw=function(t){let{acceptedFiles:e,rejectedFiles:s}=p(this,Ne,t2).call(this,t);this.dispatchEvent(Kw({acceptedFiles:e,rejectedFiles:s})),e.length>0&&this.dispatchEvent(Ww({acceptedFiles:e})),s.length>0&&this.dispatchEvent(Yw({rejectedFiles:s}))},t2=function(t){let e=[],s=[],l=this.multiple?this.maxFiles:1;if(t.length>l){for(let d of t)s.push({file:d,errors:[{code:Wt.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:e,rejectedFiles:s}}for(let d of t){let m=[];d.size>this.maxSize&&m.push({code:Wt.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),d.size<this.minSize&&m.push({code:Wt.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!p(this,Ne,e2).call(this,d)&&m.push({code:Wt.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),m.length>0?s.push({file:d,errors:m}):e.push(d)}return{acceptedFiles:e,rejectedFiles:s}},e2=function(t){if(!this.accept)return!0;let e=this.accept.split(",").map(s=>s.trim().toLowerCase());for(let s of e)if(s.startsWith(".")){if(t.name.toLowerCase().endsWith(s))return!0}else if(s.endsWith("/*")){let l=s.slice(0,-2);if(t.type.toLowerCase().startsWith(l))return!0}else if(t.type.toLowerCase()===s)return!0;return!1},c(Lt,4,"accept",Jz,Wt,Mw),c(Lt,4,"multiple",Xz,Wt,Nw),c(Lt,4,"disabled",Gz,Wt,Dw),c(Lt,4,"maxFiles",Yz,Wt,Hw),c(Lt,4,"maxSize",Wz,Wt,Bw),c(Lt,4,"minSize",Kz,Wt,Fw),c(Lt,4,"autoFocus",jz,Wt,Vw),c(Lt,4,"noStyle",qz,Wt,Pw),qw=c(Lt,20,"#isDragOver",Uz,Ne,Uw),Zz=qw.get,Fm=qw.set,T(Lt,Wt),v(Wt,"tagName","dui-dropzone"),v(Wt,"styles",[w,mP]),v(Wt,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),v(Wt,"REJECTION_CODES",{TOO_MANY_FILES:"TOO_MANY_FILES",FILE_TOO_LARGE:"FILE_TOO_LARGE",FILE_TOO_SMALL:"FILE_TOO_SMALL",FILE_INVALID_TYPE:"FILE_INVALID_TYPE"});var rl=Wt;var fP=k`
|
|
3825
3795
|
:host([disabled]) {
|
|
3826
3796
|
opacity: 0.4;
|
|
3827
3797
|
}
|
|
@@ -3877,7 +3847,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3877
3847
|
|
|
3878
3848
|
[part="error"] { display: none; }
|
|
3879
3849
|
[part="error"][data-invalid] { display: block; }
|
|
3880
|
-
`,o2,r2,s2,i2,n2,a2,l2,d2,c2,p2,h2,vt,Gw,Xw,Jw,Qw,Zw,u2,hk,Y,tk,ek,m2,f2,ok,rk,g2,uk,sk,ik,v2,b2,nk,ak,x2,
|
|
3850
|
+
`,o2,r2,s2,i2,n2,a2,l2,d2,c2,p2,h2,vt,Gw,Xw,Jw,Qw,Zw,u2,hk,Y,tk,ek,m2,f2,ok,rk,g2,uk,sk,ik,v2,b2,nk,ak,y2,x2,lk,dk,mk,w2,ck,pk,k2,E2,il,C2,fk,gk,Ge,nl,dp,cp,pp,hp,Ym,Gm,Xm,Jm,lp,Qm,_o=class extends(h2=y,p2=[u({type:Boolean,reflect:!0})],c2=[u({type:Boolean,reflect:!0})],d2=[u()],l2=[C()],a2=[C()],n2=[C()],i2=[C()],s2=[C()],r2=[C()],o2=[C()],h2){constructor(){super(...arguments);a(this,Y);a(this,Gw,n(vt,8,this,!1)),n(vt,11,this);a(this,Xw,n(vt,12,this,!1)),n(vt,15,this);a(this,Jw,n(vt,16,this,"vertical")),n(vt,19,this);a(this,Qw,n(vt,20,this,!1)),n(vt,23,this);a(this,tk,n(vt,24,this,!1)),n(vt,27,this);a(this,ok,n(vt,28,this,!1)),n(vt,31,this);a(this,sk,n(vt,32,this,!1)),n(vt,35,this);a(this,nk,n(vt,36,this,!1)),n(vt,39,this);a(this,lk,n(vt,40,this,!1)),n(vt,43,this);a(this,ck,n(vt,44,this,!1)),n(vt,47,this);a(this,il,crypto.randomUUID().slice(0,8));a(this,Ge);a(this,nl,!1);a(this,dp,()=>{h(this,Y,!0,uk)});a(this,cp,()=>{h(this,Y,!1,uk),h(this,Y,!0,f2)});a(this,pp,()=>{h(this,Y,!0,hk),h(this,Y,!0,b2)});a(this,hp,()=>{h(this,Y,!0,hk)});a(this,Ym,()=>{let e=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0})??[];h(this,Ge,e.find(s=>s.matches(gP))),o(this,Ge)&&(p(this,Y,lp).call(this),this.disabled&&(h(this,nl,o(this,Ge).hasAttribute("disabled")),o(this,Ge).setAttribute("disabled","")))});a(this,Gm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,x2)});a(this,Xm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,w2),p(this,Y,lp).call(this)});a(this,Jm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,E2),p(this,Y,lp).call(this)});a(this,Qm,()=>{this.disabled||o(this,Ge)?.focus()})}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",o(this,dp)),this.addEventListener("focusout",o(this,cp)),this.addEventListener("input",o(this,pp)),this.addEventListener("change",o(this,hp))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",o(this,dp)),this.removeEventListener("focusout",o(this,cp)),this.removeEventListener("input",o(this,pp)),this.removeEventListener("change",o(this,hp))}willUpdate(t){t.has("invalid")&&o(this,Ge)&&p(this,Y,lp).call(this),t.has("disabled")&&o(this,Ge)&&(this.disabled?(h(this,nl,o(this,Ge).hasAttribute("disabled")),o(this,Ge).setAttribute("disabled","")):o(this,nl)||o(this,Ge).removeAttribute("disabled"))}render(){return f`
|
|
3881
3851
|
<div
|
|
3882
3852
|
part="root"
|
|
3883
3853
|
role="group"
|
|
@@ -3893,7 +3863,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3893
3863
|
<div
|
|
3894
3864
|
part="label"
|
|
3895
3865
|
id="${o(this,Y,C2)}"
|
|
3896
|
-
?data-slotted="${o(this,Y,
|
|
3866
|
+
?data-slotted="${o(this,Y,y2)}"
|
|
3897
3867
|
?data-disabled="${this.disabled}"
|
|
3898
3868
|
@click="${o(this,Qm)}"
|
|
3899
3869
|
>
|
|
@@ -3925,7 +3895,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3925
3895
|
></slot>
|
|
3926
3896
|
</div>
|
|
3927
3897
|
</div>
|
|
3928
|
-
`}};vt=A(h2),Gw=new WeakMap,Xw=new WeakMap,Jw=new WeakMap,Qw=new WeakMap,Y=new WeakSet,tk=new WeakMap,ok=new WeakMap,sk=new WeakMap,nk=new WeakMap,lk=new WeakMap,ck=new WeakMap,il=new WeakMap,C2=function(){return`field-${o(this,il)}-label`},fk=function(){return`field-${o(this,il)}-desc`},gk=function(){return`field-${o(this,il)}-error`},Ge=new WeakMap,nl=new WeakMap,dp=new WeakMap,cp=new WeakMap,pp=new WeakMap,hp=new WeakMap,Ym=new WeakMap,Gm=new WeakMap,Xm=new WeakMap,Jm=new WeakMap,lp=function(){let t=o(this,Ge);if(!t)return;let e=[];o(this,Y,mk)&&e.push(o(this,Y,fk)),this.invalid&&o(this,Y,k2)&&e.push(o(this,Y,gk));let s=e.join(" ")||null;s?t.setAttribute("aria-describedby",s):t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid",String(this.invalid))},Qm=new WeakMap,c(vt,4,"disabled",p2,_o,Gw),c(vt,4,"invalid",c2,_o,Xw),c(vt,4,"orientation",d2,_o,Jw),Zw=c(vt,20,"#dirty",l2,Y,Qw),u2=Zw.get,hk=Zw.set,ek=c(vt,20,"#touched",a2,Y,tk),m2=ek.get,f2=ek.set,rk=c(vt,20,"#focused",n2,Y,ok),g2=rk.get,uk=rk.set,ik=c(vt,20,"#filled",i2,Y,sk),v2=ik.get,b2=ik.set,ak=c(vt,20,"#hasLabel",s2,Y,nk),
|
|
3898
|
+
`}};vt=A(h2),Gw=new WeakMap,Xw=new WeakMap,Jw=new WeakMap,Qw=new WeakMap,Y=new WeakSet,tk=new WeakMap,ok=new WeakMap,sk=new WeakMap,nk=new WeakMap,lk=new WeakMap,ck=new WeakMap,il=new WeakMap,C2=function(){return`field-${o(this,il)}-label`},fk=function(){return`field-${o(this,il)}-desc`},gk=function(){return`field-${o(this,il)}-error`},Ge=new WeakMap,nl=new WeakMap,dp=new WeakMap,cp=new WeakMap,pp=new WeakMap,hp=new WeakMap,Ym=new WeakMap,Gm=new WeakMap,Xm=new WeakMap,Jm=new WeakMap,lp=function(){let t=o(this,Ge);if(!t)return;let e=[];o(this,Y,mk)&&e.push(o(this,Y,fk)),this.invalid&&o(this,Y,k2)&&e.push(o(this,Y,gk));let s=e.join(" ")||null;s?t.setAttribute("aria-describedby",s):t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid",String(this.invalid))},Qm=new WeakMap,c(vt,4,"disabled",p2,_o,Gw),c(vt,4,"invalid",c2,_o,Xw),c(vt,4,"orientation",d2,_o,Jw),Zw=c(vt,20,"#dirty",l2,Y,Qw),u2=Zw.get,hk=Zw.set,ek=c(vt,20,"#touched",a2,Y,tk),m2=ek.get,f2=ek.set,rk=c(vt,20,"#focused",n2,Y,ok),g2=rk.get,uk=rk.set,ik=c(vt,20,"#filled",i2,Y,sk),v2=ik.get,b2=ik.set,ak=c(vt,20,"#hasLabel",s2,Y,nk),y2=ak.get,x2=ak.set,dk=c(vt,20,"#hasDescription",r2,Y,lk),mk=dk.get,w2=dk.set,pk=c(vt,20,"#hasError",o2,Y,ck),k2=pk.get,E2=pk.set,T(vt,_o),v(_o,"tagName","dui-field"),v(_o,"styles",[w,vP]);var bP=k`
|
|
3929
3899
|
[part="root"] {
|
|
3930
3900
|
gap: var(--space-2);
|
|
3931
3901
|
}
|
|
@@ -3961,7 +3931,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3961
3931
|
color: var(--destructive);
|
|
3962
3932
|
margin: 0;
|
|
3963
3933
|
}
|
|
3964
|
-
`,al=class extends _o{static styles=[..._o.styles,bP]};customElements.define(al.tagName,al);var
|
|
3934
|
+
`,al=class extends _o{static styles=[..._o.styles,bP]};customElements.define(al.tagName,al);var yP=b`
|
|
3965
3935
|
:host {
|
|
3966
3936
|
display: block;
|
|
3967
3937
|
}
|
|
@@ -3975,7 +3945,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3975
3945
|
|
|
3976
3946
|
[part="legend"]:not([data-slotted]) { display: none; }
|
|
3977
3947
|
[part="legend"] { padding: 0; }
|
|
3978
|
-
`,$2,T2,S2,Bi,vk,bk,
|
|
3948
|
+
`,$2,T2,S2,Bi,vk,bk,yk,A2,_2,ll,Zm,br=class extends(S2=y,T2=[u({type:Boolean,reflect:!0})],$2=[C()],S2){constructor(){super(...arguments);a(this,ll);a(this,vk,n(Bi,8,this,!1)),n(Bi,11,this);a(this,bk,n(Bi,12,this,!1)),n(Bi,15,this);a(this,Zm,t=>{let e=t.target;h(this,ll,e.assignedNodes({flatten:!0}).length>0,_2)})}render(){return f`
|
|
3979
3949
|
<fieldset
|
|
3980
3950
|
part="root"
|
|
3981
3951
|
?disabled="${this.disabled}"
|
|
@@ -3986,7 +3956,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3986
3956
|
</legend>
|
|
3987
3957
|
<slot></slot>
|
|
3988
3958
|
</fieldset>
|
|
3989
|
-
`}};Bi=A(S2),vk=new WeakMap,bk=new WeakMap,ll=new WeakSet,Zm=new WeakMap,c(Bi,4,"disabled",T2,
|
|
3959
|
+
`}};Bi=A(S2),vk=new WeakMap,bk=new WeakMap,ll=new WeakSet,Zm=new WeakMap,c(Bi,4,"disabled",T2,br,vk),yk=c(Bi,20,"#hasLegend",$2,ll,bk),A2=yk.get,_2=yk.set,T(Bi,br),v(br,"tagName","dui-fieldset"),v(br,"styles",[w,yP]);var xP=k`
|
|
3990
3960
|
[part="root"] {
|
|
3991
3961
|
display: flex;
|
|
3992
3962
|
flex-direction: column;
|
|
@@ -4005,7 +3975,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4005
3975
|
color: var(--text-1);
|
|
4006
3976
|
margin-bottom: var(--space-2);
|
|
4007
3977
|
}
|
|
4008
|
-
`,dl=class extends
|
|
3978
|
+
`,dl=class extends br{static styles=[...br.styles,xP]};customElements.define(dl.tagName,dl);var wP=b`
|
|
4009
3979
|
:host {
|
|
4010
3980
|
display: inline-flex;
|
|
4011
3981
|
align-items: center;
|
|
@@ -4019,7 +3989,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4019
3989
|
width: 100%;
|
|
4020
3990
|
height: 100%;
|
|
4021
3991
|
}
|
|
4022
|
-
`,up=class extends
|
|
3992
|
+
`,up=class extends y{static tagName="dui-icon";static styles=[w,wP];render(){return f`<slot></slot>`}};var cl=class extends up{};customElements.define(cl.tagName,cl);var mp=i=>i??L;var Ok=M("input-change",{bubbles:!0,composed:!0}),kP=b`
|
|
4023
3993
|
:host {
|
|
4024
3994
|
display: block;
|
|
4025
3995
|
}
|
|
@@ -4033,11 +4003,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
4033
4003
|
[part="input"]:disabled {
|
|
4034
4004
|
cursor: not-allowed;
|
|
4035
4005
|
}
|
|
4036
|
-
`,R2,I2,L2,z2,
|
|
4006
|
+
`,R2,I2,L2,O2,z2,M2,N2,D2,H2,B2,F2,V2,P2,pl,st,xk,wk,kk,Ek,Ck,$k,Tk,Sk,Ak,_k,Rk,Ik,ef,ps,Lk,tf,Pt=class extends(P2=y,V2=[u({type:String})],F2=[u({type:String})],B2=[u({type:String})],H2=[u({type:Boolean,reflect:!0})],D2=[u({type:Boolean})],N2=[u({type:Boolean})],M2=[u({type:Number,attribute:"minlength"})],z2=[u({type:Number,attribute:"maxlength"})],O2=[u({type:String})],L2=[u({type:String})],I2=[u({type:String})],R2=[u({type:Boolean})],P2){constructor(){super();a(this,ps);a(this,pl);a(this,xk,n(st,8,this,"text")),n(st,11,this);a(this,wk,n(st,12,this,"")),n(st,15,this);a(this,kk,n(st,16,this,"")),n(st,19,this);a(this,Ek,n(st,20,this,!1)),n(st,23,this);a(this,Ck,n(st,24,this,!1)),n(st,27,this);a(this,$k,n(st,28,this,!1)),n(st,31,this);a(this,Tk,n(st,32,this)),n(st,35,this);a(this,Sk,n(st,36,this)),n(st,39,this);a(this,Ak,n(st,40,this)),n(st,43,this);a(this,_k,n(st,44,this,"")),n(st,47,this);a(this,Rk,n(st,48,this)),n(st,51,this);a(this,Ik,n(st,52,this,!1)),n(st,55,this);a(this,ef,t=>{let e=t.target;this.value=e.value,p(this,ps,Lk).call(this),p(this,ps,tf).call(this),this.dispatchEvent(Ok({value:this.value}))});h(this,pl,this.attachInternals())}firstUpdated(){p(this,ps,tf).call(this),this.autofocus&&this.focus()}updated(){p(this,ps,tf).call(this)}willUpdate(){p(this,ps,Lk).call(this)}render(){return f`
|
|
4037
4007
|
<input
|
|
4038
4008
|
part="input"
|
|
4039
4009
|
type="${this.type}"
|
|
4040
|
-
.value="${
|
|
4010
|
+
.value="${cr(this.value)}"
|
|
4041
4011
|
placeholder="${this.placeholder}"
|
|
4042
4012
|
?disabled="${this.disabled}"
|
|
4043
4013
|
?required="${this.required}"
|
|
@@ -4049,7 +4019,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4049
4019
|
autocomplete="${mp(this.autocomplete)}"
|
|
4050
4020
|
@input="${o(this,ef)}"
|
|
4051
4021
|
/>
|
|
4052
|
-
`}};st=A(P2),pl=new WeakMap,
|
|
4022
|
+
`}};st=A(P2),pl=new WeakMap,xk=new WeakMap,wk=new WeakMap,kk=new WeakMap,Ek=new WeakMap,Ck=new WeakMap,$k=new WeakMap,Tk=new WeakMap,Sk=new WeakMap,Ak=new WeakMap,_k=new WeakMap,Rk=new WeakMap,Ik=new WeakMap,ef=new WeakMap,ps=new WeakSet,Lk=function(){o(this,pl).setFormValue(this.value)},tf=function(){let t=this.shadowRoot?.querySelector("input");t&&o(this,pl).setValidity(t.validity,t.validationMessage,t)},c(st,4,"type",V2,Pt,xk),c(st,4,"value",F2,Pt,wk),c(st,4,"placeholder",B2,Pt,kk),c(st,4,"disabled",H2,Pt,Ek),c(st,4,"required",D2,Pt,Ck),c(st,4,"readonly",N2,Pt,$k),c(st,4,"minLength",M2,Pt,Tk),c(st,4,"maxLength",z2,Pt,Sk),c(st,4,"pattern",O2,Pt,Ak),c(st,4,"name",L2,Pt,_k),c(st,4,"autocomplete",I2,Pt,Rk),c(st,4,"autofocus",R2,Pt,Ik),T(st,Pt),v(Pt,"tagName","dui-input"),v(Pt,"formAssociated",!0),v(Pt,"shadowRootOptions",{...y.shadowRootOptions,delegatesFocus:!0}),v(Pt,"styles",[w,kP]);var EP=k`
|
|
4053
4023
|
[part="input"] {
|
|
4054
4024
|
padding: var(--space-2);
|
|
4055
4025
|
font-family: var(--font-sans);
|
|
@@ -4120,11 +4090,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
4120
4090
|
align-items: center;
|
|
4121
4091
|
cursor: pointer;
|
|
4122
4092
|
}
|
|
4123
|
-
`,U2,q2,of,
|
|
4093
|
+
`,U2,q2,of,zk,Xe=class extends(q2=y,U2=[u({type:Boolean,reflect:!0})],q2){constructor(){super(...arguments);a(this,zk,n(of,8,this,!1)),n(of,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
|
|
4124
4094
|
<div class="Item" part="root" aria-disabled="${this.disabled}">
|
|
4125
4095
|
<slot></slot>
|
|
4126
4096
|
</div>
|
|
4127
|
-
`}};of=A(q2),
|
|
4097
|
+
`}};of=A(q2),zk=new WeakMap,c(of,4,"disabled",U2,Xe,zk),T(of,Xe),v(Xe,"tagName","dui-menu-item"),v(Xe,"styles",[w,CP,$P]);var TP=b`
|
|
4128
4098
|
:host {
|
|
4129
4099
|
display: block;
|
|
4130
4100
|
}
|
|
@@ -4148,7 +4118,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4148
4118
|
.Popup[data-ending-style] {
|
|
4149
4119
|
opacity: 0;
|
|
4150
4120
|
}
|
|
4151
|
-
`],j2,K2,W2,Fi,Mk,Nk,Dk,Vi,
|
|
4121
|
+
`],j2,K2,W2,Fi,Mk,Nk,Dk,Vi,Hs,Yt,ul,Ut,fp,Hk,Y2,rf,sf,nf,af,yr=class extends(W2=y,K2=[u({attribute:"popup-min-width"})],j2=[C()],W2){constructor(){super(...arguments);a(this,Yt);a(this,Mk,n(Fi,8,this,"var(--space-28)")),n(Fi,11,this);a(this,Nk,n(Fi,12,this,-1)),n(Fi,15,this);a(this,ul,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);a(this,Ut,new Te(this,{getAnchor:()=>o(this,ul).call(this)??this,matchWidth:!1,styles:AP,contentContainer:".Menu",contentSelector:"dui-menu-item, dui-separator",onOpen:()=>{h(this,Yt,-1,Hs),o(this,ul).call(this)?.setAttribute("data-open","")},onClose:()=>{h(this,Yt,-1,Hs),o(this,ul).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
|
|
4152
4122
|
<div
|
|
4153
4123
|
class="Popup"
|
|
4154
4124
|
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
@@ -4163,7 +4133,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4163
4133
|
@mousemove="${o(this,af)}"
|
|
4164
4134
|
></div>
|
|
4165
4135
|
</div>
|
|
4166
|
-
`}));a(this,fp,`menu-${crypto.randomUUID().slice(0,8)}`);a(this,rf,t=>{t.stopPropagation(),t.preventDefault(),p(this,Yt,Y2).call(this)});a(this,sf,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Ut).close()});a(this,nf,t=>{let e=o(this,Yt,Hk);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Yt,s,
|
|
4136
|
+
`}));a(this,fp,`menu-${crypto.randomUUID().slice(0,8)}`);a(this,rf,t=>{t.stopPropagation(),t.preventDefault(),p(this,Yt,Y2).call(this)});a(this,sf,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Ut).close()});a(this,nf,t=>{let e=o(this,Yt,Hk);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Yt,s,Hs)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Yt,s,Hs)}break}case"Home":if(o(this,Ut).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Yt,s,Hs)}break;case"End":if(o(this,Ut).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Yt,s,Hs);break}}break;case"Enter":case" ":{if(o(this,Ut).isOpen&&o(this,Yt,Vi)>=0){t.preventDefault();let s=e[o(this,Yt,Vi)];s&&!s.disabled&&(s.click(),o(this,Ut).close())}else o(this,Ut).isOpen||(t.preventDefault(),o(this,Ut).open());break}case"Escape":o(this,Ut).isOpen&&(t.preventDefault(),o(this,Ut).close());break;case"Tab":o(this,Ut).isOpen&&o(this,Ut).close();break}});a(this,af,()=>{o(this,Yt,Vi)>=0&&h(this,Yt,-1,Hs)})}updated(){let t=o(this,Yt,Hk);for(let e=0;e<t.length;e++)e===o(this,Yt,Vi)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
|
|
4167
4137
|
<div
|
|
4168
4138
|
class="Trigger"
|
|
4169
4139
|
aria-haspopup="menu"
|
|
@@ -4174,7 +4144,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4174
4144
|
>
|
|
4175
4145
|
<slot name="trigger"></slot>
|
|
4176
4146
|
</div>
|
|
4177
|
-
`}};Fi=A(W2),Mk=new WeakMap,Nk=new WeakMap,Yt=new WeakSet,ul=new WeakMap,Ut=new WeakMap,fp=new WeakMap,Hk=function(){return[...(o(this,Ut).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},Y2=function(){o(this,Ut).isOpen?o(this,Ut).close():o(this,Ut).open()},rf=new WeakMap,sf=new WeakMap,nf=new WeakMap,af=new WeakMap,c(Fi,4,"popupMinWidth",K2,
|
|
4147
|
+
`}};Fi=A(W2),Mk=new WeakMap,Nk=new WeakMap,Yt=new WeakSet,ul=new WeakMap,Ut=new WeakMap,fp=new WeakMap,Hk=function(){return[...(o(this,Ut).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},Y2=function(){o(this,Ut).isOpen?o(this,Ut).close():o(this,Ut).open()},rf=new WeakMap,sf=new WeakMap,nf=new WeakMap,af=new WeakMap,c(Fi,4,"popupMinWidth",K2,yr,Mk),Dk=c(Fi,20,"#highlightedIndex",j2,Yt,Nk),Vi=Dk.get,Hs=Dk.set,T(Fi,yr),v(yr,"tagName","dui-menu"),v(yr,"styles",[w,TP,SP]);var _P=k`
|
|
4178
4148
|
.Popup {
|
|
4179
4149
|
background: var(--surface-3);
|
|
4180
4150
|
border: var(--border-width-thin) solid var(--border);
|
|
@@ -4196,7 +4166,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4196
4166
|
.Menu dui-separator {
|
|
4197
4167
|
margin: var(--space-1) var(--space-2);
|
|
4198
4168
|
}
|
|
4199
|
-
`,ml=class extends
|
|
4169
|
+
`,ml=class extends yr{static styles=[...yr.styles,_P]};customElements.define(ml.tagName,ml);var RP=k`
|
|
4200
4170
|
.Item {
|
|
4201
4171
|
--icon-size: var(--space-4);
|
|
4202
4172
|
--icon-color: var(--text-2);
|
|
@@ -4247,7 +4217,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4247
4217
|
flex-direction: column;
|
|
4248
4218
|
align-items: stretch;
|
|
4249
4219
|
}
|
|
4250
|
-
`,X2,J2,Q2,Z2,tM,uo,Bk,Fk,Vk,Pk,qk,lf,Je,eM,df,cf,gl,Uk,jk,pf,Ro=class extends(tM=
|
|
4220
|
+
`,X2,J2,Q2,Z2,tM,uo,Bk,Fk,Vk,Pk,qk,lf,Je,eM,df,cf,gl,Uk,jk,pf,Ro=class extends(tM=y,Z2=[u({type:Boolean})],Q2=[u({reflect:!0})],J2=[C()],X2=[lt({context:G2}),C()],tM){constructor(){super(...arguments);a(this,Je);a(this,Bk,n(uo,8,this,!0)),n(uo,11,this);a(this,Fk,n(uo,12,this,"horizontal")),n(uo,15,this);a(this,Vk,n(uo,16,this,null)),n(uo,19,this);a(this,df,t=>{h(this,Je,t,lf)});a(this,cf,()=>{h(this,Je,null,lf)});a(this,gl,t=>{let e=p(this,Je,eM).call(this);if(e.length===0)return;let s=e.findIndex(E=>E.getAttribute("data-menubar-id")===o(this,Je,qk)),l;t==="next"?(l=s+1,l>=e.length&&(l=this.loop?0:e.length-1)):(l=s-1,l<0&&(l=this.loop?e.length-1:0));let d=e[l];if(!d)return;let m=d.getAttribute("data-menubar-id");m&&h(this,Je,m,lf),d.querySelector('[slot="trigger"]')?.focus()});a(this,Uk,n(uo,20,this,p(this,Je,jk).call(this))),n(uo,23,this);a(this,pf,t=>{let e=this.orientation==="horizontal",s=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";t.key===s?(t.preventDefault(),o(this,gl).call(this,"next")):t.key===l&&(t.preventDefault(),o(this,gl).call(this,"prev"))})}willUpdate(){this._ctx=p(this,Je,jk).call(this)}render(){return f`
|
|
4251
4221
|
<div
|
|
4252
4222
|
part="root"
|
|
4253
4223
|
role="menubar"
|
|
@@ -4264,7 +4234,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4264
4234
|
background: var(--background);
|
|
4265
4235
|
padding: var(--space-1);
|
|
4266
4236
|
}
|
|
4267
|
-
`,vl=class extends Ro{static styles=[...Ro.styles,LP]};customElements.define(vl.tagName,vl);var RE=M("value-change",{bubbles:!0,composed:!0}),mf=M("value-committed",{bubbles:!0,composed:!0}),
|
|
4237
|
+
`,vl=class extends Ro{static styles=[...Ro.styles,LP]};customElements.define(vl.tagName,vl);var RE=M("value-change",{bubbles:!0,composed:!0}),mf=M("value-committed",{bubbles:!0,composed:!0}),OP=b`
|
|
4268
4238
|
:host {
|
|
4269
4239
|
display: block;
|
|
4270
4240
|
}
|
|
@@ -4330,7 +4300,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4330
4300
|
pointer-events: none;
|
|
4331
4301
|
}
|
|
4332
4302
|
|
|
4333
|
-
`,
|
|
4303
|
+
`,zP=3,oM,rM,sM,iM,nM,aM,lM,dM,cM,pM,hM,uM,mM,fM,gM,vM,bM,yM,xM,wM,kM,EM,CM,$M,TM,SM,gp,N,Kk,Wk,Yk,Gk,Xk,Jk,Qk,Zk,tE,eE,oE,rE,sE,iE,nE,aE,lE,dE,cE,pE,hE,uE,mE,AM,wE,I,fE,gE,kE,EE,vE,bE,_M,CE,yE,xE,$E,bl,vp,bp,Wi,Yi,yp,xr,RM,IM,Pi,TE,SE,Ui,LM,OM,hf,qi,AE,ji,yl,xl,_E,uf,Ki,xp,Gi,ff,gf,vf,bf,yf,xf,wf,mt=class extends(SM=y,TM=[u({type:Number})],$M=[u({type:Number,attribute:"default-value"})],CM=[u({type:Number})],EM=[u({type:Number})],kM=[u({type:Number})],wM=[u({type:Number,attribute:"large-step"})],xM=[u({type:Boolean,reflect:!0})],yM=[u({type:Boolean,reflect:!0,attribute:"read-only"})],bM=[u({type:Boolean})],vM=[u()],gM=[u({reflect:!0})],fM=[u({reflect:!0,attribute:"label-position"})],mM=[u({reflect:!0,attribute:"icon-position"})],uM=[u({reflect:!0})],hM=[u({type:Number})],pM=[u({type:Boolean,reflect:!0,attribute:"scrub-label"})],cM=[u({type:Boolean,reflect:!0,attribute:"scrub-value"})],dM=[u({type:Boolean,reflect:!0,attribute:"scrub-field"})],lM=[u({type:Boolean,reflect:!0,attribute:"click-label"})],aM=[u({type:Boolean,reflect:!0,attribute:"click-value"})],nM=[u({type:Boolean,reflect:!0,attribute:"click-field"})],iM=[C()],sM=[C()],rM=[C()],oM=[C()],SM){constructor(){super();a(this,I);a(this,gp);a(this,Kk,n(N,8,this)),n(N,11,this);a(this,Wk,n(N,12,this)),n(N,15,this);a(this,Yk,n(N,16,this)),n(N,19,this);a(this,Gk,n(N,20,this)),n(N,23,this);a(this,Xk,n(N,24,this,1)),n(N,27,this);a(this,Jk,n(N,28,this,10)),n(N,31,this);a(this,Qk,n(N,32,this,!1)),n(N,35,this);a(this,Zk,n(N,36,this,!1)),n(N,39,this);a(this,tE,n(N,40,this,!1)),n(N,43,this);a(this,eE,n(N,44,this)),n(N,47,this);a(this,oE,n(N,48,this,"")),n(N,51,this);a(this,rE,n(N,52,this,"")),n(N,55,this);a(this,sE,n(N,56,this,"")),n(N,59,this);a(this,iE,n(N,60,this,"")),n(N,63,this);a(this,nE,n(N,64,this)),n(N,67,this);a(this,aE,n(N,68,this,!1)),n(N,71,this);a(this,lE,n(N,72,this,!1)),n(N,75,this);a(this,dE,n(N,76,this,!1)),n(N,79,this);a(this,cE,n(N,80,this,!1)),n(N,83,this);a(this,pE,n(N,84,this,!1)),n(N,87,this);a(this,hE,n(N,88,this,!1)),n(N,91,this);a(this,uE,n(N,92,this)),n(N,95,this);a(this,fE,n(N,96,this,"")),n(N,99,this);a(this,vE,n(N,100,this,!1)),n(N,103,this);a(this,yE,n(N,104,this,!1)),n(N,107,this);a(this,vp,0);a(this,bp,0);a(this,Wi,!1);a(this,Yi,null);a(this,yp,!1);a(this,yl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,xr)??this.min??0;p(this,I,ji).call(this,e+t)});a(this,xl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,xr)??this.max??0;p(this,I,ji).call(this,e-t)});a(this,xp,t=>{if(t.pointerId!==o(this,Yi))return;let e=t.clientX-o(this,vp);if(!o(this,Wi)){if(Math.abs(e)<zP)return;h(this,Wi,!0),h(this,I,!0,CE)}let s=this.step;t.shiftKey?s=this.step*.1:(t.ctrlKey||t.metaKey)&&(s=this.largeStep);let l=o(this,bp)+e*s;p(this,I,ji).call(this,l)});a(this,Gi,t=>{if(t.pointerId===o(this,Yi)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",o(this,xp)),this.removeEventListener("pointerup",o(this,Gi)),this.removeEventListener("pointercancel",o(this,Gi)),o(this,Wi)){h(this,I,!1,CE);let e=o(this,I,xr);e!==void 0&&this.dispatchEvent(mf({value:e}))}else o(this,yp)&&p(this,I,uf).call(this);h(this,Yi,null)}});a(this,ff,t=>{if(t.button!==0)return;let e=o(this,I,TE)||o(this,I,Ui),s=o(this,I,LM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,gf,t=>{if(t.button!==0)return;let e=o(this,I,SE)||o(this,I,Ui),s=o(this,I,OM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&h(this,I,!0,bl)});a(this,vf,t=>{if(t.button!==0)return;let e=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==e)return;let s=o(this,I,Ui),l=o(this,I,hf);s&&l?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):s?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):l&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,bf,t=>{h(this,I,t.target.value,EE)});a(this,yf,()=>{o(this,I,$E)&&p(this,I,_E).call(this)});a(this,xf,()=>{h(this,I,!0,bl);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});a(this,wf,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?o(this,yl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,yl).call(this,this.largeStep):o(this,yl).call(this,this.step),p(this,I,qi).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?o(this,xl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,xl).call(this,this.largeStep):o(this,xl).call(this,this.step),p(this,I,qi).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.max));break;case"Enter":p(this,I,_E).call(this);break;case"Escape":{h(this,I,!1,bl),p(this,I,qi).call(this);let e=this.shadowRoot?.querySelector('[part="input"]');e&&e.blur();break}}});h(this,gp,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,I,p(this,I,AE).call(this,this.defaultValue),wE),p(this,I,qi).call(this)}willUpdate(){o(this,I,$E)||p(this,I,qi).call(this),o(this,gp).setFormValue(o(this,I,xr)!==void 0?String(o(this,I,xr)):null)}render(){let t=o(this,I,xr),e=o(this,I,TE)||o(this,I,Ui),s=o(this,I,SE)||o(this,I,Ui),l=o(this,I,Ui);return f`
|
|
4334
4304
|
<span
|
|
4335
4305
|
part="label"
|
|
4336
4306
|
?data-scrub="${e}"
|
|
@@ -4354,7 +4324,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4354
4324
|
type="text"
|
|
4355
4325
|
inputmode="decimal"
|
|
4356
4326
|
?data-scrub="${s}"
|
|
4357
|
-
.value="${
|
|
4327
|
+
.value="${cr(o(this,I,kE))}"
|
|
4358
4328
|
?disabled="${this.disabled}"
|
|
4359
4329
|
?readonly="${this.readOnly}"
|
|
4360
4330
|
?required="${this.required}"
|
|
@@ -4365,14 +4335,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
4365
4335
|
@pointerdown="${o(this,gf)}"
|
|
4366
4336
|
@input="${o(this,bf)}"
|
|
4367
4337
|
@keydown="${o(this,wf)}"
|
|
4368
|
-
@focus="${o(this,
|
|
4369
|
-
@blur="${o(this,
|
|
4338
|
+
@focus="${o(this,xf)}"
|
|
4339
|
+
@blur="${o(this,yf)}"
|
|
4370
4340
|
/>
|
|
4371
4341
|
|
|
4372
4342
|
<span part="unit">${this.unit}</span>
|
|
4373
4343
|
|
|
4374
4344
|
</div>
|
|
4375
|
-
`}};N=A(SM),gp=new WeakMap,Kk=new WeakMap,Wk=new WeakMap,Yk=new WeakMap,Gk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Zk=new WeakMap,tE=new WeakMap,eE=new WeakMap,oE=new WeakMap,rE=new WeakMap,sE=new WeakMap,iE=new WeakMap,nE=new WeakMap,aE=new WeakMap,lE=new WeakMap,dE=new WeakMap,cE=new WeakMap,pE=new WeakMap,hE=new WeakMap,uE=new WeakMap,I=new WeakSet,fE=new WeakMap,vE=new WeakMap,
|
|
4345
|
+
`}};N=A(SM),gp=new WeakMap,Kk=new WeakMap,Wk=new WeakMap,Yk=new WeakMap,Gk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Zk=new WeakMap,tE=new WeakMap,eE=new WeakMap,oE=new WeakMap,rE=new WeakMap,sE=new WeakMap,iE=new WeakMap,nE=new WeakMap,aE=new WeakMap,lE=new WeakMap,dE=new WeakMap,cE=new WeakMap,pE=new WeakMap,hE=new WeakMap,uE=new WeakMap,I=new WeakSet,fE=new WeakMap,vE=new WeakMap,yE=new WeakMap,vp=new WeakMap,bp=new WeakMap,Wi=new WeakMap,Yi=new WeakMap,yp=new WeakMap,xr=function(){return this.value??o(this,I,AM)},RM=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},IM=function(){let t=o(this,I,xr);if(t===void 0)return"";let e=this.precision??o(this,I,RM);return t.toFixed(e)},Pi=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},TE=function(){return o(this,I,Pi)?this.scrubLabel:this.label!==""},SE=function(){return o(this,I,Pi)?this.scrubValue:!1},Ui=function(){return o(this,I,Pi)?this.scrubField:this.label===""},LM=function(){return o(this,I,Pi)?this.clickLabel:!1},OM=function(){return o(this,I,Pi)?this.clickValue:!0},hf=function(){return o(this,I,Pi)?this.clickField:!1},qi=function(){h(this,I,o(this,I,IM),EE)},AE=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},ji=function(t){let e=p(this,I,AE).call(this,t);this.value===void 0&&h(this,I,e,wE),this.dispatchEvent(RE({value:e}))},yl=new WeakMap,xl=new WeakMap,_E=function(){let t=parseFloat(o(this,I,kE));Number.isNaN(t)?p(this,I,qi).call(this):p(this,I,ji).call(this,t),h(this,I,!1,bl);let e=o(this,I,xr);e!==void 0&&this.dispatchEvent(mf({value:e}))},uf=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(h(this,I,!0,bl),t.focus(),t.select())},Ki=function(t,e){this.disabled||this.readOnly||(h(this,Yi,t.pointerId),h(this,vp,t.clientX),h(this,bp,o(this,I,xr)??0),h(this,Wi,!1),h(this,yp,e),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",o(this,xp)),this.addEventListener("pointerup",o(this,Gi)),this.addEventListener("pointercancel",o(this,Gi)))},xp=new WeakMap,Gi=new WeakMap,ff=new WeakMap,gf=new WeakMap,vf=new WeakMap,bf=new WeakMap,yf=new WeakMap,xf=new WeakMap,wf=new WeakMap,c(N,4,"value",TM,mt,Kk),c(N,4,"defaultValue",$M,mt,Wk),c(N,4,"min",CM,mt,Yk),c(N,4,"max",EM,mt,Gk),c(N,4,"step",kM,mt,Xk),c(N,4,"largeStep",wM,mt,Jk),c(N,4,"disabled",xM,mt,Qk),c(N,4,"readOnly",yM,mt,Zk),c(N,4,"required",bM,mt,tE),c(N,4,"name",vM,mt,eE),c(N,4,"label",gM,mt,oE),c(N,4,"labelPosition",fM,mt,rE),c(N,4,"iconPosition",mM,mt,sE),c(N,4,"unit",uM,mt,iE),c(N,4,"precision",hM,mt,nE),c(N,4,"scrubLabel",pM,mt,aE),c(N,4,"scrubValue",cM,mt,lE),c(N,4,"scrubField",dM,mt,dE),c(N,4,"clickLabel",lM,mt,cE),c(N,4,"clickValue",aM,mt,pE),c(N,4,"clickField",nM,mt,hE),mE=c(N,20,"#internalValue",iM,I,uE),AM=mE.get,wE=mE.set,gE=c(N,20,"#inputText",sM,I,fE),kE=gE.get,EE=gE.set,bE=c(N,20,"#dragging",rM,I,vE),_M=bE.get,CE=bE.set,xE=c(N,20,"#editing",oM,I,yE),$E=xE.get,bl=xE.set,T(N,mt),v(mt,"tagName","dui-number-field"),v(mt,"formAssociated",!0),v(mt,"shadowRootOptions",{...y.shadowRootOptions,delegatesFocus:!0}),v(mt,"styles",[w,OP]);var MP=k`
|
|
4376
4346
|
:host {
|
|
4377
4347
|
--number-field-bg: transparent;
|
|
4378
4348
|
--number-field-fg: var(--text-1);
|
|
@@ -4600,11 +4570,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
4600
4570
|
:host([disabled]) {
|
|
4601
4571
|
opacity: 0.5;
|
|
4602
4572
|
}
|
|
4603
|
-
`,wl=class extends mt{static styles=[...mt.styles,MP]};customElements.define(wl.tagName,wl);var
|
|
4573
|
+
`,wl=class extends mt{static styles=[...mt.styles,MP]};customElements.define(wl.tagName,wl);var Bs=Symbol("dui-popover");var $f=M("open-change",{bubbles:!0,composed:!0}),NP=b`
|
|
4604
4574
|
:host {
|
|
4605
4575
|
display: contents;
|
|
4606
4576
|
}
|
|
4607
|
-
`,
|
|
4577
|
+
`,zM,MM,NM,DM,HM,BM,FM,VM,Gt,IE,LE,OE,zE,ME,NE,kf,Ef,bt,DE,HE,FE,PM,wp,Tf,Sf,BE,kp,VE,Cf,UM,qM,Qe=class extends(VM=y,FM=[u({type:Boolean,reflect:!0})],BM=[u({type:Boolean,attribute:"default-open"})],HM=[u({reflect:!0})],DM=[u({type:Number,attribute:"side-offset"})],NM=[C()],MM=[C()],zM=[lt({context:Bs}),C()],VM){constructor(){super(...arguments);a(this,bt);a(this,IE,n(Gt,8,this,!1)),n(Gt,11,this);a(this,LE,n(Gt,12,this,!1)),n(Gt,15,this);a(this,OE,n(Gt,16,this,"bottom")),n(Gt,19,this);a(this,zE,n(Gt,20,this,8)),n(Gt,23,this);a(this,ME,n(Gt,24,this,!1)),n(Gt,27,this);a(this,DE,n(Gt,28,this)),n(Gt,31,this);a(this,Tf,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Sf,`popover-popup-${crypto.randomUUID().slice(0,8)}`);a(this,BE,n(Gt,32,this,{open:!1,triggerId:o(this,Tf),popupId:o(this,Sf),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>p(this,bt,VE).call(this),closePopover:()=>p(this,bt,Cf).call(this),togglePopover:()=>p(this,bt,UM).call(this),setTriggerEl:t=>p(this,bt,qM).call(this,t)})),n(Gt,35,this);a(this,kp,t=>{o(this,bt,wp)&&t.key==="Escape"&&(t.preventDefault(),p(this,bt,Cf).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,bt,!0,Ef),document.addEventListener("keydown",o(this,kp))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",o(this,kp))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==o(this,bt,wp)||this._ctx.triggerEl!==o(this,bt,FE))&&(this._ctx={...this._ctx,open:o(this,bt,wp),side:this.side,sideOffset:this.sideOffset,triggerEl:o(this,bt,FE)})}render(){return f`<slot></slot>`}};Gt=A(VM),IE=new WeakMap,LE=new WeakMap,OE=new WeakMap,zE=new WeakMap,ME=new WeakMap,bt=new WeakSet,DE=new WeakMap,wp=function(){return this.open||o(this,bt,kf)},Tf=new WeakMap,Sf=new WeakMap,BE=new WeakMap,kp=new WeakMap,VE=function(){o(this,bt,kf)||(h(this,bt,!0,Ef),this.dispatchEvent($f({open:!0})))},Cf=function(){o(this,bt,kf)&&(h(this,bt,!1,Ef),this.dispatchEvent($f({open:!1})))},UM=function(){o(this,bt,wp)?p(this,bt,Cf).call(this):p(this,bt,VE).call(this)},qM=function(t){h(this,bt,t,PM)},c(Gt,4,"open",FM,Qe,IE),c(Gt,4,"defaultOpen",BM,Qe,LE),c(Gt,4,"side",HM,Qe,OE),c(Gt,4,"sideOffset",DM,Qe,zE),NE=c(Gt,20,"#internalOpen",NM,bt,ME),kf=NE.get,Ef=NE.set,HE=c(Gt,20,"#triggerEl",MM,bt,DE),FE=HE.get,PM=HE.set,c(Gt,4,"_ctx",zM,Qe,BE),T(Gt,Qe),v(Qe,"tagName","dui-popover"),v(Qe,"styles",[w,NP]);var DP=b`
|
|
4608
4578
|
:host {
|
|
4609
4579
|
display: contents;
|
|
4610
4580
|
}
|
|
@@ -4612,7 +4582,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4612
4582
|
.Trigger {
|
|
4613
4583
|
display: contents;
|
|
4614
4584
|
}
|
|
4615
|
-
`,Ep=class extends
|
|
4585
|
+
`,Ep=class extends y{static tagName="dui-popover-trigger";static styles=[w,DP,HP];#t=new q(this,{context:Bs,subscribe:!0});#e=r=>{r.stopPropagation(),this.#o(),this.#t.value?.togglePopover()};#o(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0]??this;this.#t.value?.setTriggerEl(t)}#n(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0];if(!t)return;this.#t.value?.open??!1?t.setAttribute("data-open",""):t.removeAttribute("data-open")}updated(){this.#n()}render(){let r=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return f`
|
|
4616
4586
|
<span
|
|
4617
4587
|
class="Trigger"
|
|
4618
4588
|
part="trigger"
|
|
@@ -4674,24 +4644,24 @@ label, legend, caption, figcaption, th, td {
|
|
|
4674
4644
|
left: 50%;
|
|
4675
4645
|
transform: translateX(-50%) rotate(180deg);
|
|
4676
4646
|
}
|
|
4677
|
-
`],jM,KM,WM,YM,
|
|
4647
|
+
`],jM,KM,WM,YM,wr,PE,UE,qE,jE,Af,GM,Er,kr,kl,Fs,_f,XM,Go=class extends(YM=y,WM=[u({type:Boolean,attribute:"show-arrow"})],KM=[u({type:Boolean,attribute:"close-on-click"})],jM=[C()],YM){constructor(){super(...arguments);a(this,Er);a(this,PE,n(wr,8,this,!0)),n(wr,11,this);a(this,UE,n(wr,12,this,!1)),n(wr,15,this);a(this,qE,n(wr,16,this,"bottom")),n(wr,19,this);a(this,kr,new q(this,{context:Bs,subscribe:!0}));a(this,kl,!1);a(this,Fs,new Te(this,{getAnchor:()=>o(this,kr).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:FP,contentContainer:".Content",forwardProperties:["--popover-popup-padding"],onClose:()=>{o(this,kr).value?.closePopover()},onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Er,Af)&&h(this,Er,e,GM)},renderPopup:t=>{let e=o(this,kr).value?.popupId??"";return f`
|
|
4678
4648
|
<div
|
|
4679
4649
|
class="Popup"
|
|
4680
4650
|
id="${e}"
|
|
4681
4651
|
role="dialog"
|
|
4682
4652
|
?data-starting-style="${t.isStarting}"
|
|
4683
4653
|
?data-ending-style="${t.isEnding}"
|
|
4684
|
-
data-side="${o(this,
|
|
4654
|
+
data-side="${o(this,Er,Af)}"
|
|
4685
4655
|
@click="${o(this,_f)}"
|
|
4686
4656
|
>
|
|
4687
4657
|
<div class="Content"></div>
|
|
4688
|
-
${this.showArrow?Ra(o(this,
|
|
4658
|
+
${this.showArrow?Ra(o(this,Er,Af)):""}
|
|
4689
4659
|
</div>
|
|
4690
|
-
`}}));a(this,_f,()=>{this.closeOnClick&&o(this,
|
|
4660
|
+
`}}));a(this,_f,()=>{this.closeOnClick&&o(this,kr).value?.closePopover()})}containsEventTarget(t){let e=o(this,Fs).positionerElement;return e!==null&&t.includes(e)}updated(){let t=o(this,kr).value?.open??!1;t&&!o(this,kl)?(p(this,Er,XM).call(this),o(this,Fs).open()):!t&&o(this,kl)&&o(this,Fs).close(),h(this,kl,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};wr=A(YM),PE=new WeakMap,UE=new WeakMap,qE=new WeakMap,Er=new WeakSet,kr=new WeakMap,kl=new WeakMap,Fs=new WeakMap,_f=new WeakMap,XM=function(){let t=o(this,kr).value?.side??"bottom";o(this,Fs).placement=t,o(this,Fs).offset=o(this,kr).value?.sideOffset??8},c(wr,4,"showArrow",WM,Go,PE),c(wr,4,"closeOnClick",KM,Go,UE),jE=c(wr,20,"#side",jM,Er,qE),Af=jE.get,GM=jE.set,T(wr,Go),v(Go,"tagName","dui-popover-popup"),v(Go,"styles",[w,BP]);var VP=b`
|
|
4691
4661
|
:host {
|
|
4692
4662
|
display: contents;
|
|
4693
4663
|
}
|
|
4694
|
-
`,Cp=class extends
|
|
4664
|
+
`,Cp=class extends y{static tagName="dui-popover-close";static styles=[w,VP];#t=new q(this,{context:Bs,subscribe:!0});#e=()=>{this.#t.value?.closePopover()};render(){return f`
|
|
4695
4665
|
<span @click="${this.#e}">
|
|
4696
4666
|
<slot></slot>
|
|
4697
4667
|
</span>
|
|
@@ -4723,11 +4693,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
4723
4693
|
:host {
|
|
4724
4694
|
display: contents;
|
|
4725
4695
|
}
|
|
4726
|
-
`,JM,QM,ZM,t5,
|
|
4696
|
+
`,JM,QM,ZM,t5,Cr,KE,WE,YE,$r,Xi,Vs,Ze,GE,e5,XE,Rf,If,Io=class extends(t5=y,ZM=[u({type:String})],QM=[u({type:String,attribute:"target-root",reflect:!0})],JM=[u({attribute:!1})],t5){constructor(){super(...arguments);a(this,Ze);a(this,KE,n(Cr,8,this,"body")),n(Cr,11,this);a(this,WE,n(Cr,12,this,"document")),n(Cr,15,this);a(this,YE,n(Cr,16,this)),n(Cr,19,this);a(this,$r);a(this,Xi,new Set);a(this,Vs,!1);a(this,If,()=>{o(this,Vs)||!o(this,$r)||p(this,Ze,Rf).call(this)})}connectedCallback(){super.connectedCallback(),h(this,$r,this.targetElement??p(this,Ze,GE).call(this)),o(this,$r)&&this.childNodes.length>0&&p(this,Ze,Rf).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Ze,XE).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(p(this,Ze,XE).call(this),p(this,Ze,e5).call(this))}render(){return f`<slot @slotchange=${o(this,If)}></slot>`}};Cr=A(t5),KE=new WeakMap,WE=new WeakMap,YE=new WeakMap,$r=new WeakMap,Xi=new WeakMap,Vs=new WeakMap,Ze=new WeakSet,GE=function(){return JR(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},e5=function(){h(this,$r,this.targetElement??p(this,Ze,GE).call(this)),p(this,Ze,Rf).call(this)},XE=function(){if(o(this,Xi).size!==0){h(this,Vs,!0);for(let t of o(this,Xi))this.append(t);o(this,Xi).clear(),h(this,Vs,!1),h(this,$r,void 0)}},Rf=function(){if(!o(this,$r))throw new Error(`Portal target does not exist: ${this.target}`);h(this,Vs,!0);let t=Array.from(this.childNodes);for(let e of t)o(this,$r).appendChild(e),o(this,Xi).add(e);h(this,Vs,!1)},If=new WeakMap,c(Cr,4,"target",ZM,Io,KE),c(Cr,4,"targetRoot",QM,Io,WE),c(Cr,4,"targetElement",JM,Io,YE),T(Cr,Io),v(Io,"tagName","dui-portal"),v(Io,"styles",[qP]);var jP=k``,Sl=class extends Io{static styles=[...Io.styles,jP]};customElements.define(Sl.tagName,Sl);var Al=Symbol("dui-preview-card");var Mf=M("open-change",{bubbles:!0,composed:!0}),KP=b`
|
|
4727
4697
|
:host {
|
|
4728
4698
|
display: contents;
|
|
4729
4699
|
}
|
|
4730
|
-
`,o5,r5,s5,i5,n5,a5,l5,d5,c5,p5,
|
|
4700
|
+
`,o5,r5,s5,i5,n5,a5,l5,d5,c5,p5,Ot,JE,QE,ZE,tC,eC,oC,rC,sC,Lf,Of,yt,iC,nC,lC,h5,Ji,Qi,Nf,Df,aC,zf,u5,m5,dC,cC,f5,Se=class extends(p5=y,c5=[u({type:Boolean,reflect:!0})],d5=[u({type:Boolean,attribute:"default-open"})],l5=[u({reflect:!0})],a5=[u({type:Number,attribute:"side-offset"})],n5=[u({type:Number})],i5=[u({type:Number,attribute:"close-delay"})],s5=[C()],r5=[C()],o5=[lt({context:Al}),C()],p5){constructor(){super(...arguments);a(this,yt);a(this,JE,n(Ot,8,this,!1)),n(Ot,11,this);a(this,QE,n(Ot,12,this,!1)),n(Ot,15,this);a(this,ZE,n(Ot,16,this,"top")),n(Ot,19,this);a(this,tC,n(Ot,20,this,8)),n(Ot,23,this);a(this,eC,n(Ot,24,this,400)),n(Ot,27,this);a(this,oC,n(Ot,28,this,300)),n(Ot,31,this);a(this,rC,n(Ot,32,this,!1)),n(Ot,35,this);a(this,iC,n(Ot,36,this)),n(Ot,39,this);a(this,Ji);a(this,Qi);a(this,Nf,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Df,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);a(this,aC,n(Ot,40,this,{open:!1,triggerId:o(this,Nf),popupId:o(this,Df),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>p(this,yt,u5).call(this),closePreviewCard:()=>p(this,yt,m5).call(this),setTriggerEl:t=>p(this,yt,f5).call(this,t)})),n(Ot,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,yt,!0,Of)}disconnectedCallback(){super.disconnectedCallback(),p(this,yt,zf).call(this)}willUpdate(t){let e=this.open||o(this,yt,Lf);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e||this._ctx.triggerEl!==o(this,yt,lC))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,triggerEl:o(this,yt,lC)})}render(){return f`<slot></slot>`}};Ot=A(p5),JE=new WeakMap,QE=new WeakMap,ZE=new WeakMap,tC=new WeakMap,eC=new WeakMap,oC=new WeakMap,rC=new WeakMap,yt=new WeakSet,iC=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,Nf=new WeakMap,Df=new WeakMap,aC=new WeakMap,zf=function(){o(this,Ji)&&(clearTimeout(o(this,Ji)),h(this,Ji,void 0)),o(this,Qi)&&(clearTimeout(o(this,Qi)),h(this,Qi,void 0))},u5=function(){p(this,yt,zf).call(this),this.delay<=0?p(this,yt,dC).call(this):h(this,Ji,setTimeout(()=>p(this,yt,dC).call(this),this.delay))},m5=function(){p(this,yt,zf).call(this),this.closeDelay<=0?p(this,yt,cC).call(this):h(this,Qi,setTimeout(()=>p(this,yt,cC).call(this),this.closeDelay))},dC=function(){o(this,yt,Lf)||(h(this,yt,!0,Of),this.dispatchEvent(Mf({open:!0})))},cC=function(){o(this,yt,Lf)&&(h(this,yt,!1,Of),this.dispatchEvent(Mf({open:!1})))},f5=function(t){h(this,yt,t,h5)},c(Ot,4,"open",c5,Se,JE),c(Ot,4,"defaultOpen",d5,Se,QE),c(Ot,4,"side",l5,Se,ZE),c(Ot,4,"sideOffset",a5,Se,tC),c(Ot,4,"delay",n5,Se,eC),c(Ot,4,"closeDelay",i5,Se,oC),sC=c(Ot,20,"#internalOpen",s5,yt,rC),Lf=sC.get,Of=sC.set,nC=c(Ot,20,"#triggerEl",r5,yt,iC),lC=nC.get,h5=nC.set,c(Ot,4,"_ctx",o5,Se,aC),T(Ot,Se),v(Se,"tagName","dui-preview-card"),v(Se,"styles",[w,KP]);var WP=b`
|
|
4731
4701
|
:host {
|
|
4732
4702
|
display: contents;
|
|
4733
4703
|
}
|
|
@@ -4735,7 +4705,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4735
4705
|
.Trigger {
|
|
4736
4706
|
display: contents;
|
|
4737
4707
|
}
|
|
4738
|
-
`,$p=class extends
|
|
4708
|
+
`,$p=class extends y{static tagName="dui-preview-card-trigger";static styles=[w,WP,YP];#t=new q(this,{context:Al,subscribe:!0});#e=()=>{this.#a(),this.#t.value?.openPreviewCard()};#o=()=>{this.#t.value?.closePreviewCard()};#n=()=>{this.#a(),this.#t.value?.openPreviewCard()};#d=()=>{this.#t.value?.closePreviewCard()};#c=r=>{r.key==="Escape"&&this.#t.value?.open&&this.#t.value?.closePreviewCard()};#a(){let e=this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})?.[0]??this;this.#t.value?.setTriggerEl(e)}render(){let r=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return f`
|
|
4739
4709
|
<span
|
|
4740
4710
|
class="Trigger"
|
|
4741
4711
|
part="trigger"
|
|
@@ -4800,21 +4770,21 @@ label, legend, caption, figcaption, th, td {
|
|
|
4800
4770
|
left: 50%;
|
|
4801
4771
|
transform: translateX(-50%) rotate(180deg);
|
|
4802
4772
|
}
|
|
4803
|
-
`],g5,v5,b5,Zi,pC,hC,uC,Hf,
|
|
4773
|
+
`],g5,v5,b5,Zi,pC,hC,uC,Hf,y5,Sr,Xo,_l,tn,Bf,Ff,x5,Tr=class extends(b5=y,v5=[u({type:Boolean,attribute:"show-arrow"})],g5=[C()],b5){constructor(){super(...arguments);a(this,Sr);a(this,pC,n(Zi,8,this,!0)),n(Zi,11,this);a(this,hC,n(Zi,12,this,"top")),n(Zi,15,this);a(this,Xo,new q(this,{context:Al,subscribe:!0}));a(this,_l,!1);a(this,tn,new Te(this,{getAnchor:()=>o(this,Xo).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:XP,contentContainer:".PreviewCardContent",onClose:()=>{o(this,Xo).value?.closePreviewCard()},forwardProperties:["--preview-card-popup-padding","--preview-card-popup-max-width"],onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Sr,Hf)&&h(this,Sr,e,y5)},renderPopup:t=>{let e=o(this,Xo).value?.popupId??"";return f`
|
|
4804
4774
|
<div
|
|
4805
4775
|
class="Popup"
|
|
4806
4776
|
id="${e}"
|
|
4807
4777
|
role="tooltip"
|
|
4808
4778
|
?data-starting-style="${t.isStarting}"
|
|
4809
4779
|
?data-ending-style="${t.isEnding}"
|
|
4810
|
-
data-side="${o(this,
|
|
4780
|
+
data-side="${o(this,Sr,Hf)}"
|
|
4811
4781
|
@mouseenter="${o(this,Bf)}"
|
|
4812
4782
|
@mouseleave="${o(this,Ff)}"
|
|
4813
4783
|
>
|
|
4814
4784
|
<div class="PreviewCardContent"></div>
|
|
4815
|
-
${this.showArrow?Ra(o(this,
|
|
4785
|
+
${this.showArrow?Ra(o(this,Sr,Hf)):""}
|
|
4816
4786
|
</div>
|
|
4817
|
-
`}}));a(this,Bf,()=>{o(this,
|
|
4787
|
+
`}}));a(this,Bf,()=>{o(this,Xo).value?.openPreviewCard()});a(this,Ff,()=>{o(this,Xo).value?.closePreviewCard()})}updated(){let t=o(this,Xo).value?.open??!1;t&&!o(this,_l)?(p(this,Sr,x5).call(this),o(this,tn).open()):!t&&o(this,_l)&&o(this,tn).close(),h(this,_l,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Zi=A(b5),pC=new WeakMap,hC=new WeakMap,Sr=new WeakSet,Xo=new WeakMap,_l=new WeakMap,tn=new WeakMap,Bf=new WeakMap,Ff=new WeakMap,x5=function(){let t=o(this,Xo).value?.side??"top";o(this,tn).placement=t,o(this,tn).offset=o(this,Xo).value?.sideOffset??8},c(Zi,4,"showArrow",v5,Tr,pC),uC=c(Zi,20,"#side",g5,Sr,hC),Hf=uC.get,y5=uC.set,T(Zi,Tr),v(Tr,"tagName","dui-preview-card-popup"),v(Tr,"styles",[w,GP]);var JP=k``,Rl=class extends Se{static styles=[...Se.styles,JP]};customElements.define(Rl.tagName,Rl);var QP=k`
|
|
4818
4788
|
.Popup {
|
|
4819
4789
|
padding: var(--preview-card-popup-padding, var(--space-4));
|
|
4820
4790
|
border-radius: var(--radius-md);
|
|
@@ -4839,7 +4809,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4839
4809
|
stroke: var(--border);
|
|
4840
4810
|
stroke-width: 1px;
|
|
4841
4811
|
}
|
|
4842
|
-
`,Il=class extends
|
|
4812
|
+
`,Il=class extends Tr{static styles=[...Tr.styles,QP]};customElements.define(Il.tagName,Il);var Ll=class extends $p{};customElements.define(Ll.tagName,Ll);var ZP=b`
|
|
4843
4813
|
:host {
|
|
4844
4814
|
display: block;
|
|
4845
4815
|
}
|
|
@@ -4857,23 +4827,23 @@ label, legend, caption, figcaption, th, td {
|
|
|
4857
4827
|
width: var(--progress-value, 0%);
|
|
4858
4828
|
height: 100%;
|
|
4859
4829
|
}
|
|
4860
|
-
`,w5,k5,E5,C5,
|
|
4830
|
+
`,w5,k5,E5,C5,Ar,mC,fC,gC,_r,$5,vC,bC,Lo=class extends(C5=y,E5=[u({type:Number})],k5=[u({type:Number})],w5=[u({type:Number})],C5){constructor(){super(...arguments);a(this,_r);a(this,mC,n(Ar,8,this,null)),n(Ar,11,this);a(this,fC,n(Ar,12,this,0)),n(Ar,15,this);a(this,gC,n(Ar,16,this,100)),n(Ar,19,this)}render(){let t=o(this,_r,$5);return f`
|
|
4861
4831
|
<div
|
|
4862
4832
|
part="root"
|
|
4863
4833
|
role="progressbar"
|
|
4864
4834
|
aria-valuenow="${this.value??L}"
|
|
4865
4835
|
aria-valuemin="${this.min}"
|
|
4866
4836
|
aria-valuemax="${this.max}"
|
|
4867
|
-
?data-complete="${o(this,
|
|
4868
|
-
?data-progressing="${!o(this,
|
|
4869
|
-
?data-indeterminate="${o(this,
|
|
4837
|
+
?data-complete="${o(this,_r,bC)}"
|
|
4838
|
+
?data-progressing="${!o(this,_r,vC)&&!o(this,_r,bC)}"
|
|
4839
|
+
?data-indeterminate="${o(this,_r,vC)}"
|
|
4870
4840
|
style="--progress-value: ${t}%"
|
|
4871
4841
|
>
|
|
4872
4842
|
<div part="track">
|
|
4873
4843
|
<div part="indicator"></div>
|
|
4874
4844
|
</div>
|
|
4875
4845
|
</div>
|
|
4876
|
-
`}};
|
|
4846
|
+
`}};Ar=A(C5),mC=new WeakMap,fC=new WeakMap,gC=new WeakMap,_r=new WeakSet,$5=function(){if(this.value===null)return 0;let t=this.max-this.min;return t<=0?0:Math.max(0,Math.min(100,(this.value-this.min)/t*100))},vC=function(){return this.value===null},bC=function(){return this.value!==null&&this.value>=this.max},c(Ar,4,"value",E5,Lo,mC),c(Ar,4,"min",k5,Lo,fC),c(Ar,4,"max",w5,Lo,gC),T(Ar,Lo),v(Lo,"tagName","dui-progress"),v(Lo,"styles",[w,ZP]);var tU=k`
|
|
4877
4847
|
:host {
|
|
4878
4848
|
--progress-height: var(--space-2);
|
|
4879
4849
|
}
|
|
@@ -4903,7 +4873,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4903
4873
|
left: 100%;
|
|
4904
4874
|
}
|
|
4905
4875
|
}
|
|
4906
|
-
`,
|
|
4876
|
+
`,Ol=class extends Lo{static styles=[...Lo.styles,tU]};customElements.define(Ol.tagName,Ol);var Vf=Symbol("dui-radio-group");var eU=b`
|
|
4907
4877
|
:host {
|
|
4908
4878
|
display: inline-flex;
|
|
4909
4879
|
align-items: center;
|
|
@@ -4947,7 +4917,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4947
4917
|
display: none;
|
|
4948
4918
|
}
|
|
4949
4919
|
|
|
4950
|
-
`,T5,S5,A5,_5,
|
|
4920
|
+
`,T5,S5,A5,_5,zl,Rr,yC,xC,wC,Ps,De,kC,EC,CC,R5,I5,Tp,Ml,Pf,mo=class extends(_5=y,A5=[u()],S5=[u({type:Boolean,reflect:!0})],T5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],_5){constructor(){super();a(this,De);a(this,zl);a(this,yC,n(Rr,8,this,"")),n(Rr,11,this);a(this,xC,n(Rr,12,this,!1)),n(Rr,15,this);a(this,wC,n(Rr,16,this,!1)),n(Rr,19,this);a(this,Ps,new q(this,{context:Vf,subscribe:!0}));a(this,Tp,t=>{t.target.closest("[part='root']")||o(this,Ml).call(this,t)});a(this,Ml,t=>{if(o(this,De,EC)||o(this,De,CC))return;let e=o(this,Ps).value;e&&e.select(this.value)});a(this,Pf,t=>{t.key===" "&&(t.preventDefault(),o(this,Ml).call(this,t))});h(this,zl,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",o(this,Tp))}willUpdate(){p(this,De,I5).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Tp))}render(){let t=o(this,De,kC),e=o(this,De,EC),s=o(this,De,CC),l=o(this,De,R5);return f`
|
|
4951
4921
|
<span
|
|
4952
4922
|
part="root"
|
|
4953
4923
|
role="radio"
|
|
@@ -4973,7 +4943,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4973
4943
|
</span>
|
|
4974
4944
|
</span>
|
|
4975
4945
|
<slot></slot>
|
|
4976
|
-
`}};
|
|
4946
|
+
`}};Rr=A(_5),zl=new WeakMap,yC=new WeakMap,xC=new WeakMap,wC=new WeakMap,Ps=new WeakMap,De=new WeakSet,kC=function(){return o(this,Ps).value?.value===this.value},EC=function(){return this.disabled||(o(this,Ps).value?.disabled??!1)},CC=function(){return this.readOnly||(o(this,Ps).value?.readOnly??!1)},R5=function(){return o(this,Ps).value?.required??!1},I5=function(){o(this,De,kC)?o(this,zl).setFormValue(this.value):o(this,zl).setFormValue(null)},Tp=new WeakMap,Ml=new WeakMap,Pf=new WeakMap,c(Rr,4,"value",A5,mo,yC),c(Rr,4,"disabled",S5,mo,xC),c(Rr,4,"readOnly",T5,mo,wC),T(Rr,mo),v(mo,"tagName","dui-radio"),v(mo,"formAssociated",!0),v(mo,"styles",[w,eU]);var MC=M("value-change",{bubbles:!0,composed:!0}),oU=b`
|
|
4977
4947
|
:host {
|
|
4978
4948
|
display: block;
|
|
4979
4949
|
}
|
|
@@ -4987,7 +4957,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4987
4957
|
[part="root"][data-disabled] {
|
|
4988
4958
|
opacity: 0.5;
|
|
4989
4959
|
}
|
|
4990
|
-
`,L5,z5,
|
|
4960
|
+
`,L5,O5,z5,M5,N5,D5,H5,B5,F5,Ht,$C,TC,SC,AC,_C,RC,IC,LC,V5,zC,Jo,qf,jf,OC,Uf,Ae=class extends(F5=y,B5=[u()],H5=[u()],D5=[u({attribute:"default-value"})],N5=[u({type:Boolean,reflect:!0})],M5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],z5=[u({type:Boolean,reflect:!0})],O5=[C()],L5=[lt({context:Vf}),C()],F5){constructor(){super(...arguments);a(this,Jo);a(this,$C,n(Ht,8,this)),n(Ht,11,this);a(this,TC,n(Ht,12,this)),n(Ht,15,this);a(this,SC,n(Ht,16,this)),n(Ht,19,this);a(this,AC,n(Ht,20,this,!1)),n(Ht,23,this);a(this,_C,n(Ht,24,this,!1)),n(Ht,27,this);a(this,RC,n(Ht,28,this,!1)),n(Ht,31,this);a(this,IC,n(Ht,32,this)),n(Ht,35,this);a(this,qf,()=>this.value??o(this,Jo,V5));a(this,jf,t=>{this.disabled||this.readOnly||(this.value===void 0&&h(this,Jo,t,zC),this.dispatchEvent(MC({value:t})))});a(this,OC,n(Ht,36,this,p(this,Jo,Uf).call(this))),n(Ht,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,Jo,this.defaultValue,zC),this._ctx=p(this,Jo,Uf).call(this)}willUpdate(){this._ctx=p(this,Jo,Uf).call(this)}render(){return f`
|
|
4991
4961
|
<div
|
|
4992
4962
|
part="root"
|
|
4993
4963
|
role="radiogroup"
|
|
@@ -4997,7 +4967,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4997
4967
|
>
|
|
4998
4968
|
<slot></slot>
|
|
4999
4969
|
</div>
|
|
5000
|
-
`}};Ht=A(F5),$C=new WeakMap,TC=new WeakMap,SC=new WeakMap,AC=new WeakMap,_C=new WeakMap,RC=new WeakMap,IC=new WeakMap,
|
|
4970
|
+
`}};Ht=A(F5),$C=new WeakMap,TC=new WeakMap,SC=new WeakMap,AC=new WeakMap,_C=new WeakMap,RC=new WeakMap,IC=new WeakMap,Jo=new WeakSet,qf=new WeakMap,jf=new WeakMap,OC=new WeakMap,Uf=function(){return{name:this.name,value:o(this,qf).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:o(this,jf)}},c(Ht,4,"name",B5,Ae,$C),c(Ht,4,"value",H5,Ae,TC),c(Ht,4,"defaultValue",D5,Ae,SC),c(Ht,4,"disabled",N5,Ae,AC),c(Ht,4,"readOnly",M5,Ae,_C),c(Ht,4,"required",z5,Ae,RC),LC=c(Ht,20,"#internalValue",O5,Jo,IC),V5=LC.get,zC=LC.set,c(Ht,4,"_ctx",L5,Ae,OC),T(Ht,Ae),v(Ae,"tagName","dui-radio-group"),v(Ae,"styles",[w,oU]);var rU=k`
|
|
5001
4971
|
:host {
|
|
5002
4972
|
--radio-size: var(--space-4_5);
|
|
5003
4973
|
gap: var(--space-2);
|
|
@@ -5139,7 +5109,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5139
5109
|
height: 100%;
|
|
5140
5110
|
min-width: 1.25rem;
|
|
5141
5111
|
}
|
|
5142
|
-
`,P5,U5,q5,j5,K5,W5,Y5,G5,X5,J5,Q5,Z5,tN,it,NC,DC,HC,BC,FC,Kf,eN,H,VC,PC,Wf,oN,UC,qC,r1,s1,jC,KC,Yf,i1,WC,YC,n1,rN,GC,XC,a1,sN,JC,QC,iN,nN,ZC,t1,aN,lN,e1,o1,l1,dN,Gf,hs,Hl,Bl,en,on,rn,sn,
|
|
5112
|
+
`,P5,U5,q5,j5,K5,W5,Y5,G5,X5,J5,Q5,Z5,tN,it,NC,DC,HC,BC,FC,Kf,eN,H,VC,PC,Wf,oN,UC,qC,r1,s1,jC,KC,Yf,i1,WC,YC,n1,rN,GC,XC,a1,sN,JC,QC,iN,nN,ZC,t1,aN,lN,e1,o1,l1,dN,Gf,hs,Hl,Bl,en,on,rn,sn,Us,cN,pN,nn,Sp,Xf,Ap,_p,Rp,Ip,Lp,Op,hN,uN,Ir=class Ir extends(tN=y,Z5=[u({reflect:!0})],Q5=[u({type:Boolean,reflect:!0})],J5=[u({attribute:"max-height"})],X5=[C()],G5=[C()],Y5=[C()],W5=[C()],K5=[C()],j5=[C()],q5=[C()],U5=[C()],P5=[C()],tN){constructor(){super(...arguments);a(this,H);a(this,NC,n(it,8,this,"vertical")),n(it,11,this);a(this,DC,n(it,12,this,!1)),n(it,15,this);a(this,HC,n(it,16,this)),n(it,19,this);a(this,BC,n(it,20,this,!1)),n(it,23,this);a(this,VC,n(it,24,this,!1)),n(it,27,this);a(this,UC,n(it,28,this,!1)),n(it,31,this);a(this,jC,n(it,32,this,!1)),n(it,35,this);a(this,WC,n(it,36,this,0)),n(it,39,this);a(this,GC,n(it,40,this,0)),n(it,43,this);a(this,JC,n(it,44,this,0)),n(it,47,this);a(this,ZC,n(it,48,this,0)),n(it,51,this);a(this,e1,n(it,52,this,!0)),n(it,55,this);a(this,hs,!0);a(this,Hl,0);a(this,Bl);a(this,en);a(this,on);a(this,rn,0);a(this,sn,0);a(this,nn,()=>{let t=o(this,H,Us);if(!t)return;let e=t.scrollHeight>t.clientHeight,s=t.scrollWidth>t.clientWidth;h(this,H,e,oN),h(this,H,s,eN),e&&h(this,H,t.clientHeight/t.scrollHeight*100,rN),s&&h(this,H,t.clientWidth/t.scrollWidth*100,sN),o(this,Sp).call(this,t)});a(this,Sp,t=>{if(o(this,H,Wf)){let e=t.scrollHeight-t.clientHeight;h(this,H,e>0?t.scrollTop/e*(100-o(this,H,n1)):0,nN)}if(o(this,H,Kf)){let e=t.scrollWidth-t.clientWidth;h(this,H,e>0?t.scrollLeft/e*(100-o(this,H,a1)):0,lN)}});a(this,Xf,()=>{let t=o(this,H,Us);if(!t)return;h(this,H,!0,i1),o(this,Sp).call(this,t);let e=o(this,hs),s=t.scrollTop<o(this,Hl);h(this,H,t.scrollTop<=0,dN),h(this,hs,t.scrollTop+t.clientHeight>=t.scrollHeight-o(Ir,Gf)),s&&e&&!o(this,hs)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&o(this,hs)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),h(this,Hl,t.scrollTop),clearTimeout(o(this,Bl)),h(this,Bl,setTimeout(()=>{h(this,H,!1,i1)},1e3))});a(this,Ap,()=>{h(this,H,!0,s1),o(this,nn).call(this)});a(this,_p,()=>{h(this,H,!1,s1)});a(this,Rp,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Us);if(s)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientY-d.top)/d.height;s.scrollTop=m*(s.scrollHeight-s.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientX-d.left)/d.width;s.scrollLeft=m*(s.scrollWidth-s.clientWidth)}});a(this,Ip,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Us);s&&(h(this,on,t),t==="vertical"?(h(this,rn,e.clientY),h(this,sn,s.scrollTop)):(h(this,rn,e.clientX),h(this,sn,s.scrollLeft)),document.addEventListener("pointermove",o(this,Lp)),document.addEventListener("pointerup",o(this,Op)))});a(this,Lp,t=>{let e=o(this,H,Us);if(!(!e||!o(this,on)))if(o(this,on)==="vertical"){let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!s)return;let l=t.clientY-o(this,rn),d=s.clientHeight,m=e.scrollHeight-e.clientHeight;e.scrollTop=o(this,sn)+l/d*m}else{let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!s)return;let l=t.clientX-o(this,rn),d=s.clientWidth,m=e.scrollWidth-e.clientWidth;e.scrollLeft=o(this,sn)+l/d*m}});a(this,Op,()=>{h(this,on,void 0),document.removeEventListener("pointermove",o(this,Lp)),document.removeEventListener("pointerup",o(this,Op))})}willUpdate(t){t.has("maxHeight")&&(this.maxHeight?this.style.setProperty("--scroll-area-max-height",this.maxHeight):this.style.removeProperty("--scroll-area-max-height"))}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerenter",o(this,Ap)),this.addEventListener("pointerleave",o(this,_p))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,Ap)),this.removeEventListener("pointerleave",o(this,_p)),o(this,en)?.disconnect(),clearTimeout(o(this,Bl))}firstUpdated(){let t=o(this,H,Us);if(!t)return;h(this,en,new ResizeObserver(()=>o(this,nn).call(this))),o(this,en).observe(t);let e=t.querySelector("slot");if(e){let s=()=>{for(let l of e.assignedElements())o(this,en).observe(l)};e.addEventListener("slotchange",()=>{s(),requestAnimationFrame(()=>o(this,nn).call(this))}),s()}o(this,nn).call(this)}async scrollToBottom(){await this.updateComplete;let t=o(this,H,Us);t&&(t.scrollTop=t.scrollHeight,h(this,hs,!0),h(this,Hl,t.scrollTop))}get isAtTop(){return o(this,H,l1)}get isAtBottom(){return o(this,hs)}render(){return f`
|
|
5143
5113
|
<div
|
|
5144
5114
|
class="ScrollArea"
|
|
5145
5115
|
part="root"
|
|
@@ -5152,7 +5122,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5152
5122
|
</div>
|
|
5153
5123
|
${p(this,H,hN).call(this)} ${p(this,H,uN).call(this)}
|
|
5154
5124
|
</div>
|
|
5155
|
-
`}};it=A(tN),NC=new WeakMap,DC=new WeakMap,HC=new WeakMap,BC=new WeakMap,H=new WeakSet,VC=new WeakMap,UC=new WeakMap,jC=new WeakMap,WC=new WeakMap,GC=new WeakMap,JC=new WeakMap,ZC=new WeakMap,e1=new WeakMap,Gf=new WeakMap,hs=new WeakMap,Hl=new WeakMap,Bl=new WeakMap,en=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,
|
|
5125
|
+
`}};it=A(tN),NC=new WeakMap,DC=new WeakMap,HC=new WeakMap,BC=new WeakMap,H=new WeakSet,VC=new WeakMap,UC=new WeakMap,jC=new WeakMap,WC=new WeakMap,GC=new WeakMap,JC=new WeakMap,ZC=new WeakMap,e1=new WeakMap,Gf=new WeakMap,hs=new WeakMap,Hl=new WeakMap,Bl=new WeakMap,en=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,Us=function(){return this.shadowRoot?.querySelector(".Viewport")??null},cN=function(){return this.orientation==="vertical"||this.orientation==="both"},pN=function(){return this.orientation==="horizontal"||this.orientation==="both"},nn=new WeakMap,Sp=new WeakMap,Xf=new WeakMap,Ap=new WeakMap,_p=new WeakMap,Rp=new WeakMap,Ip=new WeakMap,Lp=new WeakMap,Op=new WeakMap,hN=function(){return!o(this,H,cN)||!o(this,H,Wf)?L:f`
|
|
5156
5126
|
<div
|
|
5157
5127
|
class="Scrollbar"
|
|
5158
5128
|
part="scrollbar-vertical"
|
|
@@ -5186,7 +5156,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5186
5156
|
@pointerdown="${t=>o(this,Ip).call(this,"horizontal",t)}"
|
|
5187
5157
|
></div>
|
|
5188
5158
|
</div>
|
|
5189
|
-
`},c(it,4,"orientation",Z5,
|
|
5159
|
+
`},c(it,4,"orientation",Z5,Ir,NC),c(it,4,"fade",Q5,Ir,DC),c(it,4,"maxHeight",J5,Ir,HC),FC=c(it,20,"#hasOverflowX",X5,H,BC),Kf=FC.get,eN=FC.set,PC=c(it,20,"#hasOverflowY",G5,H,VC),Wf=PC.get,oN=PC.set,qC=c(it,20,"#hovering",Y5,H,UC),r1=qC.get,s1=qC.set,KC=c(it,20,"#scrolling",W5,H,jC),Yf=KC.get,i1=KC.set,YC=c(it,20,"#thumbHeightPercent",K5,H,WC),n1=YC.get,rN=YC.set,XC=c(it,20,"#thumbWidthPercent",j5,H,GC),a1=XC.get,sN=XC.set,QC=c(it,20,"#thumbTopPercent",q5,H,JC),iN=QC.get,nN=QC.set,t1=c(it,20,"#thumbLeftPercent",U5,H,ZC),aN=t1.get,lN=t1.set,o1=c(it,20,"#isAtTop",P5,H,e1),l1=o1.get,dN=o1.set,T(it,Ir),v(Ir,"tagName","dui-scroll-area"),v(Ir,"styles",[w,iU]),a(Ir,Gf,1);var Fl=Ir;var nU=k`
|
|
5190
5160
|
.Scrollbar {
|
|
5191
5161
|
border-radius: var(--radius-sm);
|
|
5192
5162
|
transition: opacity var(--duration-fast);
|
|
@@ -5284,7 +5254,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5284
5254
|
overflow: hidden;
|
|
5285
5255
|
text-overflow: ellipsis;
|
|
5286
5256
|
}
|
|
5287
|
-
`],mN,fN,gN,vN,bN,xN,
|
|
5257
|
+
`],mN,fN,gN,vN,bN,yN,xN,wN,Mp,Xt,d1,c1,p1,h1,u1,m1,f1,g1,an,qs,dt,Jf,ln,Jt,v1,kN,EN,Qf,Zf,tg,eg,og,b1,zp,y1,rg,_e=class extends(wN=y,xN=[u({attribute:!1})],yN=[u({type:String})],bN=[u({type:String})],vN=[u({type:Boolean,reflect:!0})],gN=[u({type:Boolean,attribute:"align-item-to-trigger",reflect:!0})],fN=[u({type:String})],mN=[C()],wN){constructor(){super();a(this,dt);a(this,Mp);a(this,d1,n(Xt,8,this,[])),n(Xt,11,this);a(this,c1,n(Xt,12,this,"")),n(Xt,15,this);a(this,p1,n(Xt,16,this,"Select...")),n(Xt,19,this);a(this,h1,n(Xt,20,this,!1)),n(Xt,23,this);a(this,u1,n(Xt,24,this,!0)),n(Xt,27,this);a(this,m1,n(Xt,28,this,"")),n(Xt,31,this);a(this,f1,n(Xt,32,this,-1)),n(Xt,35,this);a(this,Jf,`select-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,ln,`select-listbox-${crypto.randomUUID().slice(0,8)}`);a(this,Jt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:cU,alignToInner:()=>{if(!this.alignItemToTrigger)return null;let e=o(this,Jt).renderRoot?.querySelector("[data-selected]");return e?.querySelector(".ItemText")??e??null},alignToInnerReference:()=>this.alignItemToTrigger?this.shadowRoot?.querySelector(".Value")??null:null,onOpen:()=>{h(this,dt,o(this,dt,kN),qs)},onClose:()=>{h(this,dt,-1,qs)},renderPopup:t=>f`
|
|
5288
5258
|
<div
|
|
5289
5259
|
class="Popup"
|
|
5290
5260
|
?data-align-inner="${this.alignItemToTrigger&&this.value!==""}"
|
|
@@ -5301,7 +5271,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5301
5271
|
${Si(this.options,e=>e.value,o(this,rg))}
|
|
5302
5272
|
</div>
|
|
5303
5273
|
</div>
|
|
5304
|
-
`}));a(this,Qf,t=>{t.stopPropagation(),!this.disabled&&(o(this,Jt).isOpen?o(this,Jt).close():o(this,Jt).open())});a(this,Zf,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),o(this,Jt).isOpen){let e=this.options[o(this,dt,an)];e&&!e.disabled&&p(this,dt,b1).call(this,e)}else o(this,Jt).open();break}case"ArrowDown":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,
|
|
5274
|
+
`}));a(this,Qf,t=>{t.stopPropagation(),!this.disabled&&(o(this,Jt).isOpen?o(this,Jt).close():o(this,Jt).open())});a(this,Zf,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),o(this,Jt).isOpen){let e=this.options[o(this,dt,an)];e&&!e.disabled&&p(this,dt,b1).call(this,e)}else o(this,Jt).open();break}case"ArrowDown":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,zp).call(this,o(this,dt,an),1),qs):o(this,Jt).open();break}case"ArrowUp":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,zp).call(this,o(this,dt,an),-1),qs):o(this,Jt).open();break}case"Home":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,zp).call(this,-1,1),qs));break}case"End":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,zp).call(this,this.options.length,-1),qs));break}case"Escape":{o(this,Jt).isOpen&&(t.preventDefault(),o(this,Jt).close(),p(this,dt,y1).call(this));break}case"Tab":{o(this,Jt).isOpen&&o(this,Jt).close();break}}});a(this,tg,t=>{t.preventDefault()});a(this,eg,t=>{t.disabled||p(this,dt,b1).call(this,t)});a(this,og,t=>{this.options[t]?.disabled||h(this,dt,t,qs)});a(this,rg,(t,e)=>{let s=t.value===this.value,l=e===o(this,dt,an);return f`
|
|
5305
5275
|
<div
|
|
5306
5276
|
class="Item"
|
|
5307
5277
|
role="option"
|
|
@@ -5346,7 +5316,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5346
5316
|
</span>
|
|
5347
5317
|
</div>
|
|
5348
5318
|
|
|
5349
|
-
`}};Xt=A(wN),Mp=new WeakMap,d1=new WeakMap,c1=new WeakMap,p1=new WeakMap,h1=new WeakMap,u1=new WeakMap,m1=new WeakMap,f1=new WeakMap,dt=new WeakSet,Jf=new WeakMap,ln=new WeakMap,Jt=new WeakMap,v1=function(){return this.options.find(t=>t.value===this.value)},kN=function(){return this.options.findIndex(t=>t.value===this.value)},EN=function(){return o(this,dt,v1)?.label??""},Qf=new WeakMap,Zf=new WeakMap,tg=new WeakMap,eg=new WeakMap,og=new WeakMap,b1=function(t){this.value=t.value,this.dispatchEvent(aU({value:t.value,option:t})),o(this,Jt).close(),p(this,dt,
|
|
5319
|
+
`}};Xt=A(wN),Mp=new WeakMap,d1=new WeakMap,c1=new WeakMap,p1=new WeakMap,h1=new WeakMap,u1=new WeakMap,m1=new WeakMap,f1=new WeakMap,dt=new WeakSet,Jf=new WeakMap,ln=new WeakMap,Jt=new WeakMap,v1=function(){return this.options.find(t=>t.value===this.value)},kN=function(){return this.options.findIndex(t=>t.value===this.value)},EN=function(){return o(this,dt,v1)?.label??""},Qf=new WeakMap,Zf=new WeakMap,tg=new WeakMap,eg=new WeakMap,og=new WeakMap,b1=function(t){this.value=t.value,this.dispatchEvent(aU({value:t.value,option:t})),o(this,Jt).close(),p(this,dt,y1).call(this)},zp=function(t,e){let s=this.options.length,l=t+e;for(;l>=0&&l<s;){if(!this.options[l].disabled)return l;l+=e}return t},y1=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},rg=new WeakMap,c(Xt,4,"options",xN,_e,d1),c(Xt,4,"value",yN,_e,c1),c(Xt,4,"placeholder",bN,_e,p1),c(Xt,4,"disabled",vN,_e,h1),c(Xt,4,"alignItemToTrigger",gN,_e,u1),c(Xt,4,"name",fN,_e,m1),g1=c(Xt,20,"#highlightedIndex",mN,dt,f1),an=g1.get,qs=g1.set,T(Xt,_e),v(_e,"tagName","dui-select"),v(_e,"formAssociated",!0),v(_e,"styles",[w,lU,dU]);var pU=k`
|
|
5350
5320
|
.Trigger {
|
|
5351
5321
|
height: var(--component-height-md);
|
|
5352
5322
|
gap: var(--space-2);
|
|
@@ -5486,13 +5456,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
5486
5456
|
margin: 0;
|
|
5487
5457
|
padding: 0;
|
|
5488
5458
|
}
|
|
5489
|
-
`,CN,$N,sg,
|
|
5459
|
+
`,CN,$N,sg,x1,Lr=class extends($N=y,CN=[u({reflect:!0})],$N){constructor(){super(...arguments);a(this,x1,n(sg,8,this,"horizontal")),n(sg,11,this)}render(){return f`
|
|
5490
5460
|
<div
|
|
5491
5461
|
part="root"
|
|
5492
5462
|
role="separator"
|
|
5493
5463
|
aria-orientation="${this.orientation}"
|
|
5494
5464
|
></div>
|
|
5495
|
-
`}};sg=A($N),
|
|
5465
|
+
`}};sg=A($N),x1=new WeakMap,c(sg,4,"orientation",CN,Lr,x1),T(sg,Lr),v(Lr,"tagName","dui-separator"),v(Lr,"styles",[w,hU]);var uU=k`
|
|
5496
5466
|
:host {
|
|
5497
5467
|
--separator-margin: 0;
|
|
5498
5468
|
}
|
|
@@ -5515,14 +5485,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
5515
5485
|
margin-left: var(--separator-margin);
|
|
5516
5486
|
margin-right: var(--separator-margin);
|
|
5517
5487
|
}
|
|
5518
|
-
`,Ul=class extends
|
|
5488
|
+
`,Ul=class extends Lr{static styles=[...Lr.styles,uU]};customElements.define(Ul.tagName,Ul);var Or=Symbol("dui-sidebar");var M1=M("open-change",{bubbles:!0,composed:!0}),mU=b`
|
|
5519
5489
|
:host {
|
|
5520
5490
|
display: flex;
|
|
5521
5491
|
width: 100%;
|
|
5522
5492
|
height: 100%;
|
|
5523
5493
|
min-height: inherit;
|
|
5524
5494
|
}
|
|
5525
|
-
`,TN,SN,AN,_N,RN,IN,LN,zN,
|
|
5495
|
+
`,TN,SN,AN,_N,RN,IN,LN,ON,zN,MN,zt,w1,k1,E1,C1,$1,T1,S1,NN,O1,xt,A1,_1,z1,ig,R1,I1,Np,ng,js,dn,cn,ag,Dp,Hp,dg,cg,L1,lg,He=class extends(MN=y,zN=[u({type:Boolean})],ON=[u({type:Boolean,attribute:"default-open"})],LN=[u({reflect:!0})],IN=[u({reflect:!0})],RN=[u({reflect:!0})],_N=[C()],AN=[C()],SN=[C()],TN=[lt({context:Or}),C()],MN){constructor(){super(...arguments);a(this,xt);a(this,w1,n(zt,8,this)),n(zt,11,this);a(this,k1,n(zt,12,this,!0)),n(zt,15,this);a(this,E1,n(zt,16,this,"left")),n(zt,19,this);a(this,C1,n(zt,20,this,"sidebar")),n(zt,23,this);a(this,$1,n(zt,24,this,"offcanvas")),n(zt,27,this);a(this,T1,n(zt,28,this,!0)),n(zt,31,this);a(this,A1,n(zt,32,this,!1)),n(zt,35,this);a(this,R1,n(zt,36,this,!1)),n(zt,39,this);a(this,js);a(this,dn);a(this,cn);a(this,Dp,t=>{o(this,xt,Np)?h(this,xt,t,ig):(this.open===void 0&&h(this,xt,t,O1),this.dispatchEvent(M1({open:t})))});a(this,Hp,()=>{o(this,xt,Np)?h(this,xt,!o(this,xt,z1),ig):o(this,Dp).call(this,!o(this,xt,ag))});a(this,dg,t=>{h(this,xt,!t.matches,ng),o(this,xt,Np)||h(this,xt,!1,ig)});a(this,cg,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),o(this,Hp).call(this))});a(this,L1,n(zt,40,this,p(this,xt,lg).call(this))),n(zt,43,this)}connectedCallback(){super.connectedCallback(),this.collapsible==="always"?h(this,xt,!0,ng):(this.open===void 0&&h(this,xt,this.defaultOpen,O1),h(this,js,matchMedia("(min-width: 768px)")),h(this,xt,!o(this,js).matches,ng),h(this,dn,o(this,dg).bind(this)),o(this,js).addEventListener("change",o(this,dn))),h(this,cn,o(this,cg).bind(this)),document.addEventListener("keydown",o(this,cn)),this._ctx=p(this,xt,lg).call(this)}disconnectedCallback(){super.disconnectedCallback(),o(this,js)&&o(this,dn)&&o(this,js).removeEventListener("change",o(this,dn)),o(this,cn)&&document.removeEventListener("keydown",o(this,cn))}willUpdate(){this._ctx=p(this,xt,lg).call(this)}render(){return f`<slot></slot>`}};zt=A(MN),w1=new WeakMap,k1=new WeakMap,E1=new WeakMap,C1=new WeakMap,$1=new WeakMap,T1=new WeakMap,xt=new WeakSet,A1=new WeakMap,R1=new WeakMap,js=new WeakMap,dn=new WeakMap,cn=new WeakMap,ag=function(){return this.open??o(this,xt,NN)},Dp=new WeakMap,Hp=new WeakMap,dg=new WeakMap,cg=new WeakMap,L1=new WeakMap,lg=function(){return{state:o(this,xt,ag)?"expanded":"collapsed",open:o(this,xt,ag),openMobile:o(this,xt,z1),isMobile:o(this,xt,Np),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:o(this,Dp),toggleSidebar:o(this,Hp)}},c(zt,4,"open",zN,He,w1),c(zt,4,"defaultOpen",ON,He,k1),c(zt,4,"side",LN,He,E1),c(zt,4,"variant",IN,He,C1),c(zt,4,"collapsible",RN,He,$1),S1=c(zt,20,"#internalOpen",_N,xt,T1),NN=S1.get,O1=S1.set,_1=c(zt,20,"#openMobile",AN,xt,A1),z1=_1.get,ig=_1.set,I1=c(zt,20,"#isMobile",SN,xt,R1),Np=I1.get,ng=I1.set,c(zt,4,"_ctx",TN,He,L1),T(zt,He),v(He,"tagName","dui-sidebar-provider"),v(He,"styles",[w,mU]);var fU=b`
|
|
5526
5496
|
:host {
|
|
5527
5497
|
display: block;
|
|
5528
5498
|
flex-shrink: 0;
|
|
@@ -5607,7 +5577,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5607
5577
|
.MobilePanel[data-ending-style] {
|
|
5608
5578
|
transform: translateX(var(--mobile-end-x));
|
|
5609
5579
|
}
|
|
5610
|
-
`,DN,HN,BN,FN,zr,N1,D1,pg,P1,St,H1,B1,U1,q1,F1,V1,hg,j1,pn,VN,PN,K1,ug,mg,us=class extends(FN=
|
|
5580
|
+
`,DN,HN,BN,FN,zr,N1,D1,pg,P1,St,H1,B1,U1,q1,F1,V1,hg,j1,pn,VN,PN,K1,ug,mg,us=class extends(FN=y,BN=[C()],HN=[C()],DN=[C()],FN){constructor(){super(...arguments);a(this,St);a(this,N1,n(zr,8,this,!1)),n(zr,11,this);a(this,H1,n(zr,12,this,!1)),n(zr,15,this);a(this,F1,n(zr,16,this,!1)),n(zr,19,this);a(this,pn,new q(this,{context:Or,subscribe:!0}));a(this,ug,()=>{o(this,pn).value?.setOpen(!1)});a(this,mg,t=>{t.key==="Escape"&&(t.preventDefault(),o(this,pn).value?.setOpen(!1))})}willUpdate(){let t=o(this,pn).value;t&&(this.dataset.state=t.state,this.dataset.side=t.side,this.dataset.variant=t.variant,this.dataset.collapsible=t.collapsible,t.isMobile&&(t.openMobile&&!o(this,St,pg)?p(this,St,VN).call(this):!t.openMobile&&o(this,St,pg)&&!o(this,St,hg)&&p(this,St,PN).call(this)))}render(){let t=o(this,pn).value;if(!t)return f``;let s=t.side==="left"?"-100%":"100%";return t.isMobile?o(this,St,pg)?f`
|
|
5611
5581
|
<div
|
|
5612
5582
|
class="Backdrop"
|
|
5613
5583
|
part="backdrop"
|
|
@@ -5644,7 +5614,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5644
5614
|
display: inline-block;
|
|
5645
5615
|
cursor: pointer;
|
|
5646
5616
|
}
|
|
5647
|
-
`,ql=class extends
|
|
5617
|
+
`,ql=class extends y{static tagName="dui-sidebar-trigger";static styles=[w,gU];#t=new q(this,{context:Or,subscribe:!0});connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.addEventListener("click",this.#e),this.addEventListener("keydown",this.#o)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.#e),this.removeEventListener("keydown",this.#o)}#e=()=>{this.#t.value?.toggleSidebar()};#o=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),this.#t.value?.toggleSidebar())};willUpdate(){let r=this.#t.value;if(r){let t=r.isMobile?r.openMobile:r.open;this.setAttribute("aria-expanded",String(t))}}render(){return f`<slot></slot>`}};var vU=b`
|
|
5648
5618
|
:host {
|
|
5649
5619
|
display: flex;
|
|
5650
5620
|
flex-direction: column;
|
|
@@ -5652,7 +5622,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5652
5622
|
min-height: 0;
|
|
5653
5623
|
overflow: hidden;
|
|
5654
5624
|
}
|
|
5655
|
-
`,jl=class extends
|
|
5625
|
+
`,jl=class extends y{static tagName="dui-sidebar-content";static styles=[w,vU];render(){return f`
|
|
5656
5626
|
<dui-scroll-area>
|
|
5657
5627
|
<slot></slot>
|
|
5658
5628
|
</dui-scroll-area>
|
|
@@ -5661,19 +5631,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
5661
5631
|
display: flex;
|
|
5662
5632
|
flex-direction: column;
|
|
5663
5633
|
}
|
|
5664
|
-
`,Kl=class extends
|
|
5634
|
+
`,Kl=class extends y{static tagName="dui-sidebar-header";static styles=[w,bU];render(){return f`<slot></slot>`}};var yU=b`
|
|
5665
5635
|
:host {
|
|
5666
5636
|
display: flex;
|
|
5667
5637
|
flex-direction: column;
|
|
5668
5638
|
}
|
|
5669
|
-
`,Wl=class extends
|
|
5639
|
+
`,Wl=class extends y{static tagName="dui-sidebar-footer";static styles=[w,yU];render(){return f`<slot></slot>`}};var xU=b`
|
|
5670
5640
|
:host {
|
|
5671
5641
|
display: flex;
|
|
5672
5642
|
flex-direction: column;
|
|
5673
5643
|
position: relative;
|
|
5674
5644
|
overflow: hidden;
|
|
5675
5645
|
}
|
|
5676
|
-
`,Yl=class extends
|
|
5646
|
+
`,Yl=class extends y{static tagName="dui-sidebar-group";static styles=[w,xU];render(){return f`
|
|
5677
5647
|
<slot name="label"></slot>
|
|
5678
5648
|
<slot></slot>
|
|
5679
5649
|
`}};var wU=b`
|
|
@@ -5688,7 +5658,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5688
5658
|
:host([data-icon-collapsed]) {
|
|
5689
5659
|
opacity: 0;
|
|
5690
5660
|
}
|
|
5691
|
-
`,Gl=class extends
|
|
5661
|
+
`,Gl=class extends y{static tagName="dui-sidebar-group-label";static styles=[w,wU];#t=new q(this,{context:Or,subscribe:!0});get#e(){let r=this.#t.value;return r?.collapsible==="icon"&&r?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return f`<slot></slot>`}};var kU=b`
|
|
5692
5662
|
.Menu {
|
|
5693
5663
|
display: flex;
|
|
5694
5664
|
flex-direction: column;
|
|
@@ -5696,7 +5666,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5696
5666
|
margin: 0;
|
|
5697
5667
|
padding: 0;
|
|
5698
5668
|
}
|
|
5699
|
-
`,Xl=class extends
|
|
5669
|
+
`,Xl=class extends y{static tagName="dui-sidebar-menu";static styles=[w,kU];render(){return f`
|
|
5700
5670
|
<ul class="Menu" role="list">
|
|
5701
5671
|
<slot></slot>
|
|
5702
5672
|
</ul>
|
|
@@ -5704,7 +5674,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5704
5674
|
:host {
|
|
5705
5675
|
display: list-item;
|
|
5706
5676
|
}
|
|
5707
|
-
`,Jl=class extends
|
|
5677
|
+
`,Jl=class extends y{static tagName="dui-sidebar-menu-item";static styles=[w,EU];render(){return f`<slot></slot>`}};var CU=b`
|
|
5708
5678
|
:host {
|
|
5709
5679
|
display: block;
|
|
5710
5680
|
}
|
|
@@ -5762,16 +5732,16 @@ label, legend, caption, figcaption, th, td {
|
|
|
5762
5732
|
:host([disabled]) .Button {
|
|
5763
5733
|
pointer-events: none;
|
|
5764
5734
|
}
|
|
5765
|
-
`,UN,qN,jN,KN,WN,fo,W1,Y1,G1,X1,fg,
|
|
5735
|
+
`,UN,qN,jN,KN,WN,fo,W1,Y1,G1,X1,fg,Oo,J1,gg,YN,GN,Q1,go=class extends(WN=y,KN=[u({type:Boolean,reflect:!0})],jN=[u({type:Boolean,reflect:!0})],qN=[u()],UN=[u()],WN){constructor(){super(...arguments);a(this,Oo);a(this,W1,n(fo,8,this,!1)),n(fo,11,this);a(this,Y1,n(fo,12,this,!1)),n(fo,15,this);a(this,G1,n(fo,16,this,"")),n(fo,19,this);a(this,X1,n(fo,20,this)),n(fo,23,this);a(this,fg,new q(this,{context:Or,subscribe:!0}));a(this,gg,t=>{if(this.disabled){t.preventDefault();return}this.href&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("spa-navigate",{detail:{href:this.href},bubbles:!0,composed:!0})))})}render(){return o(this,Oo,J1)&&this.tooltip?f`
|
|
5766
5736
|
<dui-tooltip>
|
|
5767
5737
|
<dui-tooltip-trigger>
|
|
5768
|
-
${p(this,
|
|
5738
|
+
${p(this,Oo,Q1).call(this)}
|
|
5769
5739
|
</dui-tooltip-trigger>
|
|
5770
5740
|
<dui-tooltip-popup side="right">
|
|
5771
5741
|
${this.tooltip}
|
|
5772
5742
|
</dui-tooltip-popup>
|
|
5773
5743
|
</dui-tooltip>
|
|
5774
|
-
`:p(this,
|
|
5744
|
+
`:p(this,Oo,Q1).call(this)}};fo=A(WN),W1=new WeakMap,Y1=new WeakMap,G1=new WeakMap,X1=new WeakMap,fg=new WeakMap,Oo=new WeakSet,J1=function(){let t=o(this,fg).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},gg=new WeakMap,YN=function(){return f`
|
|
5775
5745
|
<button
|
|
5776
5746
|
class="Button"
|
|
5777
5747
|
?disabled=${this.disabled}
|
|
@@ -5793,13 +5763,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
5793
5763
|
<span class="Label"><slot></slot></span>
|
|
5794
5764
|
<span class="Suffix"><slot name="suffix"></slot></span>
|
|
5795
5765
|
</a>
|
|
5796
|
-
`},Q1=function(){let t=o(this,
|
|
5766
|
+
`},Q1=function(){let t=o(this,Oo,J1);return f`
|
|
5797
5767
|
<div
|
|
5798
5768
|
class="Row"
|
|
5799
5769
|
?data-icon-collapsed=${t}
|
|
5800
5770
|
?data-active=${this.active}
|
|
5801
5771
|
>
|
|
5802
|
-
${this.href!==void 0?p(this,
|
|
5772
|
+
${this.href!==void 0?p(this,Oo,GN).call(this):p(this,Oo,YN).call(this)}
|
|
5803
5773
|
</div>
|
|
5804
5774
|
`},c(fo,4,"active",KN,go,W1),c(fo,4,"disabled",jN,go,Y1),c(fo,4,"tooltip",qN,go,G1),c(fo,4,"href",UN,go,X1),T(fo,go),v(go,"tagName","dui-sidebar-menu-button"),v(go,"styles",[w,CU]);var $U=b`
|
|
5805
5775
|
:host {
|
|
@@ -5809,7 +5779,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5809
5779
|
.Separator {
|
|
5810
5780
|
/* Structural only — height and color from theme */
|
|
5811
5781
|
}
|
|
5812
|
-
`,Ql=class extends
|
|
5782
|
+
`,Ql=class extends y{static tagName="dui-sidebar-separator";static styles=[w,$U];render(){return f`<div class="Separator" role="separator"></div>`}};var TU=b`
|
|
5813
5783
|
:host {
|
|
5814
5784
|
display: flex;
|
|
5815
5785
|
flex-direction: column;
|
|
@@ -5819,7 +5789,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5819
5789
|
overflow: hidden;
|
|
5820
5790
|
container-type: size;
|
|
5821
5791
|
}
|
|
5822
|
-
`,Zl=class extends
|
|
5792
|
+
`,Zl=class extends y{static tagName="dui-sidebar-inset";static styles=[w,TU];render(){return f`<slot></slot>`}};var SU=k`
|
|
5823
5793
|
/* ── Host: sticky full-viewport height ── */
|
|
5824
5794
|
/* Percentage heights on internal elements need a definite parent.
|
|
5825
5795
|
Using height: 100dvh + sticky keeps the sidebar pinned while
|
|
@@ -5941,11 +5911,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
5941
5911
|
:host {
|
|
5942
5912
|
margin-bottom: var(--sidebar-header-content-gap);
|
|
5943
5913
|
}
|
|
5944
|
-
`,id=class extends Kl{static styles=[...Kl.styles,LU]};customElements.define(id.tagName,id);var
|
|
5914
|
+
`,id=class extends Kl{static styles=[...Kl.styles,LU]};customElements.define(id.tagName,id);var OU=k``,nd=class extends Zl{static styles=[...Zl.styles,OU]};customElements.define(nd.tagName,nd);var zU=k`
|
|
5945
5915
|
.Menu {
|
|
5946
5916
|
gap: var(--space-px);
|
|
5947
5917
|
}
|
|
5948
|
-
`,ad=class extends Xl{static styles=[...Xl.styles,
|
|
5918
|
+
`,ad=class extends Xl{static styles=[...Xl.styles,zU]};customElements.define(ad.tagName,ad);var MU=k`
|
|
5949
5919
|
:host {
|
|
5950
5920
|
--smb-height: var(--component-height-md);
|
|
5951
5921
|
--smb-padding-x: var(--sidebar-button-inset);
|
|
@@ -6138,7 +6108,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6138
6108
|
white-space: nowrap;
|
|
6139
6109
|
border: 0;
|
|
6140
6110
|
}
|
|
6141
|
-
`,XN,JN,QN,ZN,tD,eD,oD,rD,sD,iD,nD,Fp,wt,Z1,t$,e$,o$,r$,s$,i$,n$,a$,l$,d$,vg,c$,Ft,aD,lD,dD,ud,p$,bg,fd,gd,xg,
|
|
6111
|
+
`,XN,JN,QN,ZN,tD,eD,oD,rD,sD,iD,nD,Fp,wt,Z1,t$,e$,o$,r$,s$,i$,n$,a$,l$,d$,vg,c$,Ft,aD,lD,dD,ud,p$,bg,fd,gd,yg,xg,wg,ce=class extends(nD=y,iD=[u({type:Number})],sD=[u({type:Number})],rD=[u({type:Number})],oD=[u({type:Number})],eD=[u({type:Boolean,reflect:!0})],tD=[u()],ZN=[u({reflect:!0})],QN=[u({reflect:!0})],JN=[u({type:Number})],XN=[C()],nD){constructor(){super();a(this,Ft);a(this,Fp);a(this,Z1,n(wt,8,this,0)),n(wt,11,this);a(this,t$,n(wt,12,this,0)),n(wt,15,this);a(this,e$,n(wt,16,this,100)),n(wt,19,this);a(this,o$,n(wt,20,this,1)),n(wt,23,this);a(this,r$,n(wt,24,this,!1)),n(wt,27,this);a(this,s$,n(wt,28,this,"")),n(wt,31,this);a(this,i$,n(wt,32,this,"")),n(wt,35,this);a(this,n$,n(wt,36,this,"")),n(wt,39,this);a(this,a$,n(wt,40,this)),n(wt,43,this);a(this,l$,n(wt,44,this,!1)),n(wt,47,this);a(this,bg,t=>{if(this.disabled)return;t.preventDefault();let e=p(this,Ft,p$).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e}))),document.addEventListener("pointermove",o(this,fd)),document.addEventListener("pointerup",o(this,gd))});a(this,fd,t=>{o(this,Ft,vg)||h(this,Ft,!0,c$);let e=p(this,Ft,p$).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e})))});a(this,gd,()=>{let t=o(this,Ft,vg);h(this,Ft,!1,c$),document.removeEventListener("pointermove",o(this,fd)),document.removeEventListener("pointerup",o(this,gd)),this.dispatchEvent(Bp({value:this.value}))});a(this,yg,t=>{if(this.disabled)return;let e=this.value,s=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value+s);break;case"PageDown":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value-s);break;case"Home":t.preventDefault(),e=this.min;break;case"End":t.preventDefault(),e=this.max;break;default:return}e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e})),this.dispatchEvent(Bp({value:e})))});a(this,xg,t=>{let e=t.target,s=parseFloat(e.value);!isNaN(s)&&s!==this.value&&(this.value=s,this.dispatchEvent(md({value:s})))});a(this,wg,()=>{this.dispatchEvent(Bp({value:this.value}))});h(this,Fp,this.attachInternals())}willUpdate(){o(this,Fp).setFormValue(String(this.value))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",o(this,fd)),document.removeEventListener("pointerup",o(this,gd))}render(){return f`
|
|
6142
6112
|
<div
|
|
6143
6113
|
part="root"
|
|
6144
6114
|
role="group"
|
|
@@ -6158,7 +6128,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6158
6128
|
<div
|
|
6159
6129
|
part="thumb"
|
|
6160
6130
|
tabindex=${this.disabled?-1:0}
|
|
6161
|
-
@keydown=${o(this,
|
|
6131
|
+
@keydown=${o(this,yg)}
|
|
6162
6132
|
></div>
|
|
6163
6133
|
</div>
|
|
6164
6134
|
|
|
@@ -6175,11 +6145,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
6175
6145
|
aria-valuemin=${this.min}
|
|
6176
6146
|
aria-valuemax=${this.max}
|
|
6177
6147
|
aria-label=${this.label||"Slider"}
|
|
6178
|
-
@input=${o(this,
|
|
6148
|
+
@input=${o(this,xg)}
|
|
6179
6149
|
@change=${o(this,wg)}
|
|
6180
6150
|
/>
|
|
6181
6151
|
</div>
|
|
6182
|
-
`}};wt=A(nD),Fp=new WeakMap,Z1=new WeakMap,t$=new WeakMap,e$=new WeakMap,o$=new WeakMap,r$=new WeakMap,s$=new WeakMap,i$=new WeakMap,n$=new WeakMap,a$=new WeakMap,l$=new WeakMap,Ft=new WeakSet,aD=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},lD=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},dD=function(){let t=this.precision??o(this,Ft,lD);return this.value.toFixed(t)},ud=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},p$=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let s=e.getBoundingClientRect(),l=(t-s.left)/s.width,d=this.min+l*(this.max-this.min);return p(this,Ft,ud).call(this,d)},bg=new WeakMap,fd=new WeakMap,gd=new WeakMap,
|
|
6152
|
+
`}};wt=A(nD),Fp=new WeakMap,Z1=new WeakMap,t$=new WeakMap,e$=new WeakMap,o$=new WeakMap,r$=new WeakMap,s$=new WeakMap,i$=new WeakMap,n$=new WeakMap,a$=new WeakMap,l$=new WeakMap,Ft=new WeakSet,aD=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},lD=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},dD=function(){let t=this.precision??o(this,Ft,lD);return this.value.toFixed(t)},ud=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},p$=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let s=e.getBoundingClientRect(),l=(t-s.left)/s.width,d=this.min+l*(this.max-this.min);return p(this,Ft,ud).call(this,d)},bg=new WeakMap,fd=new WeakMap,gd=new WeakMap,yg=new WeakMap,xg=new WeakMap,wg=new WeakMap,c(wt,4,"value",iD,ce,Z1),c(wt,4,"min",sD,ce,t$),c(wt,4,"max",rD,ce,e$),c(wt,4,"step",oD,ce,o$),c(wt,4,"disabled",eD,ce,r$),c(wt,4,"name",tD,ce,s$),c(wt,4,"label",ZN,ce,i$),c(wt,4,"unit",QN,ce,n$),c(wt,4,"precision",JN,ce,a$),d$=c(wt,20,"#dragging",XN,Ft,l$),vg=d$.get,c$=d$.set,T(wt,ce),v(ce,"tagName","dui-slider"),v(ce,"formAssociated",!0),v(ce,"styles",[w,FU]);var VU=k`
|
|
6183
6153
|
:host {
|
|
6184
6154
|
--slider-track-height: var(--space-1_5);
|
|
6185
6155
|
--slider-thumb-size: var(--space-4_5);
|
|
@@ -6387,7 +6357,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6387
6357
|
from { transform: rotate(0deg); }
|
|
6388
6358
|
to { transform: rotate(360deg); }
|
|
6389
6359
|
}
|
|
6390
|
-
`,cD,pD,kg,h$,Eg,hD,
|
|
6360
|
+
`,cD,pD,kg,h$,Eg,hD,Mr=class extends(pD=y,cD=[u({reflect:!0})],pD){constructor(){super(...arguments);a(this,Eg);a(this,h$,n(kg,8,this,"")),n(kg,11,this)}render(){return f`${p(this,Eg,hD).call(this)}`}};kg=A(pD),h$=new WeakMap,Eg=new WeakSet,hD=function(){switch(this.variant){case"lucide-loader":return UU;case"lucide-loader-circle":return qU;default:return PU}},c(kg,4,"variant",cD,Mr,h$),T(kg,Mr),v(Mr,"tagName","dui-spinner"),v(Mr,"styles",[w,jU]);var KU=k`
|
|
6391
6361
|
:host {
|
|
6392
6362
|
--spinner-size: var(--component-height-xxs);
|
|
6393
6363
|
--spinner-color: currentColor;
|
|
@@ -6409,7 +6379,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6409
6379
|
animation-duration: 3s;
|
|
6410
6380
|
}
|
|
6411
6381
|
}
|
|
6412
|
-
`,bd=class extends
|
|
6382
|
+
`,bd=class extends Mr{static styles=[...Mr.styles,KU]};customElements.define(bd.tagName,bd);var Cg=M("dui-action",{bubbles:!0,composed:!0}),WU=b`
|
|
6413
6383
|
:host {
|
|
6414
6384
|
display: inline-block;
|
|
6415
6385
|
}
|
|
@@ -6468,7 +6438,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6468
6438
|
.Popup[data-ending-style] {
|
|
6469
6439
|
opacity: 0;
|
|
6470
6440
|
}
|
|
6471
|
-
`],uD,mD,fD,gD,vD,bD,
|
|
6441
|
+
`],uD,mD,fD,gD,vD,bD,yD,pe,u$,m$,f$,g$,v$,b$,y$,hn,Ks,Qt,Vp,Vt,x$,$g,Tg,Sg,Ag,_g,Rg,xD,to=class extends(yD=y,bD=[u({reflect:!0})],vD=[u({reflect:!0})],gD=[u({reflect:!0})],fD=[u({attribute:"popup-min-width"})],mD=[u({type:Boolean,reflect:!0})],uD=[C()],yD){constructor(){super(...arguments);a(this,Qt);a(this,u$,n(pe,8,this,"")),n(pe,11,this);a(this,m$,n(pe,12,this,"")),n(pe,15,this);a(this,f$,n(pe,16,this,"")),n(pe,19,this);a(this,g$,n(pe,20,this,"var(--space-28)")),n(pe,23,this);a(this,v$,n(pe,24,this,!1)),n(pe,27,this);a(this,b$,n(pe,28,this,-1)),n(pe,31,this);a(this,Vp,`split-menu-${crypto.randomUUID().slice(0,8)}`);a(this,Vt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:GU,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,Qt,-1,Ks)},onClose:()=>{h(this,Qt,-1,Ks)},renderPopup:t=>f`
|
|
6472
6442
|
<div
|
|
6473
6443
|
class="Popup"
|
|
6474
6444
|
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
@@ -6483,7 +6453,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6483
6453
|
@mousemove="${o(this,Rg)}"
|
|
6484
6454
|
></div>
|
|
6485
6455
|
</div>
|
|
6486
|
-
`}));a(this,$g,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(Cg({}))});a(this,Tg,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(Cg({})))});a(this,Sg,t=>{t.stopPropagation(),!this.disabled&&(o(this,Vt).isOpen?o(this,Vt).close():o(this,Vt).open())});a(this,Ag,t=>{if(this.disabled)return;let e=o(this,Qt,
|
|
6456
|
+
`}));a(this,$g,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(Cg({}))});a(this,Tg,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(Cg({})))});a(this,Sg,t=>{t.stopPropagation(),!this.disabled&&(o(this,Vt).isOpen?o(this,Vt).close():o(this,Vt).open())});a(this,Ag,t=>{if(this.disabled)return;let e=o(this,Qt,x$);switch(t.key){case"Enter":case" ":{if(o(this,Vt).isOpen&&o(this,Qt,hn)>=0){t.preventDefault();let s=e[o(this,Qt,hn)];s&&!s.disabled&&(s.click(),o(this,Vt).close())}else o(this,Vt).isOpen||(t.preventDefault(),o(this,Vt).open());break}case"ArrowDown":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Qt,s,Ks)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Qt,s,Ks)}break}case"Home":{if(o(this,Vt).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Qt,s,Ks)}break}case"End":{if(o(this,Vt).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Qt,s,Ks);break}}break}case"Escape":{o(this,Vt).isOpen&&(t.preventDefault(),o(this,Vt).close(),p(this,Qt,xD).call(this));break}case"Tab":{o(this,Vt).isOpen&&o(this,Vt).close();break}}});a(this,_g,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Vt).close()});a(this,Rg,()=>{o(this,Qt,hn)>=0&&h(this,Qt,-1,Ks)})}updated(){let t=o(this,Qt,x$);for(let e=0;e<t.length;e++)e===o(this,Qt,hn)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
|
|
6487
6457
|
<div class="Root" part="root">
|
|
6488
6458
|
<button
|
|
6489
6459
|
class="Action"
|
|
@@ -6519,7 +6489,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6519
6489
|
</slot>
|
|
6520
6490
|
</button>
|
|
6521
6491
|
</div>
|
|
6522
|
-
`}};pe=A(
|
|
6492
|
+
`}};pe=A(yD),u$=new WeakMap,m$=new WeakMap,f$=new WeakMap,g$=new WeakMap,v$=new WeakMap,b$=new WeakMap,Qt=new WeakSet,Vp=new WeakMap,Vt=new WeakMap,x$=function(){return[...(o(this,Vt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},$g=new WeakMap,Tg=new WeakMap,Sg=new WeakMap,Ag=new WeakMap,_g=new WeakMap,Rg=new WeakMap,xD=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},c(pe,4,"variant",bD,to,u$),c(pe,4,"appearance",vD,to,m$),c(pe,4,"size",gD,to,f$),c(pe,4,"popupMinWidth",fD,to,g$),c(pe,4,"disabled",mD,to,v$),y$=c(pe,20,"#highlightedIndex",uD,Qt,b$),hn=y$.get,Ks=y$.set,T(pe,to),v(to,"tagName","dui-split-button"),v(to,"styles",[w,WU,YU]);var XU=k`
|
|
6523
6493
|
/* =================================================================
|
|
6524
6494
|
* Reuses the button's two-axis variant system:
|
|
6525
6495
|
* variant → semantic intent (neutral, primary, danger)
|
|
@@ -6830,7 +6800,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6830
6800
|
.Menu {
|
|
6831
6801
|
padding: var(--space-1);
|
|
6832
6802
|
}
|
|
6833
|
-
`,
|
|
6803
|
+
`,yd=class extends to{static styles=[...to.styles,XU]};customElements.define(yd.tagName,yd);var xd=Symbol("dui-splitter");var G$=M("value-change",{bubbles:!0,composed:!0}),X$=M("collapse-change",{bubbles:!0,composed:!0}),JU=b`
|
|
6834
6804
|
:host {
|
|
6835
6805
|
display: block;
|
|
6836
6806
|
/*
|
|
@@ -6858,7 +6828,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6858
6828
|
[part="root"][data-orientation="vertical"] {
|
|
6859
6829
|
flex-direction: column;
|
|
6860
6830
|
}
|
|
6861
|
-
`,QU="DUI-SPLITTER-PANEL",ZU="DUI-SPLITTER-HANDLE";function w$(i){if(i.length===0)return[];let t=i.map(d=>d.defaultSize),e=t.reduce((d,m)=>d+(m??0),0),s=t.filter(d=>d===void 0).length,l;if(s===0)l=t.map(d=>d??0);else{let m=Math.max(0,100-e)/s;l=t.map(g=>g??m)}return Pp(l)}function Pp(i){let r=i.length;if(r===0)return[];let t=i.reduce((e,s)=>e+s,0);if(t<=0){let e=100/r;return i.map(()=>e)}return i.map(e=>e*100/t)}function H$(i,r){return r.has(i.id)?0:i.minSize}function tq(i,r,t,e,s,l){let d=[...i],m=t,g=e;if(m<0||g<0||m>=d.length||g>=d.length)return d;let E=H$(r[m],l),$=H$(r[g],l),
|
|
6831
|
+
`,QU="DUI-SPLITTER-PANEL",ZU="DUI-SPLITTER-HANDLE";function w$(i){if(i.length===0)return[];let t=i.map(d=>d.defaultSize),e=t.reduce((d,m)=>d+(m??0),0),s=t.filter(d=>d===void 0).length,l;if(s===0)l=t.map(d=>d??0);else{let m=Math.max(0,100-e)/s;l=t.map(g=>g??m)}return Pp(l)}function Pp(i){let r=i.length;if(r===0)return[];let t=i.reduce((e,s)=>e+s,0);if(t<=0){let e=100/r;return i.map(()=>e)}return i.map(e=>e*100/t)}function H$(i,r){return r.has(i.id)?0:i.minSize}function tq(i,r,t,e,s,l){let d=[...i],m=t,g=e;if(m<0||g<0||m>=d.length||g>=d.length)return d;let E=H$(r[m],l),$=H$(r[g],l),x=d[m]+s,S=Math.min(r[m].maxSize,Math.max(E,x))-d[m],z=d[g]-S;return z<$?S=d[g]-$:z>r[g].maxSize&&(S=d[g]-r[g].maxSize),d[m]+=S,d[g]-=S,d}function un(i,r,t){if(i.length===0)return[];let s=i.map((l,d)=>t.has(r[d].id)?0:Math.min(r[d].maxSize,Math.max(r[d].minSize,l)));for(let l=0;l<10;l++){let m=100-s.reduce((_,S)=>_+S,0);if(Math.abs(m)<.001)break;let g=s.map((_,S)=>{if(t.has(r[S].id))return{i:S,slack:0};let z=m>0?r[S].maxSize-_:_-r[S].minSize;return{i:S,slack:z}}).filter(({slack:_})=>_>1e-4);if(g.length===0)break;let E=g.reduce((_,S)=>_+S.slack,0),$=Math.min(Math.abs(m),E),x=Math.sign(m);for(let{i:_,slack:S}of g)s[_]+=S/E*$*x}return s}var wD,kD,ED,CD,$D,TD,SD,AD,_D,RD,ID,LD,OD,nt,k$,E$,C$,$$,T$,S$,A$,_$,R$,Ig,eq,R,I$,L$,wd,Lg,Ed,zo,At,Ys,O$,z$,B$,F$,Qo,Zo,Cd,zg,ut,ms,gn,Mo,M$,N$,zD,V$,vo,Mg,Ng,$d,Dg,Hg,Bg,Fg,qp,vn,mn,Up,jp,Vg,P$,Ws,fn,U$,q$,MD,ND,DD,j$,Pg,Ug,D$,Og,Nr,HD,Td,kd,K$,W$,Y$,Kp,Re=class extends(OD=y,LD=[u({type:String,reflect:!0})],ID=[u({type:Array})],RD=[u({type:Array,attribute:"default-value"})],_D=[u({type:Boolean,reflect:!0})],AD=[u({type:Number,attribute:"keyboard-step"})],SD=[u({type:Number,attribute:"keyboard-step-large"})],TD=[u({type:String,attribute:"auto-save-id"})],$D=[vR("slot")],CD=[C()],ED=[C()],kD=[C()],wD=[lt({context:xd}),C()],OD){constructor(){super(...arguments);a(this,R);a(this,k$,n(nt,8,this,"horizontal")),n(nt,11,this);a(this,E$,n(nt,12,this)),n(nt,15,this);a(this,C$,n(nt,16,this,[])),n(nt,19,this);a(this,$$,n(nt,20,this,!1)),n(nt,23,this);a(this,T$,n(nt,24,this,10)),n(nt,27,this);a(this,S$,n(nt,28,this,25)),n(nt,31,this);a(this,A$,n(nt,32,this)),n(nt,35,this);a(this,_$,n(nt,36,this)),n(nt,39,this);a(this,I$,n(nt,40,this,[])),n(nt,43,this);a(this,Ed,!1);a(this,zo,[]);a(this,At,new Set);a(this,Ys,new Map);a(this,O$,n(nt,44,this,!1)),n(nt,47,this);a(this,Qo,new Map);a(this,Zo,new Map);a(this,Cd,new WeakMap);a(this,zg,0);a(this,ut,[]);a(this,ms,new Map);a(this,gn,new Map);a(this,Mo,null);a(this,M$,n(nt,48,this)),n(nt,51,this);a(this,vo,null);a(this,Mg,t=>{o(this,Qo).set(t.id,t),p(this,R,kd).call(this)});a(this,Ng,t=>{o(this,Qo).delete(t),p(this,R,kd).call(this)});a(this,$d,t=>{let e=o(this,ut).indexOf(t);return e===-1?0:p(this,R,Nr).call(this)[e]??0});a(this,Dg,t=>{let e=o(this,Cd).get(t.el);return e||(e=`h${Cs(this,zg)._++}`,o(this,Cd).set(t.el,e)),o(this,Zo).set(e,t),p(this,R,kd).call(this),e});a(this,Hg,t=>{o(this,Zo).delete(t),p(this,R,kd).call(this)});a(this,Bg,(t,e)=>{let s=o(this,Zo).get(t);s&&(o(this,Zo).set(t,{...s,...e}),this.requestUpdate())});a(this,Fg,(t,e)=>{if(this.disabled)return;let s=o(this,Zo).get(t);if(!s||s.disabled)return;let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return;let m=this.getBoundingClientRect(),g=this.orientation==="horizontal",E=g?m.width:m.height;if(E<=0)return;let $=0;for(let _ of o(this,Zo).values()){let S=_.el.getBoundingClientRect();$+=g?S.width:S.height}let x=E-$;x<=0||(h(this,Mo,{handleId:t,startSizes:[...p(this,R,Nr).call(this)],startCoord:g?e.clientX:e.clientY,rootSize:x,pointerId:e.pointerId,active:!1}),window.addEventListener("pointermove",o(this,qp)),window.addEventListener("pointerup",o(this,vn)),window.addEventListener("pointercancel",o(this,vn)))});a(this,qp,t=>{let e=o(this,Mo);if(!e||t.pointerId!==e.pointerId)return;if(this.disabled){p(this,R,mn).call(this);return}let d=(this.orientation==="horizontal"?t.clientX:t.clientY)-e.startCoord;if(!e.active){if(Math.abs(d)<1)return;e.active=!0,h(this,R,!0,F$),h(this,R,e.handleId,V$)}let m=d/e.rootSize*100,g=p(this,R,P$).call(this,e.handleId,e.startSizes,m);g&&p(this,R,Ws).call(this,g)});a(this,vn,t=>{let e=o(this,Mo);!e||t.pointerId!==e.pointerId||p(this,R,mn).call(this)});a(this,jp,(t,e)=>{if(this.disabled)return;let s=o(this,Zo).get(t);if(!s||s.disabled||!Number.isFinite(e)||e===0)return;let l=[...p(this,R,Nr).call(this)],d=p(this,R,P$).call(this,t,l,e);d&&(p(this,R,Ws).call(this,d),p(this,R,U$).call(this,l))});a(this,Vg,t=>{if(this.disabled)return;let e=o(this,Zo).get(t);if(!e||e.disabled)return;let s=o(this,ms).get(t);if(!s)return;let l=o(this,ut).indexOf(s);if(l===-1||l>=o(this,zo).length)return;let d=p(this,R,Nr).call(this),g=o(this,zo)[l]-d[l];Math.abs(g)<.01||o(this,jp).call(this,t,g)});a(this,Pg,t=>o(this,At).has(t));a(this,Ug,t=>{let e=o(this,ms).get(t);if(!e)return null;let s=o(this,Qo).get(e);if(!s)return null;let l=o(this,$d).call(this,e);return{valueNow:Math.round(l),valueMin:s.minSize,valueMax:s.maxSize,controls:e}});a(this,D$,n(nt,52,this,p(this,R,Og).call(this))),n(nt,55,this);a(this,Td,!1);a(this,Kp,()=>{p(this,R,kd).call(this)})}getSizes(){return[...p(this,R,Nr).call(this)]}getPanelSize(t){return o(this,$d).call(this,t)}isPanelCollapsed(t){return o(this,At).has(t)}setSizes(t){if(o(this,ut).length===0)return;if(t.length!==o(this,ut).length){console.warn(`[dui-splitter] setSizes: expected ${o(this,ut).length} sizes, got ${t.length}`);return}let e=p(this,R,Up).call(this);if(!e)return;let s=t.map((d,m)=>o(this,At).has(e[m].id)?0:d),l=un(Pp(s),e,o(this,At));p(this,R,Ws).call(this,l)}resetSizes(){if(o(this,ut).length===0)return;let t=p(this,R,Up).call(this);if(!t)return;o(this,Mo)!==null&&p(this,R,mn).call(this);for(let l of[...o(this,At)])p(this,R,fn).call(this,l,!1);let e=o(this,zo).length===t.length?[...o(this,zo)]:w$(t),s=un(e,t,o(this,At));p(this,R,Ws).call(this,s)}collapsePanel(t){if(o(this,ut).length===0||o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1){console.warn(`[dui-splitter] collapsePanel: unknown panel id "${t}"`);return}let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=[...p(this,R,Nr).call(this)],d=l[e];if(d<=0){p(this,R,fn).call(this,t,!0,s[e].defaultSize??100/s.length),p(this,R,Ws).call(this,un(l,s,o(this,At)));return}let m=[...l];m[e]=0;let g=e+1,E=e-1,$=x=>s[x].maxSize-l[x];if(g<s.length&&$(g)>=d-1e-4)m[g]=l[g]+d;else if(E>=0&&$(E)>=d-1e-4)m[E]=l[E]+d;else{let x=s.map((S,z)=>({i:z,slack:z===e?0:Math.max(0,$(z))})).filter(S=>S.slack>1e-4),_=x.reduce((S,z)=>S+z.slack,0);if(_>0){let S=Math.min(d,_);for(let{i:z,slack:B}of x)m[z]=l[z]+B/_*S}}p(this,R,fn).call(this,t,!0,d),p(this,R,Ws).call(this,un(m,s,o(this,At)))}expandPanel(t){if(o(this,ut).length===0||!o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1)return;let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=o(this,Ys).get(t)??s[e].defaultSize??100/s.length;p(this,R,fn).call(this,t,!1);let d=[...p(this,R,Nr).call(this)],m=[...d];m[e]=l;let g=e+1,E=e-1,$=_=>Math.max(0,d[_]-H$(s[_],o(this,At))),x=0;if(g<s.length&&$(g)>=l-1e-4)m[g]=d[g]-l,x=l;else if(E>=0&&$(E)>=l-1e-4)m[E]=d[E]-l,x=l;else{let _=s.map((B,j)=>({i:j,slack:j===e?0:$(j)})).filter(B=>B.slack>1e-4),S=_.reduce((B,j)=>B+j.slack,0),z=Math.min(l,S);for(let{i:B,slack:j}of _)m[B]=d[B]-j/S*z;x=z}x<l-1e-4&&(m[e]=x),p(this,R,Ws).call(this,un(m,s,o(this,At)))}connectedCallback(){super.connectedCallback(),this._ctx=p(this,R,Og).call(this)}willUpdate(t){t.has("disabled")&&this.disabled&&o(this,Mo)!==null&&p(this,R,mn).call(this),this._ctx=p(this,R,Og).call(this)}firstUpdated(){o(this,R,Ig)?.addEventListener("slotchange",o(this,Kp)),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),o(this,R,Ig)?.removeEventListener("slotchange",o(this,Kp)),o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null))}render(){return f`
|
|
6862
6832
|
<div
|
|
6863
6833
|
part="root"
|
|
6864
6834
|
data-orientation=${this.orientation}
|
|
@@ -6867,7 +6837,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6867
6837
|
>
|
|
6868
6838
|
<slot></slot>
|
|
6869
6839
|
</div>
|
|
6870
|
-
`}};nt=A(
|
|
6840
|
+
`}};nt=A(OD),k$=new WeakMap,E$=new WeakMap,C$=new WeakMap,$$=new WeakMap,T$=new WeakMap,S$=new WeakMap,A$=new WeakMap,_$=new WeakMap,R=new WeakSet,I$=new WeakMap,Ed=new WeakMap,zo=new WeakMap,At=new WeakMap,Ys=new WeakMap,O$=new WeakMap,Qo=new WeakMap,Zo=new WeakMap,Cd=new WeakMap,zg=new WeakMap,ut=new WeakMap,ms=new WeakMap,gn=new WeakMap,Mo=new WeakMap,M$=new WeakMap,vo=new WeakMap,Mg=new WeakMap,Ng=new WeakMap,$d=new WeakMap,Dg=new WeakMap,Hg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,qp=new WeakMap,vn=new WeakMap,mn=function(){let t=o(this,Mo);if(!t)return;window.removeEventListener("pointermove",o(this,qp)),window.removeEventListener("pointerup",o(this,vn)),window.removeEventListener("pointercancel",o(this,vn));let e=t.active,s=t.startSizes;h(this,Mo,null),h(this,R,!1,F$),h(this,R,void 0,V$),e&&(p(this,R,U$).call(this,s),p(this,R,DD).call(this))},Up=function(){let t=o(this,ut).map(e=>o(this,Qo).get(e)).filter(e=>e!==void 0);return t.length!==o(this,ut).length?null:t},jp=new WeakMap,Vg=new WeakMap,P$=function(t,e,s){let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return null;let m=o(this,ut).indexOf(l),g=o(this,ut).indexOf(d);if(m===-1||g===-1||e.length!==o(this,ut).length)return null;let E=o(this,ut).map($=>o(this,Qo).get($)).filter($=>$!==void 0);return E.length!==o(this,ut).length?null:tq(e,E,m,g,s,o(this,At))},Ws=function(t){if(o(this,At).size>0)for(let e=0;e<o(this,ut).length;e++){let s=o(this,ut)[e];o(this,At).has(s)&&(t[e]??0)>.01&&p(this,R,fn).call(this,s,!1)}this.value===void 0&&(h(this,R,t,Lg),p(this,R,ND).call(this)),this.dispatchEvent(G$([...t])),this.requestUpdate()},fn=function(t,e,s){o(this,At).has(t)!==e&&(e?(o(this,At).add(t),s!==void 0&&s>.01&&o(this,Ys).set(t,s)):(o(this,At).delete(t),o(this,Ys).delete(t)),this.dispatchEvent(X$({panelId:t,collapsed:e})),this.requestUpdate())},U$=function(t){if(o(this,ut).length===0)return;let e=p(this,R,Nr).call(this);for(let s=0;s<o(this,ut).length;s++){let l=o(this,ut)[s];if(o(this,At).has(l))continue;let d=o(this,Qo).get(l);if(!d?.collapsible||(e[s]??0)>=.01)continue;let m=t?.[s],g=m!==void 0&&m>.01?m:d.defaultSize??100/o(this,ut).length;p(this,R,fn).call(this,l,!0,g)}},q$=function(){if(!this.autoSaveId||this.value!==void 0||o(this,ut).length===0)return null;let t=[...o(this,ut)].sort().join("|");return`dui-splitter:${this.autoSaveId}:${t}`},MD=function(){let t=p(this,R,q$).call(this);if(!t)return null;try{let e=globalThis.localStorage?.getItem(t);if(!e)return null;let s=JSON.parse(e);if(Array.isArray(s)&&s.every(l=>typeof l=="number"&&Number.isFinite(l)))return{sizes:s,collapsed:[]};if(s&&typeof s=="object"&&Array.isArray(s.sizes)&&s.sizes.every(l=>typeof l=="number"&&Number.isFinite(l))&&Array.isArray(s.collapsed)&&s.collapsed.every(l=>typeof l=="string"))return{sizes:s.sizes,collapsed:s.collapsed}}catch{}return null},ND=function(){this.autoSaveId&&(o(this,vo)!==null&&clearTimeout(o(this,vo)),h(this,vo,setTimeout(()=>{h(this,vo,null),p(this,R,j$).call(this)},250)))},DD=function(){o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null)),p(this,R,j$).call(this)},j$=function(){let t=p(this,R,q$).call(this);if(t)try{globalThis.localStorage?.setItem(t,JSON.stringify({sizes:o(this,R,wd),collapsed:[...o(this,At)]}))}catch{}},Pg=new WeakMap,Ug=new WeakMap,D$=new WeakMap,Og=function(){return{orientation:this.orientation,disabled:this.disabled,resizing:o(this,R,B$),draggingHandleId:o(this,R,zD),keyboardStep:this.keyboardStep,keyboardStepLarge:this.keyboardStepLarge,registerPanel:o(this,Mg),unregisterPanel:o(this,Ng),getPanelSize:o(this,$d),isPanelCollapsed:o(this,Pg),registerHandle:o(this,Dg),unregisterHandle:o(this,Hg),updateHandle:o(this,Bg),beginDrag:o(this,Fg),nudge:o(this,jp),resetHandle:o(this,Vg),getHandleAria:o(this,Ug)}},Nr=function(){return this.value!==void 0?p(this,R,HD).call(this,this.value):o(this,R,wd)},HD=function(t){if(t.length!==o(this,ut).length){let e=o(this,ut).length;if(e===0)return[];let s=100/e;return Array.from({length:e},()=>s)}return Pp(t)},Td=new WeakMap,kd=function(){o(this,Td)||(h(this,Td,!0),queueMicrotask(()=>{h(this,Td,!1),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}))},K$=function(){let t=o(this,R,Ig);if(!t){h(this,ut,[]),h(this,ms,new Map),h(this,gn,new Map);return}let e=t.assignedElements(),s=[],l=new Map,d=new Map,m=[],g;for(let E of e){let $=E.tagName;if($===QU){let x=E.panelId;if(x&&o(this,Qo).has(x)){s.push(x);for(let _ of m)d.set(_,x);m.length=0,g=x}}else if($===ZU){let x=o(this,Cd).get(E);x&&g&&(l.set(x,g),m.push(x))}}h(this,ut,s),h(this,ms,l),h(this,gn,d)},W$=function(){let t=o(this,ut).map(s=>o(this,Qo).get(s)).filter(s=>s!==void 0);if(t.length===0){h(this,R,[],Lg),h(this,zo,[]);return}if(this.value!==void 0){h(this,Ed,!0),o(this,zo).length!==t.length&&h(this,zo,un(p(this,R,Nr).call(this),t,o(this,At))),p(this,R,Y$).call(this,t);return}let e;if(o(this,Ed))o(this,R,wd).length!==t.length?(p(this,R,Y$).call(this,t),e=w$(t)):e=[...o(this,R,wd)];else{let s=p(this,R,MD).call(this);if(s&&s.sizes.length===t.length){e=Pp(s.sizes);let l=new Set(t.map(d=>d.id));h(this,At,new Set(s.collapsed.filter(d=>l.has(d))));for(let d=0;d<t.length;d++)o(this,At).has(t[d].id)&&(e[d]=0)}else this.defaultValue.length===t.length?e=Pp(this.defaultValue):e=w$(t);h(this,Ed,!0)}h(this,R,un(e,t,o(this,At)),Lg),o(this,zo).length!==t.length&&h(this,zo,[...o(this,R,wd)])},Y$=function(t){let e=new Set(t.map(s=>s.id));for(let s of[...o(this,At)])e.has(s)||o(this,At).delete(s);for(let s of[...o(this,Ys).keys()])e.has(s)||o(this,Ys).delete(s)},Kp=new WeakMap,c(nt,4,"orientation",LD,Re,k$),c(nt,4,"value",ID,Re,E$),c(nt,4,"defaultValue",RD,Re,C$),c(nt,4,"disabled",_D,Re,$$),c(nt,4,"keyboardStep",AD,Re,T$),c(nt,4,"keyboardStepLarge",SD,Re,S$),c(nt,4,"autoSaveId",TD,Re,A$),R$=c(nt,20,"#slot",$D,R,_$),Ig=R$.get,eq=R$.set,L$=c(nt,20,"#internalSizes",CD,R,I$),wd=L$.get,Lg=L$.set,z$=c(nt,20,"#resizing",ED,R,O$),B$=z$.get,F$=z$.set,N$=c(nt,20,"#draggingHandleId",kD,R,M$),zD=N$.get,V$=N$.set,c(nt,4,"_ctx",wD,Re,D$),T(nt,Re),v(Re,"tagName","dui-splitter"),v(Re,"styles",[w,JU]);var oq=b`
|
|
6871
6841
|
:host {
|
|
6872
6842
|
display: block;
|
|
6873
6843
|
flex: 0 0 auto;
|
|
@@ -6882,7 +6852,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6882
6852
|
height: 100%;
|
|
6883
6853
|
box-sizing: border-box;
|
|
6884
6854
|
}
|
|
6885
|
-
`,BD,FD,VD,PD,UD,qD,jD,KD,Zt,J$,Q$,Z$,tT,eT,oT,rT,bn,Wp,sT,Be=class extends(KD=
|
|
6855
|
+
`,BD,FD,VD,PD,UD,qD,jD,KD,Zt,J$,Q$,Z$,tT,eT,oT,rT,bn,Wp,sT,Be=class extends(KD=y,jD=[u({type:String,attribute:"panel-id"})],qD=[u({type:Number,attribute:"default-size"})],UD=[u({type:Number,attribute:"min-size"})],PD=[u({type:Number,attribute:"max-size"})],VD=[u({type:Boolean})],FD=[u({type:Number})],BD=[Nt({context:xd,subscribe:!0})],KD){constructor(){super(...arguments);a(this,Wp);a(this,J$,n(Zt,8,this,"")),n(Zt,11,this);a(this,Q$,n(Zt,12,this)),n(Zt,15,this);a(this,Z$,n(Zt,16,this,0)),n(Zt,19,this);a(this,tT,n(Zt,20,this,100)),n(Zt,23,this);a(this,eT,n(Zt,24,this,!1)),n(Zt,27,this);a(this,oT,n(Zt,28,this)),n(Zt,31,this);a(this,rT,n(Zt,32,this)),n(Zt,35,this);a(this,bn,!1)}connectedCallback(){super.connectedCallback(),p(this,Wp,sT).call(this)}disconnectedCallback(){super.disconnectedCallback(),o(this,bn)&&this.panelId&&(this._ctx?.unregisterPanel(this.panelId),h(this,bn,!1))}willUpdate(t){if(o(this,bn)&&(t.has("panelId")||t.has("defaultSize")||t.has("minSize")||t.has("maxSize")||t.has("collapsible")||t.has("order"))){let e=t.get("panelId");typeof e=="string"&&e&&e!==this.panelId&&this._ctx?.unregisterPanel(e),p(this,Wp,sT).call(this)}}render(){let t=this._ctx?.getPanelSize(this.panelId)??0,e=this._ctx?.orientation??"horizontal",s=this._ctx?.isPanelCollapsed(this.panelId)??!1;return this.isConnected&&(this.style.flex=`${t} 1 0`,this.toggleAttribute("data-collapsed",s)),f`
|
|
6886
6856
|
<div
|
|
6887
6857
|
part="root"
|
|
6888
6858
|
data-orientation=${e}
|
|
@@ -6917,7 +6887,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6917
6887
|
box-sizing: border-box;
|
|
6918
6888
|
outline: none;
|
|
6919
6889
|
}
|
|
6920
|
-
`,WD,YD,GD,XD,JD,bo,iT,nT,aT,lT,
|
|
6890
|
+
`,WD,YD,GD,XD,JD,bo,iT,nT,aT,lT,yo,pT,ft,dT,cT,hT,uT,Gs,qg,jg,Kg,Wg,Yg,Gg,tr=class extends(JD=y,XD=[u({type:Boolean,reflect:!0})],GD=[Nt({context:xd,subscribe:!0})],YD=[C()],WD=[C()],JD){constructor(){super(...arguments);a(this,ft);a(this,iT,n(bo,8,this,!1)),n(bo,11,this);a(this,nT,n(bo,12,this)),n(bo,15,this);a(this,aT,n(bo,16,this)),n(bo,19,this);a(this,dT,n(bo,20,this,!1)),n(bo,23,this);a(this,qg,t=>{p(this,ft,Gs).call(this)||!o(this,ft,yo)||!this._ctx||t.button!==void 0&&t.button!==0||this._ctx.beginDrag(o(this,ft,yo),t)});a(this,jg,t=>{p(this,ft,Gs).call(this)||t.button===0&&t.preventDefault()});a(this,Kg,t=>{p(this,ft,Gs).call(this)||!o(this,ft,yo)||!this._ctx||(t.preventDefault(),this._ctx.resetHandle(o(this,ft,yo)))});a(this,Wg,t=>{let e=this._ctx,s=o(this,ft,yo);if(p(this,ft,Gs).call(this)||!s||!e)return;let l=e.orientation==="horizontal",d=l?"ArrowLeft":"ArrowUp",m=l?"ArrowRight":"ArrowDown",g=t.shiftKey?e.keyboardStepLarge:e.keyboardStep;switch(t.key){case d:t.preventDefault(),e.nudge(s,-g);break;case m:t.preventDefault(),e.nudge(s,g);break;case"Home":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMin-E.valueNow));break}case"End":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMax-E.valueNow));break}}});a(this,Yg,()=>{h(this,ft,!0,uT)});a(this,Gg,()=>{h(this,ft,!1,uT)})}connectedCallback(){super.connectedCallback(),this._ctx&&h(this,ft,this._ctx.registerHandle({el:this,disabled:p(this,ft,Gs).call(this)}),pT)}disconnectedCallback(){super.disconnectedCallback(),o(this,ft,yo)&&this._ctx&&(this._ctx.unregisterHandle(o(this,ft,yo)),h(this,ft,void 0,pT))}willUpdate(t){t.has("disabled")&&o(this,ft,yo)&&this._ctx&&this._ctx.updateHandle(o(this,ft,yo),{disabled:p(this,ft,Gs).call(this)})}render(){let t=this._ctx,e=t?.orientation??"horizontal",s=p(this,ft,Gs).call(this),l=o(this,ft,yo)&&t?t.getHandleAria(o(this,ft,yo)):null,d=t?.draggingHandleId!==void 0&&t.draggingHandleId===o(this,ft,yo),m=e==="horizontal"?"vertical":"horizontal";return this.isConnected&&(this.dataset.orientation=e,this.toggleAttribute("data-disabled",s),this.toggleAttribute("data-dragging",d),this.toggleAttribute("data-focused",o(this,ft,hT))),f`
|
|
6921
6891
|
<div
|
|
6922
6892
|
part="root"
|
|
6923
6893
|
role="separator"
|
|
@@ -6937,7 +6907,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6937
6907
|
@focus=${o(this,Yg)}
|
|
6938
6908
|
@blur=${o(this,Gg)}
|
|
6939
6909
|
></div>
|
|
6940
|
-
`}};bo=A(JD),iT=new WeakMap,nT=new WeakMap,aT=new WeakMap,ft=new WeakSet,dT=new WeakMap,
|
|
6910
|
+
`}};bo=A(JD),iT=new WeakMap,nT=new WeakMap,aT=new WeakMap,ft=new WeakSet,dT=new WeakMap,Gs=function(){return this.disabled||(this._ctx?.disabled??!1)},qg=new WeakMap,jg=new WeakMap,Kg=new WeakMap,Wg=new WeakMap,Yg=new WeakMap,Gg=new WeakMap,c(bo,4,"disabled",XD,tr,iT),c(bo,4,"_ctx",GD,tr,nT),lT=c(bo,20,"#handleId",YD,ft,aT),yo=lT.get,pT=lT.set,cT=c(bo,20,"#focused",WD,ft,dT),hT=cT.get,uT=cT.set,T(bo,tr),v(tr,"tagName","dui-splitter-handle"),v(tr,"styles",[w,rq]);var Sd=class extends Re{};customElements.define(Sd.tagName,Sd);var Ad=class extends Be{};customElements.define(Ad.tagName,Ad);var sq=k`
|
|
6941
6911
|
/* Host = interaction target. Cross-axis size depends on orientation. */
|
|
6942
6912
|
:host([data-orientation="horizontal"]) {
|
|
6943
6913
|
width: var(--splitter-handle-size, var(--space-2));
|
|
@@ -7004,7 +6974,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7004
6974
|
background: var(--border);
|
|
7005
6975
|
opacity: 0.5;
|
|
7006
6976
|
}
|
|
7007
|
-
`,_d=class extends
|
|
6977
|
+
`,_d=class extends tr{static styles=[...tr.styles,sq]};customElements.define(_d.tagName,_d);var OT=M("value-change",{bubbles:!0,composed:!0}),Yp=M("value-committed",{bubbles:!0,composed:!0}),iq=b`
|
|
7008
6978
|
:host {
|
|
7009
6979
|
display: block;
|
|
7010
6980
|
}
|
|
@@ -7057,7 +7027,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7057
7027
|
width: 0;
|
|
7058
7028
|
height: 0;
|
|
7059
7029
|
}
|
|
7060
|
-
`,QD,ZD,tH,eH,oH,rH,sH,iH,nH,aH,lH,dH,cH,at,mT,fT,gT,vT,bT,xT,
|
|
7030
|
+
`,QD,ZD,tH,eH,oH,rH,sH,iH,nH,aH,lH,dH,cH,at,mT,fT,gT,vT,bT,yT,xT,wT,kT,ET,CT,$T,pH,AT,X,TT,ST,_T,RT,Dr,hH,uH,Rd,IT,Id,Gp,Xp,LT,Xg,Jg,Qg,Zg,tv,se=class extends(cH=y,dH=[u({type:Number})],lH=[u({type:Number,attribute:"default-value"})],aH=[u({type:Number})],nH=[u({type:Number})],iH=[u({type:Number})],sH=[u({type:Number,attribute:"large-step"})],rH=[u({type:Boolean,reflect:!0})],oH=[u({type:Boolean,reflect:!0,attribute:"read-only"})],eH=[u({type:Boolean})],tH=[u()],ZD=[C()],QD=[C()],cH){constructor(){super(...arguments);a(this,X);a(this,mT,n(at,8,this)),n(at,11,this);a(this,fT,n(at,12,this)),n(at,15,this);a(this,gT,n(at,16,this)),n(at,19,this);a(this,vT,n(at,20,this)),n(at,23,this);a(this,bT,n(at,24,this,1)),n(at,27,this);a(this,yT,n(at,28,this,10)),n(at,31,this);a(this,xT,n(at,32,this,!1)),n(at,35,this);a(this,wT,n(at,36,this,!1)),n(at,39,this);a(this,kT,n(at,40,this,!1)),n(at,43,this);a(this,ET,n(at,44,this)),n(at,47,this);a(this,CT,n(at,48,this)),n(at,51,this);a(this,TT,n(at,52,this,"")),n(at,55,this);a(this,Gp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Dr)??this.min??0;p(this,X,Id).call(this,e+t)});a(this,Xp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Dr)??this.max??0;p(this,X,Id).call(this,e-t)});a(this,Xg,t=>{h(this,X,t.target.value,RT)});a(this,Jg,()=>{p(this,X,LT).call(this)});a(this,Qg,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),o(this,Gp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"ArrowDown":t.preventDefault(),o(this,Xp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.max));break;case"Enter":p(this,X,LT).call(this);break}});a(this,Zg,()=>{o(this,Xp).call(this,this.step);let t=o(this,X,Dr);t!==void 0&&this.dispatchEvent(Yp({value:t}))});a(this,tv,()=>{o(this,Gp).call(this,this.step);let t=o(this,X,Dr);t!==void 0&&this.dispatchEvent(Yp({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,X,p(this,X,IT).call(this,this.defaultValue),AT),p(this,X,Rd).call(this)}willUpdate(){p(this,X,Rd).call(this)}render(){let t=o(this,X,Dr);return f`
|
|
7061
7031
|
<div
|
|
7062
7032
|
part="root"
|
|
7063
7033
|
?data-disabled="${this.disabled}"
|
|
@@ -7076,7 +7046,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7076
7046
|
part="input"
|
|
7077
7047
|
type="text"
|
|
7078
7048
|
inputmode="decimal"
|
|
7079
|
-
.value="${
|
|
7049
|
+
.value="${cr(o(this,X,_T))}"
|
|
7080
7050
|
?disabled="${this.disabled}"
|
|
7081
7051
|
?readonly="${this.readOnly}"
|
|
7082
7052
|
?required="${this.required}"
|
|
@@ -7100,7 +7070,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7100
7070
|
.value="${String(t??"")}"
|
|
7101
7071
|
/>`:L}
|
|
7102
7072
|
</div>
|
|
7103
|
-
`}};at=A(cH),mT=new WeakMap,fT=new WeakMap,gT=new WeakMap,vT=new WeakMap,bT=new WeakMap,
|
|
7073
|
+
`}};at=A(cH),mT=new WeakMap,fT=new WeakMap,gT=new WeakMap,vT=new WeakMap,bT=new WeakMap,yT=new WeakMap,xT=new WeakMap,wT=new WeakMap,kT=new WeakMap,ET=new WeakMap,CT=new WeakMap,X=new WeakSet,TT=new WeakMap,Dr=function(){return this.value??o(this,X,pH)},hH=function(){let t=o(this,X,Dr);return t===void 0?!0:this.min===void 0||t>this.min},uH=function(){let t=o(this,X,Dr);return t===void 0?!0:this.max===void 0||t<this.max},Rd=function(){let t=o(this,X,Dr);h(this,X,t!==void 0?String(t):"",RT)},IT=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Id=function(t){let e=p(this,X,IT).call(this,t);this.value===void 0&&h(this,X,e,AT),this.dispatchEvent(OT({value:e}))},Gp=new WeakMap,Xp=new WeakMap,LT=function(){let t=parseFloat(o(this,X,_T));Number.isNaN(t)?p(this,X,Rd).call(this):p(this,X,Id).call(this,t);let e=o(this,X,Dr);e!==void 0&&this.dispatchEvent(Yp({value:e}))},Xg=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,Zg=new WeakMap,tv=new WeakMap,c(at,4,"value",dH,se,mT),c(at,4,"defaultValue",lH,se,fT),c(at,4,"min",aH,se,gT),c(at,4,"max",nH,se,vT),c(at,4,"step",iH,se,bT),c(at,4,"largeStep",sH,se,yT),c(at,4,"disabled",rH,se,xT),c(at,4,"readOnly",oH,se,wT),c(at,4,"required",eH,se,kT),c(at,4,"name",tH,se,ET),$T=c(at,20,"#internalValue",ZD,X,CT),pH=$T.get,AT=$T.set,ST=c(at,20,"#inputText",QD,X,TT),_T=ST.get,RT=ST.set,T(at,se),v(se,"tagName","dui-stepper"),v(se,"shadowRootOptions",{...y.shadowRootOptions,delegatesFocus:!0}),v(se,"styles",[w,iq]);var nq=k`
|
|
7104
7074
|
[part="root"] {
|
|
7105
7075
|
border: var(--border-width-thin) solid var(--border);
|
|
7106
7076
|
border-radius: var(--radius-md);
|
|
@@ -7201,7 +7171,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7201
7171
|
transform: translateX(var(--switch-checked-offset, 0));
|
|
7202
7172
|
}
|
|
7203
7173
|
|
|
7204
|
-
`,mH,fH,gH,vH,bH,xH,
|
|
7174
|
+
`,mH,fH,gH,vH,bH,yH,xH,wH,kH,EH,Jp,Mt,zT,MT,NT,DT,HT,BT,FT,VT,PT,UT,CH,qT,Ie,ev,jT,$H,Qp,Zp,ov,be=class extends(EH=y,kH=[u({type:Boolean,reflect:!0})],wH=[u({type:Boolean,attribute:"default-checked"})],xH=[u({type:Boolean,reflect:!0})],yH=[u({type:Boolean,reflect:!0,attribute:"read-only"})],bH=[u({type:Boolean,reflect:!0})],vH=[u()],gH=[u()],fH=[u({attribute:"unchecked-value"})],mH=[C()],EH){constructor(){super();a(this,Ie);a(this,Jp);a(this,zT,n(Mt,8,this)),n(Mt,11,this);a(this,MT,n(Mt,12,this,!1)),n(Mt,15,this);a(this,NT,n(Mt,16,this,!1)),n(Mt,19,this);a(this,DT,n(Mt,20,this,!1)),n(Mt,23,this);a(this,HT,n(Mt,24,this,!1)),n(Mt,27,this);a(this,BT,n(Mt,28,this)),n(Mt,31,this);a(this,FT,n(Mt,32,this,"on")),n(Mt,35,this);a(this,VT,n(Mt,36,this,"")),n(Mt,39,this);a(this,PT,n(Mt,40,this,!1)),n(Mt,43,this);a(this,Qp,t=>{o(this,Zp).call(this)});a(this,Zp,()=>{if(o(this,Ie,jT)||this.readOnly)return;let t=!o(this,Ie,ev);this.checked===void 0&&h(this,Ie,t,qT),this.dispatchEvent(KT({checked:t}))});a(this,ov,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),o(this,Zp).call(this))});h(this,Jp,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,Ie,!0,qT),this.addEventListener("click",o(this,Qp))}willUpdate(){p(this,Ie,$H).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Qp))}render(){let t=o(this,Ie,ev),e=o(this,Ie,jT);return f`
|
|
7205
7175
|
<span
|
|
7206
7176
|
part="root"
|
|
7207
7177
|
role="switch"
|
|
@@ -7220,7 +7190,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7220
7190
|
<span part="thumb"></span>
|
|
7221
7191
|
</span>
|
|
7222
7192
|
<slot></slot>
|
|
7223
|
-
`}};Mt=A(EH),Jp=new WeakMap,
|
|
7193
|
+
`}};Mt=A(EH),Jp=new WeakMap,zT=new WeakMap,MT=new WeakMap,NT=new WeakMap,DT=new WeakMap,HT=new WeakMap,BT=new WeakMap,FT=new WeakMap,VT=new WeakMap,PT=new WeakMap,Ie=new WeakSet,ev=function(){return this.checked??o(this,Ie,CH)},jT=function(){return this.disabled},$H=function(){let t=o(this,Ie,ev)?this.value:this.uncheckedValue;o(this,Jp).setFormValue(t||null)},Qp=new WeakMap,Zp=new WeakMap,ov=new WeakMap,c(Mt,4,"checked",kH,be,zT),c(Mt,4,"defaultChecked",wH,be,MT),c(Mt,4,"disabled",xH,be,NT),c(Mt,4,"readOnly",yH,be,DT),c(Mt,4,"required",bH,be,HT),c(Mt,4,"name",vH,be,BT),c(Mt,4,"value",gH,be,FT),c(Mt,4,"uncheckedValue",fH,be,VT),UT=c(Mt,20,"#internalChecked",mH,Ie,PT),CH=UT.get,qT=UT.set,T(Mt,be),v(be,"tagName","dui-switch"),v(be,"formAssociated",!0),v(be,"styles",[w,aq]);var lq=k`
|
|
7224
7194
|
:host {
|
|
7225
7195
|
--switch-width: var(--space-9);
|
|
7226
7196
|
--switch-height: var(--space-5);
|
|
@@ -7290,7 +7260,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7290
7260
|
[part="root"][data-checked] [part="thumb"] {
|
|
7291
7261
|
background: oklch(from var(--accent) 0.98 0.01 h);
|
|
7292
7262
|
}
|
|
7293
|
-
`,
|
|
7263
|
+
`,Od=class extends be{static styles=[...be.styles,lq]};customElements.define(Od.tagName,Od);var Xs=Symbol("dui-tabs");var eS=M("value-change",{bubbles:!0,composed:!0}),dq=b`
|
|
7294
7264
|
:host {
|
|
7295
7265
|
display: block;
|
|
7296
7266
|
}
|
|
@@ -7307,11 +7277,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7307
7277
|
:host([controls="footer"]) [part="root"] {
|
|
7308
7278
|
flex-direction: column-reverse;
|
|
7309
7279
|
}
|
|
7310
|
-
`,TH,SH,AH,_H,RH,IH,LH,he,WT,YT,GT,XT,JT,QT,
|
|
7280
|
+
`,TH,SH,AH,_H,RH,IH,LH,he,WT,YT,GT,XT,JT,QT,OH,tS,er,sv,iv,ZT,rv,eo=class extends(LH=y,IH=[u()],RH=[u({attribute:"default-value"})],_H=[u({reflect:!0})],AH=[u({reflect:!0})],SH=[C()],TH=[lt({context:Xs}),C()],LH){constructor(){super(...arguments);a(this,er);a(this,WT,n(he,8,this)),n(he,11,this);a(this,YT,n(he,12,this)),n(he,15,this);a(this,GT,n(he,16,this,"horizontal")),n(he,19,this);a(this,XT,n(he,20,this,"header")),n(he,23,this);a(this,JT,n(he,24,this)),n(he,27,this);a(this,sv,()=>this.value??o(this,er,OH));a(this,iv,t=>{this.value===void 0&&h(this,er,t,tS),this.dispatchEvent(eS(t))});a(this,ZT,n(he,28,this,p(this,er,rv).call(this))),n(he,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,er,this.defaultValue,tS),this._ctx=p(this,er,rv).call(this)}willUpdate(){this._ctx=p(this,er,rv).call(this)}render(){return f`
|
|
7311
7281
|
<div part="root" data-orientation=${this.orientation}>
|
|
7312
7282
|
<slot></slot>
|
|
7313
7283
|
</div>
|
|
7314
|
-
`}};he=A(LH),WT=new WeakMap,YT=new WeakMap,GT=new WeakMap,XT=new WeakMap,JT=new WeakMap,
|
|
7284
|
+
`}};he=A(LH),WT=new WeakMap,YT=new WeakMap,GT=new WeakMap,XT=new WeakMap,JT=new WeakMap,er=new WeakSet,sv=new WeakMap,iv=new WeakMap,ZT=new WeakMap,rv=function(){return{value:o(this,sv).call(this),orientation:this.orientation,select:o(this,iv)}},c(he,4,"value",IH,eo,WT),c(he,4,"defaultValue",RH,eo,YT),c(he,4,"orientation",_H,eo,GT),c(he,4,"controls",AH,eo,XT),QT=c(he,20,"#internalValue",SH,er,JT),OH=QT.get,tS=QT.set,c(he,4,"_ctx",TH,eo,ZT),T(he,eo),v(eo,"tagName","dui-tabs"),v(eo,"styles",[w,dq]);var cq=b`
|
|
7315
7285
|
:host {
|
|
7316
7286
|
display: block;
|
|
7317
7287
|
}
|
|
@@ -7325,11 +7295,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7325
7295
|
[part="list"][data-orientation="vertical"] {
|
|
7326
7296
|
flex-direction: column;
|
|
7327
7297
|
}
|
|
7328
|
-
`,
|
|
7298
|
+
`,zH,MH,nv,oS,zd,Md,av,Hr=class extends(MH=y,zH=[Nt({context:Xs,subscribe:!0})],MH){constructor(){super(...arguments);a(this,Md);a(this,oS,n(nv,8,this)),n(nv,11,this);a(this,zd)}connectedCallback(){super.connectedCallback(),h(this,zd,new ResizeObserver(()=>{p(this,Md,av).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),o(this,zd)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&o(this,zd)?.observe(t),p(this,Md,av).call(this)}updated(){p(this,Md,av).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
|
|
7329
7299
|
<div part="list" role="tablist" data-orientation=${t}>
|
|
7330
7300
|
<slot></slot>
|
|
7331
7301
|
</div>
|
|
7332
|
-
`}};nv=A(MH),oS=new WeakMap,
|
|
7302
|
+
`}};nv=A(MH),oS=new WeakMap,zd=new WeakMap,Md=new WeakSet,av=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(d=>d.tagName==="DUI-TAB"&&d.getAttribute("value")===this._ctx?.value);if(l){let d=t.getBoundingClientRect(),m=l.getBoundingClientRect(),g=m.left-d.left,E=m.width;t.style.setProperty("--active-tab-left",`${g}px`),t.style.setProperty("--active-tab-width",`${E}px`)}},c(nv,4,"_ctx",zH,Hr,oS),T(nv,Hr),v(Hr,"tagName","dui-tabs-list"),v(Hr,"styles",[w,cq]);var pq=b`
|
|
7333
7303
|
:host {
|
|
7334
7304
|
display: block;
|
|
7335
7305
|
}
|
|
@@ -7353,7 +7323,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7353
7323
|
[part="tab"][data-disabled] {
|
|
7354
7324
|
cursor: not-allowed;
|
|
7355
7325
|
}
|
|
7356
|
-
`,NH,DH,HH,BH,
|
|
7326
|
+
`,NH,DH,HH,BH,Br,rS,sS,iS,lv,FH,dv,cv,No=class extends(BH=y,HH=[u()],DH=[u({type:Boolean,reflect:!0})],NH=[Nt({context:Xs,subscribe:!0})],BH){constructor(){super(...arguments);a(this,lv);a(this,rS,n(Br,8,this,"")),n(Br,11,this);a(this,sS,n(Br,12,this,!1)),n(Br,15,this);a(this,iS,n(Br,16,this)),n(Br,19,this);a(this,dv,()=>{this.disabled||this._ctx?.select(this.value)});a(this,cv,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=o(this,lv,FH);return f`
|
|
7357
7327
|
<button
|
|
7358
7328
|
part="tab"
|
|
7359
7329
|
role="tab"
|
|
@@ -7367,7 +7337,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7367
7337
|
>
|
|
7368
7338
|
<slot></slot>
|
|
7369
7339
|
</button>
|
|
7370
|
-
`}};
|
|
7340
|
+
`}};Br=A(BH),rS=new WeakMap,sS=new WeakMap,iS=new WeakMap,lv=new WeakSet,FH=function(){return this._ctx?.value===this.value},dv=new WeakMap,cv=new WeakMap,c(Br,4,"value",HH,No,rS),c(Br,4,"disabled",DH,No,sS),c(Br,4,"_ctx",NH,No,iS),T(Br,No),v(No,"tagName","dui-tab"),v(No,"styles",[w,pq]);var hq=b`
|
|
7371
7341
|
:host {
|
|
7372
7342
|
display: block;
|
|
7373
7343
|
}
|
|
@@ -7384,11 +7354,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7384
7354
|
position: relative;
|
|
7385
7355
|
outline: 0;
|
|
7386
7356
|
}
|
|
7387
|
-
`,VH,PH,UH,qH,
|
|
7357
|
+
`,VH,PH,UH,qH,Fr,nS,aS,lS,th,dS,Do=class extends(qH=y,UH=[u()],PH=[u({type:Boolean,attribute:"keep-mounted"})],VH=[Nt({context:Xs,subscribe:!0})],qH){constructor(){super(...arguments);a(this,th);a(this,nS,n(Fr,8,this,"")),n(Fr,11,this);a(this,aS,n(Fr,12,this,!1)),n(Fr,15,this);a(this,lS,n(Fr,16,this)),n(Fr,19,this)}willUpdate(){o(this,th,dS)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=o(this,th,dS);return f`
|
|
7388
7358
|
<div class="wrapper" ?hidden=${!t}>
|
|
7389
7359
|
${t||this.keepMounted?f`<div part="panel" role="tabpanel" tabindex="0"><slot></slot></div>`:L}
|
|
7390
7360
|
</div>
|
|
7391
|
-
`}};
|
|
7361
|
+
`}};Fr=A(qH),nS=new WeakMap,aS=new WeakMap,lS=new WeakMap,th=new WeakSet,dS=function(){return this._ctx?.value===this.value},c(Fr,4,"value",UH,Do,nS),c(Fr,4,"keepMounted",PH,Do,aS),c(Fr,4,"_ctx",VH,Do,lS),T(Fr,Do),v(Do,"tagName","dui-tabs-panel"),v(Do,"styles",[w,hq]);var uq=b`
|
|
7392
7362
|
:host {
|
|
7393
7363
|
display: block;
|
|
7394
7364
|
position: absolute;
|
|
@@ -7400,7 +7370,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7400
7370
|
pointer-events: none;
|
|
7401
7371
|
transition-property: translate, width;
|
|
7402
7372
|
}
|
|
7403
|
-
`,Nd=class extends
|
|
7373
|
+
`,Nd=class extends y{static tagName="dui-tabs-indicator";static styles=[w,uq];render(){return f`<span part="indicator"></span>`}};var mq=k`
|
|
7404
7374
|
[part="tab"] {
|
|
7405
7375
|
color: var(--text-2);
|
|
7406
7376
|
font-size: var(--text-sm); line-height: var(--line-height-snug);
|
|
@@ -7462,7 +7432,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7462
7432
|
padding-inline: 0;
|
|
7463
7433
|
padding-block: var(--space-1);
|
|
7464
7434
|
}
|
|
7465
|
-
`,Fd=class extends
|
|
7435
|
+
`,Fd=class extends Hr{static styles=[...Hr.styles,vq]};customElements.define(Fd.tagName,Fd);var bq=k`
|
|
7466
7436
|
:host {
|
|
7467
7437
|
--tabs-panel-padding: var(--space-3);
|
|
7468
7438
|
--tabs-panel-border-width: var(--border-width-thin);
|
|
@@ -7496,7 +7466,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7496
7466
|
var(--focus-ring-color);
|
|
7497
7467
|
border-radius: var(--radius-md);
|
|
7498
7468
|
}
|
|
7499
|
-
`,Vd=class extends Do{static styles=[...Do.styles,bq]};customElements.define(Vd.tagName,Vd);var wS=M("textarea-change",{bubbles:!0,composed:!0}),
|
|
7469
|
+
`,Vd=class extends Do{static styles=[...Do.styles,bq]};customElements.define(Vd.tagName,Vd);var wS=M("textarea-change",{bubbles:!0,composed:!0}),yq=b`
|
|
7500
7470
|
:host {
|
|
7501
7471
|
display: block;
|
|
7502
7472
|
}
|
|
@@ -7534,11 +7504,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7534
7504
|
[part="textarea"]:disabled {
|
|
7535
7505
|
cursor: not-allowed;
|
|
7536
7506
|
}
|
|
7537
|
-
`,jH,KH,WH,YH,GH,XH,JH,QH,ZH,tB,eB,oB,
|
|
7507
|
+
`,jH,KH,WH,YH,GH,XH,JH,QH,ZH,tB,eB,oB,yn,ht,cS,pS,hS,uS,mS,fS,gS,vS,bS,yS,xS,pv,rB,hv,te=class extends(oB=y,eB=[u()],tB=[u()],ZH=[u({type:Boolean,reflect:!0})],QH=[u({type:Boolean})],JH=[u({type:Boolean})],XH=[u({type:Number})],GH=[u({type:Number,attribute:"minlength"})],YH=[u({type:Number,attribute:"maxlength"})],WH=[u()],KH=[u()],jH=[u({attribute:"max-height"})],oB){constructor(){super();a(this,pv);a(this,yn);a(this,cS,n(ht,8,this,"")),n(ht,11,this);a(this,pS,n(ht,12,this,"")),n(ht,15,this);a(this,hS,n(ht,16,this,!1)),n(ht,19,this);a(this,uS,n(ht,20,this,!1)),n(ht,23,this);a(this,mS,n(ht,24,this,!1)),n(ht,27,this);a(this,fS,n(ht,28,this)),n(ht,31,this);a(this,gS,n(ht,32,this)),n(ht,35,this);a(this,vS,n(ht,36,this)),n(ht,39,this);a(this,bS,n(ht,40,this,"")),n(ht,43,this);a(this,yS,n(ht,44,this,"vertical")),n(ht,47,this);a(this,xS,n(ht,48,this)),n(ht,51,this);a(this,hv,t=>{let e=t.target;this.value=e.value,o(this,yn).setFormValue(this.value),this.dispatchEvent(wS({value:this.value}))});h(this,yn,this.attachInternals())}willUpdate(){o(this,yn).setFormValue(this.value)}updated(){p(this,pv,rB).call(this)}render(){let t=Ga({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
|
|
7538
7508
|
<textarea
|
|
7539
7509
|
part="textarea"
|
|
7540
7510
|
style=${t}
|
|
7541
|
-
.value=${
|
|
7511
|
+
.value=${cr(this.value)}
|
|
7542
7512
|
placeholder=${this.placeholder}
|
|
7543
7513
|
rows=${this.rows??""}
|
|
7544
7514
|
?disabled=${this.disabled}
|
|
@@ -7550,7 +7520,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7550
7520
|
data-resize=${this.resize}
|
|
7551
7521
|
@input=${o(this,hv)}
|
|
7552
7522
|
></textarea>
|
|
7553
|
-
`}};ht=A(oB),
|
|
7523
|
+
`}};ht=A(oB),yn=new WeakMap,cS=new WeakMap,pS=new WeakMap,hS=new WeakMap,uS=new WeakMap,mS=new WeakMap,fS=new WeakMap,gS=new WeakMap,vS=new WeakMap,bS=new WeakMap,yS=new WeakMap,xS=new WeakMap,pv=new WeakSet,rB=function(){let t=this.shadowRoot?.querySelector("textarea");t&&o(this,yn).setValidity(t.validity,t.validationMessage,t)},hv=new WeakMap,c(ht,4,"value",eB,te,cS),c(ht,4,"placeholder",tB,te,pS),c(ht,4,"disabled",ZH,te,hS),c(ht,4,"required",QH,te,uS),c(ht,4,"readonly",JH,te,mS),c(ht,4,"rows",XH,te,fS),c(ht,4,"minLength",GH,te,gS),c(ht,4,"maxLength",YH,te,vS),c(ht,4,"name",WH,te,bS),c(ht,4,"resize",KH,te,yS),c(ht,4,"maxHeight",jH,te,xS),T(ht,te),v(te,"tagName","dui-textarea"),v(te,"formAssociated",!0),v(te,"shadowRootOptions",{...y.shadowRootOptions,delegatesFocus:!0}),v(te,"styles",[w,yq]);var xq=k`
|
|
7554
7524
|
:host {
|
|
7555
7525
|
--font-size: var(--text-sm);
|
|
7556
7526
|
}
|
|
@@ -7625,7 +7595,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7625
7595
|
:host([variant="ghost"]) [part="textarea"]:focus-visible {
|
|
7626
7596
|
box-shadow: none;
|
|
7627
7597
|
}
|
|
7628
|
-
`,Pd=class extends te{static styles=[...te.styles,
|
|
7598
|
+
`,Pd=class extends te{static styles=[...te.styles,xq]};customElements.define(Pd.tagName,Pd);var wq={attribute:!0,type:String,converter:vc,reflect:!1,hasChanged:Sh},kq=(i=wq,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function kS(i){return(r,t)=>typeof t=="object"?kq(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}var mv=Symbol("dui-toast-region"),Ud=Symbol("dui-toast");function sB(i){if(!i)return;let r=i.trim();if(r===""||r.toLowerCase()==="none")return;let t={alt:!1,ctrl:!1,shift:!1,meta:!1,key:""};for(let e of r.split("+")){let s=e.trim(),l=s.toLowerCase();l==="alt"||l==="option"?t.alt=!0:l==="ctrl"||l==="control"?t.ctrl=!0:l==="shift"?t.shift=!0:l==="meta"||l==="cmd"||l==="command"?t.meta=!0:t.key=s.toLowerCase()}return t.key?t:void 0}function Eq(i,r){return i.altKey===r.alt&&i.ctrlKey===r.ctrl&&i.shiftKey===r.shift&&i.metaKey===r.meta&&i.key.toLowerCase()===r.key}var MS=M("toast-dismiss",{bubbles:!0,composed:!0}),Cq=b`
|
|
7629
7599
|
:host {
|
|
7630
7600
|
/* Region is a fixed overlay; toasts re-enable pointer events. */
|
|
7631
7601
|
position: fixed;
|
|
@@ -7679,14 +7649,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
7679
7649
|
:host([data-position^="top-"]) [part="list"] {
|
|
7680
7650
|
flex-direction: column-reverse;
|
|
7681
7651
|
}
|
|
7682
|
-
`,iB,nB,aB,lB,dB,cB,pB,hB,uB,mB,fB,kt,ES,CS,$S,TS,SS,AS,_S,RS,we,
|
|
7652
|
+
`,iB,nB,aB,lB,dB,cB,pB,hB,uB,mB,fB,kt,ES,CS,$S,TS,SS,AS,_S,RS,we,Js,Qs,kn,En,IS,LS,fv,gB,Z,Cn,$n,qd,jd,xn,wn,eh,oh,rh,sh,ih,yv,xv,vB,zS,nh,ah,bB,gv,vv,wv,OS,bv,yB,ee=class extends(fB=y,mB=[u({type:String,reflect:!0})],uB=[u({type:Number,attribute:"max-visible"})],hB=[u({type:String,attribute:"label"})],pB=[u({type:Boolean,attribute:"expand-on-hover"})],cB=[u({type:Boolean,reflect:!0})],dB=[u({type:String,attribute:"swipe-directions"})],lB=[u({type:Number,attribute:"swipe-threshold"})],aB=[u({type:String})],nB=[C()],iB=[lt({context:mv}),C()],fB){constructor(){super(...arguments);a(this,Z);a(this,ES,n(kt,8,this,"bottom-right")),n(kt,11,this);a(this,CS,n(kt,12,this,3)),n(kt,15,this);a(this,$S,n(kt,16,this,"Notifications")),n(kt,19,this);a(this,TS,n(kt,20,this,!0)),n(kt,23,this);a(this,SS,n(kt,24,this)),n(kt,27,this);a(this,AS,n(kt,28,this)),n(kt,31,this);a(this,_S,n(kt,32,this,50)),n(kt,35,this);a(this,RS,n(kt,36,this,"Alt+T")),n(kt,39,this);a(this,we,new Map);a(this,Js,new WeakMap);a(this,Qs);a(this,kn);a(this,En);a(this,IS,n(kt,40,this,!1)),n(kt,43,this);a(this,Cn,!1);a(this,$n,!1);a(this,qd,!1);a(this,jd,!1);a(this,eh,()=>{h(this,Cn,!0),p(this,Z,xn).call(this),p(this,Z,wn).call(this)});a(this,oh,()=>{h(this,Cn,!1),p(this,Z,xn).call(this),p(this,Z,wn).call(this)});a(this,rh,()=>{h(this,$n,!0),p(this,Z,xn).call(this),p(this,Z,wn).call(this)});a(this,sh,t=>{let e=t.relatedTarget;e&&this.contains(e)||(h(this,$n,!1),p(this,Z,xn).call(this),p(this,Z,wn).call(this))});a(this,ih,()=>{h(this,qd,document.hidden),p(this,Z,xn).call(this)});a(this,yv,(t,e)=>{o(this,we).has(t)||(o(this,we).set(t,e),p(this,Z,bB).call(this,e),o(this,Qs)?.observe(e),o(this,Js).set(e,e.getBoundingClientRect().height),p(this,Z,gv).call(this),p(this,Z,vv).call(this))});a(this,xv,t=>{let e=o(this,we).get(t);if(!e)return;let s=document.activeElement,l=s instanceof HTMLElement&&(s===e||e.contains(s)),d=l?[...o(this,we).values()].indexOf(e):-1;if(o(this,Qs)?.unobserve(e),o(this,Js).delete(e),o(this,we).delete(t),p(this,Z,gv).call(this),p(this,Z,vv).call(this),l){let m=[...o(this,we).values()];m.length>0?(m[d]??m[d-1]??m[0]).focus():o(this,kn)&&p(this,Z,zS).call(this)}});a(this,nh,t=>{o(this,En)&&Eq(t,o(this,En))&&o(this,we).size!==0&&(t.preventDefault(),p(this,Z,vB).call(this))});a(this,ah,t=>{let e=document.activeElement;if(!(e instanceof HTMLElement))return;let s=[...o(this,we).values()],l=s.findIndex(m=>m===e||m.contains(e));if(l===-1)return;let d=this.position.startsWith("top-");switch(t.key){case"ArrowDown":{t.preventDefault();let m=d?l-1:l+1;s[m]?.focus();break}case"ArrowUp":{t.preventDefault();let m=d?l+1:l-1;s[m]?.focus();break}case"Home":{t.preventDefault(),(d?s[s.length-1]:s[0])?.focus();break}case"End":{t.preventDefault(),(d?s[0]:s[s.length-1])?.focus();break}case"Escape":{t.preventDefault(),p(this,Z,zS).call(this);break}}});a(this,wv,(t,e)=>{let s=o(this,we).get(t);s&&(this.dispatchEvent(MS({id:t,reason:e})),s.dispatchEvent(new CustomEvent("dui-toast-request-dismiss",{detail:{reason:e}})))});a(this,OS,n(kt,44,this,p(this,Z,bv).call(this))),n(kt,47,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.label),this.setAttribute("data-position",this.position),h(this,En,sB(this.hotkey)),this.addEventListener("pointerenter",o(this,eh)),this.addEventListener("pointerleave",o(this,oh)),this.addEventListener("focusin",o(this,rh)),this.addEventListener("focusout",o(this,sh)),this.addEventListener("keydown",o(this,ah)),document.addEventListener("visibilitychange",o(this,ih)),document.addEventListener("keydown",o(this,nh)),h(this,qd,document.hidden),p(this,Z,xn).call(this),p(this,Z,wn).call(this),h(this,Qs,new ResizeObserver(t=>{let e=!1;for(let s of t){let l=s.target,d=s.contentRect.height;o(this,Js).get(l)!==d&&(o(this,Js).set(l,d),e=!0)}e&&p(this,Z,vv).call(this)})),this._ctx=p(this,Z,bv).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,eh)),this.removeEventListener("pointerleave",o(this,oh)),this.removeEventListener("focusin",o(this,rh)),this.removeEventListener("focusout",o(this,sh)),this.removeEventListener("keydown",o(this,ah)),document.removeEventListener("visibilitychange",o(this,ih)),document.removeEventListener("keydown",o(this,nh)),o(this,Qs)?.disconnect(),h(this,Qs,void 0)}willUpdate(t){if(t.has("position")){this.setAttribute("data-position",this.position);for(let e of o(this,we).values())e.setAttribute("data-position",this.position)}t.has("label")&&this.setAttribute("aria-label",this.label),t.has("maxVisible")&&p(this,Z,gv).call(this),(t.has("expanded")||t.has("expandOnHover"))&&p(this,Z,wn).call(this),t.has("hotkey")&&h(this,En,sB(this.hotkey)),this._ctx=p(this,Z,bv).call(this)}render(){return f`
|
|
7683
7653
|
<div
|
|
7684
7654
|
part="list"
|
|
7685
7655
|
?data-paused=${o(this,Z,fv)}
|
|
7686
7656
|
>
|
|
7687
7657
|
<slot></slot>
|
|
7688
7658
|
</div>
|
|
7689
|
-
`}};kt=A(fB),ES=new WeakMap,CS=new WeakMap,$S=new WeakMap,TS=new WeakMap,SS=new WeakMap,AS=new WeakMap,_S=new WeakMap,RS=new WeakMap,we=new WeakMap,
|
|
7659
|
+
`}};kt=A(fB),ES=new WeakMap,CS=new WeakMap,$S=new WeakMap,TS=new WeakMap,SS=new WeakMap,AS=new WeakMap,_S=new WeakMap,RS=new WeakMap,we=new WeakMap,Js=new WeakMap,Qs=new WeakMap,kn=new WeakMap,En=new WeakMap,IS=new WeakMap,Z=new WeakSet,Cn=new WeakMap,$n=new WeakMap,qd=new WeakMap,jd=new WeakMap,xn=function(){let t=o(this,Cn)||o(this,$n)||o(this,qd);t!==o(this,Z,fv)&&h(this,Z,t,gB)},wn=function(){let t;if(this.expanded!==void 0?t=this.expanded:this.expandOnHover?t=o(this,Cn)||o(this,$n):t=!1,t!==o(this,jd)){h(this,jd,t),t?this.setAttribute("data-expanded",""):this.removeAttribute("data-expanded");for(let e of o(this,we).values())t?e.setAttribute("data-region-expanded",""):e.removeAttribute("data-region-expanded")}},eh=new WeakMap,oh=new WeakMap,rh=new WeakMap,sh=new WeakMap,ih=new WeakMap,yv=new WeakMap,xv=new WeakMap,vB=function(){let t=[...o(this,we).values()];if(t.length===0)return!1;let e=t[t.length-1],s=document.activeElement;return s instanceof HTMLElement&&!this.contains(s)&&s!==document.body&&h(this,kn,s),e.focus(),!0},zS=function(){let t=o(this,kn);h(this,kn,void 0),t&&t.isConnected?t.focus():document.activeElement instanceof HTMLElement&&this.contains(document.activeElement)&&document.activeElement.blur()},nh=new WeakMap,ah=new WeakMap,bB=function(t){t.setAttribute("data-position",this.position),o(this,jd)&&t.setAttribute("data-region-expanded","")},gv=function(){let t=[...o(this,we).values()],e=t.length;for(let l=0;l<e;l++){let d=e-1-l,m=t[l];m.style.setProperty("--toast-index",String(d)),m.style.setProperty("--toasts-total",String(e)),d===0?m.setAttribute("data-front",""):m.removeAttribute("data-front"),d>=this.maxVisible?m.setAttribute("data-overflow",""):m.removeAttribute("data-overflow")}let s=Math.max(0,e-this.maxVisible);this.style.setProperty("--toasts-overflow-count",String(s)),s>0?this.setAttribute("data-overflow-count",String(s)):this.removeAttribute("data-overflow-count")},vv=function(){let t=[...o(this,we).values()],e=0;for(let s=t.length-1;s>=0;s--){let l=t[s];l.style.setProperty("--toasts-before-height",`${e}px`);let d=o(this,Js).get(l)??0;l.style.setProperty("--toast-height",`${d}px`),e+=d}this.style.setProperty("--toasts-stack-height",`${e}px`)},wv=new WeakMap,OS=new WeakMap,bv=function(){return{position:this.position,maxVisible:this.maxVisible,paused:o(this,Z,fv),swipeDirections:p(this,Z,yB).call(this),swipeThreshold:this.swipeThreshold,registerToast:o(this,yv),unregisterToast:o(this,xv),dismiss:o(this,wv)}},yB=function(){let t=this.swipeDirections;if(t==="none")return[];if(t&&t.trim().length>0){let e=[];for(let s of t.split(",")){let l=s.trim();(l==="left"||l==="right"||l==="up"||l==="down")&&e.push(l)}return e}switch(this.position){case"top-right":case"bottom-right":return["right"];case"top-left":case"bottom-left":return["left"];case"top-center":return["up"];case"bottom-center":return["down"]}},c(kt,4,"position",mB,ee,ES),c(kt,4,"maxVisible",uB,ee,CS),c(kt,4,"label",hB,ee,$S),c(kt,4,"expandOnHover",pB,ee,TS),c(kt,4,"expanded",cB,ee,SS),c(kt,4,"swipeDirections",dB,ee,AS),c(kt,4,"swipeThreshold",lB,ee,_S),c(kt,4,"hotkey",aB,ee,RS),LS=c(kt,20,"#paused",nB,Z,IS),fv=LS.get,gB=LS.set,c(kt,4,"_ctx",iB,ee,OS),T(kt,ee),v(ee,"tagName","dui-toast-region"),v(ee,"styles",[w,Cq]);var kv=class{#t;#e;#o=-1;#n=0;#d=0;#c=0;#a=0;#f=0;#g=0;#l;#s=!1;#m=!1;#p;constructor(r,t){this.#t=r,this.#e=t}attach(){this.#t.addEventListener("pointerdown",this.#w),this.#t.addEventListener("pointermove",this.#y),this.#t.addEventListener("pointerup",this.#k),this.#t.addEventListener("pointercancel",this.#v),this.#t.addEventListener("click",this.#r,{capture:!0}),this.#t.addEventListener("dragstart",this.#b)}detach(){this.#t.removeEventListener("pointerdown",this.#w),this.#t.removeEventListener("pointermove",this.#y),this.#t.removeEventListener("pointerup",this.#k),this.#t.removeEventListener("pointercancel",this.#v),this.#t.removeEventListener("click",this.#r,{capture:!0}),this.#t.removeEventListener("dragstart",this.#b),this.#p!==void 0&&(clearTimeout(this.#p),this.#p=void 0)}#h(r){return this.#e.getDirections().includes(r)}#w=r=>{r.button!==0&&r.pointerType==="mouse"||this.#e.getDirections().length!==0&&(this.#C(r.target)||(this.#o=r.pointerId,this.#n=this.#a=r.clientX,this.#d=this.#f=r.clientY,this.#c=this.#g=r.timeStamp,this.#l=void 0,this.#s=!1))};#y=r=>{if(r.pointerId!==this.#o)return;let t=r.clientX-this.#n,e=r.clientY-this.#d;if(!this.#s){if(Math.hypot(t,e)<6)return;if(Math.abs(t)>=Math.abs(e)){let g=t>0?"right":"left";if(!this.#h(g)){this.#i();return}this.#l="x"}else{let g=e>0?"down":"up";if(!this.#h(g)){this.#i();return}this.#l="y"}this.#s=!0,this.#t.setAttribute("data-swipe","start");try{this.#t.setPointerCapture(r.pointerId)}catch{}}let s=this.#l==="x"?this.#x(t):0,l=this.#l==="y"?this.#E(e):0;this.#t.style.setProperty("--swipe-amount-x",`${s}px`),this.#t.style.setProperty("--swipe-amount-y",`${l}px`),this.#t.setAttribute("data-swipe","move"),this.#a=r.clientX,this.#f=r.clientY,this.#g=r.timeStamp};#k=r=>{if(r.pointerId!==this.#o||(this.#o=-1,!this.#s))return;let t=r.clientX-this.#n,e=r.clientY-this.#d,s=Math.max(r.timeStamp-this.#c,1),l=this.#l==="x"?Math.abs(t):Math.abs(e),d=l/s*1e3,m=this.#e.getThreshold(),g=l>=m||d>=600;this.#m=!0,queueMicrotask(()=>{this.#m=!1}),g?(this.#t.setAttribute("data-swipe","end"),this.#e.onDismiss("swipe")):(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0};#v=r=>{r.pointerId===this.#o&&(this.#o=-1,this.#s&&(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0)};#r=r=>{this.#m&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation())};#b=r=>{(this.#o!==-1||this.#s)&&r.preventDefault()};#i(){this.#o=-1,this.#s=!1,this.#l=void 0}#u(){this.#p!==void 0&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.#t.removeAttribute("data-swipe"),this.#t.style.removeProperty("--swipe-amount-x"),this.#t.style.removeProperty("--swipe-amount-y"),this.#p=void 0},350)}#x(r){let t=this.#h("left"),e=this.#h("right");return r<0&&!t||r>0&&!e?0:r}#E(r){let t=this.#h("up"),e=this.#h("down");return r<0&&!t||r>0&&!e?0:r}#C(r){return r instanceof Element?!!(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement||r.isContentEditable):!1}};var dh=M("open-change",{bubbles:!0,composed:!0}),Av=M("dismiss",{bubbles:!0,composed:!0}),$q=b`
|
|
7690
7660
|
:host {
|
|
7691
7661
|
display: block;
|
|
7692
7662
|
box-sizing: border-box;
|
|
@@ -7742,17 +7712,17 @@ label, legend, caption, figcaption, th, td {
|
|
|
7742
7712
|
[part="description"]:empty {
|
|
7743
7713
|
display: none;
|
|
7744
7714
|
}
|
|
7745
|
-
`,
|
|
7715
|
+
`,xB,wB,kB,EB,CB,$B,TB,SB,AB,_B,RB,IB,LB,OB,zB,tt,NS,DS,HS,BS,FS,VS,PS,US,qS,MB,Ev,O,jS,KS,fs,Cv,WS,YS,NB,oA,GS,XS,DB,$v,JS,QS,HB,BB,ZS,tA,FB,VB,Wd,ch,ph,Vr,hh,Tn,vs,Pr,Yd,Zs,Ur,uh,rA,Tv,sA,Kd,Sv,PB,gs,iA,nA,aA,UB,qB,lh,mh,fh,gh,_v,Rv,Iv,eA,lA,re=class extends(zB=y,OB=[u({type:Boolean,reflect:!0})],LB=[u({type:Boolean,attribute:"default-open"})],IB=[u({type:Number})],RB=[u({type:String,reflect:!0})],_B=[u({type:String})],AB=[u({type:String,attribute:"toast-id",reflect:!0})],SB=[u({type:Boolean,reflect:!0})],TB=[C()],$B=[C()],CB=[C()],EB=[C()],kB=[C()],wB=[C()],xB=[lt({context:Ud}),C()],zB){constructor(){super(...arguments);a(this,O);a(this,NS,n(tt,8,this)),n(tt,11,this);a(this,DS,n(tt,12,this,!0)),n(tt,15,this);a(this,HS,n(tt,16,this,4e3)),n(tt,19,this);a(this,BS,n(tt,20,this,"default")),n(tt,23,this);a(this,FS,n(tt,24,this,"polite")),n(tt,27,this);a(this,VS,n(tt,28,this)),n(tt,31,this);a(this,PS,n(tt,32,this,!1)),n(tt,35,this);a(this,US,n(tt,36,this,!1)),n(tt,39,this);a(this,jS,n(tt,40,this,"closed")),n(tt,43,this);a(this,WS,n(tt,44,this,!1)),n(tt,47,this);a(this,GS,n(tt,48,this,!1)),n(tt,51,this);a(this,JS,n(tt,52,this,!1)),n(tt,55,this);a(this,ZS,n(tt,56,this,!1)),n(tt,59,this);a(this,Wd,crypto.randomUUID().slice(0,8));a(this,ch,`dui-toast-title-${o(this,Wd)}`);a(this,ph,`dui-toast-desc-${o(this,Wd)}`);a(this,Vr);a(this,hh,0);a(this,Tn,0);a(this,vs,!1);a(this,Pr);a(this,Yd,!1);a(this,Zs,!1);a(this,Ur,new q(this,{context:mv,subscribe:!0}));a(this,uh,new kv(this,{getDirections:()=>o(this,Ur).value?.swipeDirections??[],getThreshold:()=>o(this,Ur).value?.swipeThreshold??50,onDismiss:t=>p(this,O,gs).call(this,t)}));a(this,mh,t=>{t.stopPropagation(),p(this,O,gs).call(this,t.detail?.reason??"programmatic")});a(this,fh,t=>{if(t.key!=="Delete"&&t.key!=="Backspace")return;let e=t.target;e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable||(t.preventDefault(),p(this,O,gs).call(this,"keyboard")))});a(this,gh,t=>{let e=t.composedPath();for(let s of e){if(s===this)break;if(s instanceof Element&&s.hasAttribute("data-toast-dismiss")){let l=s.getAttribute("data-toast-dismiss-reason")??"close";p(this,O,gs).call(this,l);return}}});a(this,_v,t=>{let e=t.target;h(this,O,e.assignedNodes({flatten:!0}).length>0,BB)});a(this,Rv,t=>{let e=t.target;h(this,O,e.assignedNodes({flatten:!0}).length>0,VB)});a(this,Iv,t=>{p(this,O,gs).call(this,t)});a(this,eA,n(tt,60,this,p(this,O,lA).call(this))),n(tt,63,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,O,!0,Ev),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.addEventListener("dui-toast-request-dismiss",o(this,mh)),this.addEventListener("click",o(this,gh)),this.addEventListener("keydown",o(this,fh)),o(this,uh).attach()}disconnectedCallback(){super.disconnectedCallback(),p(this,O,lh).call(this),o(this,Pr)!==void 0&&(clearTimeout(o(this,Pr)),h(this,Pr,void 0)),p(this,O,Tv).call(this),this.removeEventListener("dui-toast-request-dismiss",o(this,mh)),this.removeEventListener("click",o(this,gh)),this.removeEventListener("keydown",o(this,fh)),o(this,uh).detach()}willUpdate(t){t.has("toastId")&&(this._itemCtx=p(this,O,lA).call(this)),this.setAttribute("data-state",o(this,O,fs))}updated(){let t=o(this,O,sA),e=o(this,Yd);if(h(this,Yd,t),o(this,O,fs)==="open"&&!o(this,Zs)&&o(this,Ur).value&&p(this,O,rA).call(this),!t&&e&&o(this,O,fs)==="open"){p(this,O,gs).call(this,"programmatic");return}if(t&&o(this,O,fs)==="closed"){p(this,O,PB).call(this);return}if(o(this,O,fs)==="open"&&!o(this,O,Sv)){let s=o(this,Ur).value?.paused??!1;s&&!o(this,vs)?p(this,O,UB).call(this):!s&&o(this,vs)&&p(this,O,qB).call(this)}}dismiss(t="programmatic"){p(this,O,gs).call(this,t)}resetTimer(){o(this,O,fs)==="open"&&(p(this,O,lh).call(this),p(this,O,nA).call(this))}render(){let t=this.priority==="assertive"?"alert":"status",e=this.priority;return f`
|
|
7746
7716
|
<div
|
|
7747
7717
|
part="root"
|
|
7748
7718
|
role=${t}
|
|
7749
7719
|
aria-live=${e}
|
|
7750
7720
|
aria-atomic="true"
|
|
7751
|
-
aria-labelledby=${this.headless?"":o(this,
|
|
7752
|
-
aria-describedby=${this.headless?"":o(this,
|
|
7721
|
+
aria-labelledby=${this.headless?"":o(this,O,HB)?o(this,ch):""}
|
|
7722
|
+
aria-describedby=${this.headless?"":o(this,O,FB)?o(this,ph):""}
|
|
7753
7723
|
data-type=${this.type}
|
|
7754
|
-
?data-starting-style=${o(this,
|
|
7755
|
-
?data-ending-style=${o(this,
|
|
7724
|
+
?data-starting-style=${o(this,O,NB)}
|
|
7725
|
+
?data-ending-style=${o(this,O,DB)}
|
|
7756
7726
|
>
|
|
7757
7727
|
${this.headless?f`<slot></slot>`:f`
|
|
7758
7728
|
<div part="title" id=${o(this,ch)}>
|
|
@@ -7772,11 +7742,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7772
7742
|
<slot name="close"></slot>
|
|
7773
7743
|
`}
|
|
7774
7744
|
</div>
|
|
7775
|
-
`}};tt=A(
|
|
7745
|
+
`}};tt=A(zB),NS=new WeakMap,DS=new WeakMap,HS=new WeakMap,BS=new WeakMap,FS=new WeakMap,VS=new WeakMap,PS=new WeakMap,US=new WeakMap,O=new WeakSet,jS=new WeakMap,WS=new WeakMap,GS=new WeakMap,JS=new WeakMap,ZS=new WeakMap,Wd=new WeakMap,ch=new WeakMap,ph=new WeakMap,Vr=new WeakMap,hh=new WeakMap,Tn=new WeakMap,vs=new WeakMap,Pr=new WeakMap,Yd=new WeakMap,Zs=new WeakMap,Ur=new WeakMap,uh=new WeakMap,rA=function(){if(o(this,Zs))return;let t=o(this,Ur).value;t&&(t.registerToast(o(this,O,Kd),this),h(this,Zs,!0))},Tv=function(){o(this,Zs)&&(o(this,Ur).value?.unregisterToast(o(this,O,Kd)),h(this,Zs,!1))},sA=function(){return this.open??o(this,O,MB)},Kd=function(){return this.toastId??`dui-toast-${o(this,Wd)}`},Sv=function(){return this.type==="loading"||this.duration<=0},PB=async function(){p(this,O,rA).call(this),h(this,O,"open",Cv),h(this,O,!0,oA),h(this,O,!1,$v),this.requestUpdate(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,O,!1,oA),this.dispatchEvent(dh({open:!0})),p(this,O,nA).call(this)},gs=function(t){if(o(this,O,fs)==="closed"){if(!o(this,O,sA))return;this.open===void 0&&h(this,O,!1,Ev),h(this,Yd,!1),p(this,O,Tv).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Av({id:o(this,O,Kd),reason:t}));return}if(o(this,O,fs)!=="open")return;p(this,O,lh).call(this),h(this,O,"closing",Cv),h(this,O,!0,$v),this.requestUpdate();let e=this.shadowRoot?.querySelector('[part="root"]');if(!e){p(this,O,iA).call(this,t);return}let s=!1,l=()=>{s||(s=!0,e.removeEventListener("transitionend",d),o(this,Pr)!==void 0&&(clearTimeout(o(this,Pr)),h(this,Pr,void 0)),p(this,O,iA).call(this,t))},d=m=>{m.propertyName==="opacity"&&l()};e.addEventListener("transitionend",d),h(this,Pr,setTimeout(l,400))},iA=function(t){this.isConnected&&(h(this,O,"closed",Cv),h(this,O,!1,$v),this.open===void 0&&h(this,O,!1,Ev),p(this,O,Tv).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Av({id:o(this,O,Kd),reason:t})))},nA=function(){if(o(this,O,Sv))return;if(h(this,Tn,this.duration),o(this,Ur).value?.paused??!1){h(this,vs,!0);return}p(this,O,aA).call(this)},aA=function(){p(this,O,lh).call(this),h(this,hh,performance.now()),h(this,vs,!1),h(this,Vr,setTimeout(()=>{p(this,O,gs).call(this,"auto")},o(this,Tn)))},UB=function(){if(o(this,Vr)===void 0)return;clearTimeout(o(this,Vr)),h(this,Vr,void 0);let t=performance.now()-o(this,hh);h(this,Tn,Math.max(0,o(this,Tn)-t)),h(this,vs,!0)},qB=function(){o(this,O,Sv)||p(this,O,aA).call(this)},lh=function(){o(this,Vr)!==void 0&&(clearTimeout(o(this,Vr)),h(this,Vr,void 0)),h(this,vs,!1)},mh=new WeakMap,fh=new WeakMap,gh=new WeakMap,_v=new WeakMap,Rv=new WeakMap,Iv=new WeakMap,eA=new WeakMap,lA=function(){return{id:o(this,O,Kd),dismiss:o(this,Iv)}},c(tt,4,"open",OB,re,NS),c(tt,4,"defaultOpen",LB,re,DS),c(tt,4,"duration",IB,re,HS),c(tt,4,"type",RB,re,BS),c(tt,4,"priority",_B,re,FS),c(tt,4,"toastId",AB,re,VS),c(tt,4,"headless",SB,re,PS),qS=c(tt,20,"#internalOpen",TB,O,US),MB=qS.get,Ev=qS.set,KS=c(tt,20,"#state",$B,O,jS),fs=KS.get,Cv=KS.set,YS=c(tt,20,"#startingStyle",CB,O,WS),NB=YS.get,oA=YS.set,XS=c(tt,20,"#endingStyle",EB,O,GS),DB=XS.get,$v=XS.set,QS=c(tt,20,"#hasTitle",kB,O,JS),HB=QS.get,BB=QS.set,tA=c(tt,20,"#hasDescription",wB,O,ZS),FB=tA.get,VB=tA.set,c(tt,4,"_itemCtx",xB,re,eA),T(tt,re),v(re,"tagName","dui-toast"),v(re,"styles",[w,$q,Tq]);var Sq=b`
|
|
7776
7746
|
:host {
|
|
7777
7747
|
display: contents;
|
|
7778
7748
|
}
|
|
7779
|
-
`,
|
|
7749
|
+
`,qr=class extends y{static tagName="dui-toast-action";static styles=[w,Sq];#t=new q(this,{context:Ud,subscribe:!0});#e=()=>{this.#t.value?.dismiss("action")};render(){return f`
|
|
7780
7750
|
<span part="action" @click=${this.#e}>
|
|
7781
7751
|
<slot></slot>
|
|
7782
7752
|
</span>
|
|
@@ -7784,11 +7754,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7784
7754
|
:host {
|
|
7785
7755
|
display: contents;
|
|
7786
7756
|
}
|
|
7787
|
-
`,
|
|
7757
|
+
`,jr=class extends y{static tagName="dui-toast-close";static styles=[w,Aq];#t=new q(this,{context:Ud,subscribe:!0});#e=()=>{this.#t.value?.dismiss("close")};render(){return f`
|
|
7788
7758
|
<span part="close" @click=${this.#e}>
|
|
7789
7759
|
<slot></slot>
|
|
7790
7760
|
</span>
|
|
7791
|
-
`}};var _q={position:"bottom-right",defaultDuration:4e3,maxVisible:3,closeButton:!1,expandOnHover:!0,target:"body"},Ho={..._q},
|
|
7761
|
+
`}};var _q={position:"bottom-right",defaultDuration:4e3,maxVisible:3,closeButton:!1,expandOnHover:!0,target:"body"},Ho={..._q},Kr,vh=new Map,Rq=1,WB=()=>`toast-${Rq++}`;function YB(){let i=[[ee.tagName,ee],[re.tagName,re],[qr.tagName,qr],[jr.tagName,jr]];for(let[r,t]of i)customElements.get(r)||customElements.define(r,t)}function Iq(i){if(typeof i!="string")return i;let r=document.querySelector(i);if(!r)throw new Error(`[dui-toast] target selector "${i}" did not match any element.`);return r}function Lq(){if(YB(),Ho.region&&Ho.region.isConnected)return Ho.region;if(Kr&&Kr.isConnected)return Kr;let i=document.createElement(ee.tagName);return i.position=Ho.position,i.maxVisible=Ho.maxVisible,i.expandOnHover=Ho.expandOnHover,i.setAttribute("data-auto-region",""),Iq(Ho.target).appendChild(i),Kr=i,i}function ti(i,r){for(let t of Array.from(i.children)){let e=t.getAttribute("slot");r===null?e===null&&t.remove():e===r&&t.remove()}}function jB(i,r,t){ti(i,r);let e=document.createElement("span");e.setAttribute("slot",r),typeof t=="string"?e.textContent=t:e.appendChild(t),i.appendChild(e)}function Oq(i,r){ti(i,null),i.appendChild(r)}function zq(i,r){if(ti(i,"action"),!r)return;let t=document.createElement(qr.tagName);t.setAttribute("slot","action");let e=document.createElement("button");e.type="button",e.textContent=r.label,r.onClick&&e.addEventListener("click",r.onClick),t.appendChild(e),i.appendChild(t)}function Mq(i,r){if(ti(i,"close"),!r)return;let t=document.createElement(jr.tagName);t.setAttribute("slot","close");let e=document.createElement("button");e.type="button",e.setAttribute("aria-label","Dismiss"),e.textContent="\xD7",t.appendChild(e),i.appendChild(t)}function KB(i,r,t){i.type=t.type??"default",i.priority=t.priority??"polite",t.duration!==void 0?i.duration=t.duration:t.type==="loading"?i.duration=0:i.duration=Ho.defaultDuration,typeof r=="string"?(jB(i,"title",r),t.description!==void 0?jB(i,"description",t.description):ti(i,"description"),ti(i,null)):(Oq(i,r),ti(i,"title"),ti(i,"description")),zq(i,t.action),Mq(i,t.closeButton??Ho.closeButton)}function or(i,r={}){YB();let t=r.id??WB(),e=vh.get(t);if(e&&e.isConnected)return KB(e,i,r),e.resetTimer(),t;let s=document.createElement(re.tagName);return s.toastId=t,KB(s,i,r),s.addEventListener("dismiss",()=>{vh.delete(t),queueMicrotask(()=>{s.parentElement&&s.parentElement.removeChild(s)})}),vh.set(t,s),Lq().appendChild(s),t}function Nq(i,r){return or(i,r??{})}var Dq=(i,r)=>or(i,{...r,type:"success"}),Hq=(i,r)=>or(i,{...r,type:"error"}),Bq=(i,r)=>or(i,{...r,type:"warning"}),Fq=(i,r)=>or(i,{...r,type:"info"}),Vq=(i,r)=>or(i,{...r,type:"loading"}),Pq=(i,r)=>or(i,r??{}),Uq=(i,r,t)=>or(r,{...t,id:i}),qq=i=>{if(i===void 0){for(let t of vh.values())t.dismiss("programmatic");return}vh.get(i)?.dismiss("programmatic")},jq=(i,r,t)=>{let e=t?.id??WB();return or(r.loading,{...t,id:e,type:"loading"}),i.then(s=>{let l=typeof r.success=="function"?r.success(s):r.success;or(l,{...t,id:e,type:"success"})},s=>{let l=typeof r.error=="function"?r.error(s):r.error;or(l,{...t,id:e,type:"error"})}),e},Kq=i=>{Ho={...Ho,...i},Kr&&Kr.isConnected&&(i.position!==void 0&&(Kr.position=i.position),i.maxVisible!==void 0&&(Kr.maxVisible=i.maxVisible),i.expandOnHover!==void 0&&(Kr.expandOnHover=i.expandOnHover))},Wq=()=>({...Ho}),Yq=()=>Kr,dA=Object.assign(Nq,{success:Dq,error:Hq,warning:Bq,info:Fq,loading:Vq,custom:Pq,update:Uq,dismiss:qq,promise:jq,configure:Kq,getConfig:Wq,getAutoRegion:Yq});var Gq=k`
|
|
7792
7762
|
/* ── Region-scoped tokens ──
|
|
7793
7763
|
*
|
|
7794
7764
|
* Bump the default region width (primitive ships 22rem; 24rem reads
|
|
@@ -7963,7 +7933,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7963
7933
|
transition-duration: 0s;
|
|
7964
7934
|
}
|
|
7965
7935
|
}
|
|
7966
|
-
`,GB,XB,Lv,cA,
|
|
7936
|
+
`,GB,XB,Lv,cA,ei,Bo,Ov,pA,hA,bs=class extends(XB=ee,GB=[kS({type:String,reflect:!0})],XB){constructor(){super(...arguments);a(this,Bo);a(this,cA,n(Lv,8,this)),n(Lv,11,this);a(this,ei)}connectedCallback(){super.connectedCallback(),p(this,Bo,Ov).call(this),this.theme==="inverted"&&p(this,Bo,pA).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Bo,hA).call(this)}willUpdate(t){super.willUpdate(t),t.has("theme")&&(p(this,Bo,Ov).call(this),this.theme==="inverted"?p(this,Bo,pA).call(this):p(this,Bo,hA).call(this))}};Lv=A(XB),cA=new WeakMap,ei=new WeakMap,Bo=new WeakSet,Ov=function(){if(!this.theme){this.removeAttribute("data-theme");return}if(this.theme==="inverted"){let e=document.documentElement.getAttribute("data-theme")==="dark"?"light":"dark";this.setAttribute("data-theme",e);return}this.setAttribute("data-theme",this.theme)},pA=function(){o(this,ei)||(h(this,ei,new MutationObserver(()=>p(this,Bo,Ov).call(this))),o(this,ei).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}))},hA=function(){o(this,ei)?.disconnect(),h(this,ei,void 0)},c(Lv,4,"theme",GB,bs,cA),T(Lv,bs),v(bs,"styles",[...ee.styles,Gq]);customElements.define(bs.tagName,bs);var Xq=ts`
|
|
7967
7937
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
7968
7938
|
<path
|
|
7969
7939
|
d="M3 8.5l3 3 6.5-7"
|
|
@@ -7974,7 +7944,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7974
7944
|
stroke-linejoin="round"
|
|
7975
7945
|
/>
|
|
7976
7946
|
</svg>
|
|
7977
|
-
`,Jq=
|
|
7947
|
+
`,Jq=ts`
|
|
7978
7948
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
7979
7949
|
<path
|
|
7980
7950
|
d="M4 4l8 8M12 4l-8 8"
|
|
@@ -7984,7 +7954,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7984
7954
|
stroke-linecap="round"
|
|
7985
7955
|
/>
|
|
7986
7956
|
</svg>
|
|
7987
|
-
`,Qq=
|
|
7957
|
+
`,Qq=ts`
|
|
7988
7958
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
7989
7959
|
<path
|
|
7990
7960
|
d="M8 1.5L14.5 13.5h-13z"
|
|
@@ -8002,7 +7972,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8002
7972
|
/>
|
|
8003
7973
|
<circle cx="8" cy="11.5" r="0.9" fill="currentColor" />
|
|
8004
7974
|
</svg>
|
|
8005
|
-
`,Zq=
|
|
7975
|
+
`,Zq=ts`
|
|
8006
7976
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
8007
7977
|
<circle
|
|
8008
7978
|
cx="8"
|
|
@@ -8021,7 +7991,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8021
7991
|
/>
|
|
8022
7992
|
<circle cx="8" cy="4.7" r="0.9" fill="currentColor" />
|
|
8023
7993
|
</svg>
|
|
8024
|
-
`,t6=
|
|
7994
|
+
`,t6=ts`
|
|
8025
7995
|
<dui-spinner part="spinner" aria-hidden="true"></dui-spinner>
|
|
8026
7996
|
`;function JB(i){switch(i){case"success":return Xq;case"error":return Jq;case"warning":return Qq;case"info":return Zq;case"loading":return t6;default:return null}}var e6=k`
|
|
8027
7997
|
/* ── Per-type color hook ──
|
|
@@ -8302,7 +8272,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8302
8272
|
transform: none;
|
|
8303
8273
|
}
|
|
8304
8274
|
}
|
|
8305
|
-
`,Gd=class extends re{static styles=[...re.styles,e6];render(){let r=this.priority==="assertive"?"alert":"status",t=this.priority;if(this.headless)return
|
|
8275
|
+
`,Gd=class extends re{static styles=[...re.styles,e6];render(){let r=this.priority==="assertive"?"alert":"status",t=this.priority;if(this.headless)return ts`
|
|
8306
8276
|
<div
|
|
8307
8277
|
part="root"
|
|
8308
8278
|
role="${r}"
|
|
@@ -8312,7 +8282,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8312
8282
|
>
|
|
8313
8283
|
<slot></slot>
|
|
8314
8284
|
</div>
|
|
8315
|
-
`;let e=`dui-toast-title-${this.#t}`,s=`dui-toast-desc-${this.#t}`;return
|
|
8285
|
+
`;let e=`dui-toast-title-${this.#t}`,s=`dui-toast-desc-${this.#t}`;return ts`
|
|
8316
8286
|
<div
|
|
8317
8287
|
part="root"
|
|
8318
8288
|
role="${r}"
|
|
@@ -8380,7 +8350,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8380
8350
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
8381
8351
|
outline-offset: var(--focus-ring-offset);
|
|
8382
8352
|
}
|
|
8383
|
-
`,Xd=class extends
|
|
8353
|
+
`,Xd=class extends qr{static styles=[...qr.styles,o6]};customElements.define(Xd.tagName,Xd);var r6=k`
|
|
8384
8354
|
/* Style any slotted <button> as a small ghost-icon close affordance.
|
|
8385
8355
|
Hover-to-show behavior lives on the parent <dui-toast> (close-wrapper
|
|
8386
8356
|
part); this just renders the button itself. */
|
|
@@ -8413,7 +8383,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8413
8383
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
8414
8384
|
outline-offset: var(--focus-ring-offset);
|
|
8415
8385
|
}
|
|
8416
|
-
`,Jd=class extends
|
|
8386
|
+
`,Jd=class extends jr{static styles=[...jr.styles,r6]};customElements.define(Jd.tagName,Jd);var zv=Symbol("dui-toggle-group");var EA=M("pressed-change",{bubbles:!0,composed:!0}),s6=b`
|
|
8417
8387
|
:host {
|
|
8418
8388
|
display: inline-block;
|
|
8419
8389
|
}
|
|
@@ -8435,7 +8405,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8435
8405
|
[part="root"]:disabled {
|
|
8436
8406
|
cursor: not-allowed;
|
|
8437
8407
|
}
|
|
8438
|
-
`,QB,ZB,tF,eF,oF,rF,sF,ue,uA,mA,fA,gA,vA,bA,iF,
|
|
8408
|
+
`,QB,ZB,tF,eF,oF,rF,sF,ue,uA,mA,fA,gA,vA,bA,iF,xA,xo,yA,wA,kA,Mv,Fe=class extends(sF=y,rF=[u({type:Boolean})],oF=[u({type:Boolean,attribute:"default-pressed"})],eF=[u({type:Boolean,reflect:!0})],tF=[u()],ZB=[C()],QB=[Nt({context:zv,subscribe:!0}),C()],sF){constructor(){super(...arguments);a(this,xo);a(this,uA,n(ue,8,this)),n(ue,11,this);a(this,mA,n(ue,12,this,!1)),n(ue,15,this);a(this,fA,n(ue,16,this,!1)),n(ue,19,this);a(this,gA,n(ue,20,this)),n(ue,23,this);a(this,vA,n(ue,24,this,!1)),n(ue,27,this);a(this,yA,n(ue,28,this)),n(ue,31,this);a(this,Mv,()=>{if(o(this,xo,kA))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!o(this,xo,wA);this.pressed===void 0&&h(this,xo,t,xA),this.dispatchEvent(EA({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&h(this,xo,!0,xA)}render(){let t=o(this,xo,wA),e=o(this,xo,kA);return f`
|
|
8439
8409
|
<button
|
|
8440
8410
|
part="root"
|
|
8441
8411
|
type="button"
|
|
@@ -8448,7 +8418,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8448
8418
|
<slot name="icon"></slot>
|
|
8449
8419
|
<slot></slot>
|
|
8450
8420
|
</button>
|
|
8451
|
-
`}};ue=A(sF),uA=new WeakMap,mA=new WeakMap,fA=new WeakMap,gA=new WeakMap,vA=new WeakMap,
|
|
8421
|
+
`}};ue=A(sF),uA=new WeakMap,mA=new WeakMap,fA=new WeakMap,gA=new WeakMap,vA=new WeakMap,xo=new WeakSet,yA=new WeakMap,wA=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??o(this,xo,iF)},kA=function(){return this.disabled||(this._groupCtx?.disabled??!1)},Mv=new WeakMap,c(ue,4,"pressed",rF,Fe,uA),c(ue,4,"defaultPressed",oF,Fe,mA),c(ue,4,"disabled",eF,Fe,fA),c(ue,4,"value",tF,Fe,gA),bA=c(ue,20,"#internalPressed",ZB,xo,vA),iF=bA.get,xA=bA.set,c(ue,4,"_groupCtx",QB,Fe,yA),T(ue,Fe),v(Fe,"tagName","dui-toggle"),v(Fe,"shadowRootOptions",{...y.shadowRootOptions,delegatesFocus:!0}),v(Fe,"styles",[w,s6]);var MA=M("value-change",{bubbles:!0,composed:!0}),i6=b`
|
|
8452
8422
|
:host {
|
|
8453
8423
|
display: inline-flex;
|
|
8454
8424
|
}
|
|
@@ -8460,7 +8430,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8460
8430
|
:host([orientation="vertical"]) [part="root"] {
|
|
8461
8431
|
flex-direction: column;
|
|
8462
8432
|
}
|
|
8463
|
-
`,nF,aF,lF,dF,cF,pF,hF,uF,mF,Bt,CA,$A,TA,SA,AA,_A,RA,IA,fF,
|
|
8433
|
+
`,nF,aF,lF,dF,cF,pF,hF,uF,mF,Bt,CA,$A,TA,SA,AA,_A,RA,IA,fF,OA,oo,zA,Dv,LA,Nv,Hv,Le=class extends(mF=y,uF=[u({type:Array})],hF=[u({type:Array,attribute:"default-value"})],pF=[u({reflect:!0})],cF=[u({reflect:!0})],dF=[u({type:Boolean,reflect:!0})],lF=[u({type:Boolean})],aF=[C()],nF=[lt({context:zv}),C()],mF){constructor(){super(...arguments);a(this,oo);a(this,CA,n(Bt,8,this)),n(Bt,11,this);a(this,$A,n(Bt,12,this,[])),n(Bt,15,this);a(this,TA,n(Bt,16,this,"single")),n(Bt,19,this);a(this,SA,n(Bt,20,this,"horizontal")),n(Bt,23,this);a(this,AA,n(Bt,24,this,!1)),n(Bt,27,this);a(this,_A,n(Bt,28,this,!0)),n(Bt,31,this);a(this,RA,n(Bt,32,this,[])),n(Bt,35,this);a(this,Dv,t=>{if(this.disabled)return;let e=o(this,oo,zA),s;this.type==="single"?s=e.includes(t)?[]:[t]:s=e.includes(t)?e.filter(l=>l!==t):[...e,t],this.value===void 0&&h(this,oo,s,OA),this.dispatchEvent(MA({value:s}))});a(this,LA,n(Bt,36,this,p(this,oo,Nv).call(this))),n(Bt,39,this);a(this,Hv,t=>{let e=this.orientation==="horizontal",s=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";if(t.key!==s&&t.key!==l)return;t.preventDefault();let d=[...this.querySelectorAll("dui-toggle")],m=d.filter(_=>!_.hasAttribute("disabled"));if(m.length===0)return;let g=this.shadowRoot?.activeElement??document.activeElement,E=d.find(_=>_===g||_.shadowRoot?.activeElement===g||_.contains(g)),$=E?m.indexOf(E):-1,x;t.key===s?(x=$+1,x>=m.length&&(x=this.loop?0:m.length-1)):(x=$-1,x<0&&(x=this.loop?m.length-1:0)),m[x]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,oo,[...this.defaultValue],OA),this._ctx=p(this,oo,Nv).call(this)}willUpdate(){this._ctx=p(this,oo,Nv).call(this)}render(){return f`
|
|
8464
8434
|
<div
|
|
8465
8435
|
part="root"
|
|
8466
8436
|
role="group"
|
|
@@ -8469,7 +8439,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8469
8439
|
>
|
|
8470
8440
|
<slot></slot>
|
|
8471
8441
|
</div>
|
|
8472
|
-
`}};Bt=A(mF),CA=new WeakMap,$A=new WeakMap,TA=new WeakMap,SA=new WeakMap,AA=new WeakMap,_A=new WeakMap,RA=new WeakMap,oo=new WeakSet,
|
|
8442
|
+
`}};Bt=A(mF),CA=new WeakMap,$A=new WeakMap,TA=new WeakMap,SA=new WeakMap,AA=new WeakMap,_A=new WeakMap,RA=new WeakMap,oo=new WeakSet,zA=function(){return this.value??o(this,oo,fF)},Dv=new WeakMap,LA=new WeakMap,Nv=function(){return{value:o(this,oo,zA),disabled:this.disabled,type:this.type,toggle:o(this,Dv)}},Hv=new WeakMap,c(Bt,4,"value",uF,Le,CA),c(Bt,4,"defaultValue",hF,Le,$A),c(Bt,4,"type",pF,Le,TA),c(Bt,4,"orientation",cF,Le,SA),c(Bt,4,"disabled",dF,Le,AA),c(Bt,4,"loop",lF,Le,_A),IA=c(Bt,20,"#internalValue",aF,oo,RA),fF=IA.get,OA=IA.set,c(Bt,4,"_ctx",nF,Le,LA),T(Bt,Le),v(Le,"tagName","dui-toggle-group"),v(Le,"styles",[w,i6]);var n6=k`
|
|
8473
8443
|
/* ---------------------------------------------------------------
|
|
8474
8444
|
* Sizes (swap dimensions)
|
|
8475
8445
|
* --------------------------------------------------------------- */
|
|
@@ -8600,7 +8570,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8600
8570
|
display: flex;
|
|
8601
8571
|
align-items: center;
|
|
8602
8572
|
}
|
|
8603
|
-
`,gF,vF,bF,
|
|
8573
|
+
`,gF,vF,bF,yF,Wr,NA,DA,HA,Fo=class extends(yF=y,bF=[u({type:Boolean,reflect:!0})],vF=[u({type:Boolean,reflect:!0,attribute:"has-button-left"})],gF=[u({type:Boolean,reflect:!0,attribute:"has-button-right"})],yF){constructor(){super(...arguments);a(this,NA,n(Wr,8,this,!1)),n(Wr,11,this);a(this,DA,n(Wr,12,this,!1)),n(Wr,15,this);a(this,HA,n(Wr,16,this,!1)),n(Wr,19,this)}render(){return f`
|
|
8604
8574
|
<nav part="root" role="toolbar">
|
|
8605
8575
|
<div part="left">
|
|
8606
8576
|
<slot name="left"></slot>
|
|
@@ -8612,7 +8582,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8612
8582
|
<slot name="right"></slot>
|
|
8613
8583
|
</div>
|
|
8614
8584
|
</nav>
|
|
8615
|
-
`}};
|
|
8585
|
+
`}};Wr=A(yF),NA=new WeakMap,DA=new WeakMap,HA=new WeakMap,c(Wr,4,"inset",bF,Fo,NA),c(Wr,4,"hasButtonLeft",vF,Fo,DA),c(Wr,4,"hasButtonRight",gF,Fo,HA),T(Wr,Fo),v(Fo,"tagName","dui-toolbar"),v(Fo,"styles",[w,l6]);var d6=k`
|
|
8616
8586
|
/* ── Root ── */
|
|
8617
8587
|
|
|
8618
8588
|
[part="root"] {
|
|
@@ -8645,7 +8615,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8645
8615
|
:host {
|
|
8646
8616
|
display: contents;
|
|
8647
8617
|
}
|
|
8648
|
-
`,
|
|
8618
|
+
`,xF,wF,kF,EF,CF,$F,TF,SF,AF,_F,RF,Et,BA,FA,VA,PA,UA,qA,jA,KA,WA,Bv,Fv,Ct,YA,GA,JA,IF,Sn,An,Uv,qv,XA,Vv,LF,OF,QA,ZA,zF,ke=class extends(RF=y,_F=[u({type:Boolean,reflect:!0})],AF=[u({type:Boolean,attribute:"default-open"})],SF=[u({reflect:!0})],TF=[u({type:Number,attribute:"side-offset"})],$F=[u({type:Number})],CF=[u({type:Number,attribute:"close-delay"})],EF=[u({type:Boolean,reflect:!0})],kF=[C()],wF=[C()],xF=[lt({context:ec}),C()],RF){constructor(){super(...arguments);a(this,Ct);a(this,BA,n(Et,8,this,!1)),n(Et,11,this);a(this,FA,n(Et,12,this,!1)),n(Et,15,this);a(this,VA,n(Et,16,this,"top")),n(Et,19,this);a(this,PA,n(Et,20,this,6)),n(Et,23,this);a(this,UA,n(Et,24,this,500)),n(Et,27,this);a(this,qA,n(Et,28,this,0)),n(Et,31,this);a(this,jA,n(Et,32,this,!1)),n(Et,35,this);a(this,KA,n(Et,36,this,!1)),n(Et,39,this);a(this,YA,n(Et,40,this)),n(Et,43,this);a(this,Sn);a(this,An);a(this,Uv,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,qv,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);a(this,XA,n(Et,44,this,{open:!1,triggerId:o(this,Uv),popupId:o(this,qv),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>p(this,Ct,LF).call(this),closeTooltip:()=>p(this,Ct,OF).call(this),setTriggerEl:t=>p(this,Ct,zF).call(this,t)})),n(Et,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&h(this,Ct,!0,Fv)}disconnectedCallback(){super.disconnectedCallback(),p(this,Ct,Vv).call(this)}willUpdate(t){let e=this.open||o(this,Ct,Bv);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==e||this._ctx.triggerEl!==o(this,Ct,JA))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:o(this,Ct,JA)})}render(){return f`<slot></slot>`}};Et=A(RF),BA=new WeakMap,FA=new WeakMap,VA=new WeakMap,PA=new WeakMap,UA=new WeakMap,qA=new WeakMap,jA=new WeakMap,KA=new WeakMap,Ct=new WeakSet,YA=new WeakMap,Sn=new WeakMap,An=new WeakMap,Uv=new WeakMap,qv=new WeakMap,XA=new WeakMap,Vv=function(){o(this,Sn)&&(clearTimeout(o(this,Sn)),h(this,Sn,void 0)),o(this,An)&&(clearTimeout(o(this,An)),h(this,An,void 0))},LF=function(){this.disabled||(p(this,Ct,Vv).call(this),this.delay<=0?p(this,Ct,QA).call(this):h(this,Sn,setTimeout(()=>p(this,Ct,QA).call(this),this.delay)))},OF=function(){p(this,Ct,Vv).call(this),this.closeDelay<=0?p(this,Ct,ZA).call(this):h(this,An,setTimeout(()=>p(this,Ct,ZA).call(this),this.closeDelay))},QA=function(){o(this,Ct,Bv)||(h(this,Ct,!0,Fv),this.dispatchEvent(Pv({open:!0})))},ZA=function(){o(this,Ct,Bv)&&(h(this,Ct,!1,Fv),this.dispatchEvent(Pv({open:!1})))},zF=function(t){h(this,Ct,t,IF)},c(Et,4,"open",_F,ke,BA),c(Et,4,"defaultOpen",AF,ke,FA),c(Et,4,"side",SF,ke,VA),c(Et,4,"sideOffset",TF,ke,PA),c(Et,4,"delay",$F,ke,UA),c(Et,4,"closeDelay",CF,ke,qA),c(Et,4,"disabled",EF,ke,jA),WA=c(Et,20,"#internalOpen",kF,Ct,KA),Bv=WA.get,Fv=WA.set,GA=c(Et,20,"#triggerEl",wF,Ct,YA),JA=GA.get,IF=GA.set,c(Et,4,"_ctx",xF,ke,XA),T(Et,ke),v(ke,"tagName","dui-tooltip"),v(ke,"styles",[w,c6]);var p6=b`
|
|
8649
8619
|
:host {
|
|
8650
8620
|
display: contents;
|
|
8651
8621
|
}
|
|
@@ -8666,7 +8636,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8666
8636
|
.Trigger[data-disabled] {
|
|
8667
8637
|
cursor: not-allowed;
|
|
8668
8638
|
}
|
|
8669
|
-
`,MF,NF,jv,t_,ro,Wv,Yv,Gv,Xv,Jv,
|
|
8639
|
+
`,MF,NF,jv,t_,ro,Wv,Yv,Gv,Xv,Jv,xs,e_,Kv,ys=class extends(NF=y,MF=[u({type:Boolean,reflect:!0})],NF){constructor(){super(...arguments);a(this,xs);a(this,t_,n(jv,8,this,!1)),n(jv,11,this);a(this,ro,new q(this,{context:ec,subscribe:!0}));a(this,Wv,()=>{o(this,xs,Kv)||(p(this,xs,e_).call(this),o(this,ro).value?.openTooltip())});a(this,Yv,()=>{o(this,ro).value?.closeTooltip()});a(this,Gv,()=>{o(this,xs,Kv)||(p(this,xs,e_).call(this),o(this,ro).value?.openTooltip())});a(this,Xv,()=>{o(this,ro).value?.closeTooltip()});a(this,Jv,t=>{t.key==="Escape"&&o(this,ro).value?.open&&o(this,ro).value?.closeTooltip()})}render(){let t=o(this,ro).value?.open??!1,e=o(this,ro).value?.popupId??"",s=o(this,ro).value?.triggerId??"";return f`
|
|
8670
8640
|
<span
|
|
8671
8641
|
class="Trigger"
|
|
8672
8642
|
part="trigger"
|
|
@@ -8675,7 +8645,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8675
8645
|
tabindex="0"
|
|
8676
8646
|
aria-describedby="${t?e:""}"
|
|
8677
8647
|
?data-popup-open="${t}"
|
|
8678
|
-
?data-disabled="${o(this,
|
|
8648
|
+
?data-disabled="${o(this,xs,Kv)}"
|
|
8679
8649
|
@mouseenter="${o(this,Wv)}"
|
|
8680
8650
|
@mouseleave="${o(this,Yv)}"
|
|
8681
8651
|
@focus="${o(this,Gv)}"
|
|
@@ -8684,7 +8654,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8684
8654
|
>
|
|
8685
8655
|
<slot></slot>
|
|
8686
8656
|
</span>
|
|
8687
|
-
`}};jv=A(NF),t_=new WeakMap,ro=new WeakMap,Wv=new WeakMap,Yv=new WeakMap,Gv=new WeakMap,Xv=new WeakMap,Jv=new WeakMap,
|
|
8657
|
+
`}};jv=A(NF),t_=new WeakMap,ro=new WeakMap,Wv=new WeakMap,Yv=new WeakMap,Gv=new WeakMap,Xv=new WeakMap,Jv=new WeakMap,xs=new WeakSet,e_=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;o(this,ro).value?.setTriggerEl(t)},Kv=function(){return this.disabled||(o(this,ro).value?.disabled??!1)},c(jv,4,"disabled",MF,ys,t_),T(jv,ys),v(ys,"tagName","dui-tooltip-trigger"),v(ys,"styles",[w,p6,h6]);var u6=b`
|
|
8688
8658
|
:host {
|
|
8689
8659
|
display: contents;
|
|
8690
8660
|
}
|
|
@@ -8733,19 +8703,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
8733
8703
|
left: 50%;
|
|
8734
8704
|
transform: translateX(-50%) rotate(180deg);
|
|
8735
8705
|
}
|
|
8736
|
-
`],DF,HF,BF,_n,o_,r_,s_,Qv,FF,
|
|
8706
|
+
`],DF,HF,BF,_n,o_,r_,s_,Qv,FF,Gr,ws,oc,Rn,VF,Yr=class extends(BF=y,HF=[u({type:Boolean,attribute:"show-arrow"})],DF=[C()],BF){constructor(){super(...arguments);a(this,Gr);a(this,o_,n(_n,8,this,!0)),n(_n,11,this);a(this,r_,n(_n,12,this,"top")),n(_n,15,this);a(this,ws,new q(this,{context:ec,subscribe:!0}));a(this,oc,!1);a(this,Rn,new Te(this,{getAnchor:()=>o(this,ws).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:m6,contentContainer:".Content",onClose:()=>{o(this,ws).value?.closeTooltip()},onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Gr,Qv)&&h(this,Gr,e,FF)},renderPopup:t=>{let e=o(this,ws).value?.popupId??"";return f`
|
|
8737
8707
|
<div
|
|
8738
8708
|
class="Popup"
|
|
8739
8709
|
id="${e}"
|
|
8740
8710
|
role="tooltip"
|
|
8741
8711
|
?data-starting-style="${t.isStarting}"
|
|
8742
8712
|
?data-ending-style="${t.isEnding}"
|
|
8743
|
-
data-side="${o(this,
|
|
8713
|
+
data-side="${o(this,Gr,Qv)}"
|
|
8744
8714
|
>
|
|
8745
8715
|
<div class="Content"></div>
|
|
8746
|
-
${this.showArrow?Ra(o(this,
|
|
8716
|
+
${this.showArrow?Ra(o(this,Gr,Qv)):""}
|
|
8747
8717
|
</div>
|
|
8748
|
-
`}}))}updated(){let t=o(this,
|
|
8718
|
+
`}}))}updated(){let t=o(this,ws).value?.open??!1;t&&!o(this,oc)?(p(this,Gr,VF).call(this),o(this,Rn).open()):!t&&o(this,oc)&&o(this,Rn).close(),h(this,oc,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};_n=A(BF),o_=new WeakMap,r_=new WeakMap,Gr=new WeakSet,ws=new WeakMap,oc=new WeakMap,Rn=new WeakMap,VF=function(){let t=o(this,ws).value?.side??"top";o(this,Rn).placement=t,o(this,Rn).offset=o(this,ws).value?.sideOffset??6},c(_n,4,"showArrow",HF,Yr,o_),s_=c(_n,20,"#side",DF,Gr,r_),Qv=s_.get,FF=s_.set,T(_n,Yr),v(Yr,"tagName","dui-tooltip-popup"),v(Yr,"styles",[w,u6]);var f6=k``,rc=class extends ke{static styles=[...ke.styles,f6]};customElements.define(rc.tagName,rc);var g6=k`
|
|
8749
8719
|
.Popup {
|
|
8750
8720
|
padding: var(--space-2) var(--space-2);
|
|
8751
8721
|
border-radius: var(--radius-sm);
|
|
@@ -8772,7 +8742,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8772
8742
|
fill: none;
|
|
8773
8743
|
stroke: none;
|
|
8774
8744
|
}
|
|
8775
|
-
`,sc=class extends
|
|
8745
|
+
`,sc=class extends Yr{static styles=[...Yr.styles,g6]};customElements.define(sc.tagName,sc);var ic=class extends ys{};customElements.define(ic.tagName,ic);var Zv=Symbol("dui-tree");var m_=M("dui-load-children",{bubbles:!0,composed:!0}),v6=b`
|
|
8776
8746
|
:host {
|
|
8777
8747
|
display: block;
|
|
8778
8748
|
}
|
|
@@ -8801,7 +8771,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8801
8771
|
[part="group"][hidden] {
|
|
8802
8772
|
display: none;
|
|
8803
8773
|
}
|
|
8804
|
-
`,PF,UF,qF,jF,KF,WF,YF,me,i_,n_,a_,l_,d_,c_,p_,tb,GF,rt,nc,eb,bh,h_,
|
|
8774
|
+
`,PF,UF,qF,jF,KF,WF,YF,me,i_,n_,a_,l_,d_,c_,p_,tb,GF,rt,nc,eb,bh,h_,yh,u_,XF,oi,ob,rb,sb,fe=class extends(YF=y,WF=[u()],KF=[u({type:Boolean,reflect:!0})],jF=[u({type:Boolean,attribute:"has-children",reflect:!0})],qF=[u({type:Boolean,reflect:!0})],UF=[Nt({context:Zv,subscribe:!0}),C()],PF=[C()],YF){constructor(){super(...arguments);a(this,rt);a(this,i_,n(me,8,this,"")),n(me,11,this);a(this,n_,n(me,12,this,!1)),n(me,15,this);a(this,a_,n(me,16,this,!1)),n(me,19,this);a(this,l_,n(me,20,this,!1)),n(me,23,this);a(this,d_,n(me,24,this)),n(me,27,this);a(this,c_,n(me,28,this,!1)),n(me,31,this);a(this,nc,!1);a(this,ob,t=>{let s=t.target.assignedElements().some(l=>l.tagName==="DUI-TREE-ITEM");s!==o(this,rt,tb)&&h(this,rt,s,GF)});a(this,rb,t=>{t.stopPropagation(),!o(this,rt,yh)&&this._ctx?.activate(this.value,this.isBranch)});a(this,sb,t=>{this.isBranch&&(t.stopPropagation(),!o(this,rt,yh)&&this._ctx?.toggleExpand(this.value))})}get isBranch(){return o(this,rt,tb)||this.hasChildren}willUpdate(t){this.isBranch&&o(this,rt,bh)?!o(this,rt,tb)&&!o(this,nc)&&(h(this,nc,!0),this.dispatchEvent(m_({value:this.value}))):o(this,rt,bh)||h(this,nc,!1)}updated(){this.style.setProperty("--dui-tree-level",String(o(this,rt,eb))),p(this,rt,oi).call(this,"data-expanded",o(this,rt,bh)&&this.isBranch),p(this,rt,oi).call(this,"data-selected",o(this,rt,h_)),p(this,rt,oi).call(this,"data-disabled",o(this,rt,yh)),p(this,rt,oi).call(this,"data-branch",this.isBranch),p(this,rt,oi).call(this,"data-leaf",!this.isBranch),p(this,rt,oi).call(this,"data-focus",o(this,rt,u_)),p(this,rt,oi).call(this,"data-loading",this.loading),this.setAttribute("data-level",String(o(this,rt,eb))),this.loading?this.setAttribute("aria-busy","true"):this.removeAttribute("aria-busy")}render(){let t=this.isBranch,e=o(this,rt,bh)&&t,s=o(this,rt,yh),l=o(this,rt,h_),d=o(this,rt,u_),m=this.loading,g=o(this,rt,eb),E=o(this,rt,XF),$=this._ctx?.selectionMode??"none";return f`
|
|
8805
8775
|
<div
|
|
8806
8776
|
part="root"
|
|
8807
8777
|
role="treeitem"
|
|
@@ -8843,7 +8813,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8843
8813
|
<slot @slotchange=${o(this,ob)}></slot>
|
|
8844
8814
|
</div>
|
|
8845
8815
|
</div>
|
|
8846
|
-
`}};me=A(YF),i_=new WeakMap,n_=new WeakMap,a_=new WeakMap,l_=new WeakMap,d_=new WeakMap,c_=new WeakMap,rt=new WeakSet,nc=new WeakMap,eb=function(){let t=1,e=this.parentElement;for(;e&&(e.tagName==="DUI-TREE-ITEM"&&t++,e.tagName!=="DUI-TREE");)e=e.parentElement;return t},bh=function(){return this._ctx?.expandedValues.includes(this.value)??!1},h_=function(){return this._ctx?.selectedValues.includes(this.value)??!1},
|
|
8816
|
+
`}};me=A(YF),i_=new WeakMap,n_=new WeakMap,a_=new WeakMap,l_=new WeakMap,d_=new WeakMap,c_=new WeakMap,rt=new WeakSet,nc=new WeakMap,eb=function(){let t=1,e=this.parentElement;for(;e&&(e.tagName==="DUI-TREE-ITEM"&&t++,e.tagName!=="DUI-TREE");)e=e.parentElement;return t},bh=function(){return this._ctx?.expandedValues.includes(this.value)??!1},h_=function(){return this._ctx?.selectedValues.includes(this.value)??!1},yh=function(){if(this.disabled||this._ctx?.disabled)return!0;let t=this.parentElement;for(;t&&t.tagName!=="DUI-TREE";){if(t.tagName==="DUI-TREE-ITEM"&&t.hasAttribute("disabled"))return!0;t=t.parentElement}return!1},u_=function(){return this._ctx?.focusedValue===this.value},XF=function(){return Array.from(this.parentElement?.children??[]).filter(t=>t.tagName==="DUI-TREE-ITEM")},oi=function(t,e){e?this.hasAttribute(t)||this.setAttribute(t,""):this.hasAttribute(t)&&this.removeAttribute(t)},ob=new WeakMap,rb=new WeakMap,sb=new WeakMap,c(me,4,"value",WF,fe,i_),c(me,4,"disabled",KF,fe,n_),c(me,4,"hasChildren",jF,fe,a_),c(me,4,"loading",qF,fe,l_),c(me,4,"_ctx",UF,fe,d_),p_=c(me,20,"#hasSlottedChildren",PF,rt,c_),tb=p_.get,GF=p_.set,T(me,fe),v(fe,"tagName","dui-tree-item"),v(fe,"styles",[w,v6]);var cb=M("dui-expanded-change",{bubbles:!0,composed:!0}),I_=M("dui-selection-change",{bubbles:!0,composed:!0}),L_=M("dui-action",{bubbles:!0,composed:!0}),b6=b`
|
|
8847
8817
|
:host {
|
|
8848
8818
|
display: block;
|
|
8849
8819
|
}
|
|
@@ -8851,7 +8821,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8851
8821
|
[part="root"] {
|
|
8852
8822
|
outline: none;
|
|
8853
8823
|
}
|
|
8854
|
-
`,JF,QF,ZF,t3,e3,o3,r3,s3,i3,n3,a3,$t,f_,g_,v_,b_,x_,
|
|
8824
|
+
`,JF,QF,ZF,t3,e3,o3,r3,s3,i3,n3,a3,$t,f_,g_,v_,b_,y_,x_,w_,k_,l3,ib,U,E_,C_,A_,xh,$_,T_,nb,ab,In,Xr,Ln,ks,wh,On,pb,kh,Eh,S_,lb,__,y6,db,d3,c3,ri,R_,hb,ub,p3,h3,Oe=class extends(a3=y,n3=[u({type:Array})],i3=[u({type:Array,attribute:"default-expanded-values"})],s3=[u({attribute:"selection-mode",reflect:!0})],r3=[u({type:Array})],o3=[u({type:Array,attribute:"default-selected-values"})],e3=[u({type:Boolean,reflect:!0})],t3=[C()],ZF=[C()],QF=[C()],JF=[lt({context:Zv}),C()],a3){constructor(){super(...arguments);a(this,U);a(this,f_,n($t,8,this)),n($t,11,this);a(this,g_,n($t,12,this,[])),n($t,15,this);a(this,v_,n($t,16,this,"none")),n($t,19,this);a(this,b_,n($t,20,this)),n($t,23,this);a(this,y_,n($t,24,this,[])),n($t,27,this);a(this,x_,n($t,28,this,!1)),n($t,31,this);a(this,w_,n($t,32,this,[])),n($t,35,this);a(this,E_,n($t,36,this,[])),n($t,39,this);a(this,$_,n($t,40,this,null)),n($t,43,this);a(this,In,"");a(this,Xr,null);a(this,Ln,null);a(this,ks,()=>this.expandedValues??o(this,U,l3));a(this,wh,()=>this.selectedValues??o(this,U,A_));a(this,On,t=>{let e=[...o(this,ks).call(this)],l=e.indexOf(t)>=0?e.filter(d=>d!==t):[...e,t];this.expandedValues===void 0&&h(this,U,l,ib),this.dispatchEvent(cb({values:l}))});a(this,pb,t=>{let e=[...o(this,wh).call(this)],s=e.indexOf(t),l;this.selectionMode==="single"?l=s>=0?[]:[t]:l=s>=0?e.filter(d=>d!==t):[...e,t],this.selectedValues===void 0&&h(this,U,l,xh),this.dispatchEvent(I_({values:l}))});a(this,kh,(t,e)=>{this.disabled||(this.selectionMode!=="none"?o(this,pb).call(this,t):e?o(this,On).call(this,t):this.dispatchEvent(L_({value:t})))});a(this,Eh,t=>{o(this,U,nb)!==t&&h(this,U,t,ab)});a(this,S_,n($t,44,this,p(this,U,lb).call(this))),n($t,47,this);a(this,hb,t=>{let e=p(this,U,R_).call(this,t);e&&o(this,Eh).call(this,e.value)});a(this,ub,t=>{if(this.disabled)return;let e=p(this,U,R_).call(this,t);if(!e)return;let s=p(this,U,db).call(this),l=s.indexOf(e);switch(t.key){case"ArrowDown":{t.preventDefault(),l<s.length-1&&p(this,U,ri).call(this,s[l+1]);break}case"ArrowUp":{t.preventDefault(),l>0&&p(this,U,ri).call(this,s[l-1]);break}case"ArrowRight":{if(t.preventDefault(),!e.isBranch)break;o(this,ks).call(this).includes(e.value)?l<s.length-1&&p(this,U,ri).call(this,s[l+1]):o(this,On).call(this,e.value);break}case"ArrowLeft":{if(t.preventDefault(),e.isBranch&&o(this,ks).call(this).includes(e.value))o(this,On).call(this,e.value);else{let d=p(this,U,c3).call(this,e);d&&p(this,U,ri).call(this,d)}break}case"Enter":case" ":{t.preventDefault(),e.disabled||o(this,kh).call(this,e.value,e.isBranch);break}case"Home":{t.preventDefault(),s[0]&&p(this,U,ri).call(this,s[0]);break}case"End":{t.preventDefault();let d=s[s.length-1];d&&p(this,U,ri).call(this,d);break}case"*":{t.preventDefault(),p(this,U,p3).call(this,e);break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&p(this,U,h3).call(this,e,t.key)}})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tree"),this.expandedValues===void 0&&this.defaultExpandedValues.length>0&&h(this,U,[...this.defaultExpandedValues],ib),this.selectedValues===void 0&&this.defaultSelectedValues.length>0&&h(this,U,[...this.defaultSelectedValues],xh),this._ctx=p(this,U,lb).call(this),h(this,Ln,new MutationObserver(()=>this.requestUpdate())),o(this,Ln).observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled"]})}disconnectedCallback(){super.disconnectedCallback(),o(this,Ln)?.disconnect(),h(this,Ln,null),o(this,Xr)&&clearTimeout(o(this,Xr)),h(this,Xr,null),h(this,In,"")}willUpdate(t){if(this.selectionMode==="multiple"?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),t.has("selectionMode")&&this.selectedValues===void 0){let e=o(this,U,A_);this.selectionMode==="none"&&e.length>0?h(this,U,[],xh):this.selectionMode==="single"&&e.length>1&&h(this,U,[e[0]],xh)}this._ctx=p(this,U,lb).call(this)}updated(){if(o(this,U,nb)===null){let t=p(this,U,db).call(this).find(e=>!e.disabled);t&&h(this,U,t.value,ab)}}render(){return f`
|
|
8855
8825
|
<div
|
|
8856
8826
|
part="root"
|
|
8857
8827
|
?data-disabled=${this.disabled}
|
|
@@ -8860,7 +8830,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8860
8830
|
>
|
|
8861
8831
|
<slot></slot>
|
|
8862
8832
|
</div>
|
|
8863
|
-
`}};$t=A(a3),f_=new WeakMap,g_=new WeakMap,v_=new WeakMap,b_=new WeakMap,
|
|
8833
|
+
`}};$t=A(a3),f_=new WeakMap,g_=new WeakMap,v_=new WeakMap,b_=new WeakMap,y_=new WeakMap,x_=new WeakMap,w_=new WeakMap,U=new WeakSet,E_=new WeakMap,$_=new WeakMap,In=new WeakMap,Xr=new WeakMap,Ln=new WeakMap,ks=new WeakMap,wh=new WeakMap,On=new WeakMap,pb=new WeakMap,kh=new WeakMap,Eh=new WeakMap,S_=new WeakMap,lb=function(){return{expandedValues:o(this,ks).call(this),selectedValues:o(this,wh).call(this),selectionMode:this.selectionMode,disabled:this.disabled,focusedValue:o(this,U,nb),toggleExpand:o(this,On),activate:o(this,kh),setFocused:o(this,Eh)}},__=function(){return[...this.querySelectorAll("dui-tree-item")]},y6=function(t){return p(this,U,__).call(this).find(e=>e.value===t)},db=function(){return p(this,U,__).call(this).filter(t=>p(this,U,d3).call(this,t))},d3=function(t){let e=t.parentElement;for(;e;){if(e===this)return!0;if(e instanceof fe&&!o(this,ks).call(this).includes(e.value))return!1;e=e.parentElement}return!1},c3=function(t){let e=t.parentElement;for(;e;){if(e===this)return null;if(e instanceof fe)return e;e=e.parentElement}return null},ri=function(t){h(this,U,t.value,ab),t.shadowRoot?.querySelector("[part='root']")?.focus()},R_=function(t){return t.composedPath().find(e=>e instanceof fe)??null},hb=new WeakMap,ub=new WeakMap,p3=function(t){let e=Array.from(t.parentElement?.children??[]).filter(m=>m instanceof fe&&m.isBranch&&!m.disabled),s=o(this,ks).call(this),l=e.map(m=>m.value).filter(m=>!s.includes(m));if(l.length===0)return;let d=[...s,...l];this.expandedValues===void 0&&h(this,U,d,ib),this.dispatchEvent(cb({values:d}))},h3=function(t,e){h(this,In,o(this,In)+e.toLowerCase()),o(this,Xr)&&clearTimeout(o(this,Xr)),h(this,Xr,setTimeout(()=>{h(this,In,""),h(this,Xr,null)},500));let s=p(this,U,db).call(this),l=s.indexOf(t),m=[...s.slice(l+1),...s.slice(0,l+1)].find(g=>(g.querySelector("[slot='label']")?.textContent?.trim().toLowerCase()??"").startsWith(o(this,In)));m&&p(this,U,ri).call(this,m)},c($t,4,"expandedValues",n3,Oe,f_),c($t,4,"defaultExpandedValues",i3,Oe,g_),c($t,4,"selectionMode",s3,Oe,v_),c($t,4,"selectedValues",r3,Oe,b_),c($t,4,"defaultSelectedValues",o3,Oe,y_),c($t,4,"disabled",e3,Oe,x_),k_=c($t,20,"#internalExpanded",t3,U,w_),l3=k_.get,ib=k_.set,C_=c($t,20,"#internalSelected",ZF,U,E_),A_=C_.get,xh=C_.set,T_=c($t,20,"#focusedValue",QF,U,$_),nb=T_.get,ab=T_.set,c($t,4,"_ctx",JF,Oe,S_),T($t,Oe),v(Oe,"tagName","dui-tree"),v(Oe,"styles",[w,b6]);var x6=k`
|
|
8864
8834
|
/* ── Sizes — write to public tokens on :host so consumer overrides win ── */
|
|
8865
8835
|
|
|
8866
8836
|
:host {
|
|
@@ -8903,7 +8873,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8903
8873
|
--_tree-indicator-size: var(--space-4);
|
|
8904
8874
|
--_tree-inline-gap: var(--space-2_5);
|
|
8905
8875
|
}
|
|
8906
|
-
`,ac=class extends
|
|
8876
|
+
`,ac=class extends Oe{static styles=[...Oe.styles,x6]};customElements.define(ac.tagName,ac);var u3=Qr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")`),m3=Qr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E")`),w6=k`
|
|
8907
8877
|
/* ── Row container ─────────────────────────────────────────────────── */
|
|
8908
8878
|
|
|
8909
8879
|
/*
|
|
@@ -9054,10 +9024,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
9054
9024
|
display: -webkit-box;
|
|
9055
9025
|
-webkit-box-orient: vertical;
|
|
9056
9026
|
}
|
|
9057
|
-
`,f3,g3,v3,
|
|
9027
|
+
`,f3,g3,v3,zn,O_,z_,rr=class extends(v3=y,g3=[u({attribute:"max-width"})],f3=[u({attribute:"max-lines",type:Number,reflect:!0})],v3){constructor(){super(...arguments);a(this,O_,n(zn,8,this,"20rem")),n(zn,11,this);a(this,z_,n(zn,12,this)),n(zn,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,e=Ga({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return f`<div part="root" style=${e}><slot></slot></div>`}};zn=A(v3),O_=new WeakMap,z_=new WeakMap,c(zn,4,"maxWidth",g3,rr,O_),c(zn,4,"maxLines",f3,rr,z_),T(zn,rr),v(rr,"tagName","dui-trunc"),v(rr,"styles",[w,k6]);var E6=k`
|
|
9058
9028
|
[part="root"] {
|
|
9059
9029
|
font-family: var(--font-sans);
|
|
9060
9030
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
9061
9031
|
color: var(--text-1);
|
|
9062
9032
|
}
|
|
9063
|
-
`,dc=class extends
|
|
9033
|
+
`,dc=class extends rr{static styles=[...rr.styles,E6]};customElements.define(dc.tagName,dc);
|