scb-wc-test 0.1.98 → 0.1.100
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/all.js +72 -0
- package/mvc/components/scb-app-bar/scb-app-bar.js +1 -1
- package/mvc/components/scb-dialog/scb-dialog.js +1 -1
- package/mvc/components/scb-drawer/scb-drawer-item.js +2 -2
- package/mvc/components/scb-fact-card/scb-fact-card.js +1 -1
- package/mvc/components/scb-header/scb-header.js +1 -1
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +1 -1
- package/mvc/components/scb-icon-button/scb-icon-button.js +30 -41
- package/mvc/components/scb-notification-card/scb-notification-card.js +1 -1
- package/mvc/components/scb-pagination/scb-pagination.js +1 -1
- package/mvc/components/scb-snackbar/scb-snackbar.js +2 -2
- package/mvc/components/scb-toc/scb-toc-item.js +1 -1
- package/mvc/components/scb-toc/scb-toc.js +1 -1
- package/mvc/components/scb-viz/scb-viz.js +1 -1
- package/mvc/scb-wc-test.css +1 -1
- package/package.json +332 -307
- package/scb-icon-button/scb-icon-button.d.ts +23 -8
- package/scb-icon-button/scb-icon-button.js +106 -133
- package/scb-wc-test.bundle.js +543 -554
- package/scb-wc-test.css +1 -1
- /package/blazor/{blazor/ScbBlazorInteropBase.cs → ScbBlazorInteropBase.cs} +0 -0
- /package/blazor/{blazor/scb-blazor-bridge.js → scb-blazor-bridge.js} +0 -0
package/scb-wc-test.bundle.js
CHANGED
|
@@ -6,11 +6,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2019 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const Si=globalThis,kr=Si.ShadowRoot&&(Si.ShadyCSS===void 0||Si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$r=Symbol(),Xo=new WeakMap;let Zo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==$r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(kr&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Xo.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Xo.set(t,e))}return e}toString(){return this.cssText}};const Ps=o=>new Zo(typeof o=="string"?o:o+"",void 0,$r),
|
|
9
|
+
*/const Si=globalThis,kr=Si.ShadowRoot&&(Si.ShadyCSS===void 0||Si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$r=Symbol(),Xo=new WeakMap;let Zo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==$r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(kr&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Xo.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Xo.set(t,e))}return e}toString(){return this.cssText}};const Ps=o=>new Zo(typeof o=="string"?o:o+"",void 0,$r),b=(o,...e)=>{const t=o.length===1?o[0]:e.reduce((i,r,s)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[s+1],o[0]);return new Zo(t,o,$r)},Ds=(o,e)=>{if(kr)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),r=Si.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=t.cssText,o.appendChild(i)}},Jo=kr?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Ps(t)})(o):o;/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const{is:
|
|
13
|
+
*/const{is:Rs,defineProperty:Bs,getOwnPropertyDescriptor:Ms,getOwnPropertyNames:Hs,getOwnPropertySymbols:Fs,getPrototypeOf:Ns}=Object,We=globalThis,Qo=We.trustedTypes,qs=Qo?Qo.emptyScript:"",Cr=We.reactiveElementPolyfillSupport,qt=(o,e)=>o,ki={toAttribute(o,e){switch(e){case Boolean:o=o?qs:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},Er=(o,e)=>!Rs(o,e),ea={attribute:!0,type:String,converter:ki,reflect:!1,useDefault:!1,hasChanged:Er};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),We.litPropertyMetadata??(We.litPropertyMetadata=new WeakMap);let kt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ea){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(e,i,t);r!==void 0&&Bs(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){const{get:r,set:s}=Ms(this.prototype,e)??{get(){return this[t]},set(n){this[t]=n}};return{get:r,set(n){const h=r==null?void 0:r.call(this);s==null||s.call(this,n),this.requestUpdate(e,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ea}static _$Ei(){if(this.hasOwnProperty(qt("elementProperties")))return;const e=Ns(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(qt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qt("properties"))){const t=this.properties,i=[...Hs(t),...Fs(t)];for(const r of i)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,r]of t)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const r=this._$Eu(t,i);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(Jo(r))}else e!==void 0&&t.push(Jo(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ds(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var s;const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const n=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:ki).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(e,t){var s,n;const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const h=i.getPropertyOptions(r),p=typeof h.converter=="function"?{fromAttribute:h.converter}:((s=h.converter)==null?void 0:s.fromAttribute)!==void 0?h.converter:ki;this._$Em=r;const v=p.fromAttribute(t,h.type);this[r]=v??((n=this._$Ej)==null?void 0:n.get(r))??v,this._$Em=null}}requestUpdate(e,t,i){var r;if(e!==void 0){const s=this.constructor,n=this[e];if(i??(i=s.getPropertyOptions(e)),!((i.hasChanged??Er)(n,t)||i.useDefault&&i.reflect&&n===((r=this._$Ej)==null?void 0:r.get(e))&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:r,wrapped:s},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,n??t??this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,n]of r){const{wrapped:h}=n,p=this[s];h!==!0||this._$AL.has(s)||p===void 0||this.C(s,void 0,n,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};kt.elementStyles=[],kt.shadowRootOptions={mode:"open"},kt[qt("elementProperties")]=new Map,kt[qt("finalized")]=new Map,Cr==null||Cr({ReactiveElement:kt}),(We.reactiveElementVersions??(We.reactiveElementVersions=[])).push("2.1.1");/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -48,7 +48,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/const Ut=globalThis,$i=Ut.trustedTypes,ia=$i?$i.createPolicy("lit-html",{createHTML:o=>o}):void 0,ra="$lit$",Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,oa="?"+Ke,Ks=`<${oa}>`,ot=document,jt=()=>ot.createComment(""),Wt=o=>o===null||typeof o!="object"&&typeof o!="function",zr=Array.isArray,Gs=o=>zr(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Ir=`[
|
|
50
50
|
\f\r]`,Kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aa=/-->/g,sa=/>/g,at=RegExp(`>|${Ir}(?:([^\\s"'>=/]+)(${Ir}*=${Ir}*(?:[^
|
|
51
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),na=/'/g,la=/"/g,ca=/^(?:script|style|textarea|title)$/i,Ys=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),c=Ys(1),ce=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),da=new WeakMap,st=ot.createTreeWalker(ot,129);function ha(o,e){if(!zr(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ia!==void 0?ia.createHTML(e):e}const Xs=(o,e)=>{const t=o.length-1,i=[];let r,s=e===2?"<svg>":e===3?"<math>":"",n=Kt;for(let h=0;h<t;h++){const p=o[h];let v,f,
|
|
51
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),na=/'/g,la=/"/g,ca=/^(?:script|style|textarea|title)$/i,Ys=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),c=Ys(1),ce=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),da=new WeakMap,st=ot.createTreeWalker(ot,129);function ha(o,e){if(!zr(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ia!==void 0?ia.createHTML(e):e}const Xs=(o,e)=>{const t=o.length-1,i=[];let r,s=e===2?"<svg>":e===3?"<math>":"",n=Kt;for(let h=0;h<t;h++){const p=o[h];let v,f,m=-1,x=0;for(;x<p.length&&(n.lastIndex=x,f=n.exec(p),f!==null);)x=n.lastIndex,n===Kt?f[1]==="!--"?n=aa:f[1]!==void 0?n=sa:f[2]!==void 0?(ca.test(f[2])&&(r=RegExp("</"+f[2],"g")),n=at):f[3]!==void 0&&(n=at):n===at?f[0]===">"?(n=r??Kt,m=-1):f[1]===void 0?m=-2:(m=n.lastIndex-f[2].length,v=f[1],n=f[3]===void 0?at:f[3]==='"'?la:na):n===la||n===na?n=at:n===aa||n===sa?n=Kt:(n=at,r=void 0);const _=n===at&&o[h+1].startsWith("/>")?" ":"";s+=n===Kt?p+Ks:m>=0?(i.push(v),p.slice(0,m)+ra+p.slice(m)+Ke+_):p+Ke+(m===-2?h:_)}return[ha(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Gt{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let s=0,n=0;const h=e.length-1,p=this.parts,[v,f]=Xs(e,t);if(this.el=Gt.createElement(v,i),st.currentNode=this.el.content,t===2||t===3){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(r=st.nextNode())!==null&&p.length<h;){if(r.nodeType===1){if(r.hasAttributes())for(const m of r.getAttributeNames())if(m.endsWith(ra)){const x=f[n++],_=r.getAttribute(m).split(Ke),S=/([.?@])?(.*)/.exec(x);p.push({type:1,index:s,name:S[2],strings:_,ctor:S[1]==="."?Js:S[1]==="?"?Qs:S[1]==="@"?en:Ci}),r.removeAttribute(m)}else m.startsWith(Ke)&&(p.push({type:6,index:s}),r.removeAttribute(m));if(ca.test(r.tagName)){const m=r.textContent.split(Ke),x=m.length-1;if(x>0){r.textContent=$i?$i.emptyScript:"";for(let _=0;_<x;_++)r.append(m[_],jt()),st.nextNode(),p.push({type:2,index:++s});r.append(m[x],jt())}}}else if(r.nodeType===8)if(r.data===oa)p.push({type:2,index:s});else{let m=-1;for(;(m=r.data.indexOf(Ke,m+1))!==-1;)p.push({type:7,index:s}),m+=Ke.length-1}s++}}static createElement(e,t){const i=ot.createElement("template");return i.innerHTML=e,i}}function $t(o,e,t=o,i){var n,h;if(e===ce)return e;let r=i!==void 0?(n=t._$Co)==null?void 0:n[i]:t._$Cl;const s=Wt(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((h=r==null?void 0:r._$AO)==null||h.call(r,!1),s===void 0?r=void 0:(r=new s(o),r._$AT(o,t,i)),i!==void 0?(t._$Co??(t._$Co=[]))[i]=r:t._$Cl=r),r!==void 0&&(e=$t(o,r._$AS(o,e.values),r,i)),e}class Zs{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,r=((e==null?void 0:e.creationScope)??ot).importNode(t,!0);st.currentNode=r;let s=st.nextNode(),n=0,h=0,p=i[0];for(;p!==void 0;){if(n===p.index){let v;p.type===2?v=new Yt(s,s.nextSibling,this,e):p.type===1?v=new p.ctor(s,p.name,p.strings,this,e):p.type===6&&(v=new tn(s,this,e)),this._$AV.push(v),p=i[++h]}n!==(p==null?void 0:p.index)&&(s=st.nextNode(),n++)}return st.currentNode=ot,r}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Yt{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=$t(this,e,t),Wt(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==ce&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Gs(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==u&&Wt(this._$AH)?this._$AA.nextSibling.data=e:this.T(ot.createTextNode(e)),this._$AH=e}$(e){var s;const{values:t,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Gt.createElement(ha(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(t);else{const n=new Zs(r,this),h=n.u(this.options);n.p(t),this.T(h),this._$AH=n}}_$AC(e){let t=da.get(e.strings);return t===void 0&&da.set(e.strings,t=new Gt(e)),t}k(e){zr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const s of e)r===t.length?t.push(i=new Yt(this.O(jt()),this.O(jt()),this,this.options)):i=t[r],i._$AI(s),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Ci{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,s){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(e,t=this,i,r){const s=this.strings;let n=!1;if(s===void 0)e=$t(this,e,t,0),n=!Wt(e)||e!==this._$AH&&e!==ce,n&&(this._$AH=e);else{const h=e;let p,v;for(e=s[0],p=0;p<s.length-1;p++)v=$t(this,h[i+p],t,p),v===ce&&(v=this._$AH[p]),n||(n=!Wt(v)||v!==this._$AH[p]),v===u?e=u:e!==u&&(e+=(v??"")+s[p+1]),this._$AH[p]=v}n&&!r&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Js extends Ci{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}}class Qs extends Ci{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==u)}}class en extends Ci{constructor(e,t,i,r,s){super(e,t,i,r,s),this.type=5}_$AI(e,t=this){if((e=$t(this,e,t,0)??u)===ce)return;const i=this._$AH,r=e===u&&i!==u||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==u&&(i===u||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class tn{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){$t(this,e)}}const Tr=Ut.litHtmlPolyfillSupport;Tr==null||Tr(Gt,Yt),(Ut.litHtmlVersions??(Ut.litHtmlVersions=[])).push("3.3.1");const Or=(o,e,t)=>{const i=(t==null?void 0:t.renderBefore)??e;let r=i._$litPart$;if(r===void 0){const s=(t==null?void 0:t.renderBefore)??null;i._$litPart$=r=new Yt(e.insertBefore(jt(),s),s,void 0,t??{})}return r._$AI(o),r};/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2017 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -60,7 +60,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2024 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: Apache-2.0
|
|
63
|
-
*/const on=
|
|
63
|
+
*/const on=b`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}
|
|
64
64
|
`;/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2022 Google LLC
|
|
@@ -73,36 +73,36 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
73
73
|
* @license
|
|
74
74
|
* Copyright 2021 Google LLC
|
|
75
75
|
* SPDX-License-Identifier: Apache-2.0
|
|
76
|
-
*/const an=["focusin","focusout","pointerdown"];class
|
|
76
|
+
*/const an=["focusin","focusout","pointerdown"];class Dr extends y{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new ua(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var t;if(!e[va]){switch(e.type){default:return;case"focusin":this.visible=((t=this.control)==null?void 0:t.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}e[va]=!0}}onControlChange(e,t){for(const i of an)e==null||e.removeEventListener(i,this),t==null||t.addEventListener(i,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}d([l({type:Boolean,reflect:!0})],Dr.prototype,"visible",void 0),d([l({type:Boolean,reflect:!0})],Dr.prototype,"inward",void 0);const va=Symbol("handledByFocusRing");/**
|
|
77
77
|
* @license
|
|
78
78
|
* Copyright 2024 Google LLC
|
|
79
79
|
* SPDX-License-Identifier: Apache-2.0
|
|
80
|
-
*/const sn=
|
|
80
|
+
*/const sn=b`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
|
|
81
81
|
`;/**
|
|
82
82
|
* @license
|
|
83
83
|
* Copyright 2021 Google LLC
|
|
84
84
|
* SPDX-License-Identifier: Apache-2.0
|
|
85
|
-
*/let Ai=class extends
|
|
85
|
+
*/let Ai=class extends Dr{};Ai.styles=[sn],Ai=d([g("md-focus-ring")],Ai);const nn=Object.freeze(Object.defineProperty({__proto__:null,get MdFocusRing(){return Ai}},Symbol.toStringTag,{value:"Module"}));/**
|
|
86
86
|
* @license
|
|
87
87
|
* Copyright 2017 Google LLC
|
|
88
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*/const Ge={ATTRIBUTE:1,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},
|
|
89
|
+
*/const Ge={ATTRIBUTE:1,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},Rr=o=>(...e)=>({_$litDirective$:o,values:e});let Br=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
|
|
90
90
|
* @license
|
|
91
91
|
* Copyright 2018 Google LLC
|
|
92
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
-
*/const P=
|
|
93
|
+
*/const P=Rr(class extends Br{constructor(o){var e;if(super(o),o.type!==Ge.ATTRIBUTE||o.name!=="class"||((e=o.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(e=>o[e]).join(" ")+" "}update(o,[e]){var i,r;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!((i=this.nt)!=null&&i.has(s))&&this.st.add(s);return this.render(e)}const t=o.element.classList;for(const s of this.st)s in e||(t.remove(s),this.st.delete(s));for(const s in e){const n=!!e[s];n===this.st.has(s)||(r=this.nt)!=null&&r.has(s)||(n?(t.add(s),this.st.add(s)):(t.remove(s),this.st.delete(s)))}return ce}});/**
|
|
94
94
|
* @license
|
|
95
95
|
* Copyright 2021 Google LLC
|
|
96
96
|
* SPDX-License-Identifier: Apache-2.0
|
|
97
|
-
*/const
|
|
97
|
+
*/const me={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)"};function ln(){let o=null;return{start(){return o==null||o.abort(),o=new AbortController,o.signal},finish(){o=null}}}/**
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright 2022 Google LLC
|
|
100
100
|
* SPDX-License-Identifier: Apache-2.0
|
|
101
|
-
*/const cn=450,
|
|
101
|
+
*/const cn=450,ma=225,dn=.2,hn=10,pn=75,un=.35,vn="::after",mn="forwards";var Z;(function(o){o[o.INACTIVE=0]="INACTIVE",o[o.TOUCH_DELAY=1]="TOUCH_DELAY",o[o.HOLDING=2]="HOLDING",o[o.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(Z||(Z={}));const bn=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],fn=150,Mr=window.matchMedia("(forced-colors: active)");class Xt extends y{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Z.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new ua(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return c`<div class="surface ${P(e)}"></div>`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==Z.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===Z.HOLDING){this.state=Z.WAITING_FOR_CLICK;return}if(this.state===Z.TOUCH_DELAY){this.state=Z.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=Z.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=Z.TOUCH_DELAY,await new Promise(t=>{setTimeout(t,fn)}),this.state===Z.TOUCH_DELAY&&(this.state=Z.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===Z.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===Z.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:t}=this.getBoundingClientRect(),i=Math.max(e,t),r=Math.max(un*i,pn),s=Math.floor(i*dn),h=Math.sqrt(t**2+e**2)+hn;this.initialSize=s,this.rippleScale=`${(h+r)/s}`,this.rippleSize=`${s}px`}getNormalizedPointerEventCoords(e){const{scrollX:t,scrollY:i}=window,{left:r,top:s}=this.getBoundingClientRect(),n=t+r,h=i+s,{pageX:p,pageY:v}=e;return{x:p-n,y:v-h}}getTranslationCoordinates(e){const{height:t,width:i}=this.getBoundingClientRect(),r={x:(i-this.initialSize)/2,y:(t-this.initialSize)/2};let s;return e instanceof PointerEvent?s=this.getNormalizedPointerEventCoords(e):s={x:i/2,y:t/2},s={x:s.x-this.initialSize/2,y:s.y-this.initialSize/2},{startPoint:s,endPoint:r}}startPressAnimation(e){var n;if(!this.mdRoot)return;this.pressed=!0,(n=this.growAnimation)==null||n.cancel(),this.determineRippleSize();const{startPoint:t,endPoint:i}=this.getTranslationCoordinates(e),r=`${t.x}px, ${t.y}px`,s=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${s}) scale(${this.rippleScale})`]},{pseudoElement:vn,duration:cn,easing:me.STANDARD,fill:mn})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Z.INACTIVE;const e=this.growAnimation;let t=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?t=e.currentTime:e!=null&&e.currentTime&&(t=e.currentTime.to("ms").value),t>=ma){this.pressed=!1;return}await new Promise(i=>{setTimeout(i,ma-t)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const t=e.buttons===1;return this.isTouch(e)||t}inBounds({x:e,y:t}){const{top:i,left:r,bottom:s,right:n}=this.getBoundingClientRect();return e>=r&&e<=n&&t>=i&&t<=s}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){if(!(Mr!=null&&Mr.matches))switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,t){for(const i of bn)e==null||e.removeEventListener(i,this),t==null||t.addEventListener(i,this)}}d([l({type:Boolean,reflect:!0})],Xt.prototype,"disabled",void 0),d([w()],Xt.prototype,"hovered",void 0),d([w()],Xt.prototype,"pressed",void 0),d([k(".surface")],Xt.prototype,"mdRoot",void 0);/**
|
|
102
102
|
* @license
|
|
103
103
|
* Copyright 2024 Google LLC
|
|
104
104
|
* SPDX-License-Identifier: Apache-2.0
|
|
105
|
-
*/const gn=
|
|
105
|
+
*/const gn=b`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
|
|
106
106
|
`;/**
|
|
107
107
|
* @license
|
|
108
108
|
* Copyright 2022 Google LLC
|
|
@@ -111,11 +111,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
111
111
|
* @license
|
|
112
112
|
* Copyright 2023 Google LLC
|
|
113
113
|
* SPDX-License-Identifier: Apache-2.0
|
|
114
|
-
*/const
|
|
114
|
+
*/const ba=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];ba.map(fa);function fa(o){return o.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright 2023 Google LLC
|
|
117
117
|
* SPDX-License-Identifier: Apache-2.0
|
|
118
|
-
*/function Q(o){for(const e of
|
|
118
|
+
*/function Q(o){for(const e of ba)o.createProperty(e,{attribute:fa(e),reflect:!0});o.addInitializer(e=>{const t={hostConnected(){e.setAttribute("role","presentation")}};e.addController(t)})}/**
|
|
119
119
|
* @license
|
|
120
120
|
* Copyright 2023 Google LLC
|
|
121
121
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -172,17 +172,17 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
172
172
|
* @license
|
|
173
173
|
* Copyright 2024 Google LLC
|
|
174
174
|
* SPDX-License-Identifier: Apache-2.0
|
|
175
|
-
*/const Sn=
|
|
175
|
+
*/const Sn=b`:host{--_container-color: var(--md-elevated-button-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_container-elevation: var(--md-elevated-button-container-elevation, 1);--_container-height: var(--md-elevated-button-container-height, 40px);--_container-shadow-color: var(--md-elevated-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-elevated-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-elevated-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-elevated-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-elevated-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-elevated-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-elevated-button-focus-container-elevation, 1);--_focus-label-text-color: var(--md-elevated-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-elevated-button-hover-container-elevation, 2);--_hover-label-text-color: var(--md-elevated-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-elevated-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-elevated-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-elevated-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-elevated-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-elevated-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-elevated-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-elevated-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-elevated-button-pressed-container-elevation, 1);--_pressed-label-text-color: var(--md-elevated-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-elevated-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-elevated-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-elevated-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-elevated-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-elevated-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-elevated-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-elevated-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-elevated-button-icon-size, 18px);--_pressed-icon-color: var(--md-elevated-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-elevated-button-container-shape-start-start, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-elevated-button-container-shape-start-end, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-elevated-button-container-shape-end-end, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-elevated-button-container-shape-end-start, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-elevated-button-leading-space, 24px);--_trailing-space: var(--md-elevated-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-elevated-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-elevated-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-elevated-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-elevated-button-with-trailing-icon-trailing-space, 16px)}
|
|
176
176
|
`;/**
|
|
177
177
|
* @license
|
|
178
178
|
* Copyright 2024 Google LLC
|
|
179
179
|
* SPDX-License-Identifier: Apache-2.0
|
|
180
|
-
*/const Nr=
|
|
180
|
+
*/const Nr=b`md-elevation{transition-duration:280ms}:host([disabled]) md-elevation{transition:none}md-elevation{--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color)}:host(:focus-within) md-elevation{--md-elevation-level: var(--_focus-container-elevation)}:host(:hover) md-elevation{--md-elevation-level: var(--_hover-container-elevation)}:host(:active) md-elevation{--md-elevation-level: var(--_pressed-container-elevation)}:host([disabled]) md-elevation{--md-elevation-level: var(--_disabled-container-elevation)}
|
|
181
181
|
`;/**
|
|
182
182
|
* @license
|
|
183
183
|
* Copyright 2024 Google LLC
|
|
184
184
|
* SPDX-License-Identifier: Apache-2.0
|
|
185
|
-
*/const Jt=
|
|
185
|
+
*/const Jt=b`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background-color:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host([disabled]) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host([disabled]) .background{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host([disabled]){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([disabled]) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none}
|
|
186
186
|
`;/**
|
|
187
187
|
* @license
|
|
188
188
|
* Copyright 2021 Google LLC
|
|
@@ -195,7 +195,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
195
195
|
* @license
|
|
196
196
|
* Copyright 2024 Google LLC
|
|
197
197
|
* SPDX-License-Identifier: Apache-2.0
|
|
198
|
-
*/const $n=
|
|
198
|
+
*/const $n=b`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)}
|
|
199
199
|
`;/**
|
|
200
200
|
* @license
|
|
201
201
|
* Copyright 2021 Google LLC
|
|
@@ -208,7 +208,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
208
208
|
* @license
|
|
209
209
|
* Copyright 2024 Google LLC
|
|
210
210
|
* SPDX-License-Identifier: Apache-2.0
|
|
211
|
-
*/const En=
|
|
211
|
+
*/const En=b`:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)}
|
|
212
212
|
`;/**
|
|
213
213
|
* @license
|
|
214
214
|
* Copyright 2021 Google LLC
|
|
@@ -221,7 +221,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
221
221
|
* @license
|
|
222
222
|
* Copyright 2024 Google LLC
|
|
223
223
|
* SPDX-License-Identifier: Apache-2.0
|
|
224
|
-
*/const zn=
|
|
224
|
+
*/const zn=b`:host{--_container-height: var(--md-outlined-button-container-height, 40px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-outlined-button-container-shape-start-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-button-container-shape-start-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-button-container-shape-end-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-button-container-shape-end-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}.outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}:host(:active) .outline{border-color:var(--_pressed-outline-color)}:host([disabled]) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){:host([disabled]) .background{border-color:GrayText}:host([disabled]) .outline{opacity:1}}.outline,md-ripple{border-width:var(--_outline-width)}md-ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)}
|
|
225
225
|
`;/**
|
|
226
226
|
* @license
|
|
227
227
|
* Copyright 2021 Google LLC
|
|
@@ -234,7 +234,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
234
234
|
* @license
|
|
235
235
|
* Copyright 2024 Google LLC
|
|
236
236
|
* SPDX-License-Identifier: Apache-2.0
|
|
237
|
-
*/const Tn=
|
|
237
|
+
*/const Tn=b`:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}
|
|
238
238
|
`;/**
|
|
239
239
|
* @license
|
|
240
240
|
* Copyright 2021 Google LLC
|
|
@@ -263,7 +263,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
263
263
|
* @license
|
|
264
264
|
* Copyright 2019 Google LLC
|
|
265
265
|
* SPDX-License-Identifier: Apache-2.0
|
|
266
|
-
*/const On=Qt(Ct(Ye(y)));class
|
|
266
|
+
*/const On=Qt(Ct(Ye(y)));class be extends On{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",e=>{!Zt(e)||!this.input||(this.focus(),Ti(this.input))})}update(e){(e.has("checked")||e.has("disabled")||e.has("indeterminate"))&&(this.prevChecked=e.get("checked")??this.checked,this.prevDisabled=e.get("disabled")??this.disabled,this.prevIndeterminate=e.get("indeterminate")??this.indeterminate),super.update(e)}render(){const e=!this.prevChecked&&!this.prevIndeterminate,t=this.prevChecked&&!this.prevIndeterminate,i=this.prevIndeterminate,r=this.checked&&!this.indeterminate,s=this.indeterminate,n=P({disabled:this.disabled,selected:r||s,unselected:!r&&!s,checked:r,indeterminate:s,"prev-unselected":e,"prev-checked":t,"prev-indeterminate":i,"prev-disabled":this.prevDisabled}),{ariaLabel:h,ariaInvalid:p}=this;return c`
|
|
267
267
|
<div class="container ${n}">
|
|
268
268
|
<input
|
|
269
269
|
type="checkbox"
|
|
@@ -287,16 +287,16 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
287
287
|
<rect class="mark long" />
|
|
288
288
|
</svg>
|
|
289
289
|
</div>
|
|
290
|
-
`}handleInput(e){const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){Xe(this,e)}[Le](){return!this.checked||this.indeterminate?null:this.value}[ei](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[lt](){return new ya(()=>this)}[ct](){return this.input}}Q(
|
|
290
|
+
`}handleInput(e){const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){Xe(this,e)}[Le](){return!this.checked||this.indeterminate?null:this.value}[ei](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[lt](){return new ya(()=>this)}[ct](){return this.input}}Q(be),be.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean})],be.prototype,"checked",void 0),d([l({type:Boolean})],be.prototype,"indeterminate",void 0),d([l({type:Boolean})],be.prototype,"required",void 0),d([l()],be.prototype,"value",void 0),d([w()],be.prototype,"prevChecked",void 0),d([w()],be.prototype,"prevDisabled",void 0),d([w()],be.prototype,"prevIndeterminate",void 0),d([k("input")],be.prototype,"input",void 0);/**
|
|
291
291
|
* @license
|
|
292
292
|
* Copyright 2024 Google LLC
|
|
293
293
|
* SPDX-License-Identifier: Apache-2.0
|
|
294
|
-
*/const Ln=
|
|
294
|
+
*/const Ln=b`:host{border-start-start-radius:var(--md-checkbox-container-shape-start-start, var(--md-checkbox-container-shape, 2px));border-start-end-radius:var(--md-checkbox-container-shape-start-end, var(--md-checkbox-container-shape, 2px));border-end-end-radius:var(--md-checkbox-container-shape-end-end, var(--md-checkbox-container-shape, 2px));border-end-start-radius:var(--md-checkbox-container-shape-end-start, var(--md-checkbox-container-shape, 2px));display:inline-flex;height:var(--md-checkbox-container-size, 18px);position:relative;vertical-align:top;width:var(--md-checkbox-container-size, 18px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-checkbox-container-size, 18px))/2)}md-focus-ring{height:44px;inset:unset;width:44px}input{appearance:none;height:48px;margin:0;opacity:0;outline:none;position:absolute;width:48px;z-index:1;cursor:inherit}:host([touch-target=none]) input{height:100%;width:100%}.container{border-radius:inherit;display:flex;height:100%;place-content:center;place-items:center;position:relative;width:100%}.outline,.background,.icon{inset:0;position:absolute}.outline,.background{border-radius:inherit}.outline{border-color:var(--md-checkbox-outline-color, var(--md-sys-color-on-surface-variant, #49454f));border-style:solid;border-width:var(--md-checkbox-outline-width, 2px);box-sizing:border-box}.background{background-color:var(--md-checkbox-selected-container-color, var(--md-sys-color-primary, #6750a4))}.background,.icon{opacity:0;transition-duration:150ms,50ms;transition-property:transform,opacity;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15),linear;transform:scale(0.6)}:where(.selected) :is(.background,.icon){opacity:1;transition-duration:350ms,50ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1),linear;transform:scale(1)}md-ripple{border-radius:var(--md-checkbox-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));height:var(--md-checkbox-state-layer-size, 40px);inset:unset;width:var(--md-checkbox-state-layer-size, 40px);--md-ripple-hover-color: var(--md-checkbox-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-checkbox-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-checkbox-pressed-state-layer-opacity, 0.12)}.selected md-ripple{--md-ripple-hover-color: var(--md-checkbox-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-checkbox-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-checkbox-selected-pressed-state-layer-opacity, 0.12)}.icon{fill:var(--md-checkbox-selected-icon-color, var(--md-sys-color-on-primary, #fff));height:var(--md-checkbox-icon-size, 18px);width:var(--md-checkbox-icon-size, 18px)}.mark.short{height:2px;transition-property:transform,height;width:2px}.mark.long{height:2px;transition-property:transform,width;width:10px}.mark{animation-duration:150ms;animation-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15);transition-duration:150ms;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15)}.selected .mark{animation-duration:350ms;animation-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1);transition-duration:350ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1)}.checked .mark,.prev-checked.unselected .mark{transform:scaleY(-1) translate(7px, -14px) rotate(45deg)}.checked .mark.short,.prev-checked.unselected .mark.short{height:5.6568542495px}.checked .mark.long,.prev-checked.unselected .mark.long{width:11.313708499px}.indeterminate .mark,.prev-indeterminate.unselected .mark{transform:scaleY(-1) translate(4px, -10px) rotate(0deg)}.prev-unselected .mark{transition-property:none}.prev-unselected.checked .mark.long{animation-name:prev-unselected-to-checked}@keyframes prev-unselected-to-checked{from{width:0}}:where(:hover) .outline{border-color:var(--md-checkbox-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-hover-outline-width, 2px)}:where(:hover) .background{background:var(--md-checkbox-selected-hover-container-color, var(--md-sys-color-primary, #6750a4))}:where(:hover) .icon{fill:var(--md-checkbox-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:focus-within) .outline{border-color:var(--md-checkbox-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-focus-outline-width, 2px)}:where(:focus-within) .background{background:var(--md-checkbox-selected-focus-container-color, var(--md-sys-color-primary, #6750a4))}:where(:focus-within) .icon{fill:var(--md-checkbox-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:active) .outline{border-color:var(--md-checkbox-pressed-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-pressed-outline-width, 2px)}:where(:active) .background{background:var(--md-checkbox-selected-pressed-container-color, var(--md-sys-color-primary, #6750a4))}:where(:active) .icon{fill:var(--md-checkbox-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff))}:where(.disabled,.prev-disabled) :is(.background,.icon,.mark){animation-duration:0s;transition-duration:0s}:where(.disabled) .outline{border-color:var(--md-checkbox-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-disabled-outline-width, 2px);opacity:var(--md-checkbox-disabled-container-opacity, 0.38)}:where(.selected.disabled) .outline{visibility:hidden}:where(.selected.disabled) .background{background:var(--md-checkbox-selected-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-checkbox-selected-disabled-container-opacity, 0.38)}:where(.disabled) .icon{fill:var(--md-checkbox-selected-disabled-icon-color, var(--md-sys-color-surface, #fef7ff))}@media(forced-colors: active){.background{background-color:CanvasText}.selected.disabled .background{background-color:GrayText;opacity:1}.outline{border-color:CanvasText}.disabled .outline{border-color:GrayText;opacity:1}.icon{fill:Canvas}}
|
|
295
295
|
`;/**
|
|
296
296
|
* @license
|
|
297
297
|
* Copyright 2018 Google LLC
|
|
298
298
|
* SPDX-License-Identifier: Apache-2.0
|
|
299
|
-
*/let Gr=class extends
|
|
299
|
+
*/let Gr=class extends be{};Gr.styles=[Ln],Gr=d([g("md-checkbox")],Gr);/**
|
|
300
300
|
* @license
|
|
301
301
|
* Copyright 2023 Google LLC
|
|
302
302
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -343,35 +343,35 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
343
343
|
* @license
|
|
344
344
|
* Copyright 2024 Google LLC
|
|
345
345
|
* SPDX-License-Identifier: Apache-2.0
|
|
346
|
-
*/const Pn=
|
|
346
|
+
*/const Pn=b`:host{--_container-height: var(--md-assist-chip-container-height, 32px);--_disabled-label-text-color: var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color: var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color: var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-assist-chip-container-shape-start-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-assist-chip-container-shape-start-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-assist-chip-container-shape-end-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-assist-chip-container-shape-end-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-assist-chip-leading-space, 16px);--_trailing-space: var(--md-assist-chip-trailing-space, 16px);--_icon-label-space: var(--md-assist-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-assist-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors: active){.link .outline{border-color:ActiveText}}
|
|
347
347
|
`;/**
|
|
348
348
|
* @license
|
|
349
349
|
* Copyright 2024 Google LLC
|
|
350
350
|
* SPDX-License-Identifier: Apache-2.0
|
|
351
|
-
*/const Yr=
|
|
351
|
+
*/const Yr=b`.elevated{--md-elevation-level: var(--_elevated-container-elevation);--md-elevation-shadow-color: var(--_elevated-container-shadow-color)}.elevated::before{background:var(--_elevated-container-color)}.elevated:hover{--md-elevation-level: var(--_elevated-hover-container-elevation)}.elevated:focus-within{--md-elevation-level: var(--_elevated-focus-container-elevation)}.elevated:active{--md-elevation-level: var(--_elevated-pressed-container-elevation)}.elevated.disabled{--md-elevation-level: var(--_elevated-disabled-container-elevation)}.elevated.disabled::before{background:var(--_elevated-disabled-container-color);opacity:var(--_elevated-disabled-container-opacity)}@media(forced-colors: active){.elevated md-elevation{border:1px solid CanvasText}.elevated.disabled md-elevation{border-color:GrayText}}
|
|
352
352
|
`;/**
|
|
353
353
|
* @license
|
|
354
354
|
* Copyright 2024 Google LLC
|
|
355
355
|
* SPDX-License-Identifier: Apache-2.0
|
|
356
|
-
*/const Pi=
|
|
356
|
+
*/const Pi=b`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);display:inline-flex;height:var(--_container-height);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}:host([disabled]){pointer-events:none}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}.container{border-radius:inherit;box-sizing:border-box;display:flex;height:100%;position:relative;width:100%}.container::before{border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute}.container:not(.disabled){cursor:pointer}.container.disabled{pointer-events:none}.cell{display:flex}.action{align-items:baseline;appearance:none;background:none;border:none;border-radius:inherit;display:flex;outline:none;padding:0;position:relative;text-decoration:none}.primary.action{padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space)}.has-icon .primary.action{padding-inline-start:var(--_with-leading-icon-leading-space)}.touch{height:48px;inset:50% 0 0;position:absolute;transform:translateY(-50%);width:100%}:host([touch-target=none]) .touch{display:none}.outline{border:var(--_outline-width) solid var(--_outline-color);border-radius:inherit;inset:0;pointer-events:none;position:absolute}:where(:focus) .outline{border-color:var(--_focus-outline-color)}:where(.disabled) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}md-ripple{border-radius:inherit}.label,.icon,.touch{z-index:1}.label{align-items:center;color:var(--_label-text-color);display:flex;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);height:100%;text-overflow:ellipsis;user-select:none;white-space:nowrap}:where(:hover) .label{color:var(--_hover-label-text-color)}:where(:focus) .label{color:var(--_focus-label-text-color)}:where(:active) .label{color:var(--_pressed-label-text-color)}:where(.disabled) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}.icon{align-self:center;display:flex;fill:currentColor;position:relative}.icon ::slotted(:first-child){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size)}.leading.icon{color:var(--_leading-icon-color)}.leading.icon ::slotted(*),.leading.icon svg{margin-inline-end:var(--_icon-label-space)}:where(:hover) .leading.icon{color:var(--_hover-leading-icon-color)}:where(:focus) .leading.icon{color:var(--_focus-leading-icon-color)}:where(:active) .leading.icon{color:var(--_pressed-leading-icon-color)}:where(.disabled) .leading.icon{color:var(--_disabled-leading-icon-color);opacity:var(--_disabled-leading-icon-opacity)}@media(forced-colors: active){:where(.disabled) :is(.label,.outline,.leading.icon){color:GrayText;opacity:1}}a,button{text-transform:inherit}a,button:not(:disabled){cursor:inherit}
|
|
357
357
|
`;/**
|
|
358
358
|
* @license
|
|
359
359
|
* Copyright 2023 Google LLC
|
|
360
360
|
* SPDX-License-Identifier: Apache-2.0
|
|
361
|
-
*/let
|
|
361
|
+
*/let Di=class extends ti{};Di.styles=[Pi,Yr,Pn],Di=d([g("md-assist-chip")],Di);const Dn=Object.freeze(Object.defineProperty({__proto__:null,get MdAssistChip(){return Di}},Symbol.toStringTag,{value:"Module"}));/**
|
|
362
362
|
* @license
|
|
363
363
|
* Copyright 2023 Google LLC
|
|
364
364
|
* SPDX-License-Identifier: Apache-2.0
|
|
365
|
-
*/class xa extends y{get chips(){return this.childElements.filter(e=>e instanceof Pe)}constructor(){super(),this.internals=this.attachInternals(),this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar"}render(){return c`<slot @slotchange=${this.updateTabIndices}></slot>`}handleKeyDown(e){const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(!t&&!i&&!r&&!s)return;const{chips:n}=this;if(n.length<2)return;if(e.preventDefault(),r||s){const x=r?0:n.length-1;n[x].focus({trailing:s}),this.updateTabIndices();return}const p=getComputedStyle(this).direction==="rtl"?t:i,v=n.find(x=>x.matches(":focus-within"));if(!v){(p?n[0]:n[n.length-1]).focus({trailing:!p}),this.updateTabIndices();return}const f=n.indexOf(v);let
|
|
365
|
+
*/class xa extends y{get chips(){return this.childElements.filter(e=>e instanceof Pe)}constructor(){super(),this.internals=this.attachInternals(),this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar"}render(){return c`<slot @slotchange=${this.updateTabIndices}></slot>`}handleKeyDown(e){const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(!t&&!i&&!r&&!s)return;const{chips:n}=this;if(n.length<2)return;if(e.preventDefault(),r||s){const x=r?0:n.length-1;n[x].focus({trailing:s}),this.updateTabIndices();return}const p=getComputedStyle(this).direction==="rtl"?t:i,v=n.find(x=>x.matches(":focus-within"));if(!v){(p?n[0]:n[n.length-1]).focus({trailing:!p}),this.updateTabIndices();return}const f=n.indexOf(v);let m=p?f+1:f-1;for(;m!==f;){m>=n.length?m=0:m<0&&(m=n.length-1);const x=n[m];if(x.disabled&&!x.alwaysFocusable){p?m++:m--;continue}x.focus({trailing:!p}),this.updateTabIndices();break}}updateTabIndices(){const{chips:e}=this;let t;for(const i of e){const r=i.alwaysFocusable||!i.disabled;if(i.matches(":focus-within")&&r){t=i;continue}r&&!t&&(t=i),i.tabIndex=-1}t&&(t.tabIndex=0)}}d([Y()],xa.prototype,"childElements",void 0);/**
|
|
366
366
|
* @license
|
|
367
367
|
* Copyright 2024 Google LLC
|
|
368
368
|
* SPDX-License-Identifier: Apache-2.0
|
|
369
|
-
*/const
|
|
369
|
+
*/const Rn=b`:host{display:flex;flex-wrap:wrap;gap:8px}
|
|
370
370
|
`;/**
|
|
371
371
|
* @license
|
|
372
372
|
* Copyright 2023 Google LLC
|
|
373
373
|
* SPDX-License-Identifier: Apache-2.0
|
|
374
|
-
*/let
|
|
374
|
+
*/let Ri=class extends xa{};Ri.styles=[Rn],Ri=d([g("md-chip-set")],Ri);const Bn=Object.freeze(Object.defineProperty({__proto__:null,get MdChipSet(){return Ri}},Symbol.toStringTag,{value:"Module"}));/**
|
|
375
375
|
* @license
|
|
376
376
|
* Copyright 2023 Google LLC
|
|
377
377
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -426,17 +426,17 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
426
426
|
* @license
|
|
427
427
|
* Copyright 2024 Google LLC
|
|
428
428
|
* SPDX-License-Identifier: Apache-2.0
|
|
429
|
-
*/const Hn=
|
|
429
|
+
*/const Hn=b`:host{--_container-height: var(--md-filter-chip-container-height, 32px);--_disabled-label-text-color: var(--md-filter-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filter-chip-disabled-label-text-opacity, 0.38);--_elevated-container-elevation: var(--md-filter-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-filter-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-filter-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-filter-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-filter-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-filter-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-filter-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-filter-chip-elevated-pressed-container-elevation, 1);--_elevated-selected-container-color: var(--md-filter-chip-elevated-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_label-text-font: var(--md-filter-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filter-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filter-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filter-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-focus-label-text-color: var(--md-filter-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-filter-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-filter-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity: var(--md-filter-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color: var(--md-filter-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-filter-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-filter-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_selected-pressed-state-layer-opacity: var(--md-filter-chip-selected-pressed-state-layer-opacity, 0.12);--_elevated-container-color: var(--md-filter-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_disabled-outline-color: var(--md-filter-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-filter-chip-disabled-outline-opacity, 0.12);--_disabled-selected-container-color: var(--md-filter-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-filter-chip-disabled-selected-container-opacity, 0.12);--_focus-outline-color: var(--md-filter-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-filter-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-filter-chip-outline-width, 1px);--_selected-container-color: var(--md-filter-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-outline-width: var(--md-filter-chip-selected-outline-width, 0px);--_focus-label-text-color: var(--md-filter-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-filter-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filter-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-filter-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filter-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-label-text-color: var(--md-filter-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-filter-chip-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filter-chip-pressed-state-layer-opacity, 0.12);--_icon-size: var(--md-filter-chip-icon-size, 18px);--_disabled-leading-icon-color: var(--md-filter-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-filter-chip-disabled-leading-icon-opacity, 0.38);--_selected-focus-leading-icon-color: var(--md-filter-chip-selected-focus-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-leading-icon-color: var(--md-filter-chip-selected-hover-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-leading-icon-color: var(--md-filter-chip-selected-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-leading-icon-color: var(--md-filter-chip-selected-pressed-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-leading-icon-color: var(--md-filter-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-filter-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-filter-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-filter-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color: var(--md-filter-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-filter-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color: var(--md-filter-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color: var(--md-filter-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-trailing-icon-color: var(--md-filter-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color: var(--md-filter-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color: var(--md-filter-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-filter-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color: var(--md-filter-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color: var(--md-filter-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var(--md-filter-chip-container-shape-start-start, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-filter-chip-container-shape-start-end, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-filter-chip-container-shape-end-end, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-filter-chip-container-shape-end-start, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-filter-chip-leading-space, 16px);--_trailing-space: var(--md-filter-chip-trailing-space, 16px);--_icon-label-space: var(--md-filter-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-filter-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space: var(--md-filter-chip-with-trailing-icon-trailing-space, 8px)}.selected.elevated::before{background:var(--_elevated-selected-container-color)}.checkmark{height:var(--_icon-size);width:var(--_icon-size)}.disabled .checkmark{opacity:var(--_disabled-leading-icon-opacity)}@media(forced-colors: active){.disabled .checkmark{opacity:1}}
|
|
430
430
|
`;/**
|
|
431
431
|
* @license
|
|
432
432
|
* Copyright 2024 Google LLC
|
|
433
433
|
* SPDX-License-Identifier: Apache-2.0
|
|
434
|
-
*/const Sa=
|
|
434
|
+
*/const Sa=b`.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}:where(.selected)::before{background:var(--_selected-container-color)}:where(.selected) .outline{border-width:var(--_selected-outline-width)}:where(.selected.disabled)::before{background:var(--_disabled-selected-container-color);opacity:var(--_disabled-selected-container-opacity)}:where(.selected) .label{color:var(--_selected-label-text-color)}:where(.selected:hover) .label{color:var(--_selected-hover-label-text-color)}:where(.selected:focus) .label{color:var(--_selected-focus-label-text-color)}:where(.selected:active) .label{color:var(--_selected-pressed-label-text-color)}:where(.selected) .leading.icon{color:var(--_selected-leading-icon-color)}:where(.selected:hover) .leading.icon{color:var(--_selected-hover-leading-icon-color)}:where(.selected:focus) .leading.icon{color:var(--_selected-focus-leading-icon-color)}:where(.selected:active) .leading.icon{color:var(--_selected-pressed-leading-icon-color)}@media(forced-colors: active){:where(.selected:not(.elevated))::before{border:1px solid CanvasText}:where(.selected) .outline{border-width:1px}}
|
|
435
435
|
`;/**
|
|
436
436
|
* @license
|
|
437
437
|
* Copyright 2024 Google LLC
|
|
438
438
|
* SPDX-License-Identifier: Apache-2.0
|
|
439
|
-
*/const ka=
|
|
439
|
+
*/const ka=b`.trailing.action{align-items:center;justify-content:center;padding-inline-start:var(--_icon-label-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}.trailing.action :is(md-ripple,md-focus-ring){border-radius:50%;height:calc(1.3333333333*var(--_icon-size));width:calc(1.3333333333*var(--_icon-size))}.trailing.action md-focus-ring{inset:unset}.has-trailing .primary.action{padding-inline-end:0}.trailing.icon{color:var(--_trailing-icon-color);height:var(--_icon-size);width:var(--_icon-size)}:where(:hover) .trailing.icon{color:var(--_hover-trailing-icon-color)}:where(:focus) .trailing.icon{color:var(--_focus-trailing-icon-color)}:where(:active) .trailing.icon{color:var(--_pressed-trailing-icon-color)}:where(.disabled) .trailing.icon{color:var(--_disabled-trailing-icon-color);opacity:var(--_disabled-trailing-icon-opacity)}:where(.selected) .trailing.icon{color:var(--_selected-trailing-icon-color)}:where(.selected:hover) .trailing.icon{color:var(--_selected-hover-trailing-icon-color)}:where(.selected:focus) .trailing.icon{color:var(--_selected-focus-trailing-icon-color)}:where(.selected:active) .trailing.icon{color:var(--_selected-pressed-trailing-icon-color)}@media(forced-colors: active){.trailing.icon{color:ButtonText}:where(.disabled) .trailing.icon{color:GrayText;opacity:1}}
|
|
440
440
|
`;/**
|
|
441
441
|
* @license
|
|
442
442
|
* Copyright 2023 Google LLC
|
|
@@ -471,7 +471,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
471
471
|
* @license
|
|
472
472
|
* Copyright 2024 Google LLC
|
|
473
473
|
* SPDX-License-Identifier: Apache-2.0
|
|
474
|
-
*/const Nn=
|
|
474
|
+
*/const Nn=b`:host{--_container-height: var(--md-input-chip-container-height, 32px);--_disabled-label-text-color: var(--md-input-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-input-chip-disabled-label-text-opacity, 0.38);--_disabled-selected-container-color: var(--md-input-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-input-chip-disabled-selected-container-opacity, 0.12);--_label-text-font: var(--md-input-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-input-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-input-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-input-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-container-color: var(--md-input-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-label-text-color: var(--md-input-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-input-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-input-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity: var(--md-input-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color: var(--md-input-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-outline-width: var(--md-input-chip-selected-outline-width, 0px);--_selected-pressed-label-text-color: var(--md-input-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-input-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-opacity: var(--md-input-chip-selected-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-input-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-input-chip-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-input-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-input-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-input-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-input-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-input-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-input-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-input-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-input-chip-outline-width, 1px);--_pressed-label-text-color: var(--md-input-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-input-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-input-chip-pressed-state-layer-opacity, 0.12);--_avatar-shape: var(--md-input-chip-avatar-shape, var(--md-sys-shape-corner-full, 9999px));--_avatar-size: var(--md-input-chip-avatar-size, 24px);--_disabled-avatar-opacity: var(--md-input-chip-disabled-avatar-opacity, 0.38);--_disabled-leading-icon-color: var(--md-input-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-input-chip-disabled-leading-icon-opacity, 0.38);--_icon-size: var(--md-input-chip-icon-size, 18px);--_selected-focus-leading-icon-color: var(--md-input-chip-selected-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-leading-icon-color: var(--md-input-chip-selected-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-leading-icon-color: var(--md-input-chip-selected-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-leading-icon-color: var(--md-input-chip-selected-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-input-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-input-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-input-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-input-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color: var(--md-input-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-input-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color: var(--md-input-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color: var(--md-input-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-trailing-icon-color: var(--md-input-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color: var(--md-input-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color: var(--md-input-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-input-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color: var(--md-input-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color: var(--md-input-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var(--md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-input-chip-leading-space, 16px);--_trailing-space: var(--md-input-chip-trailing-space, 16px);--_icon-label-space: var(--md-input-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-input-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space: var(--md-input-chip-with-trailing-icon-trailing-space, 8px)}:host([avatar]){--_container-shape-start-start: var( --md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-start-end: var( --md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-end: var( --md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-start: var( --md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) )}.avatar .primary.action{padding-inline-start:4px}.avatar .leading.icon ::slotted(:first-child){border-radius:var(--_avatar-shape);height:var(--_avatar-size);width:var(--_avatar-size)}.disabled.avatar .leading.icon{opacity:var(--_disabled-avatar-opacity)}@media(forced-colors: active){.link .outline{border-color:ActiveText}.disabled.avatar .leading.icon{opacity:1}}
|
|
475
475
|
`;/**
|
|
476
476
|
* @license
|
|
477
477
|
* Copyright 2023 Google LLC
|
|
@@ -484,7 +484,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
484
484
|
* @license
|
|
485
485
|
* Copyright 2024 Google LLC
|
|
486
486
|
* SPDX-License-Identifier: Apache-2.0
|
|
487
|
-
*/const Vn=
|
|
487
|
+
*/const Vn=b`:host{--_container-height: var(--md-suggestion-chip-container-height, 32px);--_disabled-label-text-color: var(--md-suggestion-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-suggestion-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-suggestion-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-suggestion-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-suggestion-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-suggestion-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-suggestion-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-suggestion-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-suggestion-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-suggestion-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-suggestion-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-suggestion-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-suggestion-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-suggestion-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-suggestion-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-suggestion-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-suggestion-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-suggestion-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-suggestion-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-suggestion-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-suggestion-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-suggestion-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-suggestion-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-suggestion-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-suggestion-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-suggestion-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-suggestion-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-suggestion-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-suggestion-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-suggestion-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-suggestion-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-suggestion-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-suggestion-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-suggestion-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-suggestion-chip-icon-size, 18px);--_container-shape-start-start: var(--md-suggestion-chip-container-shape-start-start, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-suggestion-chip-container-shape-start-end, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-suggestion-chip-container-shape-end-end, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-suggestion-chip-container-shape-end-start, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-suggestion-chip-leading-space, 16px);--_trailing-space: var(--md-suggestion-chip-trailing-space, 16px);--_icon-label-space: var(--md-suggestion-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-suggestion-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors: active){.link .outline{border-color:ActiveText}}
|
|
488
488
|
`;/**
|
|
489
489
|
* @license
|
|
490
490
|
* Copyright 2023 Google LLC
|
|
@@ -497,7 +497,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
497
497
|
* @license
|
|
498
498
|
* Copyright 2024 Google LLC
|
|
499
499
|
* SPDX-License-Identifier: Apache-2.0
|
|
500
|
-
*/const Un=
|
|
500
|
+
*/const Un=b`:host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}
|
|
501
501
|
`;/**
|
|
502
502
|
* @license
|
|
503
503
|
* Copyright 2023 Google LLC
|
|
@@ -506,11 +506,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
506
506
|
* @license
|
|
507
507
|
* Copyright 2023 Google LLC
|
|
508
508
|
* SPDX-License-Identifier: Apache-2.0
|
|
509
|
-
*/const jn={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:
|
|
509
|
+
*/const jn={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:me.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:"linear"}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:"linear",pseudoElement:"::before"}],[[{height:"35%"},{height:"100%"}],{duration:500,easing:me.EMPHASIZED,pseudoElement:"::before"}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:"linear",fill:"forwards"}]]},Wn={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:me.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:me.EMPHASIZED_ACCELERATE,pseudoElement:"::before"}],[[{opacity:"1"},{opacity:"0"}],{delay:100,duration:50,easing:"linear",pseudoElement:"::before"}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]]};/**
|
|
510
510
|
* @license
|
|
511
511
|
* Copyright 2023 Google LLC
|
|
512
512
|
* SPDX-License-Identifier: Apache-2.0
|
|
513
|
-
*/class
|
|
513
|
+
*/class R extends y{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute("open",""),this.show()):(this.removeAttribute("open"),this.close()))}constructor(){super(),this.quick=!1,this.returnValue="",this.noFocusTrap=!1,this.getOpenAnimation=()=>jn,this.getCloseAnimation=()=>Wn,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.escapePressedWithoutCancel=!1,this.treewalker=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT),this.addEventListener("submit",this.handleSubmit)}async show(){var i;this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;const e=this.dialog;if(e.open||!this.isOpening){this.isOpening=!1;return}if(!this.dispatchEvent(new Event("open",{cancelable:!0}))){this.open=!1,this.isOpening=!1;return}e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),(i=this.querySelector("[autofocus]"))==null||i.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event("opened")),this.isOpening=!1}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;const t=this.dialog;if(!t.open||this.isOpening){this.open=!1;return}const i=this.returnValue;if(this.returnValue=e,!this.dispatchEvent(new Event("close",{cancelable:!0}))){this.returnValue=i;return}await this.animateDialog(this.getCloseAnimation()),t.close(e),this.open=!1,this.dispatchEvent(new Event("closed"))}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){const e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),t={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},i=this.open&&!this.noFocusTrap,r=c`
|
|
514
514
|
<div
|
|
515
515
|
class="focus-trap"
|
|
516
516
|
tabindex="0"
|
|
@@ -555,16 +555,16 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
555
555
|
</div>
|
|
556
556
|
${i?r:u}
|
|
557
557
|
</dialog>
|
|
558
|
-
`}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(const t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent){this.nextClickIsFromContent=!1;return}this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){const t=e.target,{submitter:i}=e;t.method!=="dialog"||!i||this.close(i.getAttribute("value")??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const t=!Xe(this,e);e.preventDefault(),!t&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var E;if((E=this.cancelAnimations)==null||E.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:t,scrim:i,container:r,headline:s,content:n,actions:h}=this;if(!t||!i||!r||!s||!n||!h)return;const{container:p,dialog:v,scrim:f,headline:
|
|
558
|
+
`}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(const t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent){this.nextClickIsFromContent=!1;return}this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){const t=e.target,{submitter:i}=e;t.method!=="dialog"||!i||this.close(i.getAttribute("value")??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const t=!Xe(this,e);e.preventDefault(),!t&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var E;if((E=this.cancelAnimations)==null||E.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:t,scrim:i,container:r,headline:s,content:n,actions:h}=this;if(!t||!i||!r||!s||!n||!h)return;const{container:p,dialog:v,scrim:f,headline:m,content:x,actions:_}=e,S=[[t,v??[]],[i,f??[]],[r,p??[]],[s,m??[]],[n,x??[]],[h,_??[]]],C=[];for(const[A,z]of S)for(const X of z){const q=A.animate(...X);this.cancelAnimations.signal.addEventListener("abort",()=>{q.cancel()}),C.push(q)}await Promise.all(C.map(A=>A.finished.catch(()=>{})))}handleHeadlineChange(e){const t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){const t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){const{target:t,isIntersecting:i}=e;t===this.topAnchor&&(this.isAtScrollTop=i),t===this.bottomAnchor&&(this.isAtScrollBottom=i)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}handleFocusTrapFocus(e){var m;const[t,i]=this.getFirstAndLastFocusableChildren();if(!t||!i){(m=this.dialog)==null||m.focus();return}const r=e.target===this.firstFocusTrap,s=!r,n=e.relatedTarget===t,h=e.relatedTarget===i,p=!n&&!h;if(s&&h||r&&p){t.focus();return}if(r&&n||s&&p){i.focus();return}}getFirstAndLastFocusableChildren(){let e=null,t=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){const i=this.treewalker.currentNode;Kn(i)&&(e||(e=i),t=i)}return[e,t]}}Q(R),d([l({type:Boolean})],R.prototype,"open",null),d([l({type:Boolean})],R.prototype,"quick",void 0),d([l({attribute:!1})],R.prototype,"returnValue",void 0),d([l()],R.prototype,"type",void 0),d([l({type:Boolean,attribute:"no-focus-trap"})],R.prototype,"noFocusTrap",void 0),d([k("dialog")],R.prototype,"dialog",void 0),d([k(".scrim")],R.prototype,"scrim",void 0),d([k(".container")],R.prototype,"container",void 0),d([k(".headline")],R.prototype,"headline",void 0),d([k(".content")],R.prototype,"content",void 0),d([k(".actions")],R.prototype,"actions",void 0),d([w()],R.prototype,"isAtScrollTop",void 0),d([w()],R.prototype,"isAtScrollBottom",void 0),d([k(".scroller")],R.prototype,"scroller",void 0),d([k(".top.anchor")],R.prototype,"topAnchor",void 0),d([k(".bottom.anchor")],R.prototype,"bottomAnchor",void 0),d([k(".focus-trap")],R.prototype,"firstFocusTrap",void 0),d([w()],R.prototype,"hasHeadline",void 0),d([w()],R.prototype,"hasActions",void 0),d([w()],R.prototype,"hasIcon",void 0);function Kn(o){var s;const e=":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])",t=":not(:disabled,[disabled])";return o.matches(e+t+':not([tabindex^="-"])')?!0:!o.localName.includes("-")||!o.matches(t)?!1:((s=o.shadowRoot)==null?void 0:s.delegatesFocus)??!1}/**
|
|
559
559
|
* @license
|
|
560
560
|
* Copyright 2024 Google LLC
|
|
561
561
|
* SPDX-License-Identifier: Apache-2.0
|
|
562
|
-
*/const Gn=
|
|
562
|
+
*/const Gn=b`:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:"";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));flex:1;font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}
|
|
563
563
|
`;/**
|
|
564
564
|
* @license
|
|
565
565
|
* Copyright 2023 Google LLC
|
|
566
566
|
* SPDX-License-Identifier: Apache-2.0
|
|
567
|
-
*/let Qr=class extends
|
|
567
|
+
*/let Qr=class extends R{};Qr.styles=[Gn],Qr=d([g("md-dialog")],Qr);/**
|
|
568
568
|
* @license
|
|
569
569
|
* Copyright 2023 Google LLC
|
|
570
570
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -591,17 +591,17 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
591
591
|
* @license
|
|
592
592
|
* Copyright 2024 Google LLC
|
|
593
593
|
* SPDX-License-Identifier: Apache-2.0
|
|
594
|
-
*/const Yn=
|
|
594
|
+
*/const Yn=b`:host{--_container-color: var(--md-fab-branded-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-branded-container-elevation, 3);--_container-height: var(--md-fab-branded-container-height, 56px);--_container-shadow-color: var(--md-fab-branded-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-branded-container-width, 56px);--_focus-container-elevation: var(--md-fab-branded-focus-container-elevation, 3);--_hover-container-elevation: var(--md-fab-branded-hover-container-elevation, 4);--_hover-state-layer-color: var(--md-fab-branded-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-branded-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-fab-branded-icon-size, 36px);--_lowered-container-color: var(--md-fab-branded-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-branded-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-branded-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-branded-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-branded-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-branded-pressed-container-elevation, 3);--_pressed-state-layer-color: var(--md-fab-branded-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-branded-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-branded-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-branded-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-branded-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-fab-branded-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-size: var(--md-fab-branded-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-line-height: var(--md-fab-branded-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-weight: var(--md-fab-branded-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-branded-large-container-height, 96px);--_large-container-width: var(--md-fab-branded-large-container-width, 96px);--_large-icon-size: var(--md-fab-branded-large-icon-size, 48px);--_pressed-label-text-color: var(--md-fab-branded-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-fab-branded-container-shape-start-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-branded-container-shape-start-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-branded-container-shape-end-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-branded-container-shape-end-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-branded-large-container-shape-start-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-branded-large-container-shape-start-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-branded-large-container-shape-end-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-branded-large-container-shape-end-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)))}
|
|
595
595
|
`;/**
|
|
596
596
|
* @license
|
|
597
597
|
* Copyright 2024 Google LLC
|
|
598
598
|
* SPDX-License-Identifier: Apache-2.0
|
|
599
|
-
*/const $a=
|
|
599
|
+
*/const $a=b`@media(forced-colors: active){.fab{border:1px solid ButtonText}.fab.extended{padding-inline-start:15px;padding-inline-end:19px}md-focus-ring{--md-focus-ring-outward-offset: 3px}}
|
|
600
600
|
`;/**
|
|
601
601
|
* @license
|
|
602
602
|
* Copyright 2024 Google LLC
|
|
603
603
|
* SPDX-License-Identifier: Apache-2.0
|
|
604
|
-
*/const Ca=
|
|
604
|
+
*/const Ca=b`:host{--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);display:inline-flex;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host([size=medium][touch-target=wrapper]){margin:max(0px,48px - var(--_container-height))}:host([size=large][touch-target=wrapper]){margin:max(0px,48px - var(--_large-container-height))}.fab,.icon,.icon ::slotted(*){display:flex}.fab{align-items:center;justify-content:center;vertical-align:middle;padding:0;position:relative;height:var(--_container-height);transition-property:background-color;border-width:0px;outline:none;z-index:0;text-transform:inherit;--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color);background-color:var(--_container-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color)}.fab.extended{width:inherit;box-sizing:border-box;padding-inline-start:16px;padding-inline-end:20px}.fab:not(.extended){width:var(--_container-width)}.fab.large{width:var(--_large-container-width);height:var(--_large-container-height)}.fab.large .icon ::slotted(*){width:var(--_large-icon-size);height:var(--_large-icon-size);font-size:var(--_large-icon-size)}.fab.large,.fab.large .ripple{border-start-start-radius:var(--_large-container-shape-start-start);border-start-end-radius:var(--_large-container-shape-start-end);border-end-start-radius:var(--_large-container-shape-end-start);border-end-end-radius:var(--_large-container-shape-end-end)}.fab.large md-focus-ring{--md-focus-ring-shape-start-start: var(--_large-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_large-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_large-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_large-container-shape-end-start)}.fab:focus{--md-elevation-level: var(--_focus-container-elevation)}.fab:hover{--md-elevation-level: var(--_hover-container-elevation)}.fab:active{--md-elevation-level: var(--_pressed-container-elevation)}.fab.lowered{background-color:var(--_lowered-container-color);--md-elevation-level: var(--_lowered-container-elevation)}.fab.lowered:focus{--md-elevation-level: var(--_lowered-focus-container-elevation)}.fab.lowered:hover{--md-elevation-level: var(--_lowered-hover-container-elevation)}.fab.lowered:active{--md-elevation-level: var(--_lowered-pressed-container-elevation)}.fab .label{color:var(--_label-text-color)}.fab:hover .fab .label{color:var(--_hover-label-text-color)}.fab:focus .fab .label{color:var(--_focus-label-text-color)}.fab:active .fab .label{color:var(--_pressed-label-text-color)}.label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight)}.fab.extended .icon ::slotted(*){margin-inline-end:12px}.ripple{overflow:hidden}.ripple,md-elevation{z-index:-1}.touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}:host([touch-target=none]) .touch-target{display:none}md-elevation,.fab{transition-duration:280ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1)}.fab,.ripple{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}.icon ::slotted(*){width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size)}
|
|
605
605
|
`;/**
|
|
606
606
|
* @license
|
|
607
607
|
* Copyright 2023 Google LLC
|
|
@@ -610,7 +610,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
610
610
|
* @license
|
|
611
611
|
* Copyright 2024 Google LLC
|
|
612
612
|
* SPDX-License-Identifier: Apache-2.0
|
|
613
|
-
*/const Xn=m`:host{--_container-color: var(--md-fab-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-container-elevation, 3);--_container-height: var(--md-fab-container-height, 56px);--_container-shadow-color: var(--md-fab-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-container-width, 56px);--_focus-container-elevation: var(--md-fab-focus-container-elevation, 3);--_focus-icon-color: var(--md-fab-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-fab-hover-container-elevation, 4);--_hover-icon-color: var(--md-fab-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-fab-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-fab-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-fab-icon-size, 24px);--_lowered-container-color: var(--md-fab-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-pressed-container-elevation, 3);--_pressed-icon-color: var(--md-fab-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-fab-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-fab-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-fab-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-fab-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-fab-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-large-container-height, 96px);--_large-container-width: var(--md-fab-large-container-width, 96px);--_large-icon-size: var(--md-fab-large-icon-size, 36px);--_pressed-label-text-color: var(--md-fab-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_primary-container-color: var(--md-fab-primary-container-color, var(--md-sys-color-primary-container, #eaddff));--_primary-focus-icon-color: var(--md-fab-primary-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-focus-label-text-color: var(--md-fab-primary-focus-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-icon-color: var(--md-fab-primary-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-label-text-color: var(--md-fab-primary-hover-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-state-layer-color: var(--md-fab-primary-hover-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-icon-color: var(--md-fab-primary-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-label-text-color: var(--md-fab-primary-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-icon-color: var(--md-fab-primary-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-label-text-color: var(--md-fab-primary-pressed-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-state-layer-color: var(--md-fab-primary-pressed-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_secondary-container-color: var(--md-fab-secondary-container-color, var(--md-sys-color-secondary-container, #e8def8));--_secondary-focus-icon-color: var(--md-fab-secondary-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-focus-label-text-color: var(--md-fab-secondary-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-icon-color: var(--md-fab-secondary-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-label-text-color: var(--md-fab-secondary-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-state-layer-color: var(--md-fab-secondary-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-icon-color: var(--md-fab-secondary-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-label-text-color: var(--md-fab-secondary-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-icon-color: var(--md-fab-secondary-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-label-text-color: var(--md-fab-secondary-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-state-layer-color: var(--md-fab-secondary-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_small-container-height: var(--md-fab-small-container-height, 40px);--_small-container-width: var(--md-fab-small-container-width, 40px);--_small-icon-size: var(--md-fab-small-icon-size, 24px);--_tertiary-container-color: var(--md-fab-tertiary-container-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_tertiary-focus-icon-color: var(--md-fab-tertiary-focus-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-focus-label-text-color: var(--md-fab-tertiary-focus-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-icon-color: var(--md-fab-tertiary-hover-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-label-text-color: var(--md-fab-tertiary-hover-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-state-layer-color: var(--md-fab-tertiary-hover-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-icon-color: var(--md-fab-tertiary-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-label-text-color: var(--md-fab-tertiary-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-icon-color: var(--md-fab-tertiary-pressed-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-label-text-color: var(--md-fab-tertiary-pressed-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-state-layer-color: var(--md-fab-tertiary-pressed-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_container-shape-start-start: var(--md-fab-container-shape-start-start, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-container-shape-start-end, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-container-shape-end-end, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-container-shape-end-start, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-large-container-shape-start-start, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-large-container-shape-start-end, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-large-container-shape-end-end, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-large-container-shape-end-start, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_small-container-shape-start-start: var(--md-fab-small-container-shape-start-start, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-start-end: var(--md-fab-small-container-shape-start-end, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-end-end: var(--md-fab-small-container-shape-end-end, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-end-start: var(--md-fab-small-container-shape-end-start, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));cursor:pointer}:host([size=small][touch-target=wrapper]){margin:max(0px,48px - var(--_small-container-height))}.fab{cursor:inherit}.fab .icon ::slotted(*){color:var(--_icon-color)}.fab:focus{color:var(--_focus-icon-color)}.fab:hover{color:var(--_hover-icon-color)}.fab:active{color:var(--_pressed-icon-color)}.fab.primary{background-color:var(--_primary-container-color);--md-ripple-hover-color: var(--_primary-hover-state-layer-color);--md-ripple-pressed-color: var(--_primary-pressed-state-layer-color)}.fab.primary .icon ::slotted(*){color:var(--_primary-icon-color)}.fab.primary:focus{color:var(--_primary-focus-icon-color)}.fab.primary:hover{color:var(--_primary-hover-icon-color)}.fab.primary:active{color:var(--_primary-pressed-icon-color)}.fab.primary .label{color:var(--_primary-label-text-color)}.fab:hover .fab.primary .label{color:var(--_primary-hover-label-text-color)}.fab:focus .fab.primary .label{color:var(--_primary-focus-label-text-color)}.fab:active .fab.primary .label{color:var(--_primary-pressed-label-text-color)}.fab.secondary{background-color:var(--_secondary-container-color);--md-ripple-hover-color: var(--_secondary-hover-state-layer-color);--md-ripple-pressed-color: var(--_secondary-pressed-state-layer-color)}.fab.secondary .icon ::slotted(*){color:var(--_secondary-icon-color)}.fab.secondary:focus{color:var(--_secondary-focus-icon-color)}.fab.secondary:hover{color:var(--_secondary-hover-icon-color)}.fab.secondary:active{color:var(--_secondary-pressed-icon-color)}.fab.secondary .label{color:var(--_secondary-label-text-color)}.fab:hover .fab.secondary .label{color:var(--_secondary-hover-label-text-color)}.fab:focus .fab.secondary .label{color:var(--_secondary-focus-label-text-color)}.fab:active .fab.secondary .label{color:var(--_secondary-pressed-label-text-color)}.fab.tertiary{background-color:var(--_tertiary-container-color);--md-ripple-hover-color: var(--_tertiary-hover-state-layer-color);--md-ripple-pressed-color: var(--_tertiary-pressed-state-layer-color)}.fab.tertiary .icon ::slotted(*){color:var(--_tertiary-icon-color)}.fab.tertiary:focus{color:var(--_tertiary-focus-icon-color)}.fab.tertiary:hover{color:var(--_tertiary-hover-icon-color)}.fab.tertiary:active{color:var(--_tertiary-pressed-icon-color)}.fab.tertiary .label{color:var(--_tertiary-label-text-color)}.fab:hover .fab.tertiary .label{color:var(--_tertiary-hover-label-text-color)}.fab:focus .fab.tertiary .label{color:var(--_tertiary-focus-label-text-color)}.fab:active .fab.tertiary .label{color:var(--_tertiary-pressed-label-text-color)}.fab.extended slot span{padding-inline-start:4px}.fab.small{width:var(--_small-container-width);height:var(--_small-container-height)}.fab.small .icon ::slotted(*){width:var(--_small-icon-size);height:var(--_small-icon-size);font-size:var(--_small-icon-size)}.fab.small,.fab.small .ripple{border-start-start-radius:var(--_small-container-shape-start-start);border-start-end-radius:var(--_small-container-shape-start-end);border-end-start-radius:var(--_small-container-shape-end-start);border-end-end-radius:var(--_small-container-shape-end-end)}.fab.small md-focus-ring{--md-focus-ring-shape-start-start: var(--_small-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_small-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_small-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_small-container-shape-end-start)}
|
|
613
|
+
*/const Xn=b`:host{--_container-color: var(--md-fab-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-container-elevation, 3);--_container-height: var(--md-fab-container-height, 56px);--_container-shadow-color: var(--md-fab-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-container-width, 56px);--_focus-container-elevation: var(--md-fab-focus-container-elevation, 3);--_focus-icon-color: var(--md-fab-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-fab-hover-container-elevation, 4);--_hover-icon-color: var(--md-fab-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-fab-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-fab-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-fab-icon-size, 24px);--_lowered-container-color: var(--md-fab-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-pressed-container-elevation, 3);--_pressed-icon-color: var(--md-fab-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-fab-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-fab-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-fab-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-fab-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-fab-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-large-container-height, 96px);--_large-container-width: var(--md-fab-large-container-width, 96px);--_large-icon-size: var(--md-fab-large-icon-size, 36px);--_pressed-label-text-color: var(--md-fab-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_primary-container-color: var(--md-fab-primary-container-color, var(--md-sys-color-primary-container, #eaddff));--_primary-focus-icon-color: var(--md-fab-primary-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-focus-label-text-color: var(--md-fab-primary-focus-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-icon-color: var(--md-fab-primary-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-label-text-color: var(--md-fab-primary-hover-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-state-layer-color: var(--md-fab-primary-hover-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-icon-color: var(--md-fab-primary-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-label-text-color: var(--md-fab-primary-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-icon-color: var(--md-fab-primary-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-label-text-color: var(--md-fab-primary-pressed-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-state-layer-color: var(--md-fab-primary-pressed-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_secondary-container-color: var(--md-fab-secondary-container-color, var(--md-sys-color-secondary-container, #e8def8));--_secondary-focus-icon-color: var(--md-fab-secondary-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-focus-label-text-color: var(--md-fab-secondary-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-icon-color: var(--md-fab-secondary-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-label-text-color: var(--md-fab-secondary-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-state-layer-color: var(--md-fab-secondary-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-icon-color: var(--md-fab-secondary-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-label-text-color: var(--md-fab-secondary-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-icon-color: var(--md-fab-secondary-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-label-text-color: var(--md-fab-secondary-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-state-layer-color: var(--md-fab-secondary-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_small-container-height: var(--md-fab-small-container-height, 40px);--_small-container-width: var(--md-fab-small-container-width, 40px);--_small-icon-size: var(--md-fab-small-icon-size, 24px);--_tertiary-container-color: var(--md-fab-tertiary-container-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_tertiary-focus-icon-color: var(--md-fab-tertiary-focus-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-focus-label-text-color: var(--md-fab-tertiary-focus-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-icon-color: var(--md-fab-tertiary-hover-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-label-text-color: var(--md-fab-tertiary-hover-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-state-layer-color: var(--md-fab-tertiary-hover-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-icon-color: var(--md-fab-tertiary-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-label-text-color: var(--md-fab-tertiary-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-icon-color: var(--md-fab-tertiary-pressed-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-label-text-color: var(--md-fab-tertiary-pressed-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-state-layer-color: var(--md-fab-tertiary-pressed-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_container-shape-start-start: var(--md-fab-container-shape-start-start, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-container-shape-start-end, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-container-shape-end-end, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-container-shape-end-start, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-large-container-shape-start-start, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-large-container-shape-start-end, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-large-container-shape-end-end, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-large-container-shape-end-start, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_small-container-shape-start-start: var(--md-fab-small-container-shape-start-start, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-start-end: var(--md-fab-small-container-shape-start-end, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-end-end: var(--md-fab-small-container-shape-end-end, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-end-start: var(--md-fab-small-container-shape-end-start, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));cursor:pointer}:host([size=small][touch-target=wrapper]){margin:max(0px,48px - var(--_small-container-height))}.fab{cursor:inherit}.fab .icon ::slotted(*){color:var(--_icon-color)}.fab:focus{color:var(--_focus-icon-color)}.fab:hover{color:var(--_hover-icon-color)}.fab:active{color:var(--_pressed-icon-color)}.fab.primary{background-color:var(--_primary-container-color);--md-ripple-hover-color: var(--_primary-hover-state-layer-color);--md-ripple-pressed-color: var(--_primary-pressed-state-layer-color)}.fab.primary .icon ::slotted(*){color:var(--_primary-icon-color)}.fab.primary:focus{color:var(--_primary-focus-icon-color)}.fab.primary:hover{color:var(--_primary-hover-icon-color)}.fab.primary:active{color:var(--_primary-pressed-icon-color)}.fab.primary .label{color:var(--_primary-label-text-color)}.fab:hover .fab.primary .label{color:var(--_primary-hover-label-text-color)}.fab:focus .fab.primary .label{color:var(--_primary-focus-label-text-color)}.fab:active .fab.primary .label{color:var(--_primary-pressed-label-text-color)}.fab.secondary{background-color:var(--_secondary-container-color);--md-ripple-hover-color: var(--_secondary-hover-state-layer-color);--md-ripple-pressed-color: var(--_secondary-pressed-state-layer-color)}.fab.secondary .icon ::slotted(*){color:var(--_secondary-icon-color)}.fab.secondary:focus{color:var(--_secondary-focus-icon-color)}.fab.secondary:hover{color:var(--_secondary-hover-icon-color)}.fab.secondary:active{color:var(--_secondary-pressed-icon-color)}.fab.secondary .label{color:var(--_secondary-label-text-color)}.fab:hover .fab.secondary .label{color:var(--_secondary-hover-label-text-color)}.fab:focus .fab.secondary .label{color:var(--_secondary-focus-label-text-color)}.fab:active .fab.secondary .label{color:var(--_secondary-pressed-label-text-color)}.fab.tertiary{background-color:var(--_tertiary-container-color);--md-ripple-hover-color: var(--_tertiary-hover-state-layer-color);--md-ripple-pressed-color: var(--_tertiary-pressed-state-layer-color)}.fab.tertiary .icon ::slotted(*){color:var(--_tertiary-icon-color)}.fab.tertiary:focus{color:var(--_tertiary-focus-icon-color)}.fab.tertiary:hover{color:var(--_tertiary-hover-icon-color)}.fab.tertiary:active{color:var(--_tertiary-pressed-icon-color)}.fab.tertiary .label{color:var(--_tertiary-label-text-color)}.fab:hover .fab.tertiary .label{color:var(--_tertiary-hover-label-text-color)}.fab:focus .fab.tertiary .label{color:var(--_tertiary-focus-label-text-color)}.fab:active .fab.tertiary .label{color:var(--_tertiary-pressed-label-text-color)}.fab.extended slot span{padding-inline-start:4px}.fab.small{width:var(--_small-container-width);height:var(--_small-container-height)}.fab.small .icon ::slotted(*){width:var(--_small-icon-size);height:var(--_small-icon-size);font-size:var(--_small-icon-size)}.fab.small,.fab.small .ripple{border-start-start-radius:var(--_small-container-shape-start-start);border-start-end-radius:var(--_small-container-shape-start-end);border-end-start-radius:var(--_small-container-shape-end-start);border-end-end-radius:var(--_small-container-shape-end-end)}.fab.small md-focus-ring{--md-focus-ring-shape-start-start: var(--_small-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_small-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_small-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_small-container-shape-end-start)}
|
|
614
614
|
`;/**
|
|
615
615
|
* @license
|
|
616
616
|
* Copyright 2022 Google LLC
|
|
@@ -619,7 +619,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
619
619
|
* @license
|
|
620
620
|
* Copyright 2021 Google LLC
|
|
621
621
|
* SPDX-License-Identifier: Apache-2.0
|
|
622
|
-
*/class
|
|
622
|
+
*/class D extends y{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,t=this.max??-1;return e<0||t<=0?"":`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&e.get("disabled")!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){var s,n,h;const e=this.renderLabel(!0),t=this.renderLabel(!1),i=(s=this.renderOutline)==null?void 0:s.call(this,e),r={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return c`
|
|
623
623
|
<div class="field ${P(r)}">
|
|
624
624
|
<div class="container-overflow">
|
|
625
625
|
${(n=this.renderBackground)==null?void 0:n.call(this)} ${(h=this.renderIndicator)==null?void 0:h.call(this)} ${i}
|
|
@@ -651,23 +651,23 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
651
651
|
<span class="label ${P(i)}" aria-hidden=${!t}
|
|
652
652
|
>${r}</span
|
|
653
653
|
>
|
|
654
|
-
`}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){var s,n,h;if(!this.label)return;e??(e=this.focused),t??(t=this.populated);const i=e||t,r=this.focused||this.populated;i!==r&&(this.isAnimating=!0,(s=this.labelAnimation)==null||s.cancel(),this.labelAnimation=(n=this.floatingLabelEl)==null?void 0:n.animate(this.getLabelKeyframes(),{duration:150,easing:
|
|
654
|
+
`}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){var s,n,h;if(!this.label)return;e??(e=this.focused),t??(t=this.populated);const i=e||t,r=this.focused||this.populated;i!==r&&(this.isAnimating=!0,(s=this.labelAnimation)==null||s.cancel(),this.labelAnimation=(n=this.floatingLabelEl)==null?void 0:n.animate(this.getLabelKeyframes(),{duration:150,easing:me.STANDARD}),(h=this.labelAnimation)==null||h.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];const{x:i,y:r,height:s}=e.getBoundingClientRect(),{x:n,y:h,height:p}=t.getBoundingClientRect(),v=e.scrollWidth,f=t.scrollWidth,m=f/v,x=n-i,_=h-r+Math.round((p-s*m)/2),S=`translateX(${x}px) translateY(${_}px) scale(${m})`,C="translateX(0) translateY(0) scale(1)",E=t.clientWidth,z=f>E?`${E/m}px`:"";return this.focused||this.populated?[{transform:S,width:z},{transform:C,width:z}]:[{transform:C,width:z},{transform:S,width:z}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}d([l({type:Boolean})],D.prototype,"disabled",void 0),d([l({type:Boolean})],D.prototype,"error",void 0),d([l({type:Boolean})],D.prototype,"focused",void 0),d([l()],D.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],D.prototype,"noAsterisk",void 0),d([l({type:Boolean})],D.prototype,"populated",void 0),d([l({type:Boolean})],D.prototype,"required",void 0),d([l({type:Boolean})],D.prototype,"resizable",void 0),d([l({attribute:"supporting-text"})],D.prototype,"supportingText",void 0),d([l({attribute:"error-text"})],D.prototype,"errorText",void 0),d([l({type:Number})],D.prototype,"count",void 0),d([l({type:Number})],D.prototype,"max",void 0),d([l({type:Boolean,attribute:"has-start"})],D.prototype,"hasStart",void 0),d([l({type:Boolean,attribute:"has-end"})],D.prototype,"hasEnd",void 0),d([Y({slot:"aria-describedby"})],D.prototype,"slottedAriaDescribedBy",void 0),d([w()],D.prototype,"isAnimating",void 0),d([w()],D.prototype,"refreshErrorAlert",void 0),d([w()],D.prototype,"disableTransitions",void 0),d([k(".label.floating")],D.prototype,"floatingLabelEl",void 0),d([k(".label.resting")],D.prototype,"restingLabelEl",void 0),d([k(".container")],D.prototype,"containerEl",void 0);/**
|
|
655
655
|
* @license
|
|
656
656
|
* Copyright 2021 Google LLC
|
|
657
657
|
* SPDX-License-Identifier: Apache-2.0
|
|
658
|
-
*/class Zn extends
|
|
658
|
+
*/class Zn extends D{renderBackground(){return c`
|
|
659
659
|
<div class="background"></div>
|
|
660
660
|
<div class="state-layer"></div>
|
|
661
661
|
`}renderIndicator(){return c`<div class="active-indicator"></div>`}}/**
|
|
662
662
|
* @license
|
|
663
663
|
* Copyright 2024 Google LLC
|
|
664
664
|
* SPDX-License-Identifier: Apache-2.0
|
|
665
|
-
*/const Jn=m`@layer styles{:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px);--_container-shape-start-start: var(--md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)))}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:"";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}}@layer hcm{@media(forced-colors: active){.disabled .active-indicator::before{border-color:GrayText;opacity:1}}}
|
|
665
|
+
*/const Jn=b`@layer styles{:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px);--_container-shape-start-start: var(--md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)))}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:"";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}}@layer hcm{@media(forced-colors: active){.disabled .active-indicator::before{border-color:GrayText;opacity:1}}}
|
|
666
666
|
`;/**
|
|
667
667
|
* @license
|
|
668
668
|
* Copyright 2024 Google LLC
|
|
669
669
|
* SPDX-License-Identifier: Apache-2.0
|
|
670
|
-
*/const Ea=
|
|
670
|
+
*/const Ea=b`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start,.with-end .end{min-width:48px}.with-start .start{margin-inline-end:4px}.with-end .end{margin-inline-start:4px}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}}
|
|
671
671
|
`;/**
|
|
672
672
|
* @license
|
|
673
673
|
* Copyright 2021 Google LLC
|
|
@@ -676,7 +676,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
676
676
|
* @license
|
|
677
677
|
* Copyright 2021 Google LLC
|
|
678
678
|
* SPDX-License-Identifier: Apache-2.0
|
|
679
|
-
*/class Qn extends
|
|
679
|
+
*/class Qn extends D{renderOutline(e){return c`
|
|
680
680
|
<div class="outline">
|
|
681
681
|
<div class="outline-start"></div>
|
|
682
682
|
<div class="outline-notch">
|
|
@@ -690,7 +690,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
690
690
|
* @license
|
|
691
691
|
* Copyright 2024 Google LLC
|
|
692
692
|
* SPDX-License-Identifier: Apache-2.0
|
|
693
|
-
*/const el=m`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}}
|
|
693
|
+
*/const el=b`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}}
|
|
694
694
|
`;/**
|
|
695
695
|
* @license
|
|
696
696
|
* Copyright 2021 Google LLC
|
|
@@ -703,22 +703,22 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
703
703
|
* @license
|
|
704
704
|
* Copyright 2024 Google LLC
|
|
705
705
|
* SPDX-License-Identifier: Apache-2.0
|
|
706
|
-
*/const il=
|
|
706
|
+
*/const il=b`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
|
|
707
707
|
`;/**
|
|
708
708
|
* @license
|
|
709
709
|
* Copyright 2022 Google LLC
|
|
710
710
|
* SPDX-License-Identifier: Apache-2.0
|
|
711
|
-
*/let Fi=class extends tl{};Fi.styles=[il],Fi=d([g("md-icon")],Fi);const
|
|
711
|
+
*/let Fi=class extends tl{};Fi.styles=[il],Fi=d([g("md-icon")],Fi);const De=Object.freeze(Object.defineProperty({__proto__:null,get MdIcon(){return Fi}},Symbol.toStringTag,{value:"Module"}));/**
|
|
712
712
|
* @license
|
|
713
713
|
* Copyright 2024 Google LLC
|
|
714
714
|
* SPDX-License-Identifier: Apache-2.0
|
|
715
|
-
*/const rl=
|
|
715
|
+
*/const rl=b`:host{--_container-color: var(--md-filled-icon-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-height: var(--md-filled-icon-button-container-height, 40px);--_container-width: var(--md-filled-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-icon-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-icon-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-icon-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-icon-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-icon-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-icon-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-icon-button-selected-container-color, var(--md-sys-color-primary, #6750a4));--_toggle-selected-focus-icon-color: var(--md-filled-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-icon-color: var(--md-filled-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-state-layer-color: var(--md-filled-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-icon-color: var(--md-filled-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-icon-color: var(--md-filled-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-state-layer-color: var(--md-filled-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_unselected-container-color: var(--md-filled-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-icon-button-toggle-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-icon-color: var(--md-filled-icon-button-toggle-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-state-layer-color: var(--md-filled-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_toggle-icon-color: var(--md-filled-icon-button-toggle-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-icon-color: var(--md-filled-icon-button-toggle-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-state-layer-color: var(--md-filled-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-filled-icon-button-container-shape-start-start, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-icon-button-container-shape-start-end, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-icon-button-container-shape-end-end, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-icon-button-container-shape-end-start, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)))}.icon-button{color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}
|
|
716
716
|
`;/**
|
|
717
717
|
* @license
|
|
718
718
|
* Copyright 2020 Google LLC
|
|
719
719
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
720
720
|
*/const Aa=Symbol.for(""),ol=o=>{if((o==null?void 0:o.r)===Aa)return o==null?void 0:o._$litStatic$},ee=(o,...e)=>({_$litStatic$:e.reduce((t,i,r)=>t+(s=>{if(s._$litStatic$!==void 0)return s._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${s}. Use 'unsafeStatic' to pass non-literal values, but
|
|
721
|
-
take care to ensure page security.`)})(i)+o[r+1],o[0]),r:Aa}),za=new Map,al=o=>(e,...t)=>{const i=t.length;let r,s;const n=[],h=[];let p,v=0,f=!1;for(;v<i;){for(p=e[v];v<i&&(s=t[v],(r=ol(s))!==void 0);)p+=r+e[++v],f=!0;v!==i&&h.push(s),n.push(p),v++}if(v===i&&n.push(e[i]),f){const
|
|
721
|
+
take care to ensure page security.`)})(i)+o[r+1],o[0]),r:Aa}),za=new Map,al=o=>(e,...t)=>{const i=t.length;let r,s;const n=[],h=[];let p,v=0,f=!1;for(;v<i;){for(p=e[v];v<i&&(s=t[v],(r=ol(s))!==void 0);)p+=r+e[++v],f=!0;v!==i&&h.push(s),n.push(p),v++}if(v===i&&n.push(e[i]),f){const m=n.join("$$lit$$");(e=za.get(m))===void 0&&(n.raw=n,za.set(m,e=n)),t=h}return o(e,...t)},ii=al(c);/**
|
|
722
722
|
* @license
|
|
723
723
|
* Copyright 2022 Google LLC
|
|
724
724
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -758,7 +758,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
758
758
|
* @license
|
|
759
759
|
* Copyright 2024 Google LLC
|
|
760
760
|
* SPDX-License-Identifier: Apache-2.0
|
|
761
|
-
*/const Ni=
|
|
761
|
+
*/const Ni=b`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}}
|
|
762
762
|
`;/**
|
|
763
763
|
* @license
|
|
764
764
|
* Copyright 2022 Google LLC
|
|
@@ -767,7 +767,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
767
767
|
* @license
|
|
768
768
|
* Copyright 2024 Google LLC
|
|
769
769
|
* SPDX-License-Identifier: Apache-2.0
|
|
770
|
-
*/const ll=
|
|
770
|
+
*/const ll=b`:host{--_container-color: var(--md-filled-tonal-icon-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-height: var(--md-filled-tonal-icon-button-container-height, 40px);--_container-width: var(--md-filled-tonal-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-tonal-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-tonal-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-icon-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-icon-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-icon-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-tonal-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-tonal-icon-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-icon-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-tonal-icon-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_toggle-selected-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-container-color: var(--md-filled-tonal-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-icon-color: var(--md-filled-tonal-icon-button-toggle-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var(--md-filled-tonal-icon-button-container-shape-start-start, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-icon-button-container-shape-start-end, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-icon-button-container-shape-end-end, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-icon-button-container-shape-end-start, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)))}.icon-button{color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled-tonal{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled-tonal:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled-tonal:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled-tonal:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled-tonal:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled-tonal:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}
|
|
771
771
|
`;/**
|
|
772
772
|
* @license
|
|
773
773
|
* Copyright 2022 Google LLC
|
|
@@ -776,7 +776,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
776
776
|
* @license
|
|
777
777
|
* Copyright 2024 Google LLC
|
|
778
778
|
* SPDX-License-Identifier: Apache-2.0
|
|
779
|
-
*/const dl=
|
|
779
|
+
*/const dl=b`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}
|
|
780
780
|
`;/**
|
|
781
781
|
* @license
|
|
782
782
|
* Copyright 2021 Google LLC
|
|
@@ -785,7 +785,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
785
785
|
* @license
|
|
786
786
|
* Copyright 2024 Google LLC
|
|
787
787
|
* SPDX-License-Identifier: Apache-2.0
|
|
788
|
-
*/const pl=
|
|
788
|
+
*/const pl=b`:host{--_container-height: var(--md-outlined-icon-button-container-height, 40px);--_container-width: var(--md-outlined-icon-button-container-width, 40px);--_disabled-icon-color: var(--md-outlined-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-icon-button-disabled-icon-opacity, 0.38);--_disabled-selected-container-color: var(--md-outlined-icon-button-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-outlined-icon-button-disabled-selected-container-opacity, 0.12);--_hover-state-layer-opacity: var(--md-outlined-icon-button-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-outlined-icon-button-icon-size, 24px);--_pressed-state-layer-opacity: var(--md-outlined-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-icon-button-selected-container-color, var(--md-sys-color-inverse-surface, #322f35));--_selected-focus-icon-color: var(--md-outlined-icon-button-selected-focus-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-icon-color: var(--md-outlined-icon-button-selected-hover-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-state-layer-color: var(--md-outlined-icon-button-selected-hover-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-icon-color: var(--md-outlined-icon-button-selected-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-icon-color: var(--md-outlined-icon-button-selected-pressed-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-state-layer-color: var(--md-outlined-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_disabled-outline-color: var(--md-outlined-icon-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-icon-button-disabled-outline-opacity, 0.12);--_focus-icon-color: var(--md-outlined-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-outlined-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-outlined-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_icon-color: var(--md-outlined-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-outlined-icon-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-icon-button-outline-width, 1px);--_pressed-icon-color: var(--md-outlined-icon-button-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-outlined-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--md-outlined-icon-button-container-shape-start-start, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-icon-button-container-shape-start-end, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-icon-button-container-shape-end-end, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-icon-button-container-shape-end-start, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)))}.outlined{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.outlined::before{border-color:var(--_outline-color);border-width:var(--_outline-width)}.outlined:hover{color:var(--_hover-icon-color)}.outlined:focus{color:var(--_focus-icon-color)}.outlined:active{color:var(--_pressed-icon-color)}.outlined:disabled{color:var(--_disabled-icon-color)}.outlined:disabled::before{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}.outlined:disabled .icon{opacity:var(--_disabled-icon-opacity)}.outlined::before{block-size:100%;border-style:solid;border-radius:inherit;box-sizing:border-box;content:"";inline-size:100%;inset:0;pointer-events:none;position:absolute;z-index:-1}.outlined.selected::before{border-width:0}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}.selected:disabled::before{background-color:var(--_disabled-selected-container-color);opacity:var(--_disabled-selected-container-opacity)}@media(forced-colors: active){:host([disabled]){--_disabled-outline-opacity: 1}.selected::before{border-color:CanvasText;border-width:var(--_outline-width)}.selected:disabled::before{border-color:GrayText;opacity:1}}
|
|
789
789
|
`;/**
|
|
790
790
|
* @license
|
|
791
791
|
* Copyright 2022 Google LLC
|
|
@@ -794,11 +794,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
794
794
|
* @license
|
|
795
795
|
* Copyright 2023 Google LLC
|
|
796
796
|
* SPDX-License-Identifier: Apache-2.0
|
|
797
|
-
*/function Ta(o,e=ke){const t=Wi(o,e);return t&&(t.tabIndex=0,t.focus()),t}function Oa(o,e=ke){const t=La(o,e);return t&&(t.tabIndex=0,t.focus()),t}function vl(o,e=ke){const t=At(o,e);return t&&(t.item.tabIndex=-1),t}function At(o,e=ke){for(let t=0;t<o.length;t++){const i=o[t];if(i.tabIndex===0&&e(i))return{item:i,index:t}}return null}function Wi(o,e=ke){for(const t of o)if(e(t))return t;return null}function La(o,e=ke){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return i}return null}function
|
|
797
|
+
*/function Ta(o,e=ke){const t=Wi(o,e);return t&&(t.tabIndex=0,t.focus()),t}function Oa(o,e=ke){const t=La(o,e);return t&&(t.tabIndex=0,t.focus()),t}function vl(o,e=ke){const t=At(o,e);return t&&(t.item.tabIndex=-1),t}function At(o,e=ke){for(let t=0;t<o.length;t++){const i=o[t];if(i.tabIndex===0&&e(i))return{item:i,index:t}}return null}function Wi(o,e=ke){for(const t of o)if(e(t))return t;return null}function La(o,e=ke){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return i}return null}function ml(o,e,t=ke,i=!0){for(let r=1;r<o.length;r++){const s=(r+e)%o.length;if(s<e&&!i)return null;const n=o[s];if(t(n))return n}return o[e]?o[e]:null}function bl(o,e,t=ke,i=!0){for(let r=1;r<o.length;r++){const s=(e-r+o.length)%o.length;if(s>e&&!i)return null;const n=o[s];if(t(n))return n}return o[e]?o[e]:null}function Pa(o,e,t=ke,i=!0){if(e){const r=ml(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return Ta(o,t)}function Da(o,e,t=ke,i=!0){if(e){const r=bl(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return Oa(o,t)}function Ki(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function Ra(){return new Event("request-activation",{bubbles:!0,composed:!0})}function ke(o){return!o.disabled}/**
|
|
798
798
|
* @license
|
|
799
799
|
* Copyright 2023 Google LLC
|
|
800
800
|
* SPDX-License-Identifier: Apache-2.0
|
|
801
|
-
*/const G={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class Ba{constructor(e){this.handleKeydown=f=>{const
|
|
801
|
+
*/const G={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class Ba{constructor(e){this.handleKeydown=f=>{const m=f.key;if(f.defaultPrevented||!this.isNavigableKey(m))return;const x=this.items;if(!x.length)return;const _=At(x,this.isActivatable);f.preventDefault();const S=this.isRtl(),C=S?G.ArrowRight:G.ArrowLeft,E=S?G.ArrowLeft:G.ArrowRight;let A=null;switch(m){case G.ArrowDown:case E:A=Pa(x,_,this.isActivatable,this.wrapNavigation());break;case G.ArrowUp:case C:A=Da(x,_,this.isActivatable,this.wrapNavigation());break;case G.Home:A=Ta(x,this.isActivatable);break;case G.End:A=Oa(x,this.isActivatable);break}A&&_&&_.item!==A&&(_.item.tabIndex=-1)},this.onDeactivateItems=()=>{const f=this.items;for(const m of f)this.deactivateItem(m)},this.onRequestActivation=f=>{this.onDeactivateItems();const m=f.target;this.activateItem(m),m.focus()},this.onSlotchange=()=>{const f=this.items;let m=!1;for(const _ of f){if(!_.disabled&&_.tabIndex>-1&&!m){m=!0,_.tabIndex=0;continue}_.tabIndex=-1}if(m)return;const x=Wi(f,this.isActivatable);x&&(x.tabIndex=0)};const{isItem:t,getPossibleItems:i,isRtl:r,deactivateItem:s,activateItem:n,isNavigableKey:h,isActivatable:p,wrapNavigation:v}=e;this.isItem=t,this.getPossibleItems=i,this.isRtl=r,this.deactivateItem=s,this.activateItem=n,this.isNavigableKey=h,this.isActivatable=p,this.wrapNavigation=v??(()=>!0)}get items(){const e=this.getPossibleItems(),t=[];for(const i of e){if(this.isItem(i)){t.push(i);continue}const s=i.item;s&&this.isItem(s)&&t.push(s)}return t}activateNextItem(){const e=this.items,t=At(e,this.isActivatable);return t&&(t.item.tabIndex=-1),Pa(e,t,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const e=this.items,t=At(e,this.isActivatable);return t&&(t.item.tabIndex=-1),Da(e,t,this.isActivatable,this.wrapNavigation())}}/**
|
|
802
802
|
* @license
|
|
803
803
|
* Copyright 2021 Google LLC
|
|
804
804
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -812,7 +812,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
812
812
|
* @license
|
|
813
813
|
* Copyright 2024 Google LLC
|
|
814
814
|
* SPDX-License-Identifier: Apache-2.0
|
|
815
|
-
*/const gl=
|
|
815
|
+
*/const gl=b`:host{background:var(--md-list-container-color, var(--md-sys-color-surface, #fef7ff));color:unset;display:flex;flex-direction:column;outline:none;padding:8px 0;position:relative}
|
|
816
816
|
`;/**
|
|
817
817
|
* @license
|
|
818
818
|
* Copyright 2021 Google LLC
|
|
@@ -840,7 +840,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
840
840
|
* @license
|
|
841
841
|
* Copyright 2024 Google LLC
|
|
842
842
|
* SPDX-License-Identifier: Apache-2.0
|
|
843
|
-
*/const _l=
|
|
843
|
+
*/const _l=b`:host{color:var(--md-sys-color-on-surface, #1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, 0.875rem);font-weight:var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}
|
|
844
844
|
`;/**
|
|
845
845
|
* @license
|
|
846
846
|
* Copyright 2023 Google LLC
|
|
@@ -849,7 +849,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
849
849
|
* @license
|
|
850
850
|
* Copyright 2022 Google LLC
|
|
851
851
|
* SPDX-License-Identifier: Apache-2.0
|
|
852
|
-
*/class
|
|
852
|
+
*/class Re extends y{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&this.type!=="link"}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem(c`
|
|
853
853
|
<md-item>
|
|
854
854
|
<div slot="container">
|
|
855
855
|
${this.renderRipple()} ${this.renderFocusRing()}
|
|
@@ -888,20 +888,20 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
888
888
|
<slot
|
|
889
889
|
name="trailing-supporting-text"
|
|
890
890
|
slot="trailing-supporting-text"></slot>
|
|
891
|
-
`}onFocus(){this.tabIndex===-1&&this.dispatchEvent(
|
|
891
|
+
`}onFocus(){this.tabIndex===-1&&this.dispatchEvent(Ra())}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Q(Re),Re.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],Re.prototype,"disabled",void 0),d([l({reflect:!0})],Re.prototype,"type",void 0),d([l({type:Boolean,attribute:"md-list-item",reflect:!0})],Re.prototype,"isListItem",void 0),d([l()],Re.prototype,"href",void 0),d([l()],Re.prototype,"target",void 0),d([k(".list-item")],Re.prototype,"listItemRoot",void 0);/**
|
|
892
892
|
* @license
|
|
893
893
|
* Copyright 2024 Google LLC
|
|
894
894
|
* SPDX-License-Identifier: Apache-2.0
|
|
895
|
-
*/const wl=
|
|
895
|
+
*/const wl=b`:host{display:flex;-webkit-tap-highlight-color:rgba(0,0,0,0);--md-ripple-hover-color: var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, 0.3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-list-item-one-line-container-height, 56px);padding-top:var(--md-list-item-top-space, 12px);padding-bottom:var(--md-list-item-bottom-space, 12px);padding-inline-start:var(--md-list-item-leading-space, 16px);padding-inline-end:var(--md-list-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}@media(forced-colors: active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}
|
|
896
896
|
`;/**
|
|
897
897
|
* @license
|
|
898
898
|
* Copyright 2022 Google LLC
|
|
899
899
|
* SPDX-License-Identifier: Apache-2.0
|
|
900
|
-
*/let no=class extends
|
|
900
|
+
*/let no=class extends Re{};no.styles=[wl],no=d([g("md-list-item")],no);/**
|
|
901
901
|
* @license
|
|
902
902
|
* Copyright 2018 Google LLC
|
|
903
903
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
904
|
-
*/const Ha="important",Sl=" !"+Ha,pt=
|
|
904
|
+
*/const Ha="important",Sl=" !"+Ha,pt=Rr(class extends Br{constructor(o){var e;if(super(o),o.type!==Ge.ATTRIBUTE||o.name!=="style"||((e=o.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((e,t)=>{const i=o[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(o,[e]){const{style:t}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const r=e[i];if(r!=null){this.ft.add(i);const s=typeof r=="string"&&r.endsWith(Sl);i.includes("-")||s?t.setProperty(i,s?r.slice(0,-11):r,s?Ha:""):t[i]=r}}return ce}});/**
|
|
905
905
|
* @license
|
|
906
906
|
* Copyright 2023 Google LLC
|
|
907
907
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -909,7 +909,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
909
909
|
* @license
|
|
910
910
|
* Copyright 2023 Google LLC
|
|
911
911
|
* SPDX-License-Identifier: Apache-2.0
|
|
912
|
-
*/const Yi={END_START:"end-start",START_START:"start-start",START_END:"start-end"};class El{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:t,anchorCorner:i,surfaceCorner:r,positioning:s,xOffset:n,yOffset:h,repositionStrategy:p}=this.getProperties(),v=i.toLowerCase().trim(),f=r.toLowerCase().trim();if(!e||!t)return;const
|
|
912
|
+
*/const Yi={END_START:"end-start",START_START:"start-start",START_END:"start-end"};class El{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:t,anchorCorner:i,surfaceCorner:r,positioning:s,xOffset:n,yOffset:h,repositionStrategy:p}=this.getProperties(),v=i.toLowerCase().trim(),f=r.toLowerCase().trim();if(!e||!t)return;const m=window.innerWidth,x=window.innerHeight,_=document.createElement("div");_.style.opacity="0",_.style.position="fixed",_.style.display="block",_.style.inset="0",document.body.appendChild(_);const S=_.getBoundingClientRect();_.remove();const C=window.innerHeight-S.bottom,E=window.innerWidth-S.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const A=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),z=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),[X,q]=f.split("-"),[M,Ue]=v.split("-"),je=getComputedStyle(e).direction==="ltr";let{blockInset:ve,blockOutOfBoundsCorrection:ne,surfaceBlockProperty:St}=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:M,surfaceBlock:X,yOffset:h,positioning:s,windowInnerHeight:x,blockScrollbarHeight:C});if(ne){const xi=X==="start"?"end":"start",_i=M==="start"?"end":"start",we=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:_i,surfaceBlock:xi,yOffset:h,positioning:s,windowInnerHeight:x,blockScrollbarHeight:C});ne>we.blockOutOfBoundsCorrection&&(ve=we.blockInset,ne=we.blockOutOfBoundsCorrection,St=we.surfaceBlockProperty)}let{inlineInset:Te,inlineOutOfBoundsCorrection:rt,surfaceInlineProperty:wr}=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:Ue,surfaceInline:q,xOffset:n,positioning:s,isLTR:je,windowInnerWidth:m,inlineScrollbarWidth:E});if(rt){const xi=q==="start"?"end":"start",_i=Ue==="start"?"end":"start",we=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:_i,surfaceInline:xi,xOffset:n,positioning:s,isLTR:je,windowInnerWidth:m,inlineScrollbarWidth:E});Math.abs(rt)>Math.abs(we.inlineOutOfBoundsCorrection)&&(Te=we.inlineInset,rt=we.inlineOutOfBoundsCorrection,wr=we.surfaceInlineProperty)}p==="move"&&(ve=ve-ne,Te=Te-rt),this.surfaceStylesInternal={display:"block",opacity:"1",[St]:`${ve}px`,[wr]:`${Te}px`},p==="resize"&&(ne&&(this.surfaceStylesInternal.height=`${A.height-ne}px`),rt&&(this.surfaceStylesInternal.width=`${A.width-rt}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:t,anchorRect:i,anchorBlock:r,surfaceBlock:s,yOffset:n,positioning:h,windowInnerHeight:p,blockScrollbarHeight:v}=e,f=h==="fixed"||h==="document"?1:0,m=h==="document"?1:0,x=s==="start"?1:0,_=s==="end"?1:0,C=(r!==s?1:0)*i.height+n,E=x*i.top+_*(p-i.bottom-v),A=x*window.scrollY-_*window.scrollY,z=Math.abs(Math.min(0,p-E-C-t.height));return{blockInset:f*E+m*A+C,blockOutOfBoundsCorrection:z,surfaceBlockProperty:s==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:t,surfaceInline:i,anchorInline:r,anchorRect:s,surfaceRect:n,xOffset:h,positioning:p,windowInnerWidth:v,inlineScrollbarWidth:f}=e,m=p==="fixed"||p==="document"?1:0,x=p==="document"?1:0,_=t?1:0,S=t?0:1,C=i==="start"?1:0,E=i==="end"?1:0,z=(r!==i?1:0)*s.width+h,X=C*s.left+E*(v-s.right-f),q=C*(v-s.right-f)+E*s.left,M=_*X+S*q,Ue=C*window.scrollX-E*window.scrollX,je=E*window.scrollX-C*window.scrollX,ve=_*Ue+S*je,ne=Math.abs(Math.min(0,v-M-z-n.width)),St=m*M+z+x*ve;let Te=i==="start"?"inset-inline-start":"inset-inline-end";return(p==="document"||p==="fixed")&&(i==="start"&&t||i==="end"&&!t?Te="left":Te="right"),{inlineInset:St,inlineOutOfBoundsCorrection:ne,surfaceInlineProperty:Te}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let t=!1;for(const[n,h]of Object.entries(e))if(t=t||h!==this.lastValues[n],t)break;const i=this.lastValues.isOpen!==e.isOpen,r=!!e.anchorEl,s=!!e.surfaceEl;t&&r&&s&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):i&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/**
|
|
913
913
|
* @license
|
|
914
914
|
* Copyright 2023 Google LLC
|
|
915
915
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -935,11 +935,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
935
935
|
@activate-typeahead=${this.handleActivateTypeahead}
|
|
936
936
|
@stay-open-on-focusout=${this.handleStayOpenOnFocusout}
|
|
937
937
|
@close-on-focusout=${this.handleCloseOnFocusout}
|
|
938
|
-
@slotchange=${this.listController.onSlotchange}></slot>`}renderElevation(){return c`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Na(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const i=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const r=this.openCloseAnimationSignal.start(),s=e.offsetHeight,n=i==="UP",h=this.items,p=500,v=50,f=250,
|
|
938
|
+
@slotchange=${this.listController.onSlotchange}></slot>`}renderElevation(){return c`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Na(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const i=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const r=this.openCloseAnimationSignal.start(),s=e.offsetHeight,n=i==="UP",h=this.items,p=500,v=50,f=250,m=(p-f)/h.length,x=e.animate([{height:"0px"},{height:`${s}px`}],{duration:p,easing:me.EMPHASIZED}),_=t.animate([{transform:n?`translateY(-${s}px)`:""},{transform:""}],{duration:p,easing:me.EMPHASIZED}),S=e.animate([{opacity:0},{opacity:1}],v),C=[];for(let z=0;z<h.length;z++){const X=n?h.length-1-z:z,q=h[X],M=q.animate([{opacity:0},{opacity:1}],{duration:f,delay:m*z});q.classList.toggle("md-menu-hidden",!0),M.addEventListener("finish",()=>{q.classList.toggle("md-menu-hidden",!1)}),C.push([q,M])}let E=z=>{};const A=new Promise(z=>{E=z});return r.addEventListener("abort",()=>{x.cancel(),_.cancel(),S.cancel(),C.forEach(([z,X])=>{z.classList.toggle("md-menu-hidden",!1),X.cancel()}),E(!0)}),x.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),E(!1)}),await A}animateClose(){let e;const t=new Promise(M=>{e=M}),i=this.surfaceEl,r=this.slotEl;if(!i||!r)return e(!1),t;const n=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const h=this.openCloseAnimationSignal.start(),p=i.offsetHeight,v=this.items,f=150,m=50,x=f-m,_=50,S=50,C=.35,E=(f-S-_)/v.length,A=i.animate([{height:`${p}px`},{height:`${p*C}px`}],{duration:f,easing:me.EMPHASIZED_ACCELERATE}),z=r.animate([{transform:""},{transform:n?`translateY(-${p*(1-C)}px)`:""}],{duration:f,easing:me.EMPHASIZED_ACCELERATE}),X=i.animate([{opacity:1},{opacity:0}],{duration:m,delay:x}),q=[];for(let M=0;M<v.length;M++){const Ue=n?M:v.length-1-M,je=v[Ue],ve=je.animate([{opacity:1},{opacity:0}],{duration:_,delay:S+E*M});ve.addEventListener("finish",()=>{je.classList.toggle("md-menu-hidden",!0)}),q.push([je,ve])}return h.addEventListener("abort",()=>{A.cancel(),z.cancel(),X.cancel(),q.forEach(([M,Ue])=>{Ue.cancel(),M.classList.toggle("md-menu-hidden",!1)}),e(!1)}),A.addEventListener("finish",()=>{i.classList.toggle("animating",!1),q.forEach(([M])=>{M.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(t=>{var i;(i=t.close)==null||i.call(t)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}d([k(".menu")],H.prototype,"surfaceEl",void 0),d([k("slot")],H.prototype,"slotEl",void 0),d([l()],H.prototype,"anchor",void 0),d([l()],H.prototype,"positioning",void 0),d([l({type:Boolean})],H.prototype,"quick",void 0),d([l({type:Boolean,attribute:"has-overflow"})],H.prototype,"hasOverflow",void 0),d([l({type:Boolean,reflect:!0})],H.prototype,"open",void 0),d([l({type:Number,attribute:"x-offset"})],H.prototype,"xOffset",void 0),d([l({type:Number,attribute:"y-offset"})],H.prototype,"yOffset",void 0),d([l({type:Number,attribute:"typeahead-delay"})],H.prototype,"typeaheadDelay",void 0),d([l({attribute:"anchor-corner"})],H.prototype,"anchorCorner",void 0),d([l({attribute:"menu-corner"})],H.prototype,"menuCorner",void 0),d([l({type:Boolean,attribute:"stay-open-on-outside-click"})],H.prototype,"stayOpenOnOutsideClick",void 0),d([l({type:Boolean,attribute:"stay-open-on-focusout"})],H.prototype,"stayOpenOnFocusout",void 0),d([l({type:Boolean,attribute:"skip-restore-focus"})],H.prototype,"skipRestoreFocus",void 0),d([l({attribute:"default-focus"})],H.prototype,"defaultFocus",void 0),d([l({type:Boolean,attribute:"no-navigation-wrap"})],H.prototype,"noNavigationWrap",void 0),d([Y({flatten:!0})],H.prototype,"slotItems",void 0),d([w()],H.prototype,"typeaheadActive",void 0);/**
|
|
939
939
|
* @license
|
|
940
940
|
* Copyright 2024 Google LLC
|
|
941
941
|
* SPDX-License-Identifier: Apache-2.0
|
|
942
|
-
*/const Tl=
|
|
942
|
+
*/const Tl=b`:host{--md-elevation-level: var(--md-menu-container-elevation, 2);--md-elevation-shadow-color: var(--md-menu-container-shadow-color, var(--md-sys-color-shadow, #000));min-width:112px;color:unset;display:contents}md-focus-ring{--md-focus-ring-shape: var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px))}.menu{border-radius:var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px));display:none;inset:auto;border:none;padding:0px;overflow:visible;background-color:rgba(0,0,0,0);color:inherit;opacity:0;z-index:20;position:absolute;user-select:none;max-height:inherit;height:inherit;min-width:inherit;max-width:inherit;scrollbar-width:inherit}.menu::backdrop{display:none}.fixed{position:fixed}.items{display:block;list-style-type:none;margin:0;outline:none;box-sizing:border-box;background-color:var(--md-menu-container-color, var(--md-sys-color-surface-container, #f3edf7));height:inherit;max-height:inherit;overflow:auto;min-width:inherit;max-width:inherit;border-radius:inherit;scrollbar-width:inherit}.item-padding{padding-block:8px}.has-overflow:not([popover]) .items{overflow:visible}.has-overflow.animating .items,.animating .items{overflow:hidden}.has-overflow.animating .items{pointer-events:none}.animating ::slotted(.md-menu-hidden){opacity:0}slot{display:block;height:inherit;max-height:inherit}::slotted(:is(md-divider,[role=separator])){margin:8px 0}@media(forced-colors: active){.menu{border-style:solid;border-color:CanvasText;border-width:1px}}
|
|
943
943
|
`;/**
|
|
944
944
|
* @license
|
|
945
945
|
* Copyright 2022 Google LLC
|
|
@@ -995,7 +995,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
995
995
|
* @license
|
|
996
996
|
* Copyright 2024 Google LLC
|
|
997
997
|
* SPDX-License-Identifier: Apache-2.0
|
|
998
|
-
*/const ja=
|
|
998
|
+
*/const ja=b`:host{display:flex;--md-ripple-hover-color: var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, 0.3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-menu-item-one-line-container-height, 56px);padding-top:var(--md-menu-item-top-space, 12px);padding-bottom:var(--md-menu-item-bottom-space, 12px);padding-inline-start:var(--md-menu-item-leading-space, 16px);padding-inline-end:var(--md-menu-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-menu-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-menu-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}.list-item{background-color:var(--md-menu-item-container-color, transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color, var(--md-sys-color-secondary-container, #e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b))}@media(forced-colors: active){:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}}
|
|
999
999
|
`;/**
|
|
1000
1000
|
* @license
|
|
1001
1001
|
* Copyright 2022 Google LLC
|
|
@@ -1017,16 +1017,16 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1017
1017
|
@close-menu=${this.onCloseSubmenu}
|
|
1018
1018
|
@slotchange=${this.onSlotchange}>
|
|
1019
1019
|
</slot>
|
|
1020
|
-
`}firstUpdated(){this.onSlotchange()}async show(){const e=this.menu;if(!e||e.open)return;e.addEventListener("closed",()=>{this.item.ariaExpanded="false",this.dispatchEvent(lo()),this.dispatchEvent(Ki()),e.ariaHidden="true"},{once:!0}),e.positioning==="document"&&(e.positioning="absolute"),e.quick=!0,e.hasOverflow=!0,e.anchorCorner=this.anchorCorner,e.menuCorner=this.menuCorner,e.anchorElement=this.item,e.defaultFocus="first-item",e.removeAttribute("aria-hidden"),e.skipRestoreFocus=!1;const t=e.open;if(e.show(),this.item.ariaExpanded="true",this.item.ariaHasPopup="menu",e.id&&this.item.setAttribute("aria-controls",e.id),this.dispatchEvent(Ki()),this.dispatchEvent($l()),this.item.selected=!0,!t){let i=s=>{};const r=new Promise(s=>{i=s});e.addEventListener("opened",i,{once:!0}),await r}}async close(){const e=this.menu;if(!e||!e.open)return;this.dispatchEvent(lo()),e.quick=!0,e.close(),this.dispatchEvent(Ki());let t=r=>{};const i=new Promise(r=>{t=r});e.addEventListener("closed",t,{once:!0}),await i}onSlotchange(){var t;if(!this.item)return;this.item.ariaExpanded="false",this.item.ariaHasPopup="menu",(t=this.menu)!=null&&t.id&&this.item.setAttribute("aria-controls",this.menu.id),this.item.keepOpen=!0;const e=this.menu;e&&(e.isSubmenu=!0,e.ariaHidden="true")}onClick(){this.show()}async onKeydown(e){const t=this.isSubmenuOpenKey(e.code);if(e.defaultPrevented)return;const i=t&&(Ze.LEFT===e.code||Ze.RIGHT===e.code);if((e.code===zt.SPACE||i)&&(e.preventDefault(),i&&e.stopPropagation()),!t)return;const r=this.menu;if(!r)return;const s=r.items,n=Wi(s);if(n){await this.show(),n.tabIndex=0,n.focus();return}}onCloseSubmenu(e){const{itemPath:t,reason:i}=e.detail;if(t.push(this.item),this.dispatchEvent(lo()),i.kind===co.KEYDOWN&&i.key===ho.ESCAPE){e.stopPropagation(),this.item.dispatchEvent(
|
|
1020
|
+
`}firstUpdated(){this.onSlotchange()}async show(){const e=this.menu;if(!e||e.open)return;e.addEventListener("closed",()=>{this.item.ariaExpanded="false",this.dispatchEvent(lo()),this.dispatchEvent(Ki()),e.ariaHidden="true"},{once:!0}),e.positioning==="document"&&(e.positioning="absolute"),e.quick=!0,e.hasOverflow=!0,e.anchorCorner=this.anchorCorner,e.menuCorner=this.menuCorner,e.anchorElement=this.item,e.defaultFocus="first-item",e.removeAttribute("aria-hidden"),e.skipRestoreFocus=!1;const t=e.open;if(e.show(),this.item.ariaExpanded="true",this.item.ariaHasPopup="menu",e.id&&this.item.setAttribute("aria-controls",e.id),this.dispatchEvent(Ki()),this.dispatchEvent($l()),this.item.selected=!0,!t){let i=s=>{};const r=new Promise(s=>{i=s});e.addEventListener("opened",i,{once:!0}),await r}}async close(){const e=this.menu;if(!e||!e.open)return;this.dispatchEvent(lo()),e.quick=!0,e.close(),this.dispatchEvent(Ki());let t=r=>{};const i=new Promise(r=>{t=r});e.addEventListener("closed",t,{once:!0}),await i}onSlotchange(){var t;if(!this.item)return;this.item.ariaExpanded="false",this.item.ariaHasPopup="menu",(t=this.menu)!=null&&t.id&&this.item.setAttribute("aria-controls",this.menu.id),this.item.keepOpen=!0;const e=this.menu;e&&(e.isSubmenu=!0,e.ariaHidden="true")}onClick(){this.show()}async onKeydown(e){const t=this.isSubmenuOpenKey(e.code);if(e.defaultPrevented)return;const i=t&&(Ze.LEFT===e.code||Ze.RIGHT===e.code);if((e.code===zt.SPACE||i)&&(e.preventDefault(),i&&e.stopPropagation()),!t)return;const r=this.menu;if(!r)return;const s=r.items,n=Wi(s);if(n){await this.show(),n.tabIndex=0,n.focus();return}}onCloseSubmenu(e){const{itemPath:t,reason:i}=e.detail;if(t.push(this.item),this.dispatchEvent(lo()),i.kind===co.KEYDOWN&&i.key===ho.ESCAPE){e.stopPropagation(),this.item.dispatchEvent(Ra());return}this.dispatchEvent(Ki())}async onSubMenuKeydown(e){var r;if(e.defaultPrevented)return;const{close:t,keyCode:i}=this.isSubmenuCloseKey(e.code);t&&(e.preventDefault(),(i===Ze.LEFT||i===Ze.RIGHT)&&e.stopPropagation(),await this.close(),vl(this.menu.items),(r=this.item)==null||r.focus(),this.item.tabIndex=0,this.item.focus())}isSubmenuOpenKey(e){const i=getComputedStyle(this).direction==="rtl"?Ze.LEFT:Ze.RIGHT;switch(e){case i:case zt.SPACE:case zt.ENTER:return!0;default:return!1}}isSubmenuCloseKey(e){const i=getComputedStyle(this).direction==="rtl"?Ze.RIGHT:Ze.LEFT;switch(e){case i:case ho.ESCAPE:return{close:!0,keyCode:e};default:return{close:!1}}}}d([l({attribute:"anchor-corner"})],Je.prototype,"anchorCorner",void 0),d([l({attribute:"menu-corner"})],Je.prototype,"menuCorner",void 0),d([l({type:Number,attribute:"hover-open-delay"})],Je.prototype,"hoverOpenDelay",void 0),d([l({type:Number,attribute:"hover-close-delay"})],Je.prototype,"hoverCloseDelay",void 0),d([l({type:Boolean,reflect:!0,attribute:"md-sub-menu"})],Je.prototype,"isSubMenu",void 0),d([Y({slot:"item",flatten:!0})],Je.prototype,"items",void 0),d([Y({slot:"menu",flatten:!0})],Je.prototype,"menus",void 0);/**
|
|
1021
1021
|
* @license
|
|
1022
1022
|
* Copyright 2024 Google LLC
|
|
1023
1023
|
* SPDX-License-Identifier: Apache-2.0
|
|
1024
|
-
*/const Ol=
|
|
1024
|
+
*/const Ol=b`:host{position:relative;display:flex;flex-direction:column}
|
|
1025
1025
|
`;/**
|
|
1026
1026
|
* @license
|
|
1027
1027
|
* Copyright 2023 Google LLC
|
|
1028
1028
|
* SPDX-License-Identifier: Apache-2.0
|
|
1029
|
-
*/let
|
|
1029
|
+
*/let mo=class extends Je{};mo.styles=[Ol],mo=d([g("md-sub-menu")],mo);/**
|
|
1030
1030
|
* @license
|
|
1031
1031
|
* Copyright 2023 Google LLC
|
|
1032
1032
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1063,12 +1063,12 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1063
1063
|
* @license
|
|
1064
1064
|
* Copyright 2024 Google LLC
|
|
1065
1065
|
* SPDX-License-Identifier: Apache-2.0
|
|
1066
|
-
*/const Pl=
|
|
1066
|
+
*/const Pl=b`:host{--_active-indicator-color: var(--md-circular-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-width: var(--md-circular-progress-active-indicator-width, 10);--_four-color-active-indicator-four-color: var(--md-circular-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-circular-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-circular-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-circular-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_size: var(--md-circular-progress-size, 48px);display:inline-flex;vertical-align:middle;width:var(--_size);height:var(--_size);position:relative;align-items:center;justify-content:center;contain:strict;content-visibility:auto}.progress{flex:1;align-self:stretch;margin:4px}.progress,.spinner,.left,.right,.circle,svg,.track,.active-track{position:absolute;inset:0}svg{transform:rotate(-90deg)}circle{cx:50%;cy:50%;r:calc(50%*(1 - var(--_active-indicator-width)/100));stroke-width:calc(var(--_active-indicator-width)*1%);stroke-dasharray:100;fill:rgba(0,0,0,0)}.active-track{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1);stroke:var(--_active-indicator-color)}.track{stroke:rgba(0,0,0,0)}.progress.indeterminate{animation:linear infinite linear-rotate;animation-duration:1568.2352941176ms}.spinner{animation:infinite both rotate-arc;animation-duration:5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.left{overflow:hidden;inset:0 50% 0 0}.right{overflow:hidden;inset:0 0 0 50%}.circle{box-sizing:border-box;border-radius:50%;border:solid calc(var(--_active-indicator-width)/100*(var(--_size) - 8px));border-color:var(--_active-indicator-color) var(--_active-indicator-color) rgba(0,0,0,0) rgba(0,0,0,0);animation:expand-arc;animation-iteration-count:infinite;animation-fill-mode:both;animation-duration:1333ms,5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.four-color .circle{animation-name:expand-arc,four-color}.left .circle{rotate:135deg;inset:0 -100% 0 0}.right .circle{rotate:100deg;inset:0 0 0 -100%;animation-delay:-666.5ms,0ms}@media(forced-colors: active){.active-track{stroke:CanvasText}.circle{border-color:CanvasText CanvasText Canvas Canvas}}@keyframes expand-arc{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes rotate-arc{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes linear-rotate{to{transform:rotate(360deg)}}@keyframes four-color{0%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}15%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}25%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}40%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}50%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}65%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}75%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}90%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}100%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}}
|
|
1067
1067
|
`;/**
|
|
1068
1068
|
* @license
|
|
1069
1069
|
* Copyright 2023 Google LLC
|
|
1070
1070
|
* SPDX-License-Identifier: Apache-2.0
|
|
1071
|
-
*/let
|
|
1071
|
+
*/let bo=class extends Ll{};bo.styles=[Pl],bo=d([g("md-circular-progress")],bo);/**
|
|
1072
1072
|
* @license
|
|
1073
1073
|
* Copyright 2023 Google LLC
|
|
1074
1074
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1085,12 +1085,12 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1085
1085
|
* @license
|
|
1086
1086
|
* Copyright 2024 Google LLC
|
|
1087
1087
|
* SPDX-License-Identifier: Apache-2.0
|
|
1088
|
-
*/const
|
|
1088
|
+
*/const Dl=b`:host{--_active-indicator-color: var(--md-linear-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-height: var(--md-linear-progress-active-indicator-height, 4px);--_four-color-active-indicator-four-color: var(--md-linear-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-linear-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-linear-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-linear-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_track-color: var(--md-linear-progress-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_track-height: var(--md-linear-progress-track-height, 4px);--_track-shape: var(--md-linear-progress-track-shape, var(--md-sys-shape-corner-none, 0px));border-radius:var(--_track-shape);display:flex;position:relative;min-width:80px;height:var(--_track-height);content-visibility:auto;contain:strict}.progress,.dots,.inactive-track,.bar,.bar-inner{position:absolute}.progress{direction:ltr;inset:0;border-radius:inherit;overflow:hidden;display:flex;align-items:center}.bar{animation:none;width:100%;height:var(--_active-indicator-height);transform-origin:left center;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1)}.secondary-bar{display:none}.bar-inner{inset:0;animation:none;background:var(--_active-indicator-color)}.inactive-track{background:var(--_track-color);inset:0;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1);transform-origin:left center}.dots{inset:0;animation:linear infinite 250ms;animation-name:buffering;background-color:var(--_track-color);background-repeat:repeat-x;-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");z-index:-1}.dots[hidden]{display:none}.indeterminate .bar{transition:none}.indeterminate .primary-bar{inset-inline-start:-145.167%}.indeterminate .secondary-bar{inset-inline-start:-54.8889%;display:block}.indeterminate .primary-bar{animation:linear infinite 2s;animation-name:primary-indeterminate-translate}.indeterminate .primary-bar>.bar-inner{animation:linear infinite 2s primary-indeterminate-scale}.indeterminate.four-color .primary-bar>.bar-inner{animation-name:primary-indeterminate-scale,four-color;animation-duration:2s,4s}.indeterminate .secondary-bar{animation:linear infinite 2s;animation-name:secondary-indeterminate-translate}.indeterminate .secondary-bar>.bar-inner{animation:linear infinite 2s secondary-indeterminate-scale}.indeterminate.four-color .secondary-bar>.bar-inner{animation-name:secondary-indeterminate-scale,four-color;animation-duration:2s,4s}:host(:dir(rtl)){transform:scale(-1)}@keyframes primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.00432);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes buffering{0%{transform:translateX(calc(var(--_track-height) / 2 * 5))}}@keyframes primary-indeterminate-translate{0%{transform:translateX(0px)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0px)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.6714%)}100%{transform:translateX(200.611%)}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0px)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.6519%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.3862%)}100%{transform:translateX(160.278%)}}@keyframes four-color{0%{background:var(--_four-color-active-indicator-one-color)}15%{background:var(--_four-color-active-indicator-one-color)}25%{background:var(--_four-color-active-indicator-two-color)}40%{background:var(--_four-color-active-indicator-two-color)}50%{background:var(--_four-color-active-indicator-three-color)}65%{background:var(--_four-color-active-indicator-three-color)}75%{background:var(--_four-color-active-indicator-four-color)}90%{background:var(--_four-color-active-indicator-four-color)}100%{background:var(--_four-color-active-indicator-one-color)}}@media(forced-colors: active){:host{outline:1px solid CanvasText}.bar-inner,.dots{background-color:CanvasText}}
|
|
1089
1089
|
`;/**
|
|
1090
1090
|
* @license
|
|
1091
1091
|
* Copyright 2023 Google LLC
|
|
1092
1092
|
* SPDX-License-Identifier: Apache-2.0
|
|
1093
|
-
*/let fo=class extends Wa{};fo.styles=[
|
|
1093
|
+
*/let fo=class extends Wa{};fo.styles=[Dl],fo=d([g("md-linear-progress")],fo);/**
|
|
1094
1094
|
* @license
|
|
1095
1095
|
* Copyright 2023 Google LLC
|
|
1096
1096
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1098,11 +1098,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1098
1098
|
* @license
|
|
1099
1099
|
* Copyright 2023 Google LLC
|
|
1100
1100
|
* SPDX-License-Identifier: Apache-2.0
|
|
1101
|
-
*/class
|
|
1101
|
+
*/class Rl extends Li{computeValidity(e){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");let t=!1,i=!1;for(const{checked:r,required:s}of e)s&&(t=!0),r&&(i=!0);return this.radioElement.checked=i,this.radioElement.required=t,{validity:{valueMissing:t&&!i},validationMessage:this.radioElement.validationMessage}}equals(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){const r=e[i],s=t[i];if(r.checked!==s.checked||r.required!==s.required)return!1}return!0}copy(e){return e.map(({checked:t,required:i})=>({checked:t,required:i}))}}/**
|
|
1102
1102
|
* @license
|
|
1103
1103
|
* Copyright 2022 Google LLC
|
|
1104
1104
|
* SPDX-License-Identifier: Apache-2.0
|
|
1105
|
-
*/class Bl{get controls(){const e=this.host.getAttribute("name");return!e||!this.root||!this.host.isConnected?[this.host]:Array.from(this.root.querySelectorAll(`[name="${e}"]`))}constructor(e){this.host=e,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=t=>{const i=t.key==="ArrowDown",r=t.key==="ArrowUp",s=t.key==="ArrowLeft",n=t.key==="ArrowRight";if(!s&&!n&&!i&&!r)return;const h=this.controls;if(!h.length)return;t.preventDefault();const v=getComputedStyle(this.host).direction==="rtl"?s||i:n||i,f=h.indexOf(this.host);let
|
|
1105
|
+
*/class Bl{get controls(){const e=this.host.getAttribute("name");return!e||!this.root||!this.host.isConnected?[this.host]:Array.from(this.root.querySelectorAll(`[name="${e}"]`))}constructor(e){this.host=e,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=t=>{const i=t.key==="ArrowDown",r=t.key==="ArrowUp",s=t.key==="ArrowLeft",n=t.key==="ArrowRight";if(!s&&!n&&!i&&!r)return;const h=this.controls;if(!h.length)return;t.preventDefault();const v=getComputedStyle(this.host).direction==="rtl"?s||i:n||i,f=h.indexOf(this.host);let m=v?f+1:f-1;for(;m!==f;){m>=h.length?m=0:m<0&&(m=h.length-1);const x=h[m];if(x.hasAttribute("disabled")){v?m++:m--;continue}for(const _ of h)_!==x&&(_.checked=!1,_.tabIndex=-1,_.blur());x.checked=!0,x.tabIndex=0,x.focus(),x.dispatchEvent(new Event("change",{bubbles:!0}));break}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(const e of this.controls)e!==this.host&&(e.checked=!1)}updateTabIndices(){const e=this.controls,t=e.find(i=>i.checked);if(t||this.focused){const i=t||this.host;i.tabIndex=0;for(const r of e)r!==i&&(r.tabIndex=-1);return}for(const i of e)i.tabIndex=0}}/**
|
|
1106
1106
|
* @license
|
|
1107
1107
|
* Copyright 2018 Google LLC
|
|
1108
1108
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1135,11 +1135,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1135
1135
|
.value=${this.value}
|
|
1136
1136
|
?disabled=${this.disabled} />
|
|
1137
1137
|
</div>
|
|
1138
|
-
`}updated(){this[K].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,!e.defaultPrevented&&(Zt(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0,!(e.key!==" "||e.defaultPrevented)&&this.click()}[(Ga=yo,Le)](){return this.checked?this.value:null}[ei](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[lt](){return new
|
|
1138
|
+
`}updated(){this[K].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,!e.defaultPrevented&&(Zt(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0,!(e.key!==" "||e.defaultPrevented)&&this.click()}[(Ga=yo,Le)](){return this.checked?this.value:null}[ei](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[lt](){return new Rl(()=>this.selectionController?this.selectionController.controls:[this])}[ct](){return this.container}}d([l({type:Boolean})],ri.prototype,"checked",null),d([l({type:Boolean})],ri.prototype,"required",void 0),d([l()],ri.prototype,"value",void 0),d([k(".container")],ri.prototype,"container",void 0);/**
|
|
1139
1139
|
* @license
|
|
1140
1140
|
* Copyright 2024 Google LLC
|
|
1141
1141
|
* SPDX-License-Identifier: Apache-2.0
|
|
1142
|
-
*/const Fl=
|
|
1142
|
+
*/const Fl=b`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20px);outline:none;position:relative;vertical-align:top;width:var(--md-radio-icon-size, 20px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;--md-ripple-hover-color: var(--md-radio-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-radio-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-radio-pressed-state-layer-opacity, 0.12)}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-radio-icon-size, 20px))/2)}.container{display:flex;height:100%;place-content:center;place-items:center;width:100%}md-focus-ring{height:44px;inset:unset;width:44px}.checked{--md-ripple-hover-color: var(--md-radio-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-radio-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-radio-selected-pressed-state-layer-opacity, 0.12)}input{appearance:none;height:48px;margin:0;position:absolute;width:48px;cursor:inherit}:host([touch-target=none]) input{width:100%;height:100%}md-ripple{border-radius:50%;height:var(--md-radio-state-layer-size, 40px);inset:unset;width:var(--md-radio-state-layer-size, 40px)}.icon{fill:var(--md-radio-icon-color, var(--md-sys-color-on-surface-variant, #49454f));inset:0;position:absolute}.outer.circle{transition:fill 50ms linear}.inner.circle{opacity:0;transform-origin:center;transition:opacity 50ms linear}.checked .icon{fill:var(--md-radio-selected-icon-color, var(--md-sys-color-primary, #6750a4))}.checked .inner.circle{animation:inner-circle-grow 300ms cubic-bezier(0.05, 0.7, 0.1, 1);opacity:1}@keyframes inner-circle-grow{from{transform:scale(0)}to{transform:scale(1)}}:host([disabled]) .circle{animation-duration:0s;transition-duration:0s}:host(:hover) .icon{fill:var(--md-radio-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:focus-within) .icon{fill:var(--md-radio-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:active) .icon{fill:var(--md-radio-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host([disabled]) .icon{fill:var(--md-radio-disabled-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-unselected-icon-opacity, 0.38)}:host(:hover) .checked .icon{fill:var(--md-radio-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:focus-within) .checked .icon{fill:var(--md-radio-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:active) .checked .icon{fill:var(--md-radio-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4))}:host([disabled]) .checked .icon{fill:var(--md-radio-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon{fill:CanvasText}:host([disabled]) .icon{fill:GrayText;opacity:1}}}
|
|
1143
1143
|
`;/**
|
|
1144
1144
|
* @license
|
|
1145
1145
|
* Copyright 2022 Google LLC
|
|
@@ -1250,12 +1250,12 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1250
1250
|
* @license
|
|
1251
1251
|
* Copyright 2024 Google LLC
|
|
1252
1252
|
* SPDX-License-Identifier: Apache-2.0
|
|
1253
|
-
*/const Gl=m`:host{--_text-field-active-indicator-color: var(--md-filled-select-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-active-indicator-height: var(--md-filled-select-text-field-active-indicator-height, 1px);--_text-field-container-color: var(--md-filled-select-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_text-field-disabled-active-indicator-color: var(--md-filled-select-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-active-indicator-height: var(--md-filled-select-text-field-disabled-active-indicator-height, 1px);--_text-field-disabled-active-indicator-opacity: var(--md-filled-select-text-field-disabled-active-indicator-opacity, 0.38);--_text-field-disabled-container-color: var(--md-filled-select-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-container-opacity: var(--md-filled-select-text-field-disabled-container-opacity, 0.04);--_text-field-disabled-input-text-color: var(--md-filled-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-filled-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-filled-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-filled-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-filled-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-filled-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-supporting-text-color: var(--md-filled-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-filled-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-filled-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-filled-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-active-indicator-color: var(--md-filled-select-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-active-indicator-color: var(--md-filled-select-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-input-text-color: var(--md-filled-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-filled-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-filled-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-supporting-text-color: var(--md-filled-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-filled-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-active-indicator-color: var(--md-filled-select-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-input-text-color: var(--md-filled-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-filled-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-filled-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-state-layer-color: var(--md-filled-select-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-state-layer-opacity: var(--md-filled-select-text-field-error-hover-state-layer-opacity, 0.08);--_text-field-error-hover-supporting-text-color: var(--md-filled-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-filled-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-filled-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-filled-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-filled-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-supporting-text-color: var(--md-filled-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-filled-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-active-indicator-color: var(--md-filled-select-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-active-indicator-height: var(--md-filled-select-text-field-focus-active-indicator-height, 3px);--_text-field-focus-input-text-color: var(--md-filled-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-filled-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-filled-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-supporting-text-color: var(--md-filled-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-filled-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-active-indicator-color: var(--md-filled-select-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-active-indicator-height: var(--md-filled-select-text-field-hover-active-indicator-height, 1px);--_text-field-hover-input-text-color: var(--md-filled-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-filled-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-filled-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-state-layer-color: var(--md-filled-select-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-state-layer-opacity: var(--md-filled-select-text-field-hover-state-layer-opacity, 0.08);--_text-field-hover-supporting-text-color: var(--md-filled-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-filled-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-filled-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-filled-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-filled-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-filled-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-filled-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-filled-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-filled-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-filled-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-filled-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-filled-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-filled-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-filled-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-filled-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-filled-select-text-field-leading-icon-size, 24px);--_text-field-supporting-text-color: var(--md-filled-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-filled-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-filled-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-filled-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-filled-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-filled-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-filled-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-filled-select-text-field-container-shape-start-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-filled-select-text-field-container-shape-start-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-filled-select-text-field-container-shape-end-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_text-field-container-shape-end-start: var(--md-filled-select-text-field-container-shape-end-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--md-filled-field-active-indicator-color: var(--_text-field-active-indicator-color);--md-filled-field-active-indicator-height: var(--_text-field-active-indicator-height);--md-filled-field-container-color: var(--_text-field-container-color);--md-filled-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-filled-field-content-color: var(--_text-field-input-text-color);--md-filled-field-content-font: var(--_text-field-input-text-font);--md-filled-field-content-line-height: var(--_text-field-input-text-line-height);--md-filled-field-content-size: var(--_text-field-input-text-size);--md-filled-field-content-weight: var(--_text-field-input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_text-field-disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_text-field-disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_text-field-disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_text-field-disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_text-field-disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_text-field-error-active-indicator-color);--md-filled-field-error-content-color: var(--_text-field-error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_text-field-error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_text-field-error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_text-field-error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_text-field-error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-filled-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_text-field-focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_text-field-focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_text-field-hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_text-field-hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_text-field-hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_text-field-hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_text-field-label-text-color);--md-filled-field-label-text-font: var(--_text-field-label-text-font);--md-filled-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-filled-field-label-text-size: var(--_text-field-label-text-size);--md-filled-field-label-text-weight: var(--_text-field-label-text-weight);--md-filled-field-leading-content-color: var(--_text-field-leading-icon-color);--md-filled-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-filled-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-filled-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-filled-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}
|
|
1253
|
+
*/const Gl=b`:host{--_text-field-active-indicator-color: var(--md-filled-select-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-active-indicator-height: var(--md-filled-select-text-field-active-indicator-height, 1px);--_text-field-container-color: var(--md-filled-select-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_text-field-disabled-active-indicator-color: var(--md-filled-select-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-active-indicator-height: var(--md-filled-select-text-field-disabled-active-indicator-height, 1px);--_text-field-disabled-active-indicator-opacity: var(--md-filled-select-text-field-disabled-active-indicator-opacity, 0.38);--_text-field-disabled-container-color: var(--md-filled-select-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-container-opacity: var(--md-filled-select-text-field-disabled-container-opacity, 0.04);--_text-field-disabled-input-text-color: var(--md-filled-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-filled-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-filled-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-filled-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-filled-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-filled-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-supporting-text-color: var(--md-filled-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-filled-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-filled-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-filled-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-active-indicator-color: var(--md-filled-select-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-active-indicator-color: var(--md-filled-select-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-input-text-color: var(--md-filled-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-filled-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-filled-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-supporting-text-color: var(--md-filled-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-filled-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-active-indicator-color: var(--md-filled-select-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-input-text-color: var(--md-filled-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-filled-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-filled-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-state-layer-color: var(--md-filled-select-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-state-layer-opacity: var(--md-filled-select-text-field-error-hover-state-layer-opacity, 0.08);--_text-field-error-hover-supporting-text-color: var(--md-filled-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-filled-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-filled-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-filled-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-filled-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-supporting-text-color: var(--md-filled-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-filled-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-active-indicator-color: var(--md-filled-select-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-active-indicator-height: var(--md-filled-select-text-field-focus-active-indicator-height, 3px);--_text-field-focus-input-text-color: var(--md-filled-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-filled-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-filled-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-supporting-text-color: var(--md-filled-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-filled-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-active-indicator-color: var(--md-filled-select-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-active-indicator-height: var(--md-filled-select-text-field-hover-active-indicator-height, 1px);--_text-field-hover-input-text-color: var(--md-filled-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-filled-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-filled-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-state-layer-color: var(--md-filled-select-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-state-layer-opacity: var(--md-filled-select-text-field-hover-state-layer-opacity, 0.08);--_text-field-hover-supporting-text-color: var(--md-filled-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-filled-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-filled-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-filled-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-filled-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-filled-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-filled-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-filled-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-filled-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-filled-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-filled-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-filled-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-filled-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-filled-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-filled-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-filled-select-text-field-leading-icon-size, 24px);--_text-field-supporting-text-color: var(--md-filled-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-filled-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-filled-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-filled-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-filled-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-filled-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-filled-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-filled-select-text-field-container-shape-start-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-filled-select-text-field-container-shape-start-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-filled-select-text-field-container-shape-end-end, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_text-field-container-shape-end-start: var(--md-filled-select-text-field-container-shape-end-start, var(--md-filled-select-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--md-filled-field-active-indicator-color: var(--_text-field-active-indicator-color);--md-filled-field-active-indicator-height: var(--_text-field-active-indicator-height);--md-filled-field-container-color: var(--_text-field-container-color);--md-filled-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-filled-field-content-color: var(--_text-field-input-text-color);--md-filled-field-content-font: var(--_text-field-input-text-font);--md-filled-field-content-line-height: var(--_text-field-input-text-line-height);--md-filled-field-content-size: var(--_text-field-input-text-size);--md-filled-field-content-weight: var(--_text-field-input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_text-field-disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_text-field-disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_text-field-disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_text-field-disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_text-field-disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_text-field-error-active-indicator-color);--md-filled-field-error-content-color: var(--_text-field-error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_text-field-error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_text-field-error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_text-field-error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_text-field-error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-filled-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_text-field-focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_text-field-focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_text-field-hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_text-field-hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_text-field-hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_text-field-hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_text-field-label-text-color);--md-filled-field-label-text-font: var(--_text-field-label-text-font);--md-filled-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-filled-field-label-text-size: var(--_text-field-label-text-size);--md-filled-field-label-text-weight: var(--_text-field-label-text-weight);--md-filled-field-leading-content-color: var(--_text-field-leading-icon-color);--md-filled-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-filled-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-filled-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-filled-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}
|
|
1254
1254
|
`;/**
|
|
1255
1255
|
* @license
|
|
1256
1256
|
* Copyright 2024 Google LLC
|
|
1257
1257
|
* SPDX-License-Identifier: Apache-2.0
|
|
1258
|
-
*/const Za=
|
|
1258
|
+
*/const Za=b`:host{color:unset;min-width:210px;display:flex}.field{cursor:default;outline:none}.select{position:relative;flex-direction:column}.icon.trailing svg,.icon ::slotted(*){fill:currentColor}.icon ::slotted(*){width:inherit;height:inherit;font-size:inherit}.icon slot{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.icon.trailing :is(.up,.down){opacity:0;transition:opacity 75ms linear 75ms}.select:not(.open) .down,.select.open .up{opacity:1}.field,.select,md-menu{min-width:inherit;width:inherit;max-width:inherit;display:flex}md-menu{min-width:var(--__menu-min-width);max-width:var(--__menu-max-width, inherit)}.menu-wrapper{width:0px;height:0px;max-width:inherit}md-menu ::slotted(:not[disabled]){cursor:pointer}.field,.select{width:100%}:host{display:inline-flex}:host([disabled]){pointer-events:none}
|
|
1259
1259
|
`;/**
|
|
1260
1260
|
* @license
|
|
1261
1261
|
* Copyright 2023 Google LLC
|
|
@@ -1268,7 +1268,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1268
1268
|
* @license
|
|
1269
1269
|
* Copyright 2024 Google LLC
|
|
1270
1270
|
* SPDX-License-Identifier: Apache-2.0
|
|
1271
|
-
*/const Xl=m`:host{--_text-field-disabled-input-text-color: var(--md-outlined-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-outlined-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-outlined-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-outlined-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-outlined-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-outlined-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-outline-color: var(--md-outlined-select-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-outline-opacity: var(--md-outlined-select-text-field-disabled-outline-opacity, 0.12);--_text-field-disabled-outline-width: var(--md-outlined-select-text-field-disabled-outline-width, 1px);--_text-field-disabled-supporting-text-color: var(--md-outlined-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-outlined-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-outlined-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-outlined-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-focus-input-text-color: var(--md-outlined-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-outlined-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-outlined-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-outline-color: var(--md-outlined-select-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-supporting-text-color: var(--md-outlined-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-outlined-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-input-text-color: var(--md-outlined-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-outlined-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-outlined-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-outline-color: var(--md-outlined-select-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-supporting-text-color: var(--md-outlined-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-outlined-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-outlined-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-outlined-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-outlined-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-outline-color: var(--md-outlined-select-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-supporting-text-color: var(--md-outlined-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-outlined-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-input-text-color: var(--md-outlined-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-outlined-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-outlined-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-outline-color: var(--md-outlined-select-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-outline-width: var(--md-outlined-select-text-field-focus-outline-width, 3px);--_text-field-focus-supporting-text-color: var(--md-outlined-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-outlined-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-input-text-color: var(--md-outlined-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-outlined-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-outlined-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-outline-color: var(--md-outlined-select-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-outline-width: var(--md-outlined-select-text-field-hover-outline-width, 1px);--_text-field-hover-supporting-text-color: var(--md-outlined-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-outlined-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-outlined-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-outlined-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-outlined-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-outlined-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-outlined-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-outlined-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-outlined-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-outlined-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-outlined-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-outlined-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-outlined-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-outlined-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-outlined-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-outlined-select-text-field-leading-icon-size, 24px);--_text-field-outline-color: var(--md-outlined-select-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_text-field-outline-width: var(--md-outlined-select-text-field-outline-width, 1px);--_text-field-supporting-text-color: var(--md-outlined-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-outlined-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-outlined-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-outlined-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-outlined-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-outlined-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-outlined-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-outlined-select-text-field-container-shape-start-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-outlined-select-text-field-container-shape-start-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-outlined-select-text-field-container-shape-end-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-start: var(--md-outlined-select-text-field-container-shape-end-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--md-outlined-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-outlined-field-content-color: var(--_text-field-input-text-color);--md-outlined-field-content-font: var(--_text-field-input-text-font);--md-outlined-field-content-line-height: var(--_text-field-input-text-line-height);--md-outlined-field-content-size: var(--_text-field-input-text-size);--md-outlined-field-content-weight: var(--_text-field-input-text-weight);--md-outlined-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_text-field-disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_text-field-disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_text-field-disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_text-field-error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_text-field-error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_text-field-error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_text-field-error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_text-field-focus-outline-color);--md-outlined-field-focus-outline-width: var(--_text-field-focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_text-field-hover-outline-color);--md-outlined-field-hover-outline-width: var(--_text-field-hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_text-field-label-text-color);--md-outlined-field-label-text-font: var(--_text-field-label-text-font);--md-outlined-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-outlined-field-label-text-size: var(--_text-field-label-text-size);--md-outlined-field-label-text-weight: var(--_text-field-label-text-weight);--md-outlined-field-leading-content-color: var(--_text-field-leading-icon-color);--md-outlined-field-outline-color: var(--_text-field-outline-color);--md-outlined-field-outline-width: var(--_text-field-outline-width);--md-outlined-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-outlined-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-outlined-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}
|
|
1271
|
+
*/const Xl=b`:host{--_text-field-disabled-input-text-color: var(--md-outlined-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-outlined-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-outlined-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-outlined-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-outlined-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-outlined-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-outline-color: var(--md-outlined-select-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-outline-opacity: var(--md-outlined-select-text-field-disabled-outline-opacity, 0.12);--_text-field-disabled-outline-width: var(--md-outlined-select-text-field-disabled-outline-width, 1px);--_text-field-disabled-supporting-text-color: var(--md-outlined-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-outlined-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-outlined-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-outlined-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-focus-input-text-color: var(--md-outlined-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-outlined-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-outlined-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-outline-color: var(--md-outlined-select-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-supporting-text-color: var(--md-outlined-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-outlined-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-input-text-color: var(--md-outlined-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-outlined-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-outlined-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-outline-color: var(--md-outlined-select-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-supporting-text-color: var(--md-outlined-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-outlined-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-outlined-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-outlined-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-outlined-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-outline-color: var(--md-outlined-select-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-supporting-text-color: var(--md-outlined-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-outlined-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-input-text-color: var(--md-outlined-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-outlined-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-outlined-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-outline-color: var(--md-outlined-select-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-outline-width: var(--md-outlined-select-text-field-focus-outline-width, 3px);--_text-field-focus-supporting-text-color: var(--md-outlined-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-outlined-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-input-text-color: var(--md-outlined-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-outlined-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-outlined-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-outline-color: var(--md-outlined-select-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-outline-width: var(--md-outlined-select-text-field-hover-outline-width, 1px);--_text-field-hover-supporting-text-color: var(--md-outlined-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-outlined-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-outlined-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-outlined-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-outlined-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-outlined-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-outlined-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-outlined-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-outlined-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-outlined-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-outlined-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-outlined-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-outlined-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-outlined-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-outlined-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-outlined-select-text-field-leading-icon-size, 24px);--_text-field-outline-color: var(--md-outlined-select-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_text-field-outline-width: var(--md-outlined-select-text-field-outline-width, 1px);--_text-field-supporting-text-color: var(--md-outlined-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-outlined-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-outlined-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-outlined-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-outlined-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-outlined-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-outlined-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-outlined-select-text-field-container-shape-start-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-outlined-select-text-field-container-shape-start-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-outlined-select-text-field-container-shape-end-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-start: var(--md-outlined-select-text-field-container-shape-end-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--md-outlined-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-outlined-field-content-color: var(--_text-field-input-text-color);--md-outlined-field-content-font: var(--_text-field-input-text-font);--md-outlined-field-content-line-height: var(--_text-field-input-text-line-height);--md-outlined-field-content-size: var(--_text-field-input-text-size);--md-outlined-field-content-weight: var(--_text-field-input-text-weight);--md-outlined-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_text-field-disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_text-field-disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_text-field-disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_text-field-error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_text-field-error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_text-field-error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_text-field-error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_text-field-focus-outline-color);--md-outlined-field-focus-outline-width: var(--_text-field-focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_text-field-hover-outline-color);--md-outlined-field-hover-outline-width: var(--_text-field-hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_text-field-label-text-color);--md-outlined-field-label-text-font: var(--_text-field-label-text-font);--md-outlined-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-outlined-field-label-text-size: var(--_text-field-label-text-size);--md-outlined-field-label-text-weight: var(--_text-field-label-text-weight);--md-outlined-field-leading-content-color: var(--_text-field-leading-icon-color);--md-outlined-field-outline-color: var(--_text-field-outline-color);--md-outlined-field-outline-width: var(--_text-field-outline-width);--md-outlined-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-outlined-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-outlined-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}
|
|
1272
1272
|
`;/**
|
|
1273
1273
|
* @license
|
|
1274
1274
|
* Copyright 2023 Google LLC
|
|
@@ -1327,7 +1327,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1327
1327
|
* @license
|
|
1328
1328
|
* Copyright 2024 Google LLC
|
|
1329
1329
|
* SPDX-License-Identifier: Apache-2.0
|
|
1330
|
-
*/const ec=
|
|
1330
|
+
*/const ec=b`@media(forced-colors: active){:host{--md-slider-active-track-color: CanvasText;--md-slider-disabled-active-track-color: GrayText;--md-slider-disabled-active-track-opacity: 1;--md-slider-disabled-handle-color: GrayText;--md-slider-disabled-inactive-track-color: GrayText;--md-slider-disabled-inactive-track-opacity: 1;--md-slider-focus-handle-color: CanvasText;--md-slider-handle-color: CanvasText;--md-slider-handle-shadow-color: Canvas;--md-slider-hover-handle-color: CanvasText;--md-slider-hover-state-layer-color: Canvas;--md-slider-hover-state-layer-opacity: 1;--md-slider-inactive-track-color: Canvas;--md-slider-label-container-color: Canvas;--md-slider-label-text-color: CanvasText;--md-slider-pressed-handle-color: CanvasText;--md-slider-pressed-state-layer-color: Canvas;--md-slider-pressed-state-layer-opacity: 1;--md-slider-with-overlap-handle-outline-color: CanvasText}.label,.label::before{border:var(--_with-overlap-handle-outline-color) solid var(--_with-overlap-handle-outline-width)}:host(:not([disabled])) .track::before{border:1px solid var(--_active-track-color)}.tickmarks::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='CanvasText'%3E%3Ccircle cx='2' cy='2' r='1'/%3E%3C/svg%3E")}.tickmarks::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='Canvas'%3E%3Ccircle cx='2' cy='2' r='1'/%3E%3C/svg%3E")}:host([disabled]) .tickmarks::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='Canvas'%3E%3Ccircle cx='2' cy='2' r='1'/%3E%3C/svg%3E")}}
|
|
1331
1331
|
`;/**
|
|
1332
1332
|
* @license
|
|
1333
1333
|
* Copyright 2021 Google LLC
|
|
@@ -1336,7 +1336,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1336
1336
|
* @license
|
|
1337
1337
|
* Copyright 2023 Google LLC
|
|
1338
1338
|
* SPDX-License-Identifier: Apache-2.0
|
|
1339
|
-
*/const tc=Ct(Ye(y));class T extends tc{get nameStart(){return this.getAttribute("name-start")??this.name}set nameStart(e){this.setAttribute("name-start",e)}get nameEnd(){return this.getAttribute("name-end")??this.nameStart}set nameEnd(e){this.setAttribute("name-end",e)}get renderAriaLabelStart(){const{ariaLabel:e}=this;return this.ariaLabelStart||e&&`${e} start`||this.valueLabelStart||String(this.valueStart)}get renderAriaValueTextStart(){return this.ariaValueTextStart||this.valueLabelStart||String(this.valueStart)}get renderAriaLabelEnd(){const{ariaLabel:e}=this;return this.range?this.ariaLabelEnd||e&&`${e} end`||this.valueLabelEnd||String(this.valueEnd):e||this.valueLabel||String(this.value)}get renderAriaValueTextEnd(){if(this.range)return this.ariaValueTextEnd||this.valueLabelEnd||String(this.valueEnd);const{ariaValueText:e}=this;return e||this.valueLabel||String(this.value)}constructor(){super(),this.min=0,this.max=100,this.valueLabel="",this.valueLabelStart="",this.valueLabelEnd="",this.ariaLabelStart="",this.ariaValueTextStart="",this.ariaLabelEnd="",this.ariaValueTextEnd="",this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1,this.handleStartHover=!1,this.handleEndHover=!1,this.startOnTop=!1,this.handlesOverlapping=!1,this.ripplePointerId=1,this.isRedispatchingEvent=!1,this.addEventListener("click",e=>{!Zt(e)||!this.inputEnd||(this.focus(),Ti(this.inputEnd))})}focus(){var e;(e=this.inputEnd)==null||e.focus()}willUpdate(e){var i,r;this.renderValueStart=e.has("valueStart")?this.valueStart:(i=this.inputStart)==null?void 0:i.valueAsNumber;const t=e.has("valueEnd")&&this.range||e.has("value");this.renderValueEnd=t?this.range?this.valueEnd:this.value:(r=this.inputEnd)==null?void 0:r.valueAsNumber,e.get("handleStartHover")!==void 0?this.toggleRippleHover(this.rippleStart,this.handleStartHover):e.get("handleEndHover")!==void 0&&this.toggleRippleHover(this.rippleEnd,this.handleEndHover)}updated(e){var t,i;if(this.range&&(this.renderValueStart=this.inputStart.valueAsNumber),this.renderValueEnd=this.inputEnd.valueAsNumber,this.range){const r=(this.max-this.min)/3;if(this.valueStart===void 0){this.inputStart.valueAsNumber=this.min+r;const s=this.inputStart.valueAsNumber;this.valueStart=this.renderValueStart=s}if(this.valueEnd===void 0){this.inputEnd.valueAsNumber=this.min+2*r;const s=this.inputEnd.valueAsNumber;this.valueEnd=this.renderValueEnd=s}}else this.value??(this.value=this.renderValueEnd);if(e.has("range")||e.has("renderValueStart")||e.has("renderValueEnd")||this.isUpdatePending){const r=(t=this.handleStart)==null?void 0:t.querySelector(".handleNub"),s=(i=this.handleEnd)==null?void 0:i.querySelector(".handleNub");this.handlesOverlapping=ic(r,s)}this.performUpdate()}render(){const e=this.step===0?1:this.step,t=Math.max(this.max-this.min,e),i=this.range?((this.renderValueStart??this.min)-this.min)/t:0,r=((this.renderValueEnd??this.min)-this.min)/t,s={"--_start-fraction":String(i),"--_end-fraction":String(r),"--_tick-count":String(t/e)},n={ranged:this.range},h=this.valueLabelStart||String(this.renderValueStart),p=(this.range?this.valueLabelEnd:this.valueLabel)||String(this.renderValueEnd),v={start:!0,value:this.renderValueStart,ariaLabel:this.renderAriaLabelStart,ariaValueText:this.renderAriaValueTextStart,ariaMin:this.min,ariaMax:this.valueEnd??this.max},f={start:!1,value:this.renderValueEnd,ariaLabel:this.renderAriaLabelEnd,ariaValueText:this.renderAriaValueTextEnd,ariaMin:this.range?this.valueStart??this.min:this.min,ariaMax:this.max},
|
|
1339
|
+
*/const tc=Ct(Ye(y));class T extends tc{get nameStart(){return this.getAttribute("name-start")??this.name}set nameStart(e){this.setAttribute("name-start",e)}get nameEnd(){return this.getAttribute("name-end")??this.nameStart}set nameEnd(e){this.setAttribute("name-end",e)}get renderAriaLabelStart(){const{ariaLabel:e}=this;return this.ariaLabelStart||e&&`${e} start`||this.valueLabelStart||String(this.valueStart)}get renderAriaValueTextStart(){return this.ariaValueTextStart||this.valueLabelStart||String(this.valueStart)}get renderAriaLabelEnd(){const{ariaLabel:e}=this;return this.range?this.ariaLabelEnd||e&&`${e} end`||this.valueLabelEnd||String(this.valueEnd):e||this.valueLabel||String(this.value)}get renderAriaValueTextEnd(){if(this.range)return this.ariaValueTextEnd||this.valueLabelEnd||String(this.valueEnd);const{ariaValueText:e}=this;return e||this.valueLabel||String(this.value)}constructor(){super(),this.min=0,this.max=100,this.valueLabel="",this.valueLabelStart="",this.valueLabelEnd="",this.ariaLabelStart="",this.ariaValueTextStart="",this.ariaLabelEnd="",this.ariaValueTextEnd="",this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1,this.handleStartHover=!1,this.handleEndHover=!1,this.startOnTop=!1,this.handlesOverlapping=!1,this.ripplePointerId=1,this.isRedispatchingEvent=!1,this.addEventListener("click",e=>{!Zt(e)||!this.inputEnd||(this.focus(),Ti(this.inputEnd))})}focus(){var e;(e=this.inputEnd)==null||e.focus()}willUpdate(e){var i,r;this.renderValueStart=e.has("valueStart")?this.valueStart:(i=this.inputStart)==null?void 0:i.valueAsNumber;const t=e.has("valueEnd")&&this.range||e.has("value");this.renderValueEnd=t?this.range?this.valueEnd:this.value:(r=this.inputEnd)==null?void 0:r.valueAsNumber,e.get("handleStartHover")!==void 0?this.toggleRippleHover(this.rippleStart,this.handleStartHover):e.get("handleEndHover")!==void 0&&this.toggleRippleHover(this.rippleEnd,this.handleEndHover)}updated(e){var t,i;if(this.range&&(this.renderValueStart=this.inputStart.valueAsNumber),this.renderValueEnd=this.inputEnd.valueAsNumber,this.range){const r=(this.max-this.min)/3;if(this.valueStart===void 0){this.inputStart.valueAsNumber=this.min+r;const s=this.inputStart.valueAsNumber;this.valueStart=this.renderValueStart=s}if(this.valueEnd===void 0){this.inputEnd.valueAsNumber=this.min+2*r;const s=this.inputEnd.valueAsNumber;this.valueEnd=this.renderValueEnd=s}}else this.value??(this.value=this.renderValueEnd);if(e.has("range")||e.has("renderValueStart")||e.has("renderValueEnd")||this.isUpdatePending){const r=(t=this.handleStart)==null?void 0:t.querySelector(".handleNub"),s=(i=this.handleEnd)==null?void 0:i.querySelector(".handleNub");this.handlesOverlapping=ic(r,s)}this.performUpdate()}render(){const e=this.step===0?1:this.step,t=Math.max(this.max-this.min,e),i=this.range?((this.renderValueStart??this.min)-this.min)/t:0,r=((this.renderValueEnd??this.min)-this.min)/t,s={"--_start-fraction":String(i),"--_end-fraction":String(r),"--_tick-count":String(t/e)},n={ranged:this.range},h=this.valueLabelStart||String(this.renderValueStart),p=(this.range?this.valueLabelEnd:this.valueLabel)||String(this.renderValueEnd),v={start:!0,value:this.renderValueStart,ariaLabel:this.renderAriaLabelStart,ariaValueText:this.renderAriaValueTextStart,ariaMin:this.min,ariaMax:this.valueEnd??this.max},f={start:!1,value:this.renderValueEnd,ariaLabel:this.renderAriaLabelEnd,ariaValueText:this.renderAriaValueTextEnd,ariaMin:this.range?this.valueStart??this.min:this.min,ariaMax:this.max},m={start:!0,hover:this.handleStartHover,label:h},x={start:!1,hover:this.handleEndHover,label:p},_={hover:this.handleStartHover||this.handleEndHover};return c` <div
|
|
1340
1340
|
class="container ${P(n)}"
|
|
1341
1341
|
style=${pt(s)}>
|
|
1342
1342
|
${$o(this.range,()=>this.renderInput(v))}
|
|
@@ -1344,7 +1344,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1344
1344
|
<div class="handleContainerPadded">
|
|
1345
1345
|
<div class="handleContainerBlock">
|
|
1346
1346
|
<div class="handleContainer ${P(_)}">
|
|
1347
|
-
${$o(this.range,()=>this.renderHandle(
|
|
1347
|
+
${$o(this.range,()=>this.renderHandle(m))}
|
|
1348
1348
|
${this.renderHandle(x)}
|
|
1349
1349
|
</div>
|
|
1350
1350
|
</div>
|
|
@@ -1392,7 +1392,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1392
1392
|
* @license
|
|
1393
1393
|
* Copyright 2024 Google LLC
|
|
1394
1394
|
* SPDX-License-Identifier: Apache-2.0
|
|
1395
|
-
*/const rc=m`:host{--_active-track-color: var(--md-slider-active-track-color, var(--md-sys-color-primary, #6750a4));--_active-track-height: var(--md-slider-active-track-height, 4px);--_active-track-shape: var(--md-slider-active-track-shape, var(--md-sys-shape-corner-full, 9999px));--_disabled-active-track-color: var(--md-slider-disabled-active-track-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-track-opacity: var(--md-slider-disabled-active-track-opacity, 0.38);--_disabled-handle-color: var(--md-slider-disabled-handle-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-handle-elevation: var(--md-slider-disabled-handle-elevation, 0);--_disabled-inactive-track-color: var(--md-slider-disabled-inactive-track-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-inactive-track-opacity: var(--md-slider-disabled-inactive-track-opacity, 0.12);--_focus-handle-color: var(--md-slider-focus-handle-color, var(--md-sys-color-primary, #6750a4));--_handle-color: var(--md-slider-handle-color, var(--md-sys-color-primary, #6750a4));--_handle-elevation: var(--md-slider-handle-elevation, 1);--_handle-height: var(--md-slider-handle-height, 20px);--_handle-shadow-color: var(--md-slider-handle-shadow-color, var(--md-sys-color-shadow, #000));--_handle-shape: var(--md-slider-handle-shape, var(--md-sys-shape-corner-full, 9999px));--_handle-width: var(--md-slider-handle-width, 20px);--_hover-handle-color: var(--md-slider-hover-handle-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-slider-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-slider-hover-state-layer-opacity, 0.08);--_inactive-track-color: var(--md-slider-inactive-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_inactive-track-height: var(--md-slider-inactive-track-height, 4px);--_inactive-track-shape: var(--md-slider-inactive-track-shape, var(--md-sys-shape-corner-full, 9999px));--_label-container-color: var(--md-slider-label-container-color, var(--md-sys-color-primary, #6750a4));--_label-container-height: var(--md-slider-label-container-height, 28px);--_pressed-handle-color: var(--md-slider-pressed-handle-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-slider-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-slider-pressed-state-layer-opacity, 0.12);--_state-layer-size: var(--md-slider-state-layer-size, 40px);--_with-overlap-handle-outline-color: var(--md-slider-with-overlap-handle-outline-color, var(--md-sys-color-on-primary, #fff));--_with-overlap-handle-outline-width: var(--md-slider-with-overlap-handle-outline-width, 1px);--_with-tick-marks-active-container-color: var(--md-slider-with-tick-marks-active-container-color, var(--md-sys-color-on-primary, #fff));--_with-tick-marks-container-size: var(--md-slider-with-tick-marks-container-size, 2px);--_with-tick-marks-disabled-container-color: var(--md-slider-with-tick-marks-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_with-tick-marks-inactive-container-color: var(--md-slider-with-tick-marks-inactive-container-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-slider-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-slider-label-text-font, var(--md-sys-typescale-label-medium-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-slider-label-text-line-height, var(--md-sys-typescale-label-medium-line-height, 1rem));--_label-text-size: var(--md-slider-label-text-size, var(--md-sys-typescale-label-medium-size, 0.75rem));--_label-text-weight: var(--md-slider-label-text-weight, var(--md-sys-typescale-label-medium-weight, var(--md-ref-typeface-weight-medium, 500)));--_start-fraction: 0;--_end-fraction: 0;--_tick-count: 0;display:inline-flex;vertical-align:middle;min-inline-size:200px;--md-elevation-level: var(--_handle-elevation);--md-elevation-shadow-color: var(--_handle-shadow-color)}md-focus-ring{height:48px;inset:unset;width:48px}md-elevation{transition-duration:250ms}@media(prefers-reduced-motion){.label{transition-duration:0}}:host([disabled]){opacity:var(--_disabled-active-track-opacity);--md-elevation-level: var(--_disabled-handle-elevation)}.container{flex:1;display:flex;align-items:center;position:relative;block-size:var(--_state-layer-size);pointer-events:none;touch-action:none}.track,.tickmarks{position:absolute;inset:0;display:flex;align-items:center}.track::before,.tickmarks::before,.track::after,.tickmarks::after{position:absolute;content:"";inset-inline-start:calc(var(--_state-layer-size)/2 - var(--_with-tick-marks-container-size));inset-inline-end:calc(var(--_state-layer-size)/2 - var(--_with-tick-marks-container-size));background-size:calc((100% - var(--_with-tick-marks-container-size)*2)/var(--_tick-count)) 100%}.track::before,.tickmarks::before{block-size:var(--_inactive-track-height);border-radius:var(--_inactive-track-shape)}.track::before{background:var(--_inactive-track-color)}.tickmarks::before{background-image:radial-gradient(circle at var(--_with-tick-marks-container-size) center, var(--_with-tick-marks-inactive-container-color) 0, var(--_with-tick-marks-inactive-container-color) calc(var(--_with-tick-marks-container-size) / 2), transparent calc(var(--_with-tick-marks-container-size) / 2))}:host([disabled]) .track::before{opacity:calc(1/var(--_disabled-active-track-opacity)*var(--_disabled-inactive-track-opacity));background:var(--_disabled-inactive-track-color)}.track::after,.tickmarks::after{block-size:var(--_active-track-height);border-radius:var(--_active-track-shape);clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))) 0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)))}.track::after{background:var(--_active-track-color)}.tickmarks::after{background-image:radial-gradient(circle at var(--_with-tick-marks-container-size) center, var(--_with-tick-marks-active-container-color) 0, var(--_with-tick-marks-active-container-color) calc(var(--_with-tick-marks-container-size) / 2), transparent calc(var(--_with-tick-marks-container-size) / 2))}.track:dir(rtl)::after{clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)) 0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))))}.tickmarks:dir(rtl)::after{clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)) 0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))))}:host([disabled]) .track::after{background:var(--_disabled-active-track-color)}:host([disabled]) .tickmarks::before{background-image:radial-gradient(circle at var(--_with-tick-marks-container-size) center, var(--_with-tick-marks-disabled-container-color) 0, var(--_with-tick-marks-disabled-container-color) calc(var(--_with-tick-marks-container-size) / 2), transparent calc(var(--_with-tick-marks-container-size) / 2))}.handleContainerPadded{position:relative;block-size:100%;inline-size:100%;padding-inline:calc(var(--_state-layer-size)/2)}.handleContainerBlock{position:relative;block-size:100%;inline-size:100%}.handleContainer{position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:calc(100%*var(--_start-fraction));inline-size:calc(100%*(var(--_end-fraction) - var(--_start-fraction)))}.handle{position:absolute;block-size:var(--_state-layer-size);inline-size:var(--_state-layer-size);border-radius:var(--_handle-shape);display:flex;place-content:center;place-items:center}.handleNub{position:absolute;height:var(--_handle-height);width:var(--_handle-width);border-radius:var(--_handle-shape);background:var(--_handle-color)}:host([disabled]) .handleNub{background:var(--_disabled-handle-color)}input.end:focus~.handleContainerPadded .handle.end>.handleNub,input.start:focus~.handleContainerPadded .handle.start>.handleNub{background:var(--_focus-handle-color)}.container>.handleContainerPadded .handle.hover>.handleNub{background:var(--_hover-handle-color)}:host(:not([disabled])) input.end:active~.handleContainerPadded .handle.end>.handleNub,:host(:not([disabled])) input.start:active~.handleContainerPadded .handle.start>.handleNub{background:var(--_pressed-handle-color)}.onTop.isOverlapping .label,.onTop.isOverlapping .label::before{outline:var(--_with-overlap-handle-outline-color) solid var(--_with-overlap-handle-outline-width)}.onTop.isOverlapping .handleNub{border:var(--_with-overlap-handle-outline-color) solid var(--_with-overlap-handle-outline-width)}.handle.start{inset-inline-start:calc(0px - var(--_state-layer-size)/2)}.handle.end{inset-inline-end:calc(0px - var(--_state-layer-size)/2)}.label{position:absolute;box-sizing:border-box;display:flex;padding:4px;place-content:center;place-items:center;border-radius:var(--md-sys-shape-corner-full, 9999px);color:var(--_label-text-color);font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);inset-block-end:100%;min-inline-size:var(--_label-container-height);min-block-size:var(--_label-container-height);background:var(--_label-container-color);transition:transform 100ms cubic-bezier(0.2, 0, 0, 1);transform-origin:center bottom;transform:scale(0)}:host(:focus-within) .label,.handleContainer.hover .label,:where(:has(input:active)) .label{transform:scale(1)}.label::before,.label::after{position:absolute;display:block;content:"";background:inherit}.label::before{inline-size:calc(var(--_label-container-height)/2);block-size:calc(var(--_label-container-height)/2);bottom:calc(var(--_label-container-height)/-10);transform:rotate(45deg)}.label::after{inset:0px;border-radius:inherit}.labelContent{z-index:1}input[type=range]{opacity:0;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;box-sizing:border-box;height:100%;width:100%;margin:0;background:rgba(0,0,0,0);cursor:pointer;pointer-events:auto;appearance:none}input[type=range]:focus{outline:none}::-webkit-slider-runnable-track{-webkit-appearance:none}::-moz-range-track{appearance:none}::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--_handle-height);inline-size:var(--_handle-width);opacity:0;z-index:2}input.end::-webkit-slider-thumb{--_track-and-knob-padding: calc( (var(--_state-layer-size) - var(--_handle-width)) / 2 );--_x-translate: calc( var(--_track-and-knob-padding) - 2 * var(--_end-fraction) * var(--_track-and-knob-padding) );transform:translateX(var(--_x-translate))}input.end:dir(rtl)::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--_x-translate)))}input.start::-webkit-slider-thumb{--_track-and-knob-padding: calc( (var(--_state-layer-size) - var(--_handle-width)) / 2 );--_x-translate: calc( var(--_track-and-knob-padding) - 2 * var(--_start-fraction) * var(--_track-and-knob-padding) );transform:translateX(var(--_x-translate))}input.start:dir(rtl)::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--_x-translate)))}::-moz-range-thumb{appearance:none;block-size:var(--_state-layer-size);inline-size:var(--_state-layer-size);transform:scaleX(0);opacity:0;z-index:2}.ranged input.start{clip-path:inset(0 calc(100% - (var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2))) 0 0)}.ranged input.start:dir(rtl){clip-path:inset(0 0 0 calc(100% - (var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2))))}.ranged input.end{clip-path:inset(0 0 0 calc(var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2)))}.ranged input.end:dir(rtl){clip-path:inset(0 calc(var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2)) 0 0)}.onTop{z-index:1}.handle{--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-ripple{border-radius:50%;height:var(--_state-layer-size);width:var(--_state-layer-size)}
|
|
1395
|
+
*/const rc=b`:host{--_active-track-color: var(--md-slider-active-track-color, var(--md-sys-color-primary, #6750a4));--_active-track-height: var(--md-slider-active-track-height, 4px);--_active-track-shape: var(--md-slider-active-track-shape, var(--md-sys-shape-corner-full, 9999px));--_disabled-active-track-color: var(--md-slider-disabled-active-track-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-track-opacity: var(--md-slider-disabled-active-track-opacity, 0.38);--_disabled-handle-color: var(--md-slider-disabled-handle-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-handle-elevation: var(--md-slider-disabled-handle-elevation, 0);--_disabled-inactive-track-color: var(--md-slider-disabled-inactive-track-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-inactive-track-opacity: var(--md-slider-disabled-inactive-track-opacity, 0.12);--_focus-handle-color: var(--md-slider-focus-handle-color, var(--md-sys-color-primary, #6750a4));--_handle-color: var(--md-slider-handle-color, var(--md-sys-color-primary, #6750a4));--_handle-elevation: var(--md-slider-handle-elevation, 1);--_handle-height: var(--md-slider-handle-height, 20px);--_handle-shadow-color: var(--md-slider-handle-shadow-color, var(--md-sys-color-shadow, #000));--_handle-shape: var(--md-slider-handle-shape, var(--md-sys-shape-corner-full, 9999px));--_handle-width: var(--md-slider-handle-width, 20px);--_hover-handle-color: var(--md-slider-hover-handle-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-slider-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-slider-hover-state-layer-opacity, 0.08);--_inactive-track-color: var(--md-slider-inactive-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_inactive-track-height: var(--md-slider-inactive-track-height, 4px);--_inactive-track-shape: var(--md-slider-inactive-track-shape, var(--md-sys-shape-corner-full, 9999px));--_label-container-color: var(--md-slider-label-container-color, var(--md-sys-color-primary, #6750a4));--_label-container-height: var(--md-slider-label-container-height, 28px);--_pressed-handle-color: var(--md-slider-pressed-handle-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-slider-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-slider-pressed-state-layer-opacity, 0.12);--_state-layer-size: var(--md-slider-state-layer-size, 40px);--_with-overlap-handle-outline-color: var(--md-slider-with-overlap-handle-outline-color, var(--md-sys-color-on-primary, #fff));--_with-overlap-handle-outline-width: var(--md-slider-with-overlap-handle-outline-width, 1px);--_with-tick-marks-active-container-color: var(--md-slider-with-tick-marks-active-container-color, var(--md-sys-color-on-primary, #fff));--_with-tick-marks-container-size: var(--md-slider-with-tick-marks-container-size, 2px);--_with-tick-marks-disabled-container-color: var(--md-slider-with-tick-marks-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_with-tick-marks-inactive-container-color: var(--md-slider-with-tick-marks-inactive-container-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-slider-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-slider-label-text-font, var(--md-sys-typescale-label-medium-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-slider-label-text-line-height, var(--md-sys-typescale-label-medium-line-height, 1rem));--_label-text-size: var(--md-slider-label-text-size, var(--md-sys-typescale-label-medium-size, 0.75rem));--_label-text-weight: var(--md-slider-label-text-weight, var(--md-sys-typescale-label-medium-weight, var(--md-ref-typeface-weight-medium, 500)));--_start-fraction: 0;--_end-fraction: 0;--_tick-count: 0;display:inline-flex;vertical-align:middle;min-inline-size:200px;--md-elevation-level: var(--_handle-elevation);--md-elevation-shadow-color: var(--_handle-shadow-color)}md-focus-ring{height:48px;inset:unset;width:48px}md-elevation{transition-duration:250ms}@media(prefers-reduced-motion){.label{transition-duration:0}}:host([disabled]){opacity:var(--_disabled-active-track-opacity);--md-elevation-level: var(--_disabled-handle-elevation)}.container{flex:1;display:flex;align-items:center;position:relative;block-size:var(--_state-layer-size);pointer-events:none;touch-action:none}.track,.tickmarks{position:absolute;inset:0;display:flex;align-items:center}.track::before,.tickmarks::before,.track::after,.tickmarks::after{position:absolute;content:"";inset-inline-start:calc(var(--_state-layer-size)/2 - var(--_with-tick-marks-container-size));inset-inline-end:calc(var(--_state-layer-size)/2 - var(--_with-tick-marks-container-size));background-size:calc((100% - var(--_with-tick-marks-container-size)*2)/var(--_tick-count)) 100%}.track::before,.tickmarks::before{block-size:var(--_inactive-track-height);border-radius:var(--_inactive-track-shape)}.track::before{background:var(--_inactive-track-color)}.tickmarks::before{background-image:radial-gradient(circle at var(--_with-tick-marks-container-size) center, var(--_with-tick-marks-inactive-container-color) 0, var(--_with-tick-marks-inactive-container-color) calc(var(--_with-tick-marks-container-size) / 2), transparent calc(var(--_with-tick-marks-container-size) / 2))}:host([disabled]) .track::before{opacity:calc(1/var(--_disabled-active-track-opacity)*var(--_disabled-inactive-track-opacity));background:var(--_disabled-inactive-track-color)}.track::after,.tickmarks::after{block-size:var(--_active-track-height);border-radius:var(--_active-track-shape);clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))) 0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)))}.track::after{background:var(--_active-track-color)}.tickmarks::after{background-image:radial-gradient(circle at var(--_with-tick-marks-container-size) center, var(--_with-tick-marks-active-container-color) 0, var(--_with-tick-marks-active-container-color) calc(var(--_with-tick-marks-container-size) / 2), transparent calc(var(--_with-tick-marks-container-size) / 2))}.track:dir(rtl)::after{clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)) 0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))))}.tickmarks:dir(rtl)::after{clip-path:inset(0 calc(var(--_with-tick-marks-container-size) * min(var(--_start-fraction) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * var(--_start-fraction)) 0 calc(var(--_with-tick-marks-container-size) * min((1 - var(--_end-fraction)) * 1000000000, 1) + (100% - var(--_with-tick-marks-container-size) * 2) * (1 - var(--_end-fraction))))}:host([disabled]) .track::after{background:var(--_disabled-active-track-color)}:host([disabled]) .tickmarks::before{background-image:radial-gradient(circle at var(--_with-tick-marks-container-size) center, var(--_with-tick-marks-disabled-container-color) 0, var(--_with-tick-marks-disabled-container-color) calc(var(--_with-tick-marks-container-size) / 2), transparent calc(var(--_with-tick-marks-container-size) / 2))}.handleContainerPadded{position:relative;block-size:100%;inline-size:100%;padding-inline:calc(var(--_state-layer-size)/2)}.handleContainerBlock{position:relative;block-size:100%;inline-size:100%}.handleContainer{position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:calc(100%*var(--_start-fraction));inline-size:calc(100%*(var(--_end-fraction) - var(--_start-fraction)))}.handle{position:absolute;block-size:var(--_state-layer-size);inline-size:var(--_state-layer-size);border-radius:var(--_handle-shape);display:flex;place-content:center;place-items:center}.handleNub{position:absolute;height:var(--_handle-height);width:var(--_handle-width);border-radius:var(--_handle-shape);background:var(--_handle-color)}:host([disabled]) .handleNub{background:var(--_disabled-handle-color)}input.end:focus~.handleContainerPadded .handle.end>.handleNub,input.start:focus~.handleContainerPadded .handle.start>.handleNub{background:var(--_focus-handle-color)}.container>.handleContainerPadded .handle.hover>.handleNub{background:var(--_hover-handle-color)}:host(:not([disabled])) input.end:active~.handleContainerPadded .handle.end>.handleNub,:host(:not([disabled])) input.start:active~.handleContainerPadded .handle.start>.handleNub{background:var(--_pressed-handle-color)}.onTop.isOverlapping .label,.onTop.isOverlapping .label::before{outline:var(--_with-overlap-handle-outline-color) solid var(--_with-overlap-handle-outline-width)}.onTop.isOverlapping .handleNub{border:var(--_with-overlap-handle-outline-color) solid var(--_with-overlap-handle-outline-width)}.handle.start{inset-inline-start:calc(0px - var(--_state-layer-size)/2)}.handle.end{inset-inline-end:calc(0px - var(--_state-layer-size)/2)}.label{position:absolute;box-sizing:border-box;display:flex;padding:4px;place-content:center;place-items:center;border-radius:var(--md-sys-shape-corner-full, 9999px);color:var(--_label-text-color);font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);inset-block-end:100%;min-inline-size:var(--_label-container-height);min-block-size:var(--_label-container-height);background:var(--_label-container-color);transition:transform 100ms cubic-bezier(0.2, 0, 0, 1);transform-origin:center bottom;transform:scale(0)}:host(:focus-within) .label,.handleContainer.hover .label,:where(:has(input:active)) .label{transform:scale(1)}.label::before,.label::after{position:absolute;display:block;content:"";background:inherit}.label::before{inline-size:calc(var(--_label-container-height)/2);block-size:calc(var(--_label-container-height)/2);bottom:calc(var(--_label-container-height)/-10);transform:rotate(45deg)}.label::after{inset:0px;border-radius:inherit}.labelContent{z-index:1}input[type=range]{opacity:0;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;box-sizing:border-box;height:100%;width:100%;margin:0;background:rgba(0,0,0,0);cursor:pointer;pointer-events:auto;appearance:none}input[type=range]:focus{outline:none}::-webkit-slider-runnable-track{-webkit-appearance:none}::-moz-range-track{appearance:none}::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--_handle-height);inline-size:var(--_handle-width);opacity:0;z-index:2}input.end::-webkit-slider-thumb{--_track-and-knob-padding: calc( (var(--_state-layer-size) - var(--_handle-width)) / 2 );--_x-translate: calc( var(--_track-and-knob-padding) - 2 * var(--_end-fraction) * var(--_track-and-knob-padding) );transform:translateX(var(--_x-translate))}input.end:dir(rtl)::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--_x-translate)))}input.start::-webkit-slider-thumb{--_track-and-knob-padding: calc( (var(--_state-layer-size) - var(--_handle-width)) / 2 );--_x-translate: calc( var(--_track-and-knob-padding) - 2 * var(--_start-fraction) * var(--_track-and-knob-padding) );transform:translateX(var(--_x-translate))}input.start:dir(rtl)::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--_x-translate)))}::-moz-range-thumb{appearance:none;block-size:var(--_state-layer-size);inline-size:var(--_state-layer-size);transform:scaleX(0);opacity:0;z-index:2}.ranged input.start{clip-path:inset(0 calc(100% - (var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2))) 0 0)}.ranged input.start:dir(rtl){clip-path:inset(0 0 0 calc(100% - (var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2))))}.ranged input.end{clip-path:inset(0 0 0 calc(var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2)))}.ranged input.end:dir(rtl){clip-path:inset(0 calc(var(--_state-layer-size) / 2 + (100% - var(--_state-layer-size)) * (var(--_start-fraction) + (var(--_end-fraction) - var(--_start-fraction)) / 2)) 0 0)}.onTop{z-index:1}.handle{--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-ripple{border-radius:50%;height:var(--_state-layer-size);width:var(--_state-layer-size)}
|
|
1396
1396
|
`;/**
|
|
1397
1397
|
* @license
|
|
1398
1398
|
* Copyright 2023 Google LLC
|
|
@@ -1453,7 +1453,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1453
1453
|
* @license
|
|
1454
1454
|
* Copyright 2024 Google LLC
|
|
1455
1455
|
* SPDX-License-Identifier: Apache-2.0
|
|
1456
|
-
*/const nc=m`@layer styles, hcm;@layer styles{:host{display:inline-flex;outline:none;vertical-align:top;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-switch-track-height, 32px))/2) 0px}md-focus-ring{--md-focus-ring-shape-start-start: var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-start-end: var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-end: var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-start: var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}.switch{align-items:center;display:inline-flex;flex-shrink:0;position:relative;width:var(--md-switch-track-width, 52px);height:var(--md-switch-track-height, 32px);border-start-start-radius:var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}input{appearance:none;height:48px;outline:none;margin:0;position:absolute;width:100%;z-index:1;cursor:inherit}:host([touch-target=none]) input{display:none}}@layer styles{.track{position:absolute;width:100%;height:100%;box-sizing:border-box;border-radius:inherit;display:flex;justify-content:center;align-items:center}.track::before{content:"";display:flex;position:absolute;height:100%;width:100%;border-radius:inherit;box-sizing:border-box;transition-property:opacity,background-color;transition-timing-function:linear;transition-duration:67ms}.disabled .track{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.disabled .track::before,.disabled .track::after{transition:none;opacity:var(--md-switch-disabled-track-opacity, 0.12)}.disabled .track::before{background-clip:content-box}.selected .track::before{background-color:var(--md-switch-selected-track-color, var(--md-sys-color-primary, #6750a4))}.selected:hover .track::before{background-color:var(--md-switch-selected-hover-track-color, var(--md-sys-color-primary, #6750a4))}.selected:focus-within .track::before{background-color:var(--md-switch-selected-focus-track-color, var(--md-sys-color-primary, #6750a4))}.selected:active .track::before{background-color:var(--md-switch-selected-pressed-track-color, var(--md-sys-color-primary, #6750a4))}.selected.disabled .track{background-clip:border-box}.selected.disabled .track::before{background-color:var(--md-switch-disabled-selected-track-color, var(--md-sys-color-on-surface, #1d1b20))}.unselected .track::before{background-color:var(--md-switch-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-track-outline-color, var(--md-sys-color-outline, #79747e));border-style:solid;border-width:var(--md-switch-track-outline-width, 2px)}.unselected:hover .track::before{background-color:var(--md-switch-hover-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-hover-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:focus-visible .track::before{background-color:var(--md-switch-focus-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-focus-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:active .track::before{background-color:var(--md-switch-pressed-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-pressed-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected.disabled .track::before{background-color:var(--md-switch-disabled-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-disabled-track-outline-color, var(--md-sys-color-on-surface, #1d1b20))}}@layer hcm{@media(forced-colors: active){.selected .track::before{background:ButtonText;border-color:ButtonText}.disabled .track::before{border-color:GrayText;opacity:1}.disabled.selected .track::before{background:GrayText}}}@layer styles{.handle-container{display:flex;place-content:center;place-items:center;position:relative;transition:margin 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.selected .handle-container{margin-inline-start:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.unselected .handle-container{margin-inline-end:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.disabled .handle-container{transition:none}.handle{border-start-start-radius:var(--md-switch-handle-shape-start-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-handle-shape-start-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-handle-shape-end-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-handle-shape-end-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));height:var(--md-switch-handle-height, 16px);width:var(--md-switch-handle-width, 16px);transform-origin:center;transition-property:height,width;transition-duration:250ms,250ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1),cubic-bezier(0.2, 0, 0, 1);z-index:0}.handle::before{content:"";display:flex;inset:0;position:absolute;border-radius:inherit;box-sizing:border-box;transition:background-color 67ms linear}.disabled .handle,.disabled .handle::before{transition:none}.selected .handle{height:var(--md-switch-selected-handle-height, 24px);width:var(--md-switch-selected-handle-width, 24px)}.handle.with-icon{height:var(--md-switch-with-icon-handle-height, 24px);width:var(--md-switch-with-icon-handle-width, 24px)}.selected:not(.disabled):active .handle,.unselected:not(.disabled):active .handle{height:var(--md-switch-pressed-handle-height, 28px);width:var(--md-switch-pressed-handle-width, 28px);transition-timing-function:linear;transition-duration:100ms}.selected .handle::before{background-color:var(--md-switch-selected-handle-color, var(--md-sys-color-on-primary, #fff))}.selected:hover .handle::before{background-color:var(--md-switch-selected-hover-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:focus-within .handle::before{background-color:var(--md-switch-selected-focus-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:active .handle::before{background-color:var(--md-switch-selected-pressed-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected.disabled .handle::before{background-color:var(--md-switch-disabled-selected-handle-color, var(--md-sys-color-surface, #fef7ff));opacity:var(--md-switch-disabled-selected-handle-opacity, 1)}.unselected .handle::before{background-color:var(--md-switch-handle-color, var(--md-sys-color-outline, #79747e))}.unselected:hover .handle::before{background-color:var(--md-switch-hover-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:focus-within .handle::before{background-color:var(--md-switch-focus-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:active .handle::before{background-color:var(--md-switch-pressed-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected.disabled .handle::before{background-color:var(--md-switch-disabled-handle-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-handle-opacity, 0.38)}md-ripple{border-radius:var(--md-switch-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));height:var(--md-switch-state-layer-size, 40px);inset:unset;width:var(--md-switch-state-layer-size, 40px)}.selected md-ripple{--md-ripple-hover-color: var(--md-switch-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-color: var(--md-switch-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-switch-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-selected-pressed-state-layer-opacity, 0.12)}.unselected md-ripple{--md-ripple-hover-color: var(--md-switch-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-color: var(--md-switch-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-switch-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-pressed-state-layer-opacity, 0.12)}}@layer hcm{@media(forced-colors: active){.unselected .handle::before{background:ButtonText}.disabled .handle::before{opacity:1}.disabled.unselected .handle::before{background:GrayText}}}@layer styles{.icons{position:relative;height:100%;width:100%}.icon{position:absolute;inset:0;margin:auto;display:flex;align-items:center;justify-content:center;fill:currentColor;transition:fill 67ms linear,opacity 33ms linear,transform 167ms cubic-bezier(0.2, 0, 0, 1);opacity:0}.disabled .icon{transition:none}.selected .icon--on,.unselected .icon--off{opacity:1}.unselected .handle:not(.with-icon) .icon--on{transform:rotate(-45deg)}.icon--off{width:var(--md-switch-icon-size, 16px);height:var(--md-switch-icon-size, 16px);color:var(--md-switch-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:hover .icon--off{color:var(--md-switch-hover-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:focus-within .icon--off{color:var(--md-switch-focus-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:active .icon--off{color:var(--md-switch-pressed-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected.disabled .icon--off{color:var(--md-switch-disabled-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9));opacity:var(--md-switch-disabled-icon-opacity, 0.38)}.icon--on{width:var(--md-switch-selected-icon-size, 16px);height:var(--md-switch-selected-icon-size, 16px);color:var(--md-switch-selected-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:hover .icon--on{color:var(--md-switch-selected-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:focus-within .icon--on{color:var(--md-switch-selected-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:active .icon--on{color:var(--md-switch-selected-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected.disabled .icon--on{color:var(--md-switch-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon--off{fill:Canvas}.icon--on{fill:ButtonText}.disabled.unselected .icon--off,.disabled.selected .icon--on{opacity:1}.disabled .icon--on{fill:GrayText}}}
|
|
1456
|
+
*/const nc=b`@layer styles, hcm;@layer styles{:host{display:inline-flex;outline:none;vertical-align:top;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-switch-track-height, 32px))/2) 0px}md-focus-ring{--md-focus-ring-shape-start-start: var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-start-end: var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-end: var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-start: var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}.switch{align-items:center;display:inline-flex;flex-shrink:0;position:relative;width:var(--md-switch-track-width, 52px);height:var(--md-switch-track-height, 32px);border-start-start-radius:var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}input{appearance:none;height:48px;outline:none;margin:0;position:absolute;width:100%;z-index:1;cursor:inherit}:host([touch-target=none]) input{display:none}}@layer styles{.track{position:absolute;width:100%;height:100%;box-sizing:border-box;border-radius:inherit;display:flex;justify-content:center;align-items:center}.track::before{content:"";display:flex;position:absolute;height:100%;width:100%;border-radius:inherit;box-sizing:border-box;transition-property:opacity,background-color;transition-timing-function:linear;transition-duration:67ms}.disabled .track{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.disabled .track::before,.disabled .track::after{transition:none;opacity:var(--md-switch-disabled-track-opacity, 0.12)}.disabled .track::before{background-clip:content-box}.selected .track::before{background-color:var(--md-switch-selected-track-color, var(--md-sys-color-primary, #6750a4))}.selected:hover .track::before{background-color:var(--md-switch-selected-hover-track-color, var(--md-sys-color-primary, #6750a4))}.selected:focus-within .track::before{background-color:var(--md-switch-selected-focus-track-color, var(--md-sys-color-primary, #6750a4))}.selected:active .track::before{background-color:var(--md-switch-selected-pressed-track-color, var(--md-sys-color-primary, #6750a4))}.selected.disabled .track{background-clip:border-box}.selected.disabled .track::before{background-color:var(--md-switch-disabled-selected-track-color, var(--md-sys-color-on-surface, #1d1b20))}.unselected .track::before{background-color:var(--md-switch-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-track-outline-color, var(--md-sys-color-outline, #79747e));border-style:solid;border-width:var(--md-switch-track-outline-width, 2px)}.unselected:hover .track::before{background-color:var(--md-switch-hover-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-hover-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:focus-visible .track::before{background-color:var(--md-switch-focus-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-focus-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:active .track::before{background-color:var(--md-switch-pressed-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-pressed-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected.disabled .track::before{background-color:var(--md-switch-disabled-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-disabled-track-outline-color, var(--md-sys-color-on-surface, #1d1b20))}}@layer hcm{@media(forced-colors: active){.selected .track::before{background:ButtonText;border-color:ButtonText}.disabled .track::before{border-color:GrayText;opacity:1}.disabled.selected .track::before{background:GrayText}}}@layer styles{.handle-container{display:flex;place-content:center;place-items:center;position:relative;transition:margin 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.selected .handle-container{margin-inline-start:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.unselected .handle-container{margin-inline-end:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.disabled .handle-container{transition:none}.handle{border-start-start-radius:var(--md-switch-handle-shape-start-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-handle-shape-start-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-handle-shape-end-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-handle-shape-end-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));height:var(--md-switch-handle-height, 16px);width:var(--md-switch-handle-width, 16px);transform-origin:center;transition-property:height,width;transition-duration:250ms,250ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1),cubic-bezier(0.2, 0, 0, 1);z-index:0}.handle::before{content:"";display:flex;inset:0;position:absolute;border-radius:inherit;box-sizing:border-box;transition:background-color 67ms linear}.disabled .handle,.disabled .handle::before{transition:none}.selected .handle{height:var(--md-switch-selected-handle-height, 24px);width:var(--md-switch-selected-handle-width, 24px)}.handle.with-icon{height:var(--md-switch-with-icon-handle-height, 24px);width:var(--md-switch-with-icon-handle-width, 24px)}.selected:not(.disabled):active .handle,.unselected:not(.disabled):active .handle{height:var(--md-switch-pressed-handle-height, 28px);width:var(--md-switch-pressed-handle-width, 28px);transition-timing-function:linear;transition-duration:100ms}.selected .handle::before{background-color:var(--md-switch-selected-handle-color, var(--md-sys-color-on-primary, #fff))}.selected:hover .handle::before{background-color:var(--md-switch-selected-hover-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:focus-within .handle::before{background-color:var(--md-switch-selected-focus-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:active .handle::before{background-color:var(--md-switch-selected-pressed-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected.disabled .handle::before{background-color:var(--md-switch-disabled-selected-handle-color, var(--md-sys-color-surface, #fef7ff));opacity:var(--md-switch-disabled-selected-handle-opacity, 1)}.unselected .handle::before{background-color:var(--md-switch-handle-color, var(--md-sys-color-outline, #79747e))}.unselected:hover .handle::before{background-color:var(--md-switch-hover-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:focus-within .handle::before{background-color:var(--md-switch-focus-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:active .handle::before{background-color:var(--md-switch-pressed-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected.disabled .handle::before{background-color:var(--md-switch-disabled-handle-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-handle-opacity, 0.38)}md-ripple{border-radius:var(--md-switch-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));height:var(--md-switch-state-layer-size, 40px);inset:unset;width:var(--md-switch-state-layer-size, 40px)}.selected md-ripple{--md-ripple-hover-color: var(--md-switch-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-color: var(--md-switch-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-switch-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-selected-pressed-state-layer-opacity, 0.12)}.unselected md-ripple{--md-ripple-hover-color: var(--md-switch-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-color: var(--md-switch-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-switch-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-pressed-state-layer-opacity, 0.12)}}@layer hcm{@media(forced-colors: active){.unselected .handle::before{background:ButtonText}.disabled .handle::before{opacity:1}.disabled.unselected .handle::before{background:GrayText}}}@layer styles{.icons{position:relative;height:100%;width:100%}.icon{position:absolute;inset:0;margin:auto;display:flex;align-items:center;justify-content:center;fill:currentColor;transition:fill 67ms linear,opacity 33ms linear,transform 167ms cubic-bezier(0.2, 0, 0, 1);opacity:0}.disabled .icon{transition:none}.selected .icon--on,.unselected .icon--off{opacity:1}.unselected .handle:not(.with-icon) .icon--on{transform:rotate(-45deg)}.icon--off{width:var(--md-switch-icon-size, 16px);height:var(--md-switch-icon-size, 16px);color:var(--md-switch-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:hover .icon--off{color:var(--md-switch-hover-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:focus-within .icon--off{color:var(--md-switch-focus-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:active .icon--off{color:var(--md-switch-pressed-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected.disabled .icon--off{color:var(--md-switch-disabled-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9));opacity:var(--md-switch-disabled-icon-opacity, 0.38)}.icon--on{width:var(--md-switch-selected-icon-size, 16px);height:var(--md-switch-selected-icon-size, 16px);color:var(--md-switch-selected-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:hover .icon--on{color:var(--md-switch-selected-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:focus-within .icon--on{color:var(--md-switch-selected-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:active .icon--on{color:var(--md-switch-selected-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected.disabled .icon--on{color:var(--md-switch-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon--off{fill:Canvas}.icon--on{fill:ButtonText}.disabled.unselected .icon--off,.disabled.selected .icon--on{opacity:1}.disabled .icon--on{fill:GrayText}}}
|
|
1457
1457
|
`;/**
|
|
1458
1458
|
* @license
|
|
1459
1459
|
* Copyright 2021 Google LLC
|
|
@@ -1477,7 +1477,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1477
1477
|
${this.fullWidthIndicator?u:e}
|
|
1478
1478
|
</div>
|
|
1479
1479
|
${this.fullWidthIndicator?e:u}
|
|
1480
|
-
</div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(e){await 0,!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())}handleContentClick(e){e.stopPropagation(),this.click()}[(ts=It,is)](e){if(!this[It])return;this[It].getAnimations().forEach(i=>{i.cancel()});const t=this.getKeyframes(e);t!==null&&this[It].animate(t,{duration:250,easing:
|
|
1480
|
+
</div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(e){await 0,!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())}handleContentClick(e){e.stopPropagation(),this.click()}[(ts=It,is)](e){if(!this[It])return;this[It].getAnimations().forEach(i=>{i.cancel()});const t=this.getKeyframes(e);t!==null&&this[It].animate(t,{duration:250,easing:me.EMPHASIZED})}getKeyframes(e){var m;const t=cc();if(!this.active)return t?[{opacity:1},{transform:"none"}]:null;const i={},r=((m=e[It])==null?void 0:m.getBoundingClientRect())??{},s=r.left,n=r.width,h=this[It].getBoundingClientRect(),p=h.left,v=h.width,f=n/v;return!t&&s!==void 0&&p!==void 0&&!isNaN(f)?i.transform=`translateX(${(s-p).toFixed(4)}px) scaleX(${f.toFixed(4)})`:i.opacity=0,[i,{transform:"none"}]}handleSlotChange(){this.iconOnly=!1;for(const e of this.assignedDefaultNodes){const t=e.nodeType===Node.TEXT_NODE&&!!e.wholeText.match(/\S/);if(e.nodeType===Node.ELEMENT_NODE||t)return}this.iconOnly=!0}handleIconSlotChange(){this.hasIcon=this.assignedIcons.length>0}}d([l({type:Boolean,reflect:!0,attribute:"md-tab"})],ge.prototype,"isTab",void 0),d([l({type:Boolean,reflect:!0})],ge.prototype,"active",void 0),d([l({type:Boolean})],ge.prototype,"selected",null),d([l({type:Boolean,attribute:"has-icon"})],ge.prototype,"hasIcon",void 0),d([l({type:Boolean,attribute:"icon-only"})],ge.prototype,"iconOnly",void 0),d([k(".indicator")],ge.prototype,ts,void 0),d([w()],ge.prototype,"fullWidthIndicator",void 0),d([Ar({flatten:!0})],ge.prototype,"assignedDefaultNodes",void 0),d([Y({slot:"icon",flatten:!0})],ge.prototype,"assignedIcons",void 0);function cc(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}/**
|
|
1481
1481
|
* @license
|
|
1482
1482
|
* Copyright 2023 Google LLC
|
|
1483
1483
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1485,12 +1485,12 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1485
1485
|
* @license
|
|
1486
1486
|
* Copyright 2024 Google LLC
|
|
1487
1487
|
* SPDX-License-Identifier: Apache-2.0
|
|
1488
|
-
*/const dc=
|
|
1488
|
+
*/const dc=b`:host{--_active-indicator-color: var(--md-primary-tab-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-height: var(--md-primary-tab-active-indicator-height, 3px);--_active-indicator-shape: var(--md-primary-tab-active-indicator-shape, 3px 3px 0px 0px);--_active-hover-state-layer-color: var(--md-primary-tab-active-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_active-hover-state-layer-opacity: var(--md-primary-tab-active-hover-state-layer-opacity, 0.08);--_active-pressed-state-layer-color: var(--md-primary-tab-active-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_active-pressed-state-layer-opacity: var(--md-primary-tab-active-pressed-state-layer-opacity, 0.12);--_container-color: var(--md-primary-tab-container-color, var(--md-sys-color-surface, #fef7ff));--_container-elevation: var(--md-primary-tab-container-elevation, 0);--_container-height: var(--md-primary-tab-container-height, 48px);--_with-icon-and-label-text-container-height: var(--md-primary-tab-with-icon-and-label-text-container-height, 64px);--_hover-state-layer-color: var(--md-primary-tab-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-primary-tab-hover-state-layer-opacity, 0.08);--_pressed-state-layer-color: var(--md-primary-tab-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-primary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--md-primary-tab-active-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_active-hover-icon-color: var(--md-primary-tab-active-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_active-icon-color: var(--md-primary-tab-active-icon-color, var(--md-sys-color-primary, #6750a4));--_active-pressed-icon-color: var(--md-primary-tab-active-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-primary-tab-icon-size, 24px);--_focus-icon-color: var(--md-primary-tab-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--md-primary-tab-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-color: var(--md-primary-tab-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-primary-tab-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-primary-tab-label-text-font, var(--md-sys-typescale-title-small-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-primary-tab-label-text-line-height, var(--md-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--md-primary-tab-label-text-size, var(--md-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--md-primary-tab-label-text-weight, var(--md-sys-typescale-title-small-weight, var(--md-ref-typeface-weight-medium, 500)));--_active-focus-label-text-color: var(--md-primary-tab-active-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_active-hover-label-text-color: var(--md-primary-tab-active-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_active-label-text-color: var(--md-primary-tab-active-label-text-color, var(--md-sys-color-primary, #6750a4));--_active-pressed-label-text-color: var(--md-primary-tab-active-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-label-text-color: var(--md-primary-tab-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-primary-tab-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-color: var(--md-primary-tab-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-label-text-color: var(--md-primary-tab-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--md-primary-tab-container-shape-start-start, var(--md-primary-tab-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--md-primary-tab-container-shape-start-end, var(--md-primary-tab-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--md-primary-tab-container-shape-end-end, var(--md-primary-tab-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-primary-tab-container-shape-end-start, var(--md-primary-tab-container-shape, var(--md-sys-shape-corner-none, 0px)))}.content.stacked{flex-direction:column;gap:2px}.content.stacked.has-icon.has-label{height:var(--_with-icon-and-label-text-container-height)}
|
|
1489
1489
|
`;/**
|
|
1490
1490
|
* @license
|
|
1491
1491
|
* Copyright 2024 Google LLC
|
|
1492
1492
|
* SPDX-License-Identifier: Apache-2.0
|
|
1493
|
-
*/const os=
|
|
1493
|
+
*/const os=b`:host{display:inline-flex;align-items:center;justify-content:center;outline:none;padding:0 16px;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:middle;user-select:none;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);color:var(--_label-text-color);z-index:0;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);--md-elevation-level: var(--_container-elevation)}md-focus-ring{--md-focus-ring-shape: 8px}:host([active]) md-focus-ring{margin-bottom:calc(var(--_active-indicator-height) + 1px)}.button::before{background:var(--_container-color);content:"";inset:0;position:absolute;z-index:-1}.button::before,md-ripple,md-elevation{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start)}.content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;height:var(--_container-height);gap:8px}.indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_active-indicator-color);border-radius:var(--_active-indicator-shape);height:var(--_active-indicator-height);inset:auto 0 0 0;opacity:0}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_icon-color);font-size:var(--_icon-size);width:var(--_icon-size);height:var(--_icon-size)}:host(:hover){color:var(--_hover-label-text-color);cursor:pointer}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus){color:var(--_focus-label-text-color)}:host(:focus) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active){color:var(--_pressed-label-text-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([active]) .indicator{opacity:1}:host([active]){color:var(--_active-label-text-color);--md-ripple-hover-color: var(--_active-hover-state-layer-color);--md-ripple-hover-opacity: var(--_active-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_active-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_active-pressed-state-layer-opacity)}:host([active]) ::slotted([slot=icon]){color:var(--_active-icon-color)}:host([active]:hover){color:var(--_active-hover-label-text-color)}:host([active]:hover) ::slotted([slot=icon]){color:var(--_active-hover-icon-color)}:host([active]:focus){color:var(--_active-focus-label-text-color)}:host([active]:focus) ::slotted([slot=icon]){color:var(--_active-focus-icon-color)}:host([active]:active){color:var(--_active-pressed-label-text-color)}:host([active]:active) ::slotted([slot=icon]){color:var(--_active-pressed-icon-color)}:host,::slotted(*){white-space:nowrap}@media(forced-colors: active){.indicator{background:CanvasText}}
|
|
1494
1494
|
`;/**
|
|
1495
1495
|
* @license
|
|
1496
1496
|
* Copyright 2023 Google LLC
|
|
@@ -1503,7 +1503,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1503
1503
|
* @license
|
|
1504
1504
|
* Copyright 2024 Google LLC
|
|
1505
1505
|
* SPDX-License-Identifier: Apache-2.0
|
|
1506
|
-
*/const pc=
|
|
1506
|
+
*/const pc=b`:host{--_active-indicator-color: var(--md-secondary-tab-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-height: var(--md-secondary-tab-active-indicator-height, 2px);--_active-label-text-color: var(--md-secondary-tab-active-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_container-color: var(--md-secondary-tab-container-color, var(--md-sys-color-surface, #fef7ff));--_container-elevation: var(--md-secondary-tab-container-elevation, 0);--_container-height: var(--md-secondary-tab-container-height, 48px);--_focus-label-text-color: var(--md-secondary-tab-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-secondary-tab-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--md-secondary-tab-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-secondary-tab-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-secondary-tab-label-text-font, var(--md-sys-typescale-title-small-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-secondary-tab-label-text-line-height, var(--md-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--md-secondary-tab-label-text-size, var(--md-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--md-secondary-tab-label-text-weight, var(--md-sys-typescale-title-small-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-secondary-tab-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-secondary-tab-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--md-secondary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--md-secondary-tab-active-focus-icon-color, );--_active-focus-label-text-color: var(--md-secondary-tab-active-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_active-hover-icon-color: var(--md-secondary-tab-active-hover-icon-color, );--_active-hover-label-text-color: var(--md-secondary-tab-active-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-color: var(--md-secondary-tab-active-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-opacity: var(--md-secondary-tab-active-hover-state-layer-opacity, 0.08);--_active-icon-color: var(--md-secondary-tab-active-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_active-indicator-shape: var(--md-secondary-tab-active-indicator-shape, 0);--_active-pressed-icon-color: var(--md-secondary-tab-active-pressed-icon-color, );--_active-pressed-label-text-color: var(--md-secondary-tab-active-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-color: var(--md-secondary-tab-active-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-opacity: var(--md-secondary-tab-active-pressed-state-layer-opacity, 0.12);--_label-text-color: var(--md-secondary-tab-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-icon-color: var(--md-secondary-tab-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--md-secondary-tab-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-secondary-tab-icon-size, 24px);--_icon-color: var(--md-secondary-tab-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-secondary-tab-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--md-secondary-tab-container-shape-start-start, var(--md-secondary-tab-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--md-secondary-tab-container-shape-start-end, var(--md-secondary-tab-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--md-secondary-tab-container-shape-end-end, var(--md-secondary-tab-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-secondary-tab-container-shape-end-start, var(--md-secondary-tab-container-shape, var(--md-sys-shape-corner-none, 0px)))}
|
|
1507
1507
|
`;/**
|
|
1508
1508
|
* @license
|
|
1509
1509
|
* Copyright 2023 Google LLC
|
|
@@ -1512,18 +1512,18 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1512
1512
|
* @license
|
|
1513
1513
|
* Copyright 2023 Google LLC
|
|
1514
1514
|
* SPDX-License-Identifier: Apache-2.0
|
|
1515
|
-
*/class Tt extends y{get activeTab(){return this.tabs.find(e=>e.active)??null}set activeTab(e){e&&this.activateTab(e)}get activeTabIndex(){return this.tabs.findIndex(e=>e.active)}set activeTabIndex(e){const t=()=>{const i=this.tabs[e];i&&this.activateTab(i)};if(!this.slotElement){this.updateComplete.then(t);return}t()}get focusedTab(){return this.tabs.find(e=>e.matches(":focus-within"))}constructor(){super(),this.autoActivate=!1,this.internals=this.attachInternals(),this.internals.role="tablist",this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("keyup",this.handleKeyup.bind(this)),this.addEventListener("focusout",this.handleFocusout.bind(this))}async scrollToTab(e){await this.updateComplete;const{tabs:t}=this;if(e??(e=this.activeTab),!e||!t.includes(e)||!this.tabsScrollerElement)return;for(const x of this.tabs)await x.updateComplete;const i=e.offsetLeft,r=e.offsetWidth,s=this.scrollLeft,n=this.offsetWidth,h=48,p=i-h,v=i+r-n+h,f=Math.min(p,Math.max(v,s)),
|
|
1515
|
+
*/class Tt extends y{get activeTab(){return this.tabs.find(e=>e.active)??null}set activeTab(e){e&&this.activateTab(e)}get activeTabIndex(){return this.tabs.findIndex(e=>e.active)}set activeTabIndex(e){const t=()=>{const i=this.tabs[e];i&&this.activateTab(i)};if(!this.slotElement){this.updateComplete.then(t);return}t()}get focusedTab(){return this.tabs.find(e=>e.matches(":focus-within"))}constructor(){super(),this.autoActivate=!1,this.internals=this.attachInternals(),this.internals.role="tablist",this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("keyup",this.handleKeyup.bind(this)),this.addEventListener("focusout",this.handleFocusout.bind(this))}async scrollToTab(e){await this.updateComplete;const{tabs:t}=this;if(e??(e=this.activeTab),!e||!t.includes(e)||!this.tabsScrollerElement)return;for(const x of this.tabs)await x.updateComplete;const i=e.offsetLeft,r=e.offsetWidth,s=this.scrollLeft,n=this.offsetWidth,h=48,p=i-h,v=i+r-n+h,f=Math.min(p,Math.max(v,s)),m=this.focusedTab?"auto":"instant";this.tabsScrollerElement.scrollTo({behavior:m,top:0,left:f})}render(){return c`
|
|
1516
1516
|
<div class="tabs">
|
|
1517
1517
|
<slot
|
|
1518
1518
|
@slotchange=${this.handleSlotChange}
|
|
1519
1519
|
@click=${this.handleTabClick}></slot>
|
|
1520
1520
|
</div>
|
|
1521
1521
|
<md-divider part="divider"></md-divider>
|
|
1522
|
-
`}async handleTabClick(e){const t=e.target;await 0,!(e.defaultPrevented||!uc(t)||t.active)&&this.activateTab(t)}activateTab(e){const{tabs:t}=this,i=this.activeTab;if(!(!t.includes(e)||i===e)){for(const r of t)r.active=r===e;if(i){if(!this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))){for(const s of t)s.active=s===i;return}e[is](i)}this.updateFocusableTab(e),this.scrollToTab(e)}}updateFocusableTab(e){for(const t of this.tabs)t.tabIndex=t===e?0:-1}async handleKeydown(e){await 0;const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(e.defaultPrevented||!t&&!i&&!r&&!s)return;const{tabs:n}=this;if(n.length<2)return;e.preventDefault();let h;if(r||s)h=r?0:n.length-1;else{const f=getComputedStyle(this).direction==="rtl"?t:i,{focusedTab:
|
|
1522
|
+
`}async handleTabClick(e){const t=e.target;await 0,!(e.defaultPrevented||!uc(t)||t.active)&&this.activateTab(t)}activateTab(e){const{tabs:t}=this,i=this.activeTab;if(!(!t.includes(e)||i===e)){for(const r of t)r.active=r===e;if(i){if(!this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))){for(const s of t)s.active=s===i;return}e[is](i)}this.updateFocusableTab(e),this.scrollToTab(e)}}updateFocusableTab(e){for(const t of this.tabs)t.tabIndex=t===e?0:-1}async handleKeydown(e){await 0;const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(e.defaultPrevented||!t&&!i&&!r&&!s)return;const{tabs:n}=this;if(n.length<2)return;e.preventDefault();let h;if(r||s)h=r?0:n.length-1;else{const f=getComputedStyle(this).direction==="rtl"?t:i,{focusedTab:m}=this;if(!m)h=f?0:n.length-1;else{const x=this.tabs.indexOf(m);h=f?x+1:x-1,h>=n.length?h=0:h<0&&(h=n.length-1)}}const p=n[h];p.focus(),this.autoActivate?this.activateTab(p):this.updateFocusableTab(p)}handleKeyup(){this.scrollToTab(this.focusedTab??this.activeTab)}handleFocusout(){if(this.matches(":focus-within"))return;const{activeTab:e}=this;e&&this.updateFocusableTab(e)}handleSlotChange(){const e=this.tabs[0];!this.activeTab&&e&&this.activateTab(e),this.scrollToTab(this.activeTab)}}d([Y({flatten:!0,selector:"[md-tab]"})],Tt.prototype,"tabs",void 0),d([l({type:Number,attribute:"active-tab-index"})],Tt.prototype,"activeTabIndex",null),d([l({type:Boolean,attribute:"auto-activate"})],Tt.prototype,"autoActivate",void 0),d([k(".tabs")],Tt.prototype,"tabsScrollerElement",void 0),d([k("slot")],Tt.prototype,"slotElement",void 0);function uc(o){return o instanceof HTMLElement&&o.hasAttribute("md-tab")}/**
|
|
1523
1523
|
* @license
|
|
1524
1524
|
* Copyright 2024 Google LLC
|
|
1525
1525
|
* SPDX-License-Identifier: Apache-2.0
|
|
1526
|
-
*/const vc=
|
|
1526
|
+
*/const vc=b`:host{box-sizing:border-box;display:flex;flex-direction:column;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;position:relative}:host([hidden]){display:none}:host::-webkit-scrollbar{display:none}.tabs{align-items:end;display:flex;height:100%;overflow:inherit;scroll-behavior:inherit;scrollbar-width:inherit;justify-content:space-between;width:100%}::slotted(*){flex:1}::slotted([active]){z-index:1}
|
|
1527
1527
|
`;/**
|
|
1528
1528
|
* @license
|
|
1529
1529
|
* Copyright 2023 Google LLC
|
|
@@ -1532,16 +1532,16 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1532
1532
|
* @license
|
|
1533
1533
|
* Copyright 2024 Google LLC
|
|
1534
1534
|
* SPDX-License-Identifier: Apache-2.0
|
|
1535
|
-
*/const bc=m`:host{--_active-indicator-color: var(--md-filled-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-text-field-active-indicator-height, 1px);--_caret-color: var(--md-filled-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_container-color: var(--md-filled-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_disabled-active-indicator-color: var(--md-filled-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-text-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-text-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-text-field-disabled-container-opacity, 0.04);--_disabled-input-text-color: var(--md-filled-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-filled-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-filled-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-filled-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-filled-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-filled-text-field-disabled-trailing-icon-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-active-indicator-color: var(--md-filled-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-caret-color: var(--md-filled-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-filled-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-filled-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-filled-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-filled-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-input-text-color: var(--md-filled-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-filled-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-text-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-filled-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-filled-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-filled-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-filled-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-filled-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-text-field-focus-active-indicator-height, 3px);--_focus-input-text-color: var(--md-filled-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-filled-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-filled-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-text-field-hover-active-indicator-height, 1px);--_hover-input-text-color: var(--md-filled-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-text-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-icon-color: var(--md-filled-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-text-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-filled-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-filled-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-filled-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-filled-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-filled-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-filled-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-filled-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-filled-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-filled-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-filled-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-filled-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-filled-text-field-leading-icon-size, 24px);--_supporting-text-color: var(--md-filled-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-filled-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-filled-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-filled-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-filled-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-filled-text-field-container-shape-start-start, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-filled-text-field-container-shape-start-end, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-filled-text-field-container-shape-end-end, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-filled-text-field-container-shape-end-start, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_leading-space: var(--md-filled-text-field-leading-space, 16px);--_trailing-space: var(--md-filled-text-field-trailing-space, 16px);--_top-space: var(--md-filled-text-field-top-space, 16px);--_bottom-space: var(--md-filled-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-filled-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-filled-text-field-input-text-suffix-leading-space, 2px);--_with-label-top-space: var(--md-filled-text-field-with-label-top-space, 8px);--_with-label-bottom-space: var(--md-filled-text-field-with-label-bottom-space, 8px);--_focus-caret-color: var(--md-filled-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--md-filled-field-active-indicator-color: var(--_active-indicator-color);--md-filled-field-active-indicator-height: var(--_active-indicator-height);--md-filled-field-bottom-space: var(--_bottom-space);--md-filled-field-container-color: var(--_container-color);--md-filled-field-container-shape-end-end: var(--_container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_container-shape-start-start);--md-filled-field-content-color: var(--_input-text-color);--md-filled-field-content-font: var(--_input-text-font);--md-filled-field-content-line-height: var(--_input-text-line-height);--md-filled-field-content-size: var(--_input-text-size);--md-filled-field-content-weight: var(--_input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_error-active-indicator-color);--md-filled-field-error-content-color: var(--_error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_error-label-text-color);--md-filled-field-error-leading-content-color: var(--_error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_label-text-color);--md-filled-field-label-text-font: var(--_label-text-font);--md-filled-field-label-text-line-height: var(--_label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_label-text-populated-size);--md-filled-field-label-text-size: var(--_label-text-size);--md-filled-field-label-text-weight: var(--_label-text-weight);--md-filled-field-leading-content-color: var(--_leading-icon-color);--md-filled-field-leading-space: var(--_leading-space);--md-filled-field-supporting-text-color: var(--_supporting-text-color);--md-filled-field-supporting-text-font: var(--_supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_supporting-text-size);--md-filled-field-supporting-text-weight: var(--_supporting-text-weight);--md-filled-field-top-space: var(--_top-space);--md-filled-field-trailing-content-color: var(--_trailing-icon-color);--md-filled-field-trailing-space: var(--_trailing-space);--md-filled-field-with-label-bottom-space: var(--_with-label-bottom-space);--md-filled-field-with-label-top-space: var(--_with-label-top-space)}
|
|
1535
|
+
*/const mc=b`:host{--_active-indicator-color: var(--md-filled-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-text-field-active-indicator-height, 1px);--_caret-color: var(--md-filled-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_container-color: var(--md-filled-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_disabled-active-indicator-color: var(--md-filled-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-text-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-text-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-text-field-disabled-container-opacity, 0.04);--_disabled-input-text-color: var(--md-filled-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-filled-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-filled-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-filled-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-filled-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-filled-text-field-disabled-trailing-icon-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-active-indicator-color: var(--md-filled-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-caret-color: var(--md-filled-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-filled-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-filled-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-filled-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-filled-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-input-text-color: var(--md-filled-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-filled-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-text-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-filled-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-filled-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-filled-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-filled-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-filled-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-text-field-focus-active-indicator-height, 3px);--_focus-input-text-color: var(--md-filled-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-filled-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-filled-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-text-field-hover-active-indicator-height, 1px);--_hover-input-text-color: var(--md-filled-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-text-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-icon-color: var(--md-filled-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-text-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-filled-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-filled-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-filled-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-filled-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-filled-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-filled-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-filled-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-filled-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-filled-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-filled-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-filled-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-filled-text-field-leading-icon-size, 24px);--_supporting-text-color: var(--md-filled-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-filled-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-filled-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-filled-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-filled-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-filled-text-field-container-shape-start-start, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-filled-text-field-container-shape-start-end, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-filled-text-field-container-shape-end-end, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-filled-text-field-container-shape-end-start, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_leading-space: var(--md-filled-text-field-leading-space, 16px);--_trailing-space: var(--md-filled-text-field-trailing-space, 16px);--_top-space: var(--md-filled-text-field-top-space, 16px);--_bottom-space: var(--md-filled-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-filled-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-filled-text-field-input-text-suffix-leading-space, 2px);--_with-label-top-space: var(--md-filled-text-field-with-label-top-space, 8px);--_with-label-bottom-space: var(--md-filled-text-field-with-label-bottom-space, 8px);--_focus-caret-color: var(--md-filled-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--md-filled-field-active-indicator-color: var(--_active-indicator-color);--md-filled-field-active-indicator-height: var(--_active-indicator-height);--md-filled-field-bottom-space: var(--_bottom-space);--md-filled-field-container-color: var(--_container-color);--md-filled-field-container-shape-end-end: var(--_container-shape-end-end);--md-filled-field-container-shape-end-start: var(--_container-shape-end-start);--md-filled-field-container-shape-start-end: var(--_container-shape-start-end);--md-filled-field-container-shape-start-start: var(--_container-shape-start-start);--md-filled-field-content-color: var(--_input-text-color);--md-filled-field-content-font: var(--_input-text-font);--md-filled-field-content-line-height: var(--_input-text-line-height);--md-filled-field-content-size: var(--_input-text-size);--md-filled-field-content-weight: var(--_input-text-weight);--md-filled-field-disabled-active-indicator-color: var(--_disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height: var(--_disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity: var(--_disabled-active-indicator-opacity);--md-filled-field-disabled-container-color: var(--_disabled-container-color);--md-filled-field-disabled-container-opacity: var(--_disabled-container-opacity);--md-filled-field-disabled-content-color: var(--_disabled-input-text-color);--md-filled-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-filled-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-filled-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color: var(--_error-active-indicator-color);--md-filled-field-error-content-color: var(--_error-input-text-color);--md-filled-field-error-focus-active-indicator-color: var(--_error-focus-active-indicator-color);--md-filled-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-filled-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color: var(--_error-hover-active-indicator-color);--md-filled-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-filled-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color: var(--_error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity: var(--_error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-filled-field-error-label-text-color: var(--_error-label-text-color);--md-filled-field-error-leading-content-color: var(--_error-leading-icon-color);--md-filled-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-filled-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-filled-field-focus-active-indicator-color: var(--_focus-active-indicator-color);--md-filled-field-focus-active-indicator-height: var(--_focus-active-indicator-height);--md-filled-field-focus-content-color: var(--_focus-input-text-color);--md-filled-field-focus-label-text-color: var(--_focus-label-text-color);--md-filled-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-filled-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-filled-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color: var(--_hover-active-indicator-color);--md-filled-field-hover-active-indicator-height: var(--_hover-active-indicator-height);--md-filled-field-hover-content-color: var(--_hover-input-text-color);--md-filled-field-hover-label-text-color: var(--_hover-label-text-color);--md-filled-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-filled-field-hover-state-layer-color: var(--_hover-state-layer-color);--md-filled-field-hover-state-layer-opacity: var(--_hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-filled-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-filled-field-label-text-color: var(--_label-text-color);--md-filled-field-label-text-font: var(--_label-text-font);--md-filled-field-label-text-line-height: var(--_label-text-line-height);--md-filled-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-filled-field-label-text-populated-size: var(--_label-text-populated-size);--md-filled-field-label-text-size: var(--_label-text-size);--md-filled-field-label-text-weight: var(--_label-text-weight);--md-filled-field-leading-content-color: var(--_leading-icon-color);--md-filled-field-leading-space: var(--_leading-space);--md-filled-field-supporting-text-color: var(--_supporting-text-color);--md-filled-field-supporting-text-font: var(--_supporting-text-font);--md-filled-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-filled-field-supporting-text-size: var(--_supporting-text-size);--md-filled-field-supporting-text-weight: var(--_supporting-text-weight);--md-filled-field-top-space: var(--_top-space);--md-filled-field-trailing-content-color: var(--_trailing-icon-color);--md-filled-field-trailing-space: var(--_trailing-space);--md-filled-field-with-label-bottom-space: var(--_with-label-bottom-space);--md-filled-field-with-label-top-space: var(--_with-label-top-space)}
|
|
1536
1536
|
`;/**
|
|
1537
1537
|
* @license
|
|
1538
1538
|
* Copyright 2020 Google LLC
|
|
1539
1539
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1540
|
-
*/const
|
|
1540
|
+
*/const bc=o=>o.strings===void 0,fc={},gc=(o,e=fc)=>o._$AH=e;/**
|
|
1541
1541
|
* @license
|
|
1542
1542
|
* Copyright 2020 Google LLC
|
|
1543
1543
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1544
|
-
*/const as=
|
|
1544
|
+
*/const as=Rr(class extends Br{constructor(o){if(super(o),o.type!==Ge.PROPERTY&&o.type!==Ge.ATTRIBUTE&&o.type!==Ge.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!bc(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[e]){if(e===ce||e===u)return e;const t=o.element,i=o.name;if(o.type===Ge.PROPERTY){if(e===t[i])return ce}else if(o.type===Ge.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(i))return ce}else if(o.type===Ge.ATTRIBUTE&&t.getAttribute(i)===e+"")return ce;return gc(o),e}});/**
|
|
1545
1545
|
* @license
|
|
1546
1546
|
* Copyright 2022 Google LLC
|
|
1547
1547
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1649,16 +1649,16 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1649
1649
|
* @license
|
|
1650
1650
|
* Copyright 2024 Google LLC
|
|
1651
1651
|
* SPDX-License-Identifier: Apache-2.0
|
|
1652
|
-
*/const ss=
|
|
1652
|
+
*/const ss=b`:host{display:inline-flex;outline:none;resize:both;text-align:start;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}.icon{color:currentColor;display:flex;fill:currentColor}.icon ::slotted(*){display:flex}[hasstart] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[hasend] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background:none}}.no-spinner .input::-webkit-inner-spin-button,.no-spinner .input::-webkit-outer-spin-button{display:none}.no-spinner .input[type=number]{-moz-appearance:textfield}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)}
|
|
1653
1653
|
`;/**
|
|
1654
1654
|
* @license
|
|
1655
1655
|
* Copyright 2021 Google LLC
|
|
1656
1656
|
* SPDX-License-Identifier: Apache-2.0
|
|
1657
|
-
*/let Ao=class extends wc{constructor(){super(...arguments),this.fieldTag=ee`md-filled-field`}};Ao.styles=[ss,
|
|
1657
|
+
*/let Ao=class extends wc{constructor(){super(...arguments),this.fieldTag=ee`md-filled-field`}};Ao.styles=[ss,mc],Ao=d([g("md-filled-text-field")],Ao);/**
|
|
1658
1658
|
* @license
|
|
1659
1659
|
* Copyright 2024 Google LLC
|
|
1660
1660
|
* SPDX-License-Identifier: Apache-2.0
|
|
1661
|
-
*/const Sc=m`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space)}
|
|
1661
|
+
*/const Sc=b`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space)}
|
|
1662
1662
|
`;/**
|
|
1663
1663
|
* @license
|
|
1664
1664
|
* Copyright 2021 Google LLC
|
|
@@ -1705,7 +1705,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1705
1705
|
</details>
|
|
1706
1706
|
|
|
1707
1707
|
<md-focus-ring for=${t} inward></md-focus-ring>
|
|
1708
|
-
`}},a.ScbAccordionItem._uidPrefix=`uid-${Math.random().toString(36).slice(2)}`,a.ScbAccordionItem._uidSeq=0,a.ScbAccordionItem.styles=[
|
|
1708
|
+
`}},a.ScbAccordionItem._uidPrefix=`uid-${Math.random().toString(36).slice(2)}`,a.ScbAccordionItem._uidSeq=0,a.ScbAccordionItem.styles=[b`
|
|
1709
1709
|
:host {
|
|
1710
1710
|
display: block;
|
|
1711
1711
|
position: relative;
|
|
@@ -1839,375 +1839,54 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
1839
1839
|
<div class="scb-accordion" ?detached=${this.detached}>
|
|
1840
1840
|
<slot></slot>
|
|
1841
1841
|
</div>
|
|
1842
|
-
`}},ns([l({type:Boolean,reflect:!0})],a.ScbAccordion.prototype,"detached",2),a.ScbAccordion=ns([g("scb-accordion")],a.ScbAccordion);var zc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,$e=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ic(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&zc(e,t,r),r};a.
|
|
1843
|
-
/* Gör hosten stretchbar i t.ex. flex/grid */
|
|
1844
|
-
:host {
|
|
1845
|
-
display: inline-flex;
|
|
1846
|
-
block-size: var(--scb-button-block-size, auto);
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
/* Låt inre md-knappen fylla hostens höjd*/
|
|
1850
|
-
md-filled-button,
|
|
1851
|
-
md-outlined-button,
|
|
1852
|
-
md-filled-tonal-button,
|
|
1853
|
-
md-text-button {
|
|
1854
|
-
block-size: 100%;
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
/* Errorvarianter */
|
|
1858
|
-
/*
|
|
1859
|
-
md-filled-button[variant='error'],
|
|
1860
|
-
md-outlined-button[variant='error'],
|
|
1861
|
-
md-filled-tonal-button[variant='error'],
|
|
1862
|
-
md-text-button[variant='error'] {
|
|
1863
|
-
--md-sys-color-primary: var(--md-sys-color-error);
|
|
1864
|
-
--md-sys-color-on-primary: var(--md-sys-color-on-error);
|
|
1865
|
-
}
|
|
1866
|
-
*/
|
|
1867
|
-
|
|
1868
|
-
/* Outlined – röd outline vid error + tjockare vid hover */
|
|
1869
|
-
/*
|
|
1870
|
-
md-outlined-button[variant='error'] {
|
|
1871
|
-
--_outline-color: var(--md-sys-color-error);
|
|
1872
|
-
--md-outlined-button-pressed-outline-color: var(--md-sys-color-error);
|
|
1873
|
-
}
|
|
1874
|
-
*/
|
|
1875
|
-
/* md-outlined-button[variant='error']:hover, */
|
|
1876
|
-
md-outlined-button:hover {
|
|
1877
|
-
--md-outlined-button-outline-width: var(--spacing-1, 1px);
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
/* Filled-tonal – error-färger */
|
|
1881
|
-
/*
|
|
1882
|
-
md-filled-tonal-button[variant='error'] {
|
|
1883
|
-
--md-filled-tonal-button-container-color: var(--md-sys-color-error-container);
|
|
1884
|
-
--md-filled-tonal-button-label-text-color: var(--md-sys-color-on-error-container);
|
|
1885
|
-
--md-filled-tonal-button-hover-label-text-color: var(--md-sys-color-on-error-container);
|
|
1886
|
-
--md-filled-tonal-button-pressed-label-text-color: var(--md-sys-color-on-error-container);
|
|
1887
|
-
--md-filled-tonal-button-focus-label-text-color: var(--md-sys-color-on-error-container);
|
|
1888
|
-
--md-filled-tonal-button-icon-color: var(--md-sys-color-on-error-container);
|
|
1889
|
-
--md-filled-tonal-button-hover-icon-color: var(--md-sys-color-on-error-container);
|
|
1890
|
-
--md-filled-tonal-button-pressed-icon-color: var(--md-sys-color-on-error-container);
|
|
1891
|
-
--md-filled-tonal-button-focus-icon-color: var(--md-sys-color-on-error-container);
|
|
1892
|
-
--md-filled-tonal-button-hover-state-layer-color: var(--md-sys-color-on-error-container);
|
|
1893
|
-
--md-filled-tonal-button-pressed-state-layer-color: var(--md-sys-color-on-error-container);
|
|
1894
|
-
}
|
|
1895
|
-
@media (prefers-color-scheme: dark) {
|
|
1896
|
-
md-filled-tonal-button[variant='error'] {
|
|
1897
|
-
--md-filled-tonal-button-container-color: var(--md-sys-color-on-error);
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
*/
|
|
1901
|
-
`}render(){var s;const e=!!((s=this.icon)!=null&&s.trim()),t=e?c`<md-icon slot="icon">${this.icon}</md-icon>`:u,i=u,r=this.label.trim()===""?this.icon:void 0;switch(this.variant){case"filled":return c`
|
|
1902
|
-
<md-filled-button
|
|
1903
|
-
type=${this.type}
|
|
1904
|
-
variant=${i}
|
|
1905
|
-
?trailing-icon=${this.trailingIcon}
|
|
1906
|
-
?disabled=${this.disabled}
|
|
1907
|
-
aria-label=${r}
|
|
1908
|
-
href=${this.href||u}
|
|
1909
|
-
target=${this.target||u}
|
|
1910
|
-
rel=${this.rel||u}
|
|
1911
|
-
>
|
|
1912
|
-
${e&&!this.trailingIcon?t:u}
|
|
1913
|
-
${this.label}
|
|
1914
|
-
${e&&this.trailingIcon?t:u}
|
|
1915
|
-
</md-filled-button>
|
|
1916
|
-
`;case"outlined":return c`
|
|
1917
|
-
<md-outlined-button
|
|
1918
|
-
type=${this.type}
|
|
1919
|
-
variant=${i}
|
|
1920
|
-
?trailing-icon=${this.trailingIcon}
|
|
1921
|
-
?disabled=${this.disabled}
|
|
1922
|
-
aria-label=${r}
|
|
1923
|
-
href=${this.href||u}
|
|
1924
|
-
target=${this.target||u}
|
|
1925
|
-
rel=${this.rel||u}
|
|
1926
|
-
>
|
|
1927
|
-
${e&&!this.trailingIcon?t:u}
|
|
1928
|
-
${this.label}
|
|
1929
|
-
${e&&this.trailingIcon?t:u}
|
|
1930
|
-
</md-outlined-button>
|
|
1931
|
-
`;case"filled-tonal":return c`
|
|
1932
|
-
<md-filled-tonal-button
|
|
1933
|
-
type=${this.type}
|
|
1934
|
-
variant=${i}
|
|
1935
|
-
?trailing-icon=${this.trailingIcon}
|
|
1936
|
-
?disabled=${this.disabled}
|
|
1937
|
-
aria-label=${r}
|
|
1938
|
-
href=${this.href||u}
|
|
1939
|
-
target=${this.target||u}
|
|
1940
|
-
rel=${this.rel||u}
|
|
1941
|
-
>
|
|
1942
|
-
${e&&!this.trailingIcon?t:u}
|
|
1943
|
-
${this.label}
|
|
1944
|
-
${e&&this.trailingIcon?t:u}
|
|
1945
|
-
</md-filled-tonal-button>
|
|
1946
|
-
`;case"text":return c`
|
|
1947
|
-
<md-text-button
|
|
1948
|
-
type=${this.type}
|
|
1949
|
-
variant=${i}
|
|
1950
|
-
?trailing-icon=${this.trailingIcon}
|
|
1951
|
-
?disabled=${this.disabled}
|
|
1952
|
-
aria-label=${r}
|
|
1953
|
-
href=${this.href||u}
|
|
1954
|
-
target=${this.target||u}
|
|
1955
|
-
rel=${this.rel||u}
|
|
1956
|
-
>
|
|
1957
|
-
${e&&!this.trailingIcon?t:u}
|
|
1958
|
-
${this.label}
|
|
1959
|
-
${e&&this.trailingIcon?t:u}
|
|
1960
|
-
</md-text-button>
|
|
1961
|
-
`;default:return c``}}},$e([l({type:String,reflect:!0})],a.ScbButton.prototype,"variant",2),$e([l({type:String,reflect:!0})],a.ScbButton.prototype,"type",2),$e([l({type:String})],a.ScbButton.prototype,"label",2),$e([l({type:Boolean,attribute:"trailing-icon"})],a.ScbButton.prototype,"trailingIcon",2),$e([l({type:String})],a.ScbButton.prototype,"icon",2),$e([l({type:Boolean,reflect:!0})],a.ScbButton.prototype,"disabled",2),$e([l({type:String})],a.ScbButton.prototype,"href",2),$e([l({type:String})],a.ScbButton.prototype,"target",2),$e([l({type:String})],a.ScbButton.prototype,"rel",2),a.ScbButton=$e([g("scb-button")],a.ScbButton);var Tc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,Ce=(o,e,t,i)=>{for(var r=i>1?void 0:i?Oc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Tc(e,t,r),r};let Lc=0;a.ScbTooltip=class extends y{constructor(){super(...arguments),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=.25,this.offset=0,this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++Lc}`,this._onTriggerMouseEnter=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTriggerFocus=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTooltipMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!0,this.open=!0)},this._onTooltipMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!1,this._clickActive||(this.open=!1))},this._onTriggerClick=()=>{this._clickActive=!this._clickActive,this._clickActive?this.open=!0:this._hoverActive||(this.open=!1)}}firstUpdated(){if(this._originalPosition=this.position,this._updateDelayCss(),this._updateTriggerElement(),this._updateTooltipHoverListeners(),this.open){const e=this._getTooltipElement();e&&this._showTooltip(e)}}updated(e){if(e.has("trigger")&&(this._updateTriggerElement(),this._updateTooltipHoverListeners()),e.has("delay")&&this._updateDelayCss(),e.has("open")){const t=this._getTooltipElement();if(!t)return;this.open?this._showTooltip(t):this._hideTooltip(t)}}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners();const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave)),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null)}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_updateDelayCss(){const e=Number.isFinite(this.delay)?this.delay:.25;this.style.setProperty("--delay",`${e}s`)}_findTriggerElement(){const e=this.querySelector("[scb-tooltip-anchor]:not([slot])");return e||(Array.from(this.children).find(i=>i.nodeType===Node.ELEMENT_NODE)??null)}_updateTriggerElement(){const e=this._triggerEl;e&&(this._detachTriggerListeners(),e.removeAttribute("aria-describedby"));const t=this._findTriggerElement();this._triggerEl=t,t&&(t.setAttribute("aria-describedby",this._tooltipId),(this.trigger==="click"||this.trigger==="hover-click")&&t.addEventListener("click",this._onTriggerClick),(this.trigger==="hover"||this.trigger==="hover-click")&&(t.addEventListener("mouseenter",this._onTriggerMouseEnter),t.addEventListener("mouseleave",this._onTriggerMouseLeave),t.addEventListener("focus",this._onTriggerFocus),t.addEventListener("blur",this._onTriggerBlur)))}_updateTooltipHoverListeners(){const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave),(this.trigger==="hover"||this.trigger==="hover-click")&&(e.addEventListener("mouseenter",this._onTooltipMouseEnter),e.addEventListener("mouseleave",this._onTooltipMouseLeave)))}_detachTriggerListeners(){const e=this._triggerEl;e&&(e.removeEventListener("click",this._onTriggerClick),e.removeEventListener("mouseenter",this._onTriggerMouseEnter),e.removeEventListener("mouseleave",this._onTriggerMouseLeave),e.removeEventListener("focus",this._onTriggerFocus),e.removeEventListener("blur",this._onTriggerBlur))}_showTooltip(e){this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null);const t=this._triggerEl;this._resetPosition(),e.classList.remove("hidden"),e.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{t&&this._positionTooltip(e,t),e.setAttribute("open","")})}_hideTooltip(e){e.removeAttribute("open"),e.setAttribute("aria-hidden","true"),this._scheduleHidden(e)}_scheduleHidden(e){const t=(Number.isFinite(this.delay)?this.delay:.25)*1e3;if(t<=0){e.classList.add("hidden");return}this._hideTimeout=window.setTimeout(()=>{e.classList.add("hidden"),this._hideTimeout=null},t)}_resetPosition(){this.position=this._originalPosition}_positionTooltip(e,t){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.getBoundingClientRect(),p=(this.offset??0)+8,v=8,f=v,b=window.innerHeight-v,x=v,_=window.innerWidth-v,S=F=>F>=f&&F+r.height<=b,C=F=>F>=x&&F+r.width<=_,E=(F,le,Se,wi)=>{let Nt=0;F<Se&&(Nt+=Se-F);const Sr=F+le;return Sr>wi&&(Nt+=Sr-wi),Nt},A=F=>{let le=0,Se=0;switch(F){case"top":le=i.top-s.top-r.height-p,Se=i.left-s.left+(i.width-r.width)/2;break;case"bottom":le=i.bottom-s.top+p,Se=i.left-s.left+(i.width-r.width)/2;break;case"left":Se=i.left-s.left-r.width-p,le=i.top-s.top+(i.height-r.height)/2;break;case"right":Se=i.right-s.left+p,le=i.top-s.top+(i.height-r.height)/2;break}const wi=le+s.top,Nt=Se+s.left,Sr=E(wi,r.height,f,b),dp=E(Nt,r.width,x,_);return{pos:F,top:le,left:Se,fitsV:S(wi),fitsH:C(Nt),totalOverflow:Sr+dp}},z=this.position==="top"||this.position==="bottom",X=this.position,q=this._getOppositePosition(X),ve=[X,q,z?"left":"top",z?"right":"bottom"].map(A);let ne=ve.find(F=>F.fitsV&&F.fitsH)??ve.reduce((F,le)=>le.totalOverflow<F.totalOverflow?le:F);const St=(F,le,Se)=>Math.min(Math.max(F,le),Se),Te=f-s.top,rt=b-r.height-s.top,wr=x-s.left,xi=_-r.width-s.left,_i=St(ne.top,Te,rt),we=St(ne.left,wr,xi);e.style.top=`${_i}px`,e.style.left=`${we}px`,this.position!==ne.pos&&(this.position=ne.pos)}_getOppositePosition(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}_onDefaultSlotChange(){this._updateTriggerElement()}render(){const e=this.arrow?c`<svg
|
|
1962
|
-
class="scb-tooltip-arrow"
|
|
1963
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1964
|
-
width="13"
|
|
1965
|
-
height="6"
|
|
1966
|
-
viewBox="0 0 13 6"
|
|
1967
|
-
fill="none"
|
|
1968
|
-
>
|
|
1969
|
-
<path
|
|
1970
|
-
d="M6.5 6L0.5 0H12.5L6.5 6Z"
|
|
1971
|
-
fill="var(--md-sys-color-inverse-surface, #0F0865)"
|
|
1972
|
-
/>
|
|
1973
|
-
</svg>`:u,t=this.label||this.supportingtext;return this.variant==="rich"?c`
|
|
1974
|
-
<div
|
|
1975
|
-
id=${this._tooltipId}
|
|
1976
|
-
class="scb-tooltip hidden"
|
|
1977
|
-
role="tooltip"
|
|
1978
|
-
aria-label=${t}
|
|
1979
|
-
aria-hidden="true"
|
|
1980
|
-
>
|
|
1981
|
-
<div class="scb-tooltip-text-container">
|
|
1982
|
-
<label class="scb-tooltip-label">${this.label}</label>
|
|
1983
|
-
<span class="scb-tooltip-supporting-text">
|
|
1984
|
-
${this.supportingtext}
|
|
1985
|
-
</span>
|
|
1986
|
-
</div>
|
|
1987
|
-
<div class="scb-tooltip-button-container">
|
|
1988
|
-
<slot name="scb-tooltip-button"></slot>
|
|
1989
|
-
</div>
|
|
1990
|
-
</div>
|
|
1991
|
-
<slot @slotchange=${this._onDefaultSlotChange}></slot>
|
|
1992
|
-
`:c`
|
|
1993
|
-
<div
|
|
1994
|
-
id=${this._tooltipId}
|
|
1995
|
-
class="scb-tooltip hidden"
|
|
1996
|
-
role="tooltip"
|
|
1997
|
-
aria-label=${t}
|
|
1998
|
-
aria-hidden="true"
|
|
1999
|
-
>
|
|
2000
|
-
<div class="scb-tooltip-container">
|
|
2001
|
-
<span class="scb-tooltip-supporting-text">
|
|
2002
|
-
${this.supportingtext}
|
|
2003
|
-
</span>
|
|
2004
|
-
</div>
|
|
2005
|
-
${e}
|
|
2006
|
-
</div>
|
|
2007
|
-
<slot @slotchange=${this._onDefaultSlotChange}></slot>
|
|
2008
|
-
`}},a.ScbTooltip.styles=m`
|
|
2009
|
-
:host {
|
|
2010
|
-
position: relative;
|
|
2011
|
-
display: inline-block;
|
|
2012
|
-
--delay: 0.25s;
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
.scb-tooltip {
|
|
2016
|
-
position: absolute;
|
|
2017
|
-
min-width: 120px;
|
|
2018
|
-
max-width: 300px;
|
|
2019
|
-
opacity: 0;
|
|
2020
|
-
visibility: hidden;
|
|
2021
|
-
z-index: 10;
|
|
2022
|
-
transition:
|
|
2023
|
-
opacity var(--delay) ease-in-out,
|
|
2024
|
-
visibility var(--delay) ease-in-out;
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
.scb-tooltip[open] {
|
|
2028
|
-
opacity: 1;
|
|
2029
|
-
visibility: visible;
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
.hidden {
|
|
2033
|
-
visibility: hidden;
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
.scb-tooltip-supporting-text {
|
|
2037
|
-
font-family: var(--brand-font, Inter);
|
|
2038
|
-
font-size: var(--md-sys-typescale-body-small-size);
|
|
2039
|
-
font-style: normal;
|
|
2040
|
-
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
2041
|
-
letter-spacing: var(--md-sys-typescale-body-small-tracking);
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
/* Plain variant */
|
|
2045
|
-
|
|
2046
|
-
:host([variant='plain']) .scb-tooltip {
|
|
2047
|
-
max-width: 184px;
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
:host([variant='plain']) .scb-tooltip-container {
|
|
2051
|
-
display: inline-flex;
|
|
2052
|
-
flex-direction: column;
|
|
2053
|
-
justify-content: center;
|
|
2054
|
-
align-items: center;
|
|
2055
|
-
background: var(--md-sys-color-inverse-surface);
|
|
2056
|
-
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
2057
|
-
min-height: 14px;
|
|
2058
|
-
width: 100%;
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
:host([variant='plain']) .scb-tooltip-supporting-text {
|
|
2062
|
-
padding: var(--spacing-2) var(--spacing-3);
|
|
2063
|
-
color: var(--md-sys-color-inverse-on-surface);
|
|
2064
|
-
}
|
|
2065
|
-
|
|
2066
|
-
.scb-tooltip-arrow {
|
|
2067
|
-
width: 12px;
|
|
2068
|
-
height: 6px;
|
|
2069
|
-
position: absolute;
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
:host([position='top']) .scb-tooltip-arrow {
|
|
2073
|
-
left: 50%;
|
|
2074
|
-
bottom: -6px;
|
|
2075
|
-
transform: translateX(-50%) rotate(0deg);
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
:host([position='right']) .scb-tooltip-arrow {
|
|
2079
|
-
left: -9px;
|
|
2080
|
-
top: 50%;
|
|
2081
|
-
transform: translateY(-50%) rotate(90deg);
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
:host([position='bottom']) .scb-tooltip-arrow {
|
|
2085
|
-
left: 50%;
|
|
2086
|
-
top: -6px;
|
|
2087
|
-
transform: translateX(-50%) rotate(180deg);
|
|
2088
|
-
}
|
|
2089
|
-
|
|
2090
|
-
:host([position='left']) .scb-tooltip-arrow {
|
|
2091
|
-
left: 100%;
|
|
2092
|
-
top: 50%;
|
|
2093
|
-
transform: translateY(-50%) translateX(-3px) rotate(270deg);
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
:host([variant='plain'][arrow='false']) .scb-tooltip-arrow {
|
|
2097
|
-
display: none;
|
|
2098
|
-
}
|
|
2099
|
-
|
|
2100
|
-
/* Rich variant */
|
|
2101
|
-
|
|
2102
|
-
:host([variant='rich']) {
|
|
2103
|
-
align-items: flex-start;
|
|
2104
|
-
gap: var(--spacing-2);
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
:host([variant='rich']) .scb-tooltip {
|
|
2108
|
-
background: var(--md-sys-color-surface-container, #ebf8ff);
|
|
2109
|
-
box-shadow:
|
|
2110
|
-
0 2px 4px -1px rgba(0, 0, 0, 0.2),
|
|
2111
|
-
0 1px 10px 0 rgba(0, 0, 0, 0.12),
|
|
2112
|
-
0 4px 5px 0 rgba(0, 0, 0, 0.14);
|
|
2113
|
-
display: inline-flex;
|
|
2114
|
-
padding-bottom: var(--spacing-3);
|
|
2115
|
-
flex-direction: column;
|
|
2116
|
-
align-items: flex-start;
|
|
2117
|
-
gap: var(--spacing-3);
|
|
2118
|
-
border-radius: var(--md-sys-shape-corner-medium);
|
|
2119
|
-
min-width: 200px;
|
|
2120
|
-
max-width: 300px;
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
:host([variant='rich']) .scb-tooltip-text-container {
|
|
2124
|
-
display: flex;
|
|
2125
|
-
min-width: 220px;
|
|
2126
|
-
padding: var(--spacing-4) var(--spacing-5) var(--spacing-2) var(--spacing-5);
|
|
2127
|
-
align-items: flex-start;
|
|
2128
|
-
gap: var(--spacing-2);
|
|
2129
|
-
flex-direction: column;
|
|
2130
|
-
}
|
|
2131
|
-
|
|
2132
|
-
:host([variant='rich']) .scb-tooltip-label {
|
|
2133
|
-
font-family: var(--brand-font, Inter);
|
|
2134
|
-
font-size: var(--md-sys-typescale-title-small-size);
|
|
2135
|
-
font-style: normal;
|
|
2136
|
-
font-weight: var(--weight-semibold);
|
|
2137
|
-
line-height: var(--md-sys-typescale-title-small-Line-Height);
|
|
2138
|
-
letter-spacing: var(--md-sys-typescale-title-small-Tracking);
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
:host([variant='rich']) .scb-tooltip-supporting-text {
|
|
2142
|
-
color: var(--md-sys-color-on-surface-variant, rgba(11, 5, 68, 0.75));
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
:host([variant='rich']) .scb-tooltip-button-container {
|
|
2146
|
-
display: flex;
|
|
2147
|
-
padding: 0 var(--spacing-3);
|
|
2148
|
-
align-items: center;
|
|
2149
|
-
gap: var(--spacing-3);
|
|
2150
|
-
align-self: stretch;
|
|
2151
|
-
}
|
|
2152
|
-
`,Ce([l({type:String,reflect:!0})],a.ScbTooltip.prototype,"variant",2),Ce([l({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"arrow",2),Ce([l({type:String,attribute:"supporting-text"})],a.ScbTooltip.prototype,"supportingtext",2),Ce([l({type:String})],a.ScbTooltip.prototype,"label",2),Ce([l({type:String,reflect:!0})],a.ScbTooltip.prototype,"trigger",2),Ce([l({type:String,reflect:!0})],a.ScbTooltip.prototype,"position",2),Ce([l({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"open",2),Ce([l({type:Number,reflect:!0})],a.ScbTooltip.prototype,"delay",2),Ce([l({type:Number,reflect:!0})],a.ScbTooltip.prototype,"offset",2),a.ScbTooltip=Ce([g("scb-tooltip")],a.ScbTooltip);var Pc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,Ee=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pc(e,t,r),r};a.ScbIconButton=class extends y{constructor(){super(...arguments),this.ariaLabel="",this.tooltip="",this.variant="standard",this.icon="home",this.toggle=!1,this.selected=!1,this.toggleofficon="add",this.toggleonicon="remove",this.disabled=!1,this.__loadedVariants=new Set,this.__iconLoaded=!1,this.__onInnerChange=()=>{const e=this.__getMdHost(),t=!!(e!=null&&e.selected);this.toggle&&(this.selected=t),this.dispatchEvent(new CustomEvent("change",{detail:{selected:t},bubbles:!0,composed:!0}))}}async firstUpdated(){await this.__ensureDepsLoaded(),await this.updateComplete,this.__attachChangeListener(),this.__syncAria()}updated(e){super.updated(e),e.has("variant")||e.has("toggle")||e.has("icon")||e.has("ariaLabel")||e.has("selected")||e.has("disabled")||e.has("tooltip")?this.__ensureDepsLoaded().then(()=>queueMicrotask(()=>{this.__attachChangeListener(),this.__syncAria()})):queueMicrotask(()=>this.__attachChangeListener())}disconnectedCallback(){var e,t,i;super.disconnectedCallback(),(t=(e=this.__lastBtn)==null?void 0:e.removeEventListener)==null||t.call(e,"change",this.__onInnerChange),this.__lastBtn=null,(i=this.__ariaObserver)==null||i.disconnect()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>nl);break;case"outlined":await Promise.resolve().then(()=>ul);break;case"filled-tonal":await Promise.resolve().then(()=>cl);break;default:await Promise.resolve().then(()=>hl);break}this.__loadedVariants.add(this.variant)}this.__iconLoaded||(await Promise.resolve().then(()=>Re),this.__iconLoaded=!0)}__getMdHost(){const e=this.renderRoot.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button");if(e)return e;const t=this.renderRoot.querySelector("scb-tooltip");if(t){const i=t.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button");if(i)return i}return null}__getInnerButton(e){const t=e==null?void 0:e.shadowRoot;return t?t.querySelector("button")||t.querySelector('[role="button"]'):null}__stripNativeTitles(e){if(!e)return;e.removeAttribute("title");const t=this.__getInnerButton(e);t==null||t.removeAttribute("title");const i=e.shadowRoot;i&&i.querySelectorAll("[title]").forEach(r=>r.removeAttribute("title"))}__syncAria(){var n;const e=this.__getMdHost();if(!e)return;const t=this.__getInnerButton(e),i=(this.ariaLabel||this.getAttribute("aria-label")||"").trim()||this.icon.trim(),r=this.getAttribute("aria-controls"),s=this.getAttribute("aria-expanded");t&&(i?t.setAttribute("aria-label",i):t.removeAttribute("aria-label"),r!==null?t.setAttribute("aria-controls",r):t.removeAttribute("aria-controls"),s!==null?t.setAttribute("aria-expanded",s):t.removeAttribute("aria-expanded"),t.removeAttribute("title")),e.removeAttribute("aria-label"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-expanded"),e.removeAttribute("title"),this.hasAttribute("aria-label")&&this.removeAttribute("aria-label"),this.hasAttribute("aria-controls")&&this.removeAttribute("aria-controls"),this.hasAttribute("aria-expanded")&&this.removeAttribute("aria-expanded"),this.__stripNativeTitles(e),(n=this.__ariaObserver)==null||n.disconnect(),this.__ariaObserver=new MutationObserver(()=>{const h=this.__getMdHost(),p=this.__getInnerButton(h);if(!h||!p)return;const v=(this.ariaLabel||this.getAttribute("aria-label")||"").trim()||this.icon.trim(),f=this.getAttribute("aria-controls"),b=this.getAttribute("aria-expanded");v?p.setAttribute("aria-label",v):p.removeAttribute("aria-label"),f!==null?p.setAttribute("aria-controls",f):p.removeAttribute("aria-controls"),b!==null?p.setAttribute("aria-expanded",b):p.removeAttribute("aria-expanded"),this.__stripNativeTitles(h),h.removeAttribute("aria-label"),h.removeAttribute("aria-controls"),h.removeAttribute("aria-expanded"),h.removeAttribute("title"),this.hasAttribute("aria-label")&&this.removeAttribute("aria-label"),this.hasAttribute("aria-controls")&&this.removeAttribute("aria-controls"),this.hasAttribute("aria-expanded")&&this.removeAttribute("aria-expanded")}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded"]})}__attachChangeListener(){var t,i;const e=this.__getMdHost();e&&e!==this.__lastBtn&&((i=(t=this.__lastBtn)==null?void 0:t.removeEventListener)==null||i.call(t,"change",this.__onInnerChange),e.addEventListener("change",this.__onInnerChange),this.__lastBtn=e),this.toggle&&e&&"selected"in e&&(e.selected=this.selected),this.__stripNativeTitles(e||null)}__renderMd(e=!1){const t=!!e,i=c`
|
|
1842
|
+
`}},ns([l({type:Boolean,reflect:!0})],a.ScbAccordion.prototype,"detached",2),a.ScbAccordion=ns([g("scb-accordion")],a.ScbAccordion);var zc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,$e=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ic(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&zc(e,t,r),r};a.ScbIconButton=class extends y{constructor(){super(...arguments),this.icon="home",this.tooltip="",this.ariaLabel="",this.variant="standard",this.toggle=!1,this.selected=!1,this.toggleofficon="add",this.toggleonicon="remove",this.disabled=!1,this.__loadedVariants=new Set,this.__iconLoaded=!1,this.__lastMdHost=null,this.__onInnerChange=()=>{const e=this.__getMdHost(),t=!!(e!=null&&e.selected);this.toggle&&(this.selected=t),this.dispatchEvent(new CustomEvent("change",{detail:{selected:t},bubbles:!0,composed:!0}))}}async firstUpdated(){await this.__ensureDepsLoaded(),await this.updateComplete,this.__attachChangeListener(),this.__syncTitleAndAria()}updated(e){if(super.updated(e),e.has("variant")){this.__ensureDepsLoaded().then(()=>{queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})});return}(e.has("toggle")||e.has("icon")||e.has("toggleofficon")||e.has("toggleonicon")||e.has("selected")||e.has("disabled")||e.has("tooltip")||e.has("ariaLabel"))&&queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})}disconnectedCallback(){var e,t;(t=(e=this.__lastMdHost)==null?void 0:e.removeEventListener)==null||t.call(e,"change",this.__onInnerChange),this.__lastMdHost=null,super.disconnectedCallback()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>nl);break;case"outlined":await Promise.resolve().then(()=>ul);break;case"filled-tonal":await Promise.resolve().then(()=>cl);break;default:await Promise.resolve().then(()=>hl);break}this.__loadedVariants.add(this.variant)}this.__iconLoaded||(await Promise.resolve().then(()=>De),this.__iconLoaded=!0)}__getMdHost(){return this.renderRoot.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button")}__attachChangeListener(){var t,i;const e=this.__getMdHost();e&&e!==this.__lastMdHost&&((i=(t=this.__lastMdHost)==null?void 0:t.removeEventListener)==null||i.call(t,"change",this.__onInnerChange),e.addEventListener("change",this.__onInnerChange),this.__lastMdHost=e),this.toggle&&e&&"selected"in e&&(e.selected=this.selected)}__syncTitleAndAria(){const e=this.__getMdHost();if(!e)return;const t=(this.tooltip||this.getAttribute("title")||"").trim(),i=(this.ariaLabel||this.getAttribute("aria-label")||"").trim(),r=this.getAttribute("aria-controls"),s=this.getAttribute("aria-expanded");this.tooltip&&this.setAttribute("title",t);const n=i||t||this.icon.trim()||void 0;n?e.setAttribute("aria-label",n):e.removeAttribute("aria-label"),t?e.setAttribute("title",t):e.removeAttribute("title"),r!==null?e.setAttribute("aria-controls",r):e.removeAttribute("aria-controls"),s!==null?e.setAttribute("aria-expanded",s):e.removeAttribute("aria-expanded")}__renderToggleIcons(){return c`
|
|
2153
1843
|
<md-icon aria-hidden="true">${this.toggleofficon}</md-icon>
|
|
2154
1844
|
<md-icon slot="selected" aria-hidden="true">${this.toggleonicon}</md-icon>
|
|
2155
|
-
|
|
1845
|
+
`}__renderSingleIcon(){return c`<md-icon aria-hidden="true">${this.icon}</md-icon>`}__renderMd(){const e=this.toggle?this.__renderToggleIcons():this.__renderSingleIcon();if(this.toggle)switch(this.variant){case"filled":return c`
|
|
2156
1846
|
<md-filled-icon-button
|
|
2157
|
-
?scb-tooltip-button=${t}
|
|
2158
1847
|
toggle
|
|
2159
1848
|
?selected=${this.selected}
|
|
2160
1849
|
?disabled=${this.disabled}
|
|
2161
|
-
|
|
1850
|
+
>
|
|
1851
|
+
${e}
|
|
1852
|
+
</md-filled-icon-button>
|
|
2162
1853
|
`;case"outlined":return c`
|
|
2163
1854
|
<md-outlined-icon-button
|
|
2164
|
-
?scb-tooltip-button=${t}
|
|
2165
1855
|
toggle
|
|
2166
1856
|
?selected=${this.selected}
|
|
2167
1857
|
?disabled=${this.disabled}
|
|
2168
|
-
|
|
1858
|
+
>
|
|
1859
|
+
${e}
|
|
1860
|
+
</md-outlined-icon-button>
|
|
2169
1861
|
`;case"filled-tonal":return c`
|
|
2170
1862
|
<md-filled-tonal-icon-button
|
|
2171
|
-
?scb-tooltip-button=${t}
|
|
2172
1863
|
toggle
|
|
2173
1864
|
?selected=${this.selected}
|
|
2174
1865
|
?disabled=${this.disabled}
|
|
2175
|
-
|
|
1866
|
+
>
|
|
1867
|
+
${e}
|
|
1868
|
+
</md-filled-tonal-icon-button>
|
|
2176
1869
|
`;default:return c`
|
|
2177
|
-
<md-icon-button
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
?selected=${this.selected}
|
|
2181
|
-
?disabled=${this.disabled}
|
|
2182
|
-
>${i}</md-icon-button>
|
|
1870
|
+
<md-icon-button toggle ?selected=${this.selected} ?disabled=${this.disabled}>
|
|
1871
|
+
${e}
|
|
1872
|
+
</md-icon-button>
|
|
2183
1873
|
`}switch(this.variant){case"filled":return c`
|
|
2184
|
-
<md-filled-icon-button ?
|
|
2185
|
-
${
|
|
1874
|
+
<md-filled-icon-button ?disabled=${this.disabled}>
|
|
1875
|
+
${e}
|
|
2186
1876
|
</md-filled-icon-button>
|
|
2187
1877
|
`;case"outlined":return c`
|
|
2188
|
-
<md-outlined-icon-button ?
|
|
2189
|
-
${
|
|
1878
|
+
<md-outlined-icon-button ?disabled=${this.disabled}>
|
|
1879
|
+
${e}
|
|
2190
1880
|
</md-outlined-icon-button>
|
|
2191
1881
|
`;case"filled-tonal":return c`
|
|
2192
|
-
<md-filled-tonal-icon-button ?
|
|
2193
|
-
${
|
|
1882
|
+
<md-filled-tonal-icon-button ?disabled=${this.disabled}>
|
|
1883
|
+
${e}
|
|
2194
1884
|
</md-filled-tonal-icon-button>
|
|
2195
1885
|
`;default:return c`
|
|
2196
|
-
<md-icon-button ?
|
|
2197
|
-
${
|
|
1886
|
+
<md-icon-button ?disabled=${this.disabled}>
|
|
1887
|
+
${e}
|
|
2198
1888
|
</md-icon-button>
|
|
2199
|
-
`}}render(){const e=(this.
|
|
2200
|
-
<scb-tooltip
|
|
2201
|
-
variant="plain"
|
|
2202
|
-
position="top"
|
|
2203
|
-
trigger="hover"
|
|
2204
|
-
.delay=${.12}
|
|
2205
|
-
.arrow=${!0}
|
|
2206
|
-
supporting-text=${e}
|
|
2207
|
-
>
|
|
2208
|
-
${this.__renderMd(!0)}
|
|
2209
|
-
</scb-tooltip>
|
|
2210
|
-
`:this.__renderMd(!1)}},a.ScbIconButton.styles=m``,Ee([l({type:String,attribute:"aria-label"})],a.ScbIconButton.prototype,"ariaLabel",2),Ee([l({type:String})],a.ScbIconButton.prototype,"tooltip",2),Ee([l({type:String})],a.ScbIconButton.prototype,"variant",2),Ee([l({type:String})],a.ScbIconButton.prototype,"icon",2),Ee([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"toggle",2),Ee([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"selected",2),Ee([l({type:String})],a.ScbIconButton.prototype,"toggleofficon",2),Ee([l({type:String})],a.ScbIconButton.prototype,"toggleonicon",2),Ee([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"disabled",2),a.ScbIconButton=Ee([g("scb-icon-button")],a.ScbIconButton);const Dc=Object.freeze(Object.defineProperty({__proto__:null,get ScbIconButton(){return a.ScbIconButton}},Symbol.toStringTag,{value:"Module"}));var Bc=Object.defineProperty,Mc=Object.getOwnPropertyDescriptor,ls=o=>{throw TypeError(o)},B=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bc(e,t,r),r},Io=(o,e,t)=>e.has(o)||ls("Cannot "+t),sr=(o,e,t)=>(Io(o,e,"read from private field"),t?t.call(o):e.get(o)),li=(o,e,t)=>e.has(o)?ls("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),To=(o,e,t,i)=>(Io(o,e,"write to private field"),e.set(o,t),t),cs=(o,e,t)=>(Io(o,e,"access private method"),t),nr,lr,cr,dr,Oo,Lo;a.ScbListItem=class extends y{constructor(){super(...arguments),li(this,dr),this.type="text",this.href="",this.itemHref="",this.target="",this.disabled=!1,this.label="",this.supportingText="",this.overline="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.imgHrefImage="",this.trailing=!1,this.trailingVariant="",this.trailingIcon="",this.density=0,this.noDivider=!1,li(this,nr,!1),li(this,lr,!1),li(this,cr,!1),this.onRowClick=()=>{var i,r;if(this.type==="link"&&(this.href||this.itemHref))return;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("scb-checkbox"),t=(r=this.shadowRoot)==null?void 0:r.querySelector("scb-switch");e&&(e.checked=!e.checked),t&&(t.selected=!t.selected)},li(this,Lo,e=>{var t;if(!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")){if(this.type==="link"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("a[href]");if(i){e.preventDefault(),i.click();return}}e.preventDefault(),this.onRowClick()}})}static get styles(){return m`
|
|
1889
|
+
`}}render(){return this.__renderMd()}},a.ScbIconButton.styles=b``,$e([l({type:String})],a.ScbIconButton.prototype,"icon",2),$e([l({type:String})],a.ScbIconButton.prototype,"tooltip",2),$e([l({type:String,attribute:"aria-label"})],a.ScbIconButton.prototype,"ariaLabel",2),$e([l({type:String})],a.ScbIconButton.prototype,"variant",2),$e([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"toggle",2),$e([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"selected",2),$e([l({type:String})],a.ScbIconButton.prototype,"toggleofficon",2),$e([l({type:String})],a.ScbIconButton.prototype,"toggleonicon",2),$e([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"disabled",2),a.ScbIconButton=$e([g("scb-icon-button")],a.ScbIconButton);const Tc=Object.freeze(Object.defineProperty({__proto__:null,get ScbIconButton(){return a.ScbIconButton}},Symbol.toStringTag,{value:"Module"}));var Oc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,ls=o=>{throw TypeError(o)},B=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Oc(e,t,r),r},Io=(o,e,t)=>e.has(o)||ls("Cannot "+t),sr=(o,e,t)=>(Io(o,e,"read from private field"),t?t.call(o):e.get(o)),li=(o,e,t)=>e.has(o)?ls("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),To=(o,e,t,i)=>(Io(o,e,"write to private field"),e.set(o,t),t),cs=(o,e,t)=>(Io(o,e,"access private method"),t),nr,lr,cr,dr,Oo,Lo;a.ScbListItem=class extends y{constructor(){super(...arguments),li(this,dr),this.type="text",this.href="",this.itemHref="",this.target="",this.disabled=!1,this.label="",this.supportingText="",this.overline="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.imgHrefImage="",this.trailing=!1,this.trailingVariant="",this.trailingIcon="",this.density=0,this.noDivider=!1,li(this,nr,!1),li(this,lr,!1),li(this,cr,!1),this.onRowClick=()=>{var i,r;if(this.type==="link"&&(this.href||this.itemHref))return;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("scb-checkbox"),t=(r=this.shadowRoot)==null?void 0:r.querySelector("scb-switch");e&&(e.checked=!e.checked),t&&(t.selected=!t.selected)},li(this,Lo,e=>{var t;if(!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")){if(this.type==="link"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("a[href]");if(i){e.preventDefault(),i.click();return}}e.preventDefault(),this.onRowClick()}})}static get styles(){return b`
|
|
2211
1890
|
:host {
|
|
2212
1891
|
border-bottom: var(--stroke-border, 1px) solid var(--md-sys-color-outline-variant);
|
|
2213
1892
|
margin-bottom: calc(var(--stroke-border, 1px) * -1);
|
|
@@ -2349,11 +2028,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2349
2028
|
</div>
|
|
2350
2029
|
|
|
2351
2030
|
<md-focus-ring></md-focus-ring>
|
|
2352
|
-
`}},nr=new WeakMap,lr=new WeakMap,cr=new WeakMap,dr=new WeakSet,Oo=async function(){const o=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||o)&&!sr(this,nr)&&(await Promise.resolve().then(()=>
|
|
2031
|
+
`}},nr=new WeakMap,lr=new WeakMap,cr=new WeakMap,dr=new WeakSet,Oo=async function(){const o=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||o)&&!sr(this,nr)&&(await Promise.resolve().then(()=>De),To(this,nr,!0)),this.trailing&&this.trailingVariant==="checkbox"&&!sr(this,lr)&&(await Promise.resolve().then(()=>md),To(this,lr,!0)),this.trailing&&this.trailingVariant==="switch"&&!sr(this,cr)&&(await Promise.resolve().then(()=>Ed),To(this,cr,!0))},Lo=new WeakMap,B([l({type:String,reflect:!0,attribute:"type"})],a.ScbListItem.prototype,"type",2),B([l({type:String})],a.ScbListItem.prototype,"href",2),B([l({type:String,attribute:"item-href"})],a.ScbListItem.prototype,"itemHref",2),B([l({type:String,attribute:"target"})],a.ScbListItem.prototype,"target",2),B([l({type:Boolean,attribute:"disabled"})],a.ScbListItem.prototype,"disabled",2),B([l({type:String,reflect:!0})],a.ScbListItem.prototype,"label",2),B([l({type:String,attribute:"supporting-text"})],a.ScbListItem.prototype,"supportingText",2),B([l({type:String,attribute:"overline"})],a.ScbListItem.prototype,"overline",2),B([l({type:Boolean})],a.ScbListItem.prototype,"leading",2),B([l({type:String,attribute:"leading-variant",reflect:!0})],a.ScbListItem.prototype,"leadingVariant",2),B([l({type:String,attribute:"leading-icon"})],a.ScbListItem.prototype,"leadingIcon",2),B([l({type:String,attribute:"avatar-label"})],a.ScbListItem.prototype,"avatarLabel",2),B([l({type:String,attribute:"avatar-alt"})],a.ScbListItem.prototype,"avatarAlt",2),B([l({type:String,attribute:"avatar-variant"})],a.ScbListItem.prototype,"avatarVariant",2),B([l({type:String,attribute:"avatar-src"})],a.ScbListItem.prototype,"avatarSrc",2),B([l({type:String,reflect:!0,attribute:"img-href-image"})],a.ScbListItem.prototype,"imgHrefImage",2),B([l({type:Boolean})],a.ScbListItem.prototype,"trailing",2),B([l({type:String,attribute:"trailing-variant",reflect:!0})],a.ScbListItem.prototype,"trailingVariant",2),B([l({type:String,attribute:"trailing-icon"})],a.ScbListItem.prototype,"trailingIcon",2),B([l({type:Number,reflect:!0})],a.ScbListItem.prototype,"density",2),B([l({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbListItem.prototype,"noDivider",2),a.ScbListItem=B([g("scb-list-item")],a.ScbListItem);var Pc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,ds=o=>{throw TypeError(o)},Po=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pc(e,t,r),r},hs=(o,e,t)=>e.has(o)||ds("Cannot "+t),Rc=(o,e,t)=>(hs(o,e,"read from private field"),e.get(o)),Bc=(o,e,t)=>e.has(o)?ds("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Mc=(o,e,t,i)=>(hs(o,e,"write to private field"),e.set(o,t),t),hr;a.ScbList=class extends y{constructor(){super(...arguments),Bc(this,hr,!1),this.noDivider=!1,this._onSlotChange=()=>this._setupItems()}async firstUpdated(){Rc(this,hr)||(await Promise.resolve().then(()=>yl),Mc(this,hr,!0)),this._setupItems()}_getItems(){var t;return(((t=this._slotEl)==null?void 0:t.assignedElements({flatten:!0}))??[]).filter(i=>i instanceof HTMLElement)}_setupItems(){var i;this._getItems().forEach((r,s)=>{r.hasAttribute("role")||r.setAttribute("role","listitem"),r.setAttribute("tabindex",s===0?"0":"-1")});const t=(i=this.renderRoot)==null?void 0:i.querySelector("md-list");t&&!t.hasAttribute("data-kbd")&&(t.setAttribute("data-kbd","true"),t.addEventListener("keydown",r=>this._onKeyDown(r)))}_onKeyDown(e){const t=this._getItems();if(!t.length)return;const i=t.findIndex(s=>s.getAttribute("tabindex")==="0"),r=s=>{const n=(s%t.length+t.length)%t.length;t.forEach(p=>p.setAttribute("tabindex","-1"));const h=t[n];h.setAttribute("tabindex","0"),h.focus()};switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),r(i<0?0:i+1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),r(i<0?0:i-1);break;case"Home":e.preventDefault(),r(0);break;case"End":e.preventDefault(),r(t.length-1);break}}render(){return c`
|
|
2353
2032
|
<md-list role="list" @slotchange=${this._onSlotChange}>
|
|
2354
2033
|
<slot></slot>
|
|
2355
2034
|
</md-list>
|
|
2356
|
-
`}},hr=new WeakMap,a.ScbList.styles=[
|
|
2035
|
+
`}},hr=new WeakMap,a.ScbList.styles=[b`
|
|
2357
2036
|
:host {
|
|
2358
2037
|
display: block;
|
|
2359
2038
|
--scb-list-bg: transparent;
|
|
@@ -2373,7 +2052,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2373
2052
|
:host([no-divider]) ::slotted(scb-list-item) {
|
|
2374
2053
|
--stroke-border: 0px;
|
|
2375
2054
|
}
|
|
2376
|
-
`],Po([l({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbList.prototype,"noDivider",2),Po([k("slot")],a.ScbList.prototype,"_slotEl",2),a.ScbList=Po([g("scb-list")],a.ScbList);var
|
|
2055
|
+
`],Po([l({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbList.prototype,"noDivider",2),Po([k("slot")],a.ScbList.prototype,"_slotEl",2),a.ScbList=Po([g("scb-list")],a.ScbList);var Hc=Object.defineProperty,Fc=Object.getOwnPropertyDescriptor,Ot=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hc(e,t,r),r};let Nc=0;a.ScbSearch=class extends y{constructor(){super(...arguments),this.supportingText="Hinted search text",this.value="",this.size="default",this.fullScreen=!1,this._inputFocused=!1,this._visibleSuggestions=0,this._activeIndex=-1,this._listboxId=`scb-search-listbox-${++Nc}`,this._kbMode=!1,this._kbShouldShowRing=!1,this._onGlobalKeydown=e=>{e.key==="Tab"&&(this._kbShouldShowRing=!0,this._inputFocused&&this._updateInputRingVisibility())},this._onGlobalPointerDown=()=>{this._kbShouldShowRing=!1,this._inputFocused&&this._updateInputRingVisibility()},this._listScrollHandler=()=>{const e=this._getActiveItem();this._kbMode&&e&&this._positionOptionRing(e)}}connectedCallback(){super.connectedCallback(),this._onWindowResize=this._onWindowResize.bind(this),window.addEventListener("resize",this._onWindowResize,{passive:!0}),window.addEventListener("keydown",this._onGlobalKeydown,!0),window.addEventListener("pointerdown",this._onGlobalPointerDown,!0)}disconnectedCallback(){const e=this._inputEl();e&&this._boundNativeKeydown&&e.removeEventListener("keydown",this._boundNativeKeydown,!0),this._detachListScrollListener(),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onGlobalKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalPointerDown,!0),super.disconnectedCallback()}firstUpdated(){this._ensureListboxA11y(),this._updateComboboxA11y();const e=this._inputEl();e&&(this._boundNativeKeydown=t=>this._handleKey(t),e.addEventListener("keydown",this._boundNativeKeydown,!0))}updated(){this._ensureListboxA11y(),this._updateComboboxA11y(),this._attachListScrollListener()}render(){const e=(this.value??"").trim().length>0,t=this._inputFocused&&e&&this._hasSuggestions;return c`
|
|
2377
2056
|
<div class="ripple-wrapper">
|
|
2378
2057
|
<md-icon class="leading">${e?"arrow_back":"search"}</md-icon>
|
|
2379
2058
|
|
|
@@ -2407,7 +2086,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2407
2086
|
</scb-list>
|
|
2408
2087
|
<md-focus-ring id="optionRing" class="option-ring"></md-focus-ring>
|
|
2409
2088
|
`:u}
|
|
2410
|
-
`}submit(){const e=this._getActiveItem(),t={value:this.value};e&&(t.active=this._itemPayload(e)),this.dispatchEvent(new CustomEvent("scb-search-submit",{detail:t,bubbles:!0,composed:!0}))}get _hasSuggestions(){return this._visibleSuggestions>=0?this._visibleSuggestions>0:Array.from(this.getElementsByTagName("scb-list-item")).some(t=>!t.hasAttribute("hidden")&&t.style.display!=="none")}_onSlotChange(){this._filterSuggestions(this.value)}_onInput(e){const t=e.target;this.value=t.value,this._filterSuggestions(this.value),this._activeIndex=-1,this._kbMode=!1,this._updateComboboxA11y(),this.dispatchEvent(new CustomEvent("scb-search-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_onFocus(){this._inputFocused=!0,this._updateInputRingVisibility(),this._filterSuggestions(this.value),this._updateComboboxA11y(),this.requestUpdate()}_onBlur(){setTimeout(()=>{this._inputFocused=!1,this._activeIndex=-1,this._kbMode=!1,this._updateInputRingVisibility(),this._updateComboboxA11y(),this._hideOptionRing(),this.requestUpdate()},100)}_updateInputRingVisibility(){var t;const e=(t=this.renderRoot)==null?void 0:t.querySelector(".ripple-wrapper");e&&(this._inputFocused&&this._kbShouldShowRing?e.setAttribute("data-kb-focus","true"):e.removeAttribute("data-kb-focus"))}_handleKey(e){if(!this._inputEl())return;const i=this._getVisibleItems(),r=(this.value??"").trim().length>0,s=this._inputFocused&&r&&i.length>0,n=e.key,h=e.keyCode,p=n==="ArrowDown"||n==="Down"||h===40,v=n==="ArrowUp"||n==="Up"||h===38,f=n==="Home"||h===36,
|
|
2089
|
+
`}submit(){const e=this._getActiveItem(),t={value:this.value};e&&(t.active=this._itemPayload(e)),this.dispatchEvent(new CustomEvent("scb-search-submit",{detail:t,bubbles:!0,composed:!0}))}get _hasSuggestions(){return this._visibleSuggestions>=0?this._visibleSuggestions>0:Array.from(this.getElementsByTagName("scb-list-item")).some(t=>!t.hasAttribute("hidden")&&t.style.display!=="none")}_onSlotChange(){this._filterSuggestions(this.value)}_onInput(e){const t=e.target;this.value=t.value,this._filterSuggestions(this.value),this._activeIndex=-1,this._kbMode=!1,this._updateComboboxA11y(),this.dispatchEvent(new CustomEvent("scb-search-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_onFocus(){this._inputFocused=!0,this._updateInputRingVisibility(),this._filterSuggestions(this.value),this._updateComboboxA11y(),this.requestUpdate()}_onBlur(){setTimeout(()=>{this._inputFocused=!1,this._activeIndex=-1,this._kbMode=!1,this._updateInputRingVisibility(),this._updateComboboxA11y(),this._hideOptionRing(),this.requestUpdate()},100)}_updateInputRingVisibility(){var t;const e=(t=this.renderRoot)==null?void 0:t.querySelector(".ripple-wrapper");e&&(this._inputFocused&&this._kbShouldShowRing?e.setAttribute("data-kb-focus","true"):e.removeAttribute("data-kb-focus"))}_handleKey(e){if(!this._inputEl())return;const i=this._getVisibleItems(),r=(this.value??"").trim().length>0,s=this._inputFocused&&r&&i.length>0,n=e.key,h=e.keyCode,p=n==="ArrowDown"||n==="Down"||h===40,v=n==="ArrowUp"||n==="Up"||h===38,f=n==="Home"||h===36,m=n==="End"||h===35,x=n==="Enter"||h===13,_=n==="Escape"||n==="Esc"||h===27;if(p){if(!s)return;e.preventDefault(),this._kbMode=!0,this._moveActive(i,1);return}if(v){if(!s)return;e.preventDefault(),this._kbMode=!0,this._moveActive(i,-1);return}if(f){if(!s)return;e.preventDefault(),this._kbMode=!0,this._activeIndex=i.length?0:-1,this._updateComboboxA11y(),this._scrollActiveIntoView();return}if(m){if(!s)return;e.preventDefault(),this._kbMode=!0,this._activeIndex=i.length?i.length-1:-1,this._updateComboboxA11y(),this._scrollActiveIntoView();return}if(x){if(!s){this.submit();return}e.preventDefault();const S=this._getActiveItem();if(S){const C=S.getAttribute("label")||"";this.value=C,this.dispatchEvent(new CustomEvent("scb-search-submit",{detail:{value:this.value,active:this._itemPayload(S)},bubbles:!0,composed:!0})),this._visibleSuggestions=0,this._activeIndex=-1,this._kbMode=!1,this._hideOptionRing(),this.requestUpdate()}else this.submit();return}if(_){e.preventDefault(),this._clearInput();return}}_clearInput(){this.value="",this._activeIndex=-1,this._kbMode=!1;const e=this._inputEl();e==null||e.focus(),e&&(e.value=""),this._filterSuggestions(""),this._updateComboboxA11y(),this._hideOptionRing(),this.dispatchEvent(new CustomEvent("scb-search-clear",{bubbles:!0,composed:!0}))}_filterSuggestions(e){const t=(e??"").trim().toLowerCase(),i=Array.from(this.querySelectorAll("scb-list-item"));let r=0;for(const s of i){const n=(s.getAttribute("label")||"").toLowerCase(),h=(s.getAttribute("supporting-text")||"").toLowerCase(),p=`${n} ${h}`.trim();t!==""&&p.includes(t)?(s.removeAttribute("hidden"),r++):s.setAttribute("hidden",""),this._ensureOptionA11y(s)}this._visibleSuggestions=r,this._activeIndex>=r&&(this._activeIndex=-1),this._updateComboboxA11y(),this.requestUpdate()}_inputEl(){var e;return((e=this.renderRoot)==null?void 0:e.querySelector("#searchInput"))??null}_listEl(){var e;return((e=this.renderRoot)==null?void 0:e.querySelector("scb-list.suggestion-list"))??null}_ringEl(){var e;return((e=this.renderRoot)==null?void 0:e.querySelector("#optionRing"))??null}_getVisibleItems(){return Array.from(this.querySelectorAll("scb-list-item")).filter(t=>!t.hasAttribute("hidden")&&t.style.display!=="none")}_getActiveItem(){const e=this._getVisibleItems();return this._activeIndex<0||this._activeIndex>=e.length?null:e[this._activeIndex]??null}_moveActive(e,t){if(!e.length){this._activeIndex=-1,this._updateComboboxA11y(),this._hideOptionRing();return}let i=this._activeIndex+t;this._activeIndex===-1?i=t>0?0:e.length-1:(i<0&&(i=0),i>=e.length&&(i=e.length-1)),this._activeIndex=i,this._updateComboboxA11y(),this._scrollActiveIntoView()}_scrollActiveIntoView(){const e=this._getActiveItem();e&&e.scrollIntoView({block:"nearest"})}_itemPayload(e){return{label:e.getAttribute("label")||"",supportingText:e.getAttribute("supporting-text")||"",href:e.getAttribute("href")||"",type:e.getAttribute("type")||"",id:e.id||""}}_ensureListboxA11y(){const e=this._listEl();e&&(e.id||(e.id=this._listboxId),e.setAttribute("role","listbox"),e.setAttribute("aria-label","Sökförslag")),Array.from(this.querySelectorAll("scb-list-item")).forEach(i=>this._ensureOptionA11y(i))}_ensureOptionA11y(e){e.id||(e.id=`${this._listboxId}-opt-${Math.random().toString(36).slice(2,8)}`),e.setAttribute("role","option"),e.setAttribute("tabindex","-1")}_updateComboboxA11y(){const e=this._inputEl();if(!e)return;const t=this._getVisibleItems(),i=(this.value??"").trim().length>0,r=this._inputFocused&&i&&t.length>0;e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls",this._listboxId),e.setAttribute("aria-expanded",String(r));const s=r?this._getActiveItem():null;s!=null&&s.id?e.setAttribute("aria-activedescendant",s.id):e.removeAttribute("aria-activedescendant"),this._kbMode&&s&&r?this._positionOptionRing(s):this._hideOptionRing()}_positionOptionRing(e){const t=this._ringEl(),i=this._listEl();if(!t||!i)return;const r=this.getBoundingClientRect(),s=e.getBoundingClientRect(),n=s.top-r.top,h=s.left-r.left,p=s.width,v=s.height;t.style.top=`${n}px`,t.style.left=`${h}px`,t.style.width=`${p}px`,t.style.height=`${v}px`,t.setAttribute("data-show","true")}_hideOptionRing(){const e=this._ringEl();e&&e.removeAttribute("data-show")}_onWindowResize(){const e=this._getActiveItem();this._kbMode&&e&&this._positionOptionRing(e)}_attachListScrollListener(){const e=this._listEl();!e||this._listWithHandler===e||(this._detachListScrollListener(),e.addEventListener("scroll",this._listScrollHandler,{passive:!0}),this._listWithHandler=e)}_detachListScrollListener(){this._listWithHandler&&(this._listWithHandler.removeEventListener("scroll",this._listScrollHandler),this._listWithHandler=void 0)}},a.ScbSearch.styles=b`
|
|
2411
2090
|
:host {
|
|
2412
2091
|
display: flex;
|
|
2413
2092
|
flex-direction: column;
|
|
@@ -2594,7 +2273,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2594
2273
|
@media (prefers-color-scheme: dark) {
|
|
2595
2274
|
:host { color: var(--md-sys-color-on-surface); }
|
|
2596
2275
|
}
|
|
2597
|
-
`,Ot([l({type:String,attribute:"trailing-icon"})],a.ScbSearch.prototype,"trailingIcon",2),Ot([l({type:String,attribute:"supporting-text"})],a.ScbSearch.prototype,"supportingText",2),Ot([l({type:String})],a.ScbSearch.prototype,"value",2),Ot([l({type:String,reflect:!0})],a.ScbSearch.prototype,"size",2),Ot([l({type:Boolean,attribute:"full-screen",reflect:!0})],a.ScbSearch.prototype,"fullScreen",2),a.ScbSearch=Ot([g("scb-search")],a.ScbSearch);var
|
|
2276
|
+
`,Ot([l({type:String,attribute:"trailing-icon"})],a.ScbSearch.prototype,"trailingIcon",2),Ot([l({type:String,attribute:"supporting-text"})],a.ScbSearch.prototype,"supportingText",2),Ot([l({type:String})],a.ScbSearch.prototype,"value",2),Ot([l({type:String,reflect:!0})],a.ScbSearch.prototype,"size",2),Ot([l({type:Boolean,attribute:"full-screen",reflect:!0})],a.ScbSearch.prototype,"fullScreen",2),a.ScbSearch=Ot([g("scb-search")],a.ScbSearch);var qc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,Ce=(o,e,t,i)=>{for(var r=i>1?void 0:i?Vc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&qc(e,t,r),r};a.ScbAvatar=class extends y{constructor(){super(...arguments),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this._imgError=!1,this._hasIconSlot=!1,this._onImgLoad=()=>{this._imgError=!1,this.dispatchEvent(new CustomEvent("image-load",{bubbles:!0,composed:!0}))},this._onImgError=()=>{this._imgError=!0,this.dispatchEvent(new CustomEvent("image-error",{bubbles:!0,composed:!0}))},this._onIconSlotChange=e=>{const t=e.currentTarget;this._hasIconSlot=(t.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await Promise.resolve().then(()=>De)}_initials(){const e=(this.label||this.alt||"").trim();if(!e)return"?";const t=e.split(/\s+/).filter(Boolean);if(t.length===1)return t[0].slice(0,1).toUpperCase();const i=t[0].slice(0,1),r=t[t.length-1].slice(0,1);return(i+r).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,i=c`${u}
|
|
2598
2277
|
<slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
|
|
2599
2278
|
${this._hasIconSlot?u:this.iconName?c`<md-icon aria-hidden="true">${this.iconName}</md-icon>`:c`<div class="fallback" part="fallback">${this._initials()}</div>`}
|
|
2600
2279
|
`,r=t?c`<img class="photo" part="image" src=${this.src} alt=${this.alt}
|
|
@@ -2605,7 +2284,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2605
2284
|
<div class="container" part="container" role="img" aria-label=${e??u}>
|
|
2606
2285
|
${this.variant==="icon"?i:r}
|
|
2607
2286
|
</div>
|
|
2608
|
-
`}},a.ScbAvatar.styles=
|
|
2287
|
+
`}},a.ScbAvatar.styles=b`
|
|
2609
2288
|
:host {
|
|
2610
2289
|
display: inline-block;
|
|
2611
2290
|
vertical-align: middle;
|
|
@@ -2691,7 +2370,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2691
2370
|
outline-offset: 2px;
|
|
2692
2371
|
border-radius: var(--_radius);
|
|
2693
2372
|
}
|
|
2694
|
-
`,
|
|
2373
|
+
`,Ce([l({type:String})],a.ScbAvatar.prototype,"src",2),Ce([l({type:String})],a.ScbAvatar.prototype,"alt",2),Ce([l({type:String})],a.ScbAvatar.prototype,"label",2),Ce([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"size",2),Ce([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"shape",2),Ce([l({type:String,attribute:"icon-name",reflect:!0})],a.ScbAvatar.prototype,"iconName",2),Ce([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"variant",2),Ce([w()],a.ScbAvatar.prototype,"_imgError",2),Ce([w()],a.ScbAvatar.prototype,"_hasIconSlot",2),a.ScbAvatar=Ce([g("scb-avatar")],a.ScbAvatar);var Uc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,ci=(o,e,t,i)=>{for(var r=i>1?void 0:i?jc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Uc(e,t,r),r};a.ScbAppBar=class extends y{constructor(){super(...arguments),this.title="",this.type="default",this.position="default",this.searchSupportingText=""}handleAvatarSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(r=>{r.tagName==="SCB-AVATAR"&&r.setAttribute("size","small")})}updated(e){e.has("title")&&this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:this.title},bubbles:!0,composed:!0})),e.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),e.has("type")&&this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),e.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0}))}render(){switch(this.type){case"small-flexible":return c`
|
|
2695
2374
|
<header class="small-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label="Small app bar">
|
|
2696
2375
|
<div class="leading">
|
|
2697
2376
|
<slot name="leading"></slot>
|
|
@@ -2752,7 +2431,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2752
2431
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
2753
2432
|
</div>
|
|
2754
2433
|
</header>
|
|
2755
|
-
`}}},a.ScbAppBar.styles=[
|
|
2434
|
+
`}}},a.ScbAppBar.styles=[b`
|
|
2756
2435
|
:host {
|
|
2757
2436
|
display: block;
|
|
2758
2437
|
font-family: var(--brand, Inter);
|
|
@@ -2849,7 +2528,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2849
2528
|
display: flex;
|
|
2850
2529
|
align-items: center;
|
|
2851
2530
|
}
|
|
2852
|
-
`],ci([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"title",2),ci([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"type",2),ci([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"position",2),ci([l({type:String,attribute:"search-supporting-text",reflect:!0})],a.ScbAppBar.prototype,"searchSupportingText",2),a.ScbAppBar=ci([g("scb-app-bar")],a.ScbAppBar);var
|
|
2531
|
+
`],ci([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"title",2),ci([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"type",2),ci([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"position",2),ci([l({type:String,attribute:"search-supporting-text",reflect:!0})],a.ScbAppBar.prototype,"searchSupportingText",2),a.ScbAppBar=ci([g("scb-app-bar")],a.ScbAppBar);var Wc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,Me=(o,e,t,i)=>{for(var r=i>1?void 0:i?Kc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Wc(e,t,r),r};a.ScbBadge=class extends y{constructor(){super(...arguments),this._slotClickHandler=e=>{var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),i=e.target;i&&i!==t&&i.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.position="relative",this.positionTop=0,this.positionRight=12,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");this.autoHide&&e&&e.addEventListener("click",this._slotClickHandler)}updated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(this.autoHide?e.addEventListener("click",this._slotClickHandler):e.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}render(){this.style.setProperty("--scb-badge-absolute-top",this.positionTop+"px"),this.style.setProperty("--scb-badge-absolute-right",this.positionRight+"px");let e=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(e=this.value.slice(0,4)+"+");const t=this.variant==="value"&&!this.value?"badge-value-empty":"",i=this._badgeVisible?"":"badge--hide",r=this.label||(this.variant==="dot"?"Indikator":`Märke: ${e}`);return c`
|
|
2853
2532
|
<div class="badge-content">
|
|
2854
2533
|
<slot></slot>
|
|
2855
2534
|
<div
|
|
@@ -2858,7 +2537,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2858
2537
|
aria-label="${this.variant==="dot",r}"
|
|
2859
2538
|
aria-hidden="${this.variant==="dot"&&!this.label?"true":"false"}">${this.variant==="dot"?"":e}</div>
|
|
2860
2539
|
</div>
|
|
2861
|
-
`}},a.ScbBadge.styles=
|
|
2540
|
+
`}},a.ScbBadge.styles=b`
|
|
2862
2541
|
:host {
|
|
2863
2542
|
display: block;
|
|
2864
2543
|
position: relative;
|
|
@@ -2924,7 +2603,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2924
2603
|
* @license
|
|
2925
2604
|
* Copyright 2018 Google LLC
|
|
2926
2605
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2927
|
-
*/const di=o=>o??u;var
|
|
2606
|
+
*/const di=o=>o??u;var Gc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,ps=o=>{throw TypeError(o)},vt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Gc(e,t,r),r},Xc=(o,e,t)=>e.has(o)||ps("Cannot "+t),Zc=(o,e,t)=>(Xc(o,e,"read from private field"),t?t.call(o):e.get(o)),Jc=(o,e,t)=>e.has(o)?ps("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Do;a.ScbLink=class extends y{constructor(){super(...arguments),this.href="",this.disabled=!1,this.ariaLabel="",Jc(this,Do,e=>{this.disabled&&(e.preventDefault(),e.stopPropagation())})}render(){const e=this.target==="_blank"&&!this.rel?"noopener noreferrer":this.rel;return c`
|
|
2928
2607
|
<a
|
|
2929
2608
|
part="anchor"
|
|
2930
2609
|
href=${di(this.disabled?void 0:this.href||void 0)}
|
|
@@ -2933,11 +2612,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2933
2612
|
download=${di(this.download)}
|
|
2934
2613
|
aria-disabled=${this.disabled?"true":"false"}
|
|
2935
2614
|
aria-label=${di(this.ariaLabel||void 0)}
|
|
2936
|
-
@click=${
|
|
2615
|
+
@click=${Zc(this,Do)}
|
|
2937
2616
|
><slot></slot></a>
|
|
2938
2617
|
|
|
2939
2618
|
<md-focus-ring></md-focus-ring>
|
|
2940
|
-
`}},
|
|
2619
|
+
`}},Do=new WeakMap,a.ScbLink.styles=b`
|
|
2941
2620
|
:host {
|
|
2942
2621
|
display: inline-block;
|
|
2943
2622
|
position: relative;
|
|
@@ -2980,7 +2659,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2980
2659
|
a:focus-visible + md-focus-ring {
|
|
2981
2660
|
display: block;
|
|
2982
2661
|
}
|
|
2983
|
-
`,vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"href",2),vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"target",2),vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"rel",2),vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"download",2),vt([l({type:Boolean,reflect:!0})],a.ScbLink.prototype,"disabled",2),vt([l({type:String,attribute:"aria-label"})],a.ScbLink.prototype,"ariaLabel",2),a.ScbLink=vt([g("scb-link")],a.ScbLink);var
|
|
2662
|
+
`,vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"href",2),vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"target",2),vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"rel",2),vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"download",2),vt([l({type:Boolean,reflect:!0})],a.ScbLink.prototype,"disabled",2),vt([l({type:String,attribute:"aria-label"})],a.ScbLink.prototype,"ariaLabel",2),a.ScbLink=vt([g("scb-link")],a.ScbLink);var Qc=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,pr=(o,e,t,i)=>{for(var r=i>1?void 0:i?ed(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Qc(e,t,r),r};a.SCBBreadcrumbItem=class extends y{constructor(){super(...arguments),this.label="",this.isCurrent=!1,this.href=""}static get styles(){return b`
|
|
2984
2663
|
.breadcrumb-separator {
|
|
2985
2664
|
margin: var(--spacing-0) var(--spacing-3);
|
|
2986
2665
|
color: var(--md-sys-color-on-surface);
|
|
@@ -2994,7 +2673,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
2994
2673
|
`}updated(e){e.has("isCurrent")&&this.dispatchEvent(new CustomEvent("current-changed",{detail:{isCurrent:this.isCurrent},bubbles:!0,composed:!0}))}render(){switch(!0){case this.isCurrent:return c`<span class="breadcrumb-current">${this.label}</span>`;default:return c`
|
|
2995
2674
|
<scb-link href="${this.href}">${this.label}</scb-link>
|
|
2996
2675
|
<span class="breadcrumb-separator">/</span>
|
|
2997
|
-
`}}},pr([l({type:String})],a.SCBBreadcrumbItem.prototype,"label",2),pr([l({type:Boolean,attribute:"is-current",reflect:!0})],a.SCBBreadcrumbItem.prototype,"isCurrent",2),pr([l({type:String,attribute:"item-href"})],a.SCBBreadcrumbItem.prototype,"href",2),a.SCBBreadcrumbItem=pr([g("scb-breadcrumb-item")],a.SCBBreadcrumbItem);var
|
|
2676
|
+
`}}},pr([l({type:String})],a.SCBBreadcrumbItem.prototype,"label",2),pr([l({type:Boolean,attribute:"is-current",reflect:!0})],a.SCBBreadcrumbItem.prototype,"isCurrent",2),pr([l({type:String,attribute:"item-href"})],a.SCBBreadcrumbItem.prototype,"href",2),a.SCBBreadcrumbItem=pr([g("scb-breadcrumb-item")],a.SCBBreadcrumbItem);var td=Object.defineProperty,id=Object.getOwnPropertyDescriptor,us=(o,e,t,i)=>{for(var r=i>1?void 0:i?id(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&td(e,t,r),r};a.SCBBreadcrumb=class extends y{constructor(){super(...arguments),this.showAll=!1}static get styles(){return b`
|
|
2998
2677
|
.scb-breadcrumb {
|
|
2999
2678
|
display: flex;
|
|
3000
2679
|
align-items: center;
|
|
@@ -3080,7 +2759,126 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3080
2759
|
<span class="breadcrumb-separator">/</span>
|
|
3081
2760
|
${i}`:c`${i}`):e.map(i=>i)}
|
|
3082
2761
|
</div>
|
|
3083
|
-
`}},us([l({type:Boolean,attribute:"show-all",reflect:!0})],a.SCBBreadcrumb.prototype,"showAll",2),a.SCBBreadcrumb=us([g("scb-breadcrumb")],a.SCBBreadcrumb);var
|
|
2762
|
+
`}},us([l({type:Boolean,attribute:"show-all",reflect:!0})],a.SCBBreadcrumb.prototype,"showAll",2),a.SCBBreadcrumb=us([g("scb-breadcrumb")],a.SCBBreadcrumb);var rd=Object.defineProperty,od=Object.getOwnPropertyDescriptor,Ee=(o,e,t,i)=>{for(var r=i>1?void 0:i?od(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&rd(e,t,r),r};a.ScbButton=class extends y{constructor(){super(...arguments),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel=""}__getMdHost(){return this.renderRoot.querySelector("md-filled-button, md-outlined-button, md-filled-tonal-button, md-text-button")}__getInnerNativeButton(e){var t;return((t=e==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("button"))??null}__syncAriaToInner(){var v;const e=this.__getMdHost(),t=this.__getInnerNativeButton(e);if(!e||!t)return;const i=(this.getAttribute("aria-label")||"").trim(),r=(e.getAttribute("aria-label")||"").trim(),s=this.label.trim()===""?(this.icon||"").trim():"",n=i||r||s;n?t.setAttribute("aria-label",n):t.removeAttribute("aria-label");const h=this.getAttribute("aria-controls");h!==null?t.setAttribute("aria-controls",h):t.removeAttribute("aria-controls");const p=this.getAttribute("aria-expanded");p!==null?t.setAttribute("aria-expanded",p):t.removeAttribute("aria-expanded"),e.removeAttribute("aria-label"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-expanded"),this.removeAttribute("aria-expanded"),(v=this.__ariaObserver)==null||v.disconnect(),this.__ariaObserver=new MutationObserver(f=>{const m=this.__getMdHost(),x=this.__getInnerNativeButton(m);if(!(!m||!x)){for(const _ of f){if(_.type!=="attributes"||!_.attributeName)continue;const S=_.attributeName,C=this.getAttribute(S);if(S==="aria-label"){const E=(m.getAttribute("aria-label")||"").trim(),A=(C||E||(this.label.trim()===""?(this.icon||"").trim():"")).trim();A?x.setAttribute("aria-label",A):x.removeAttribute("aria-label"),m.removeAttribute("aria-label")}else(S==="aria-controls"||S==="aria-expanded")&&(C===null?x.removeAttribute(S):x.setAttribute(S,C),S==="aria-expanded"&&this.removeAttribute("aria-expanded"))}m.removeAttribute("aria-label"),m.removeAttribute("aria-controls"),m.removeAttribute("aria-expanded")}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded"]})}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const e=this.closest("form");e&&(this.type==="submit"&&e.requestSubmit(),this.type==="reset"&&e.reset())}}),this.__syncAriaToInner()}updated(e){e.has("variant")&&this.__syncAriaToInner()}disconnectedCallback(){var e;(e=this.__ariaObserver)==null||e.disconnect(),super.disconnectedCallback()}static get styles(){return b`
|
|
2763
|
+
/* Gör hosten stretchbar i t.ex. flex/grid */
|
|
2764
|
+
:host {
|
|
2765
|
+
display: inline-flex;
|
|
2766
|
+
block-size: var(--scb-button-block-size, auto);
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
/* Låt inre md-knappen fylla hostens höjd*/
|
|
2770
|
+
md-filled-button,
|
|
2771
|
+
md-outlined-button,
|
|
2772
|
+
md-filled-tonal-button,
|
|
2773
|
+
md-text-button {
|
|
2774
|
+
block-size: 100%;
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
/* Errorvarianter */
|
|
2778
|
+
/*
|
|
2779
|
+
md-filled-button[variant='error'],
|
|
2780
|
+
md-outlined-button[variant='error'],
|
|
2781
|
+
md-filled-tonal-button[variant='error'],
|
|
2782
|
+
md-text-button[variant='error'] {
|
|
2783
|
+
--md-sys-color-primary: var(--md-sys-color-error);
|
|
2784
|
+
--md-sys-color-on-primary: var(--md-sys-color-on-error);
|
|
2785
|
+
}
|
|
2786
|
+
*/
|
|
2787
|
+
|
|
2788
|
+
/* Outlined – röd outline vid error + tjockare vid hover */
|
|
2789
|
+
/*
|
|
2790
|
+
md-outlined-button[variant='error'] {
|
|
2791
|
+
--_outline-color: var(--md-sys-color-error);
|
|
2792
|
+
--md-outlined-button-pressed-outline-color: var(--md-sys-color-error);
|
|
2793
|
+
}
|
|
2794
|
+
*/
|
|
2795
|
+
/* md-outlined-button[variant='error']:hover, */
|
|
2796
|
+
md-outlined-button:hover {
|
|
2797
|
+
--md-outlined-button-outline-width: var(--spacing-1, 1px);
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
/* Filled-tonal – error-färger */
|
|
2801
|
+
/*
|
|
2802
|
+
md-filled-tonal-button[variant='error'] {
|
|
2803
|
+
--md-filled-tonal-button-container-color: var(--md-sys-color-error-container);
|
|
2804
|
+
--md-filled-tonal-button-label-text-color: var(--md-sys-color-on-error-container);
|
|
2805
|
+
--md-filled-tonal-button-hover-label-text-color: var(--md-sys-color-on-error-container);
|
|
2806
|
+
--md-filled-tonal-button-pressed-label-text-color: var(--md-sys-color-on-error-container);
|
|
2807
|
+
--md-filled-tonal-button-focus-label-text-color: var(--md-sys-color-on-error-container);
|
|
2808
|
+
--md-filled-tonal-button-icon-color: var(--md-sys-color-on-error-container);
|
|
2809
|
+
--md-filled-tonal-button-hover-icon-color: var(--md-sys-color-on-error-container);
|
|
2810
|
+
--md-filled-tonal-button-pressed-icon-color: var(--md-sys-color-on-error-container);
|
|
2811
|
+
--md-filled-tonal-button-focus-icon-color: var(--md-sys-color-on-error-container);
|
|
2812
|
+
--md-filled-tonal-button-hover-state-layer-color: var(--md-sys-color-on-error-container);
|
|
2813
|
+
--md-filled-tonal-button-pressed-state-layer-color: var(--md-sys-color-on-error-container);
|
|
2814
|
+
}
|
|
2815
|
+
@media (prefers-color-scheme: dark) {
|
|
2816
|
+
md-filled-tonal-button[variant='error'] {
|
|
2817
|
+
--md-filled-tonal-button-container-color: var(--md-sys-color-on-error);
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
*/
|
|
2821
|
+
`}render(){var s;const e=!!((s=this.icon)!=null&&s.trim()),t=e?c`<md-icon slot="icon">${this.icon}</md-icon>`:u,i=u,r=this.label.trim()===""?this.icon:void 0;switch(this.variant){case"filled":return c`
|
|
2822
|
+
<md-filled-button
|
|
2823
|
+
type=${this.type}
|
|
2824
|
+
variant=${i}
|
|
2825
|
+
?trailing-icon=${this.trailingIcon}
|
|
2826
|
+
?disabled=${this.disabled}
|
|
2827
|
+
aria-label=${r}
|
|
2828
|
+
href=${this.href||u}
|
|
2829
|
+
target=${this.target||u}
|
|
2830
|
+
rel=${this.rel||u}
|
|
2831
|
+
>
|
|
2832
|
+
${e&&!this.trailingIcon?t:u}
|
|
2833
|
+
${this.label}
|
|
2834
|
+
${e&&this.trailingIcon?t:u}
|
|
2835
|
+
</md-filled-button>
|
|
2836
|
+
`;case"outlined":return c`
|
|
2837
|
+
<md-outlined-button
|
|
2838
|
+
type=${this.type}
|
|
2839
|
+
variant=${i}
|
|
2840
|
+
?trailing-icon=${this.trailingIcon}
|
|
2841
|
+
?disabled=${this.disabled}
|
|
2842
|
+
aria-label=${r}
|
|
2843
|
+
href=${this.href||u}
|
|
2844
|
+
target=${this.target||u}
|
|
2845
|
+
rel=${this.rel||u}
|
|
2846
|
+
>
|
|
2847
|
+
${e&&!this.trailingIcon?t:u}
|
|
2848
|
+
${this.label}
|
|
2849
|
+
${e&&this.trailingIcon?t:u}
|
|
2850
|
+
</md-outlined-button>
|
|
2851
|
+
`;case"filled-tonal":return c`
|
|
2852
|
+
<md-filled-tonal-button
|
|
2853
|
+
type=${this.type}
|
|
2854
|
+
variant=${i}
|
|
2855
|
+
?trailing-icon=${this.trailingIcon}
|
|
2856
|
+
?disabled=${this.disabled}
|
|
2857
|
+
aria-label=${r}
|
|
2858
|
+
href=${this.href||u}
|
|
2859
|
+
target=${this.target||u}
|
|
2860
|
+
rel=${this.rel||u}
|
|
2861
|
+
>
|
|
2862
|
+
${e&&!this.trailingIcon?t:u}
|
|
2863
|
+
${this.label}
|
|
2864
|
+
${e&&this.trailingIcon?t:u}
|
|
2865
|
+
</md-filled-tonal-button>
|
|
2866
|
+
`;case"text":return c`
|
|
2867
|
+
<md-text-button
|
|
2868
|
+
type=${this.type}
|
|
2869
|
+
variant=${i}
|
|
2870
|
+
?trailing-icon=${this.trailingIcon}
|
|
2871
|
+
?disabled=${this.disabled}
|
|
2872
|
+
aria-label=${r}
|
|
2873
|
+
href=${this.href||u}
|
|
2874
|
+
target=${this.target||u}
|
|
2875
|
+
rel=${this.rel||u}
|
|
2876
|
+
>
|
|
2877
|
+
${e&&!this.trailingIcon?t:u}
|
|
2878
|
+
${this.label}
|
|
2879
|
+
${e&&this.trailingIcon?t:u}
|
|
2880
|
+
</md-text-button>
|
|
2881
|
+
`;default:return c``}}},Ee([l({type:String,reflect:!0})],a.ScbButton.prototype,"variant",2),Ee([l({type:String,reflect:!0})],a.ScbButton.prototype,"type",2),Ee([l({type:String})],a.ScbButton.prototype,"label",2),Ee([l({type:Boolean,attribute:"trailing-icon"})],a.ScbButton.prototype,"trailingIcon",2),Ee([l({type:String})],a.ScbButton.prototype,"icon",2),Ee([l({type:Boolean,reflect:!0})],a.ScbButton.prototype,"disabled",2),Ee([l({type:String})],a.ScbButton.prototype,"href",2),Ee([l({type:String})],a.ScbButton.prototype,"target",2),Ee([l({type:String})],a.ScbButton.prototype,"rel",2),a.ScbButton=Ee([g("scb-button")],a.ScbButton);var ad=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,N=(o,e,t,i)=>{for(var r=i>1?void 0:i?sd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ad(e,t,r),r};a.ScbCalendarCard=class extends y{constructor(){super(...arguments),this.variant="default",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="stretch"}async firstUpdated(){a.ScbCalendarCard.__iconLoaded||(await Promise.resolve().then(()=>De),a.ScbCalendarCard.__iconLoaded=!0),a.ScbCalendarCard.__rippleLoaded||(await Promise.resolve().then(()=>Ii),a.ScbCalendarCard.__rippleLoaded=!0),this.__applyInnerSizing()}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",i=this.cardHref?"clickable":"",r=1,s="Jan",n=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",h=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",p=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",v=`${n?`inline-size:${n};`:""}${h?`block-size:${h};`:""}${p?`aspect-ratio:${p};`:""}`;return c`
|
|
3084
2882
|
<div
|
|
3085
2883
|
class="calendar-card ${t} ${i} ${e}"
|
|
3086
2884
|
role="${this.cardHref?"link":"group"}"
|
|
@@ -3107,7 +2905,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3107
2905
|
</div>
|
|
3108
2906
|
</div>
|
|
3109
2907
|
<md-focus-ring></md-focus-ring>
|
|
3110
|
-
`}__applyInnerSizing(){const e=this.renderRoot.querySelector(".calendar-card");if(!e)return;this.width&&this.width.trim()!==""?(e.style.inlineSize="100%",e.style.maxInlineSize="100%"):(e.style.removeProperty("inline-size"),e.style.removeProperty("max-inline-size")),this.height&&this.height.trim()!==""||this.sizing==="stretch"?e.style.blockSize="100%":e.style.removeProperty("block-size"),this.maxHeight&&this.maxHeight.trim()!==""?e.style.maxBlockSize="100%":e.style.removeProperty("max-block-size")}_onKeyDown(e){(e.key==="Enter"||e.key===" ")&&this.cardHref&&(window.open(this.cardHref,"_self"),e.preventDefault())}_handleHrefNavigation(){this.cardHref&&(this.cardHrefNav==="tab"?window.open(this.cardHref,"_blank"):this.cardHrefNav==="window"?window.open(this.cardHref,"_blank","noopener,noreferrer,width=800,height=600"):window.open(this.cardHref,"_self"))}updated(e){e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("minWidth")&&(this.minWidth?this.style.minInlineSize=this.minWidth:this.style.removeProperty("min-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("minHeight")&&(this.minHeight?this.style.minBlockSize=this.minHeight:this.style.removeProperty("min-block-size")),(e.has("width")||e.has("height")||e.has("maxHeight")||e.has("sizing"))&&this.__applyInnerSizing()}},a.ScbCalendarCard.__iconLoaded=!1,a.ScbCalendarCard.__rippleLoaded=!1,a.ScbCalendarCard.styles=
|
|
2908
|
+
`}__applyInnerSizing(){const e=this.renderRoot.querySelector(".calendar-card");if(!e)return;this.width&&this.width.trim()!==""?(e.style.inlineSize="100%",e.style.maxInlineSize="100%"):(e.style.removeProperty("inline-size"),e.style.removeProperty("max-inline-size")),this.height&&this.height.trim()!==""||this.sizing==="stretch"?e.style.blockSize="100%":e.style.removeProperty("block-size"),this.maxHeight&&this.maxHeight.trim()!==""?e.style.maxBlockSize="100%":e.style.removeProperty("max-block-size")}_onKeyDown(e){(e.key==="Enter"||e.key===" ")&&this.cardHref&&(window.open(this.cardHref,"_self"),e.preventDefault())}_handleHrefNavigation(){this.cardHref&&(this.cardHrefNav==="tab"?window.open(this.cardHref,"_blank"):this.cardHrefNav==="window"?window.open(this.cardHref,"_blank","noopener,noreferrer,width=800,height=600"):window.open(this.cardHref,"_self"))}updated(e){e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("minWidth")&&(this.minWidth?this.style.minInlineSize=this.minWidth:this.style.removeProperty("min-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("minHeight")&&(this.minHeight?this.style.minBlockSize=this.minHeight:this.style.removeProperty("min-block-size")),(e.has("width")||e.has("height")||e.has("maxHeight")||e.has("sizing"))&&this.__applyInnerSizing()}},a.ScbCalendarCard.__iconLoaded=!1,a.ScbCalendarCard.__rippleLoaded=!1,a.ScbCalendarCard.styles=b`
|
|
3111
2909
|
:host {
|
|
3112
2910
|
display: block;
|
|
3113
2911
|
position: relative;
|
|
@@ -3324,7 +3122,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3324
3122
|
overflow: visible;
|
|
3325
3123
|
text-overflow: clip;
|
|
3326
3124
|
}
|
|
3327
|
-
`,N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"variant",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"direction",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"title",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"subtitle",2),N([l({type:String,attribute:"supporting-text",reflect:!0})],a.ScbCalendarCard.prototype,"supportingText",2),N([l({type:String,attribute:"card-href"})],a.ScbCalendarCard.prototype,"cardHref",2),N([l({type:String,attribute:"card-href-nav"})],a.ScbCalendarCard.prototype,"cardHrefNav",2),N([l({type:Boolean,reflect:!0,attribute:"show-media"})],a.ScbCalendarCard.prototype,"showMedia",2),N([l({type:String,attribute:"media-width"})],a.ScbCalendarCard.prototype,"mediaWidth",2),N([l({type:String,attribute:"media-height"})],a.ScbCalendarCard.prototype,"mediaHeight",2),N([l({type:String,attribute:"media-aspect"})],a.ScbCalendarCard.prototype,"mediaAspect",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"width",2),N([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbCalendarCard.prototype,"maxWidth",2),N([l({type:String,attribute:"min-width"})],a.ScbCalendarCard.prototype,"minWidth",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"height",2),N([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbCalendarCard.prototype,"maxHeight",2),N([l({type:String,attribute:"min-height"})],a.ScbCalendarCard.prototype,"minHeight",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"sizing",2),a.ScbCalendarCard=N([g("scb-calendar-card")],a.ScbCalendarCard);var
|
|
3125
|
+
`,N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"variant",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"direction",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"title",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"subtitle",2),N([l({type:String,attribute:"supporting-text",reflect:!0})],a.ScbCalendarCard.prototype,"supportingText",2),N([l({type:String,attribute:"card-href"})],a.ScbCalendarCard.prototype,"cardHref",2),N([l({type:String,attribute:"card-href-nav"})],a.ScbCalendarCard.prototype,"cardHrefNav",2),N([l({type:Boolean,reflect:!0,attribute:"show-media"})],a.ScbCalendarCard.prototype,"showMedia",2),N([l({type:String,attribute:"media-width"})],a.ScbCalendarCard.prototype,"mediaWidth",2),N([l({type:String,attribute:"media-height"})],a.ScbCalendarCard.prototype,"mediaHeight",2),N([l({type:String,attribute:"media-aspect"})],a.ScbCalendarCard.prototype,"mediaAspect",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"width",2),N([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbCalendarCard.prototype,"maxWidth",2),N([l({type:String,attribute:"min-width"})],a.ScbCalendarCard.prototype,"minWidth",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"height",2),N([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbCalendarCard.prototype,"maxHeight",2),N([l({type:String,attribute:"min-height"})],a.ScbCalendarCard.prototype,"minHeight",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"sizing",2),a.ScbCalendarCard=N([g("scb-calendar-card")],a.ScbCalendarCard);var nd=Object.defineProperty,ld=Object.getOwnPropertyDescriptor,I=(o,e,t,i)=>{for(var r=i>1?void 0:i?ld(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&nd(e,t,r),r};a.ScbCard=class extends y{constructor(){super(...arguments),this.type="",this.variant="",this.direction="",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.title="",this.subtitle="",this.supportingText="",this.commentsText="",this.comments=0,this.likesText="",this.likes=0,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.__onImgLoad=e=>{const t=e.currentTarget.closest(".media");t&&t.classList.add("is-loaded")},this.__onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.cardHref&&(e.preventDefault(),window.open(this.cardHref,"_self"))},this.__handleHrefNavigation=e=>{this.cardHref&&(e.target.closest("a")||window.open(this.cardHref,"_self"))}}__calcAspectWH(e){const t=(e||"").trim();if(!t)return{w:640,h:360};const i=t.includes("/")?t.split("/"):t.includes(":")?t.split(":"):t.includes("x")?t.split("x"):null;if(i&&i.length===2){const s=Number(i[0]),n=Number(i[1]);if(s>0&&n>0)return{w:s,h:n}}const r=Number(t);return isFinite(r)&&r>0?{w:1e3,h:Math.round(1e3/r)}:{w:640,h:360}}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return c`
|
|
3328
3126
|
<div class="media">
|
|
3329
3127
|
<slot name="media">
|
|
3330
3128
|
<scb-avatar variant="icon" label="${this.title}" icon-name="person"></scb-avatar>
|
|
@@ -3439,7 +3237,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3439
3237
|
${r?c`<div class="date">${r}</div>`:""}
|
|
3440
3238
|
</div>
|
|
3441
3239
|
</div>
|
|
3442
|
-
`)}}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("type")&&(this.type==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.style.setProperty("--scb-card-media-fit",this.mediaFit||"cover"),this.style.setProperty("--scb-card-media-position",this.mediaPosition||"center")}async firstUpdated(e){a.ScbCard.__iconLoaded||(await Promise.resolve().then(()=>
|
|
3240
|
+
`)}}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("type")&&(this.type==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.style.setProperty("--scb-card-media-fit",this.mediaFit||"cover"),this.style.setProperty("--scb-card-media-position",this.mediaPosition||"center")}async firstUpdated(e){a.ScbCard.__iconLoaded||(await Promise.resolve().then(()=>De),a.ScbCard.__iconLoaded=!0),a.ScbCard.__rippleLoaded||(await Promise.resolve().then(()=>Ii),a.ScbCard.__rippleLoaded=!0)}},a.ScbCard.__iconLoaded=!1,a.ScbCard.__rippleLoaded=!1,a.ScbCard.styles=b`
|
|
3443
3241
|
:host {
|
|
3444
3242
|
display: block;
|
|
3445
3243
|
box-sizing: border-box;
|
|
@@ -3741,11 +3539,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3741
3539
|
.scb-card.filled .content.list ::slotted(scb-list) {
|
|
3742
3540
|
--scb-list-bg: var(--md-sys-color-surface-dim);
|
|
3743
3541
|
}
|
|
3744
|
-
`,I([l({type:String,reflect:!0})],a.ScbCard.prototype,"type",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"variant",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"direction",2),I([l({type:String,attribute:"media-type"})],a.ScbCard.prototype,"mediaType",2),I([l({type:String,attribute:"media-href"})],a.ScbCard.prototype,"mediaHref",2),I([l({type:String,attribute:"media-alt"})],a.ScbCard.prototype,"mediaAlt",2),I([l({type:String,attribute:"media-srcset"})],a.ScbCard.prototype,"mediaSrcset",2),I([l({type:String,attribute:"media-sizes"})],a.ScbCard.prototype,"mediaSizes",2),I([l({type:String,attribute:"media-loading"})],a.ScbCard.prototype,"mediaLoading",2),I([l({type:String,attribute:"media-decoding"})],a.ScbCard.prototype,"mediaDecoding",2),I([l({type:String,attribute:"media-fetchpriority"})],a.ScbCard.prototype,"mediaFetchPriority",2),I([l({type:String,attribute:"media-fit"})],a.ScbCard.prototype,"mediaFit",2),I([l({type:String,attribute:"media-position"})],a.ScbCard.prototype,"mediaPosition",2),I([l({type:String,attribute:"media-width"})],a.ScbCard.prototype,"mediaWidth",2),I([l({type:String,attribute:"media-height"})],a.ScbCard.prototype,"mediaHeight",2),I([l({type:String,attribute:"media-aspect"})],a.ScbCard.prototype,"mediaAspect",2),I([l({type:Boolean,attribute:"media-placeholder"})],a.ScbCard.prototype,"mediaPlaceholder",2),I([l({type:String,attribute:"card-href",reflect:!0})],a.ScbCard.prototype,"cardHref",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"title",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"subtitle",2),I([l({type:String,attribute:"supporting-text",reflect:!0})],a.ScbCard.prototype,"supportingText",2),I([l({type:Date,reflect:!0})],a.ScbCard.prototype,"date",2),I([l({type:String,attribute:"social-comments-text",reflect:!0})],a.ScbCard.prototype,"commentsText",2),I([l({type:Number,attribute:"social-comments",reflect:!0})],a.ScbCard.prototype,"comments",2),I([l({type:String,attribute:"social-likes-text",reflect:!0})],a.ScbCard.prototype,"likesText",2),I([l({type:Number,attribute:"social-likes",reflect:!0})],a.ScbCard.prototype,"likes",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"sizing",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"width",2),I([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbCard.prototype,"maxWidth",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"height",2),I([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbCard.prototype,"maxHeight",2),a.ScbCard=I([g("scb-card")],a.ScbCard);var
|
|
3542
|
+
`,I([l({type:String,reflect:!0})],a.ScbCard.prototype,"type",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"variant",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"direction",2),I([l({type:String,attribute:"media-type"})],a.ScbCard.prototype,"mediaType",2),I([l({type:String,attribute:"media-href"})],a.ScbCard.prototype,"mediaHref",2),I([l({type:String,attribute:"media-alt"})],a.ScbCard.prototype,"mediaAlt",2),I([l({type:String,attribute:"media-srcset"})],a.ScbCard.prototype,"mediaSrcset",2),I([l({type:String,attribute:"media-sizes"})],a.ScbCard.prototype,"mediaSizes",2),I([l({type:String,attribute:"media-loading"})],a.ScbCard.prototype,"mediaLoading",2),I([l({type:String,attribute:"media-decoding"})],a.ScbCard.prototype,"mediaDecoding",2),I([l({type:String,attribute:"media-fetchpriority"})],a.ScbCard.prototype,"mediaFetchPriority",2),I([l({type:String,attribute:"media-fit"})],a.ScbCard.prototype,"mediaFit",2),I([l({type:String,attribute:"media-position"})],a.ScbCard.prototype,"mediaPosition",2),I([l({type:String,attribute:"media-width"})],a.ScbCard.prototype,"mediaWidth",2),I([l({type:String,attribute:"media-height"})],a.ScbCard.prototype,"mediaHeight",2),I([l({type:String,attribute:"media-aspect"})],a.ScbCard.prototype,"mediaAspect",2),I([l({type:Boolean,attribute:"media-placeholder"})],a.ScbCard.prototype,"mediaPlaceholder",2),I([l({type:String,attribute:"card-href",reflect:!0})],a.ScbCard.prototype,"cardHref",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"title",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"subtitle",2),I([l({type:String,attribute:"supporting-text",reflect:!0})],a.ScbCard.prototype,"supportingText",2),I([l({type:Date,reflect:!0})],a.ScbCard.prototype,"date",2),I([l({type:String,attribute:"social-comments-text",reflect:!0})],a.ScbCard.prototype,"commentsText",2),I([l({type:Number,attribute:"social-comments",reflect:!0})],a.ScbCard.prototype,"comments",2),I([l({type:String,attribute:"social-likes-text",reflect:!0})],a.ScbCard.prototype,"likesText",2),I([l({type:Number,attribute:"social-likes",reflect:!0})],a.ScbCard.prototype,"likes",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"sizing",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"width",2),I([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbCard.prototype,"maxWidth",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"height",2),I([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbCard.prototype,"maxHeight",2),a.ScbCard=I([g("scb-card")],a.ScbCard);var cd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,vs=o=>{throw TypeError(o)},ur=(o,e,t,i)=>{for(var r=i>1?void 0:i?dd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cd(e,t,r),r},hd=(o,e,t)=>e.has(o)||vs("Cannot "+t),Ro=(o,e,t)=>(hd(o,e,"read from private field"),t?t.call(o):e.get(o)),pd=(o,e,t)=>e.has(o)?vs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),hi;a.ScbCheckboxGroup=class extends y{constructor(){super(...arguments),this.orientation="vertical",this.disabled=!1,this.spacing="group",pd(this,hi,()=>{var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-checkbox");for(const r of t)this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled"),this.orientation==="horizontal"?r.setAttribute("orientation","horizontal"):r.removeAttribute("orientation"),this.spacing==="group"?r.style.setProperty("--scb-checkbox-gap","0"):r.style.removeProperty("--scb-checkbox-gap")})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
|
|
3745
3543
|
<div class="g" role="group" aria-disabled=${String(this.disabled)} style=${`--_dir:${e}`}>
|
|
3746
|
-
<slot @slotchange=${
|
|
3544
|
+
<slot @slotchange=${Ro(this,hi)}></slot>
|
|
3747
3545
|
</div>
|
|
3748
|
-
`}firstUpdated(){
|
|
3546
|
+
`}firstUpdated(){Ro(this,hi).call(this)}updated(e){(e.has("disabled")||e.has("orientation")||e.has("spacing"))&&Ro(this,hi).call(this)}},hi=new WeakMap,a.ScbCheckboxGroup.styles=b`
|
|
3749
3547
|
:host {
|
|
3750
3548
|
display: block;
|
|
3751
3549
|
--scb-checkbox-gap: var(--spacing-4, 12px);
|
|
@@ -3769,7 +3567,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3769
3567
|
:host([spacing='group']) ::slotted(scb-checkbox) {
|
|
3770
3568
|
--scb-checkbox-gap: 0;
|
|
3771
3569
|
}
|
|
3772
|
-
`,ur([l({type:String,reflect:!0})],a.ScbCheckboxGroup.prototype,"orientation",2),ur([l({type:Boolean,reflect:!0})],a.ScbCheckboxGroup.prototype,"disabled",2),ur([l({type:String,reflect:!0})],a.ScbCheckboxGroup.prototype,"spacing",2),a.ScbCheckboxGroup=ur([g("scb-checkbox-group")],a.ScbCheckboxGroup);var
|
|
3570
|
+
`,ur([l({type:String,reflect:!0})],a.ScbCheckboxGroup.prototype,"orientation",2),ur([l({type:Boolean,reflect:!0})],a.ScbCheckboxGroup.prototype,"disabled",2),ur([l({type:String,reflect:!0})],a.ScbCheckboxGroup.prototype,"spacing",2),a.ScbCheckboxGroup=ur([g("scb-checkbox-group")],a.ScbCheckboxGroup);var ud=Object.defineProperty,vd=Object.getOwnPropertyDescriptor,mt=(o,e,t,i)=>{for(var r=i>1?void 0:i?vd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ud(e,t,r),r};a.ScbCheckbox=class extends y{constructor(){super(...arguments),this.disabled=!1,this.indeterminate=!1,this.checked=!1,this.label="",this.supportingText="",this.ariaLabel="",this._checkboxId=""}connectedCallback(){super.connectedCallback(),this._checkboxId=this.id||`scb-checkbox-${Math.random().toString(36).slice(2,11)}`}firstUpdated(){var i,r;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("md-checkbox");e&&e.addEventListener("change",()=>{const s=e,n=!!s.checked,h=!!s.indeterminate;this.checked=n,this.indeterminate=h,this.dispatchEvent(new CustomEvent("change",{detail:{checked:n,indeterminate:h},bubbles:!0,composed:!0}))});const t=(r=this.shadowRoot)==null?void 0:r.querySelector("label.wrap");t==null||t.addEventListener("click",s=>{if(this.disabled)return;if(!s.composedPath().some(p=>{var m,x,_;const v=p;return((x=(m=v==null?void 0:v.tagName)==null?void 0:m.toLowerCase)==null?void 0:x.call(m))==="md-checkbox"||((_=v==null?void 0:v.classList)==null?void 0:_.contains("box-wrap"))})){s.preventDefault();const p=this.shadowRoot.querySelector("md-checkbox");p&&(p.checked=!p.checked,p.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}}),this.__syncInnerAria()}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("label")||e.has("supportingText")||e.has("ariaLabel"))&&this.__syncInnerAria()}__syncInnerAria(){var h,p,v;const e=(h=this.shadowRoot)==null?void 0:h.querySelector("md-checkbox"),t=e==null?void 0:e.shadowRoot;if(!t)return;const i=t.querySelector('[role="checkbox"]')||t.querySelector('input[type="checkbox"]');if(!i)return;const r=!!((p=this.label)!=null&&p.trim()),s=r?`${this._checkboxId}-label`:"",n=this.supportingText?`${this._checkboxId}-supporting-text`:"";r&&s?(i.setAttribute("aria-labelledby",s),i.removeAttribute("aria-label")):(i.removeAttribute("aria-labelledby"),(v=this.ariaLabel)!=null&&v.trim()?i.setAttribute("aria-label",this.ariaLabel.trim()):i.removeAttribute("aria-label")),n?i.setAttribute("aria-describedby",n):i.removeAttribute("aria-describedby")}render(){var r;const e=this.supportingText?`${this._checkboxId}-supporting-text`:void 0,t=!!((r=this.label)!=null&&r.trim()),i=t?u:this.ariaLabel||u;return c`
|
|
3773
3571
|
<label class="wrap">
|
|
3774
3572
|
<div class="box-wrap">
|
|
3775
3573
|
<md-checkbox
|
|
@@ -3787,7 +3585,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3787
3585
|
${this.supportingText}
|
|
3788
3586
|
</div>`:u}
|
|
3789
3587
|
<slot></slot>
|
|
3790
|
-
`}},a.ScbCheckbox.styles=
|
|
3588
|
+
`}},a.ScbCheckbox.styles=b`
|
|
3791
3589
|
:host {
|
|
3792
3590
|
display: inline-grid;
|
|
3793
3591
|
grid-template-columns: auto;
|
|
@@ -3858,7 +3656,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3858
3656
|
color: var(--md-sys-color-on-surface-variant);
|
|
3859
3657
|
}
|
|
3860
3658
|
}
|
|
3861
|
-
`,
|
|
3659
|
+
`,mt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"disabled",2),mt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"indeterminate",2),mt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"checked",2),mt([l({type:String})],a.ScbCheckbox.prototype,"label",2),mt([l({type:String,attribute:"supporting-text"})],a.ScbCheckbox.prototype,"supportingText",2),mt([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbCheckbox.prototype,"ariaLabel",2),a.ScbCheckbox=mt([g("scb-checkbox")],a.ScbCheckbox);const md=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return a.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var bd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,Ae=(o,e,t,i)=>{for(var r=i>1?void 0:i?fd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bd(e,t,r),r};a.ScbChip=class extends y{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.href="",this.target="",this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded(),e.has("disabled")&&(this.toggleAttribute("aria-disabled",this.disabled),this.dispatchEvent(new CustomEvent("disabled-changed",{detail:{disabled:this.disabled},bubbles:!0,composed:!0}))),e.has("variant")&&this.dispatchEvent(new CustomEvent("variant-changed",{detail:{variant:this.variant},bubbles:!0,composed:!0})),e.has("label")&&this.dispatchEvent(new CustomEvent("label-changed",{detail:{label:this.label},bubbles:!0,composed:!0})),e.has("elevated")&&this.dispatchEvent(new CustomEvent("elevated-changed",{detail:{elevated:this.elevated},bubbles:!0,composed:!0})),e.has("icon")&&this.dispatchEvent(new CustomEvent("icon-changed",{detail:{icon:this.icon},bubbles:!0,composed:!0}))}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>Dn);break;case"filter":await Promise.resolve().then(()=>Fn);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>Bn),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>De),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":{const t=this.target==="_blank"?"noopener noreferrer":void 0;return c`
|
|
3862
3660
|
<md-assist-chip
|
|
3863
3661
|
label=${this.label}
|
|
3864
3662
|
?disabled=${this.disabled}
|
|
@@ -3882,7 +3680,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3882
3680
|
>
|
|
3883
3681
|
${e}
|
|
3884
3682
|
</md-filter-chip>
|
|
3885
|
-
`;default:return c``}}_toggleSelected(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent("selected-changed",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}_onRemove(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove",{detail:{label:this.label},bubbles:!0,composed:!0}))}_forward(e){this.dispatchEvent(new CustomEvent(e.type,{detail:e.detail,bubbles:!0,composed:!0}))}},a.ScbChip.styles=
|
|
3683
|
+
`;default:return c``}}_toggleSelected(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent("selected-changed",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}_onRemove(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove",{detail:{label:this.label},bubbles:!0,composed:!0}))}_forward(e){this.dispatchEvent(new CustomEvent(e.type,{detail:e.detail,bubbles:!0,composed:!0}))}},a.ScbChip.styles=b`
|
|
3886
3684
|
:host {
|
|
3887
3685
|
display: inline-block;
|
|
3888
3686
|
}
|
|
@@ -3899,7 +3697,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3899
3697
|
color: var(--md-sys-color-on-surface);
|
|
3900
3698
|
font-size: var(--md-sys-typescale-body-large-size);
|
|
3901
3699
|
}
|
|
3902
|
-
`,
|
|
3700
|
+
`,Ae([l({type:String,reflect:!0})],a.ScbChip.prototype,"variant",2),Ae([l({type:String})],a.ScbChip.prototype,"label",2),Ae([l({type:String})],a.ScbChip.prototype,"icon",2),Ae([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"disabled",2),Ae([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"elevated",2),Ae([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"removable",2),Ae([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"selected",2),Ae([l({type:String})],a.ScbChip.prototype,"href",2),Ae([l({type:String})],a.ScbChip.prototype,"target",2),a.ScbChip=Ae([g("scb-chip")],a.ScbChip);var gd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,re=(o,e,t,i)=>{for(var r=i>1?void 0:i?yd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gd(e,t,r),r};a.ScbTextField=class extends y{constructor(){super(...arguments),this.type="text",this.label="",this.supportingText="",this.errorText="",this.leadingIcon="",this.name="",this.pattern="",this.value="",this.underLabel="",this.error=!1,this.disabled=!1,this.required=!1,this._form=null,this._formSubmitHandler=null,this._formResetHandler=null,this._initialValue="",this._inputId=""}render(){const e=this.leadingIcon?c`<md-icon class="scb-textfield-icon">${this.leadingIcon}</md-icon>`:null,t=this.error?c`<md-icon class="scb-textfield-error-icon" aria-hidden="true">error</md-icon>`:null;this.underLabel=this.error?this.errorText||"Ogiltig inmatning.":this.supportingText,this.value=this.value||"";const i=this.underLabel?`${this._inputId}-supporting-text`:void 0;return this.type==="textarea"?c`
|
|
3903
3701
|
<label class="scb-textfield-label" for="${this._inputId}">${this.label}</label>
|
|
3904
3702
|
<span
|
|
3905
3703
|
class="scb-textfield-supporting-text"
|
|
@@ -3937,7 +3735,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
3937
3735
|
/>
|
|
3938
3736
|
${t}
|
|
3939
3737
|
</div>
|
|
3940
|
-
`}firstUpdated(e){var i;super.firstUpdated(e),this._initialValue=this.value;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-textfield");t&&(t.addEventListener("input",r=>{const s=t;if(this.value=s.value,this.pattern){const n=new RegExp(this.pattern);this.error=!n.test(this.value)}this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0}))}),t.addEventListener("change",r=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),t.addEventListener("select",r=>{this.dispatchEvent(new Event("select",{bubbles:!0,composed:!0}))}))}updated(e){super.updated(e),this.toggleAttribute("aria-disabled",this.disabled)}connectedCallback(){super.connectedCallback(),this._inputId=this.id||`scb-textfield-${Math.random().toString(36).substr(2,9)}`,this._formSubmitHandler=e=>{this.reportValidity()||(e.preventDefault(),e.stopPropagation())},this._form=this.closest("form"),this._form&&(this._form.addEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler=()=>{var t;this.value=this._initialValue;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=this._initialValue),this.error=!1},this._form.addEventListener("reset",this._formResetHandler,!0))}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formSubmitHandler&&(this._form.removeEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0))}reportValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){this.required&&!e.value?e.setCustomValidity(this.errorText||"Ogiltig inmatning."):e.setCustomValidity("");const i=e.reportValidity();return this.error=!i,i||(this.errorText=this.errorText||e.validationMessage||"Ogiltig inmatning."),i}return!0}},a.ScbTextField.styles=[
|
|
3738
|
+
`}firstUpdated(e){var i;super.firstUpdated(e),this._initialValue=this.value;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-textfield");t&&(t.addEventListener("input",r=>{const s=t;if(this.value=s.value,this.pattern){const n=new RegExp(this.pattern);this.error=!n.test(this.value)}this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0}))}),t.addEventListener("change",r=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),t.addEventListener("select",r=>{this.dispatchEvent(new Event("select",{bubbles:!0,composed:!0}))}))}updated(e){super.updated(e),this.toggleAttribute("aria-disabled",this.disabled)}connectedCallback(){super.connectedCallback(),this._inputId=this.id||`scb-textfield-${Math.random().toString(36).substr(2,9)}`,this._formSubmitHandler=e=>{this.reportValidity()||(e.preventDefault(),e.stopPropagation())},this._form=this.closest("form"),this._form&&(this._form.addEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler=()=>{var t;this.value=this._initialValue;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=this._initialValue),this.error=!1},this._form.addEventListener("reset",this._formResetHandler,!0))}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formSubmitHandler&&(this._form.removeEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0))}reportValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){this.required&&!e.value?e.setCustomValidity(this.errorText||"Ogiltig inmatning."):e.setCustomValidity("");const i=e.reportValidity();return this.error=!i,i||(this.errorText=this.errorText||e.validationMessage||"Ogiltig inmatning."),i}return!0}},a.ScbTextField.styles=[b`
|
|
3941
3739
|
:host{
|
|
3942
3740
|
--scb-textfield-number-max-width:280px;
|
|
3943
3741
|
--scb-textfield-text-max-width:400px;
|
|
@@ -4070,7 +3868,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4070
3868
|
.scb-textfield.has-error-icon {
|
|
4071
3869
|
padding-right: 44px; /* Adjust as needed for icon size and spacing */
|
|
4072
3870
|
}
|
|
4073
|
-
`],re([l({type:String,reflect:!0})],a.ScbTextField.prototype,"type",2),re([l({type:String})],a.ScbTextField.prototype,"label",2),re([l({type:String,attribute:"supporting-text"})],a.ScbTextField.prototype,"supportingText",2),re([l({type:String,attribute:"error-text"})],a.ScbTextField.prototype,"errorText",2),re([l({type:String,attribute:"leading-icon"})],a.ScbTextField.prototype,"leadingIcon",2),re([l({type:String})],a.ScbTextField.prototype,"name",2),re([l({type:String})],a.ScbTextField.prototype,"pattern",2),re([l({type:String,attribute:"value"})],a.ScbTextField.prototype,"value",2),re([l({type:String})],a.ScbTextField.prototype,"underLabel",2),re([l({type:Boolean,reflect:!0})],a.ScbTextField.prototype,"error",2),re([l({type:Boolean,reflect:!0})],a.ScbTextField.prototype,"disabled",2),re([l({type:Boolean,reflect:!0})],a.ScbTextField.prototype,"required",2),a.ScbTextField=re([g("scb-textfield")],a.ScbTextField);var
|
|
3871
|
+
`],re([l({type:String,reflect:!0})],a.ScbTextField.prototype,"type",2),re([l({type:String})],a.ScbTextField.prototype,"label",2),re([l({type:String,attribute:"supporting-text"})],a.ScbTextField.prototype,"supportingText",2),re([l({type:String,attribute:"error-text"})],a.ScbTextField.prototype,"errorText",2),re([l({type:String,attribute:"leading-icon"})],a.ScbTextField.prototype,"leadingIcon",2),re([l({type:String})],a.ScbTextField.prototype,"name",2),re([l({type:String})],a.ScbTextField.prototype,"pattern",2),re([l({type:String,attribute:"value"})],a.ScbTextField.prototype,"value",2),re([l({type:String})],a.ScbTextField.prototype,"underLabel",2),re([l({type:Boolean,reflect:!0})],a.ScbTextField.prototype,"error",2),re([l({type:Boolean,reflect:!0})],a.ScbTextField.prototype,"disabled",2),re([l({type:Boolean,reflect:!0})],a.ScbTextField.prototype,"required",2),a.ScbTextField=re([g("scb-textfield")],a.ScbTextField);var xd=Object.defineProperty,_d=Object.getOwnPropertyDescriptor,ms=o=>{throw TypeError(o)},bt=(o,e,t,i)=>{for(var r=i>1?void 0:i?_d(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xd(e,t,r),r},wd=(o,e,t)=>e.has(o)||ms("Cannot "+t),Lt=(o,e,t)=>(wd(o,e,"read from private field"),t?t.call(o):e.get(o)),Bo=(o,e,t)=>e.has(o)?ms("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Mo,pi,vr;a.ScbRadioGroup=class extends y{constructor(){super(...arguments),this.name="",this.orientation="vertical",this.disabled=!1,this.ariaLabel=null,this.spacing="item",this.value="",Bo(this,Mo,()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).filter(i=>i.tagName.toLowerCase()==="scb-radio-button"):[]}),Bo(this,pi,()=>{const e=Lt(this,Mo).call(this);if(!e.length)return;let t=null;for(const i of e){const r=i;this.name&&i.setAttribute("name",this.name),this.disabled?i.setAttribute("disabled",""):i.removeAttribute("disabled"),this.orientation==="horizontal"?i.setAttribute("orientation","horizontal"):i.removeAttribute("orientation"),this.spacing==="group"?i.style.setProperty("--scb-radio-gap","0"):i.style.removeProperty("--scb-radio-gap");const s=r.value??i.getAttribute("value")??"",n=typeof r.checked=="boolean"?r.checked:i.hasAttribute("checked");if(this.value){const h=String(s)===this.value;h&&!n?r.checked=!0:!h&&n&&(r.checked=!1)}else n&&t===null&&(t=String(s))}!this.value&&t!==null&&(this.value=t)}),Bo(this,vr,e=>{var r,s;const t=e.composedPath().find(n=>{var h;return((h=n==null?void 0:n.tagName)==null?void 0:h.toLowerCase())==="scb-radio-button"}),i=(t==null?void 0:t.value)??((r=t==null?void 0:t.getAttribute)==null?void 0:r.call(t,"value"))??((s=e.target)==null?void 0:s.value)??"";this.value=String(i??""),this.dispatchEvent(new CustomEvent("scb-change",{detail:{value:String(i??""),originalIsTrusted:(e==null?void 0:e.isTrusted)===!0},bubbles:!0,composed:!0}))})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
|
|
4074
3872
|
<div
|
|
4075
3873
|
class="g"
|
|
4076
3874
|
role="radiogroup"
|
|
@@ -4080,7 +3878,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4080
3878
|
>
|
|
4081
3879
|
<slot @slotchange=${Lt(this,pi)}></slot>
|
|
4082
3880
|
</div>
|
|
4083
|
-
`}firstUpdated(){Lt(this,pi).call(this),this.addEventListener("change",Lt(this,vr))}disconnectedCallback(){this.removeEventListener("change",Lt(this,vr)),super.disconnectedCallback()}updated(e){(e.has("name")||e.has("disabled")||e.has("orientation")||e.has("spacing")||e.has("value"))&&Lt(this,pi).call(this)}},Mo=new WeakMap,pi=new WeakMap,vr=new WeakMap,a.ScbRadioGroup.styles=
|
|
3881
|
+
`}firstUpdated(){Lt(this,pi).call(this),this.addEventListener("change",Lt(this,vr))}disconnectedCallback(){this.removeEventListener("change",Lt(this,vr)),super.disconnectedCallback()}updated(e){(e.has("name")||e.has("disabled")||e.has("orientation")||e.has("spacing")||e.has("value"))&&Lt(this,pi).call(this)}},Mo=new WeakMap,pi=new WeakMap,vr=new WeakMap,a.ScbRadioGroup.styles=b`
|
|
4084
3882
|
:host { display: block; }
|
|
4085
3883
|
|
|
4086
3884
|
.g {
|
|
@@ -4097,7 +3895,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4097
3895
|
:host([spacing="group"]) ::slotted(scb-radio-button) {
|
|
4098
3896
|
--scb-radio-gap: 0;
|
|
4099
3897
|
}
|
|
4100
|
-
`,
|
|
3898
|
+
`,bt([l({type:String})],a.ScbRadioGroup.prototype,"name",2),bt([l({type:String,reflect:!0})],a.ScbRadioGroup.prototype,"orientation",2),bt([l({type:Boolean,reflect:!0})],a.ScbRadioGroup.prototype,"disabled",2),bt([l({type:String,attribute:"aria-label"})],a.ScbRadioGroup.prototype,"ariaLabel",2),bt([l({type:String,reflect:!0})],a.ScbRadioGroup.prototype,"spacing",2),bt([l({type:String,reflect:!0})],a.ScbRadioGroup.prototype,"value",2),a.ScbRadioGroup=bt([g("scb-radio-group")],a.ScbRadioGroup);var Sd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,ft=(o,e,t,i)=>{for(var r=i>1?void 0:i?kd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sd(e,t,r),r};a.ScbRadioButton=class extends y{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.name="",this.value="",this.label="",this.supportingText="",this._radioId="",this._onMdRadioChange=e=>{if(this.disabled)return;const t=e.target;t&&t.checked&&(this.checked=!0,this.dispatchEvent(new CustomEvent("scb-radio-change",{detail:{name:this.name,source:this},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value},bubbles:!0,composed:!0})))},this._onRadioChange=e=>{e.detail.name===this.name&&e.detail.source!==this&&(this.checked=!1)}}connectedCallback(){super.connectedCallback(),this._radioId=this.id||`scb-radio-${Math.random().toString(36).substr(2,9)}`,document.addEventListener("scb-radio-change",this._onRadioChange)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("scb-radio-change",this._onRadioChange)}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-radio");e&&e.addEventListener("input",()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))})}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled)}render(){const e=this.supportingText?`${this._radioId}-supporting-text`:void 0;return c`
|
|
4101
3899
|
<label class="wrap">
|
|
4102
3900
|
<div class="radio-wrap">
|
|
4103
3901
|
<md-radio
|
|
@@ -4119,7 +3917,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4119
3917
|
${this.supportingText}
|
|
4120
3918
|
</div>`:""}
|
|
4121
3919
|
<slot></slot>
|
|
4122
|
-
`}},a.ScbRadioButton.styles=
|
|
3920
|
+
`}},a.ScbRadioButton.styles=b`
|
|
4123
3921
|
/* layout med inline-grid */
|
|
4124
3922
|
:host {
|
|
4125
3923
|
display: inline-grid;
|
|
@@ -4185,7 +3983,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4185
3983
|
.lbl { color: var(--md-sys-color-on-surface); }
|
|
4186
3984
|
.supporting-text { color: var(--md-sys-color-on-surface-variant); }
|
|
4187
3985
|
}
|
|
4188
|
-
`,ft([l({type:Boolean,reflect:!0})],a.ScbRadioButton.prototype,"disabled",2),ft([l({type:Boolean,reflect:!0})],a.ScbRadioButton.prototype,"checked",2),ft([l({type:String,reflect:!0})],a.ScbRadioButton.prototype,"name",2),ft([l({type:String,reflect:!0})],a.ScbRadioButton.prototype,"value",2),ft([l({type:String})],a.ScbRadioButton.prototype,"label",2),ft([l({type:String,attribute:"supporting-text"})],a.ScbRadioButton.prototype,"supportingText",2),a.ScbRadioButton=ft([g("scb-radio-button")],a.ScbRadioButton);var
|
|
3986
|
+
`,ft([l({type:Boolean,reflect:!0})],a.ScbRadioButton.prototype,"disabled",2),ft([l({type:Boolean,reflect:!0})],a.ScbRadioButton.prototype,"checked",2),ft([l({type:String,reflect:!0})],a.ScbRadioButton.prototype,"name",2),ft([l({type:String,reflect:!0})],a.ScbRadioButton.prototype,"value",2),ft([l({type:String})],a.ScbRadioButton.prototype,"label",2),ft([l({type:String,attribute:"supporting-text"})],a.ScbRadioButton.prototype,"supportingText",2),a.ScbRadioButton=ft([g("scb-radio-button")],a.ScbRadioButton);var $d=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,gt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$d(e,t,r),r};a.ScbSwitch=class extends y{constructor(){super(...arguments),this.label="",this.ariaLabel="",this.icons=!1,this.selected=!1,this.disabled=!1,this.fullWidth=!1}updated(){this.toggleAttribute("aria-disabled",this.disabled)}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-switch");e==null||e.addEventListener("change",i=>{this.selected=i.target.selected,this.dispatchEvent(new CustomEvent("change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))})}render(){const e=this.label.trim().length>0,t=e?u:this.ariaLabel||u,i=c`
|
|
4189
3987
|
<md-switch
|
|
4190
3988
|
?icons=${this.icons}
|
|
4191
3989
|
?selected=${this.selected}
|
|
@@ -4197,7 +3995,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4197
3995
|
<span class="switch-label">${this.label}</span>
|
|
4198
3996
|
${i}
|
|
4199
3997
|
</label>
|
|
4200
|
-
`:i}},a.ScbSwitch.styles=
|
|
3998
|
+
`:i}},a.ScbSwitch.styles=b`
|
|
4201
3999
|
:host {
|
|
4202
4000
|
display: block;
|
|
4203
4001
|
}
|
|
@@ -4237,7 +4035,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4237
4035
|
/* Ärver färg från container */
|
|
4238
4036
|
color: var(--scb-switch-label-color, inherit);
|
|
4239
4037
|
}
|
|
4240
|
-
`,gt([l({type:String})],a.ScbSwitch.prototype,"label",2),gt([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbSwitch.prototype,"ariaLabel",2),gt([l({type:Boolean,reflect:!0})],a.ScbSwitch.prototype,"icons",2),gt([l({type:Boolean,reflect:!0})],a.ScbSwitch.prototype,"selected",2),gt([l({type:Boolean,reflect:!0})],a.ScbSwitch.prototype,"disabled",2),gt([l({type:Boolean,reflect:!0,attribute:"full-width"})],a.ScbSwitch.prototype,"fullWidth",2),a.ScbSwitch=gt([g("scb-switch")],a.ScbSwitch);const
|
|
4038
|
+
`,gt([l({type:String})],a.ScbSwitch.prototype,"label",2),gt([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbSwitch.prototype,"ariaLabel",2),gt([l({type:Boolean,reflect:!0})],a.ScbSwitch.prototype,"icons",2),gt([l({type:Boolean,reflect:!0})],a.ScbSwitch.prototype,"selected",2),gt([l({type:Boolean,reflect:!0})],a.ScbSwitch.prototype,"disabled",2),gt([l({type:Boolean,reflect:!0,attribute:"full-width"})],a.ScbSwitch.prototype,"fullWidth",2),a.ScbSwitch=gt([g("scb-switch")],a.ScbSwitch);const Ed=Object.freeze(Object.defineProperty({__proto__:null,get ScbSwitch(){return a.ScbSwitch}},Symbol.toStringTag,{value:"Module"}));var Ad=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?zd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ad(e,t,r),r};a.ScbDialog=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.scrimClose=!0,this.variant="basic",this.label="",this.icon="",this.supportingText="",this.okButton="OK",this.cancelButton="Avbryt",this.deleteButton="Delete",this.confirmButton="Ta bort",this.denyButton="Avbryt",this.resetButton="Återställ",this.submitButton="Spara",this.formId="",this.formAction="",this.formMethod="",this.__lastTriggerEl=null,this.__onDocumentClick=e=>{this.__getActionFromEvent(e)==="toggle"&&(this.__setOpen(!this.open),e.stopPropagation())},this.__onDocumentKeydown=e=>{this.open&&e.key==="Escape"&&(this.__fire("esc"),this.__setOpen(!1))},this.__onScrimClick=()=>{this.scrimClose&&(this.__fire("scrim"),this.__setOpen(!1))},this.__onOk=()=>{this.__fire("ok"),this.__setOpen(!1)},this.__onCancel=()=>{this.__fire("cancel"),this.__setOpen(!1)},this.__onConfirm=()=>{this.__fire("confirm"),this.__setOpen(!1)},this.__onDeny=()=>{this.__fire("deny"),this.__setOpen(!1)},this.__onReset=()=>{var t,i,r,s;(i=(t=this.shadowRoot)==null?void 0:t.querySelector("form"))==null||i.reset(),(((s=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}))??[]).forEach(n=>{const h=n.tagName;h==="SCB-TEXTFIELD"&&(n.value=""),h==="SCB-CHECKBOX"&&(n.checked=!1),h==="SCB-RADIO-BUTTON"&&(n.checked=!1),h==="SCB-SWITCH"&&(n.selected=!1),h==="SCB-CHIP"&&(n.selected=!1)}),this.__fire("reset")},this.__onSubmit=()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("form"))==null||t.requestSubmit(),this.__fire("submit"),this.__setOpen(!1)},this.__onKeydownTrap=e=>{if(!this.open||e.key!=="Tab")return;const t=Array.from(this.shadowRoot.querySelectorAll('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')).filter(s=>!s.hasAttribute("disabled"));if(!t.length)return;const i=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===i?(r.focus(),e.preventDefault()):!e.shiftKey&&document.activeElement===r&&(i.focus(),e.preventDefault())}}__getActionFromEvent(e){if(!this.id)return null;for(const t of e.composedPath())if(t instanceof Element){if(t.getAttribute("data-dialog-toggle")===this.id)return this.__lastTriggerEl=t,"toggle";if(t.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=t,"toggle"}return null}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0),this.addEventListener("keydown",this.__onKeydownTrap)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.removeEventListener("keydown",this.__onKeydownTrap),super.disconnectedCallback()}updated(e){var t,i;if(e.has("open")){const r=e.get("open");this.__updateTriggersExpanded(),this.open&&!r?this.updateComplete.then(()=>{var s,n,h;(h=(n=(s=this.shadowRoot)==null?void 0:s.querySelector('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])'))==null?void 0:n.focus)==null||h.call(n)}):!this.open&&r&&((i=(t=this.__lastTriggerEl)==null?void 0:t.focus)==null||i.call(t)),this.__toggleScrollLock(this.open)}}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-dialog-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__toggleScrollLock(e){if(this.inSb)return;const t=document.documentElement;t.style.overflow=e?"hidden":""}__setOpen(e){this.open=e,this.__fire(e?"open":"close")}__fire(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}__slotIsEmpty(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).length===0:!0}renderHeader(e){const t=this.variant==="form"||this.variant==="floating";return c`
|
|
4241
4039
|
<div class="header">
|
|
4242
4040
|
<div class="title">
|
|
4243
4041
|
${this.icon?c`<md-icon class="dialog-icon">${this.icon}</md-icon>`:u}
|
|
@@ -4283,7 +4081,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4283
4081
|
>
|
|
4284
4082
|
${this.renderBody(e,t)}
|
|
4285
4083
|
</div>
|
|
4286
|
-
`}},a.ScbDialog.styles=
|
|
4084
|
+
`}},a.ScbDialog.styles=b`
|
|
4287
4085
|
:host {
|
|
4288
4086
|
display:block;
|
|
4289
4087
|
position:relative;
|
|
@@ -4397,7 +4195,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4397
4195
|
display:block;
|
|
4398
4196
|
margin-block: var(--scb-choice-gap, 6px);
|
|
4399
4197
|
}
|
|
4400
|
-
`,j([l({type:Boolean,reflect:!0})],a.ScbDialog.prototype,"open",2),j([l({type:Boolean,attribute:!1})],a.ScbDialog.prototype,"inSb",2),j([l({type:Boolean,attribute:"scrim-close"})],a.ScbDialog.prototype,"scrimClose",2),j([l({type:String})],a.ScbDialog.prototype,"variant",2),j([l({type:String})],a.ScbDialog.prototype,"label",2),j([l({type:String})],a.ScbDialog.prototype,"icon",2),j([l({type:String,attribute:"supporting-text"})],a.ScbDialog.prototype,"supportingText",2),j([l({type:String,attribute:"ok-button"})],a.ScbDialog.prototype,"okButton",2),j([l({type:String,attribute:"cancel-button"})],a.ScbDialog.prototype,"cancelButton",2),j([l({type:String,attribute:"delete-button"})],a.ScbDialog.prototype,"deleteButton",2),j([l({type:String,attribute:"confirm-button"})],a.ScbDialog.prototype,"confirmButton",2),j([l({type:String,attribute:"deny-button"})],a.ScbDialog.prototype,"denyButton",2),j([l({type:String,attribute:"reset-button"})],a.ScbDialog.prototype,"resetButton",2),j([l({type:String,attribute:"submit-button"})],a.ScbDialog.prototype,"submitButton",2),j([l({type:String,attribute:"form-id"})],a.ScbDialog.prototype,"formId",2),j([l({type:String,attribute:"form-action"})],a.ScbDialog.prototype,"formAction",2),j([l({type:String,attribute:"form-method"})],a.ScbDialog.prototype,"formMethod",2),a.ScbDialog=j([g("scb-dialog")],a.ScbDialog);var
|
|
4198
|
+
`,j([l({type:Boolean,reflect:!0})],a.ScbDialog.prototype,"open",2),j([l({type:Boolean,attribute:!1})],a.ScbDialog.prototype,"inSb",2),j([l({type:Boolean,attribute:"scrim-close"})],a.ScbDialog.prototype,"scrimClose",2),j([l({type:String})],a.ScbDialog.prototype,"variant",2),j([l({type:String})],a.ScbDialog.prototype,"label",2),j([l({type:String})],a.ScbDialog.prototype,"icon",2),j([l({type:String,attribute:"supporting-text"})],a.ScbDialog.prototype,"supportingText",2),j([l({type:String,attribute:"ok-button"})],a.ScbDialog.prototype,"okButton",2),j([l({type:String,attribute:"cancel-button"})],a.ScbDialog.prototype,"cancelButton",2),j([l({type:String,attribute:"delete-button"})],a.ScbDialog.prototype,"deleteButton",2),j([l({type:String,attribute:"confirm-button"})],a.ScbDialog.prototype,"confirmButton",2),j([l({type:String,attribute:"deny-button"})],a.ScbDialog.prototype,"denyButton",2),j([l({type:String,attribute:"reset-button"})],a.ScbDialog.prototype,"resetButton",2),j([l({type:String,attribute:"submit-button"})],a.ScbDialog.prototype,"submitButton",2),j([l({type:String,attribute:"form-id"})],a.ScbDialog.prototype,"formId",2),j([l({type:String,attribute:"form-action"})],a.ScbDialog.prototype,"formAction",2),j([l({type:String,attribute:"form-method"})],a.ScbDialog.prototype,"formMethod",2),a.ScbDialog=j([g("scb-dialog")],a.ScbDialog);var Id=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,Pt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Td(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Id(e,t,r),r};a.ScbDivider=class extends y{constructor(){super(...arguments),this.variant="thin",this.direction="horizontal",this.inset="none",this.overlay=!1,this.anchor="end"}render(){return c``}},a.ScbDivider.styles=b`
|
|
4401
4199
|
:host {
|
|
4402
4200
|
--scb-divider-color: var(--md-sys-color-outline-variant);
|
|
4403
4201
|
--scb-divider-thickness: 1px;
|
|
@@ -4439,7 +4237,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4439
4237
|
}
|
|
4440
4238
|
:host([overlay][direction="vertical"][anchor="end"]) { right: calc(var(--scb-divider-gap) / -2); }
|
|
4441
4239
|
:host([overlay][direction="vertical"][anchor="start"]){ left: calc(var(--scb-divider-gap) / -2); }
|
|
4442
|
-
`,Pt([l({type:String,reflect:!0})],a.ScbDivider.prototype,"variant",2),Pt([l({type:String,reflect:!0})],a.ScbDivider.prototype,"direction",2),Pt([l({type:String,reflect:!0})],a.ScbDivider.prototype,"inset",2),Pt([l({type:Boolean,reflect:!0})],a.ScbDivider.prototype,"overlay",2),Pt([l({type:String,reflect:!0})],a.ScbDivider.prototype,"anchor",2),a.ScbDivider=Pt([g("scb-divider")],a.ScbDivider);var
|
|
4240
|
+
`,Pt([l({type:String,reflect:!0})],a.ScbDivider.prototype,"variant",2),Pt([l({type:String,reflect:!0})],a.ScbDivider.prototype,"direction",2),Pt([l({type:String,reflect:!0})],a.ScbDivider.prototype,"inset",2),Pt([l({type:Boolean,reflect:!0})],a.ScbDivider.prototype,"overlay",2),Pt([l({type:String,reflect:!0})],a.ScbDivider.prototype,"anchor",2),a.ScbDivider=Pt([g("scb-divider")],a.ScbDivider);var Od=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,yt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ld(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Od(e,t,r),r};a.ScbDrawerItem=class extends y{constructor(){super(...arguments),this.label="",this.selected=!1,this.leadingIcon="",this.itemHref="",this.hasSlotContent=!1,this.expanded=!1,this.__submenuId=`sub-${Math.random().toString(36).slice(2)}`,this.__focusId=`f-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&this.__setExpanded(!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var r,s,n,h,p,v,f,m,x;const t=Array.from(((r=this.parentElement)==null?void 0:r.querySelectorAll("scb-drawer-item"))||[]),i=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(n=(s=(t[i+1]||t[0]).shadowRoot)==null?void 0:s.querySelector(".scb-drawer-label-text"))==null||n.focus();break}case"ArrowUp":{e.preventDefault(),(p=(h=(t[i-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||p.focus();break}case"Home":{e.preventDefault(),(f=(v=t[0].shadowRoot)==null?void 0:v.querySelector(".scb-drawer-label-text"))==null||f.focus();break}case"End":{e.preventDefault(),(x=(m=t[t.length-1].shadowRoot)==null?void 0:m.querySelector(".scb-drawer-label-text"))==null||x.focus();break}}}}get __submenuEl(){return this.renderRoot.querySelector(`#${this.__submenuId}`)}async __ensureDepsLoaded(){a.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>Ii),a.ScbDrawerItem.__rippleLoaded=!0),a.ScbDrawerItem.__focusRingLoaded||(await Promise.resolve().then(()=>nn),a.ScbDrawerItem.__focusRingLoaded=!0),this.leadingIcon&&!a.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>De),a.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!a.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>Tc),a.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.hasSlotContent=i.length>0&&i.every(r=>r.tagName==="SCB-SUB-DRAWER")}__setExpanded(e){this.hasSlotContent&&(this.expanded=e,this.dispatchEvent(new CustomEvent("scb-drawer-expand",{bubbles:!0,composed:!0,detail:{item:this,expanded:e}})))}_dispatchSelect(){this.dispatchEvent(new CustomEvent("scb-drawer-select",{bubbles:!0,composed:!0,detail:{item:this}}))}async firstUpdated(){const e=this.renderRoot.querySelector("slot");if(e){const t=e.assignedElements({flatten:!0});this.hasSlotContent=t.length>0&&t.every(i=>i.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded(),e.has("expanded")&&this.__applyInert()}__applyInert(){const e=this.__submenuEl;e&&(this.expanded?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}render(){const e=!!this.leadingIcon,t=!!this.itemHref,i=this.hasSlotContent;return c`
|
|
4443
4241
|
<div class="scb-drawer-item">
|
|
4444
4242
|
<div class="scb-drawer-item-label" ?selected=${this.selected}>
|
|
4445
4243
|
${t?c`
|
|
@@ -4498,7 +4296,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4498
4296
|
</div>
|
|
4499
4297
|
</div>
|
|
4500
4298
|
</div>
|
|
4501
|
-
`}},a.ScbDrawerItem.__rippleLoaded=!1,a.ScbDrawerItem.__iconLoaded=!1,a.ScbDrawerItem.__iconButtonLoaded=!1,a.ScbDrawerItem.__focusRingLoaded=!1,a.ScbDrawerItem.styles=
|
|
4299
|
+
`}},a.ScbDrawerItem.__rippleLoaded=!1,a.ScbDrawerItem.__iconLoaded=!1,a.ScbDrawerItem.__iconButtonLoaded=!1,a.ScbDrawerItem.__focusRingLoaded=!1,a.ScbDrawerItem.styles=b`
|
|
4502
4300
|
:host {
|
|
4503
4301
|
/* Animationtokens */
|
|
4504
4302
|
--scb-drawer-sub-transition-duration: var(--scb-motion-duration-quick, 150ms);
|
|
@@ -4600,14 +4398,14 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4600
4398
|
transition: none;
|
|
4601
4399
|
}
|
|
4602
4400
|
}
|
|
4603
|
-
`,yt([l({type:String})],a.ScbDrawerItem.prototype,"label",2),yt([l({type:Boolean,reflect:!0})],a.ScbDrawerItem.prototype,"selected",2),yt([l({type:String,attribute:"leading-icon"})],a.ScbDrawerItem.prototype,"leadingIcon",2),yt([l({type:String,attribute:"item-href"})],a.ScbDrawerItem.prototype,"itemHref",2),yt([w()],a.ScbDrawerItem.prototype,"hasSlotContent",2),yt([w()],a.ScbDrawerItem.prototype,"expanded",2),a.ScbDrawerItem=yt([g("scb-drawer-item")],a.ScbDrawerItem);const
|
|
4401
|
+
`,yt([l({type:String})],a.ScbDrawerItem.prototype,"label",2),yt([l({type:Boolean,reflect:!0})],a.ScbDrawerItem.prototype,"selected",2),yt([l({type:String,attribute:"leading-icon"})],a.ScbDrawerItem.prototype,"leadingIcon",2),yt([l({type:String,attribute:"item-href"})],a.ScbDrawerItem.prototype,"itemHref",2),yt([w()],a.ScbDrawerItem.prototype,"hasSlotContent",2),yt([w()],a.ScbDrawerItem.prototype,"expanded",2),a.ScbDrawerItem=yt([g("scb-drawer-item")],a.ScbDrawerItem);const Pd=Object.freeze(Object.defineProperty({__proto__:null,get ScbDrawerItem(){return a.ScbDrawerItem}},Symbol.toStringTag,{value:"Module"}));var Dd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,bs=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Dd(e,t,r),r};a.ScbDrawerSection=class extends y{constructor(){super(...arguments),this.label=""}render(){return c`
|
|
4604
4402
|
<scb-divider></scb-divider>
|
|
4605
4403
|
${this.label?c`
|
|
4606
4404
|
<div class="scb-drawer-section">
|
|
4607
4405
|
<div class="scb-drawer-label">${this.label}</div>
|
|
4608
4406
|
</div>
|
|
4609
4407
|
`:""}
|
|
4610
|
-
`}},a.ScbDrawerSection.styles=
|
|
4408
|
+
`}},a.ScbDrawerSection.styles=b`
|
|
4611
4409
|
:host {
|
|
4612
4410
|
color: var(--md-sys-color-on-surface);
|
|
4613
4411
|
font-family: var(--brand-font);
|
|
@@ -4641,7 +4439,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4641
4439
|
margin-block: var(--spacing-2, 4px);
|
|
4642
4440
|
margin-inline: var(--spacing-4, 12px);
|
|
4643
4441
|
}
|
|
4644
|
-
`,
|
|
4442
|
+
`,bs([l({type:String})],a.ScbDrawerSection.prototype,"label",2),a.ScbDrawerSection=bs([g("scb-drawer-section")],a.ScbDrawerSection);const Bd=Object.freeze(Object.defineProperty({__proto__:null,get ScbDrawerSection(){return a.ScbDrawerSection}},Symbol.toStringTag,{value:"Module"}));var Md=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,ye=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Md(e,t,r),r};a.ScbDrawer=class extends y{constructor(){super(...arguments),this.label="",this.subLabel="",this.floating=!1,this.left=!0,this.right=!1,this.open=!1,this.overlay=!1,this.lockScroll=!1,this.closeOnOverlay=!0,this.modal=!1,this.__lastTriggerEl=null,this._onGlobalSelect=e=>{const t=e;this.querySelectorAll("scb-drawer-item").forEach(r=>r.selected=!1),this.contains(t.detail.item)&&(t.detail.item.selected=!0)},this.__onDocumentClick=e=>{const t=this.__getActionFromEvent(e);if(t){t==="open"&&this.__setOpen(!0),t==="close"&&this.__setOpen(!1),t==="toggle"&&this.__setOpen(!this.open),e.stopPropagation();return}this.floating&&this.open&&!this.overlay&&(e.composedPath().includes(this)||this.__setOpen(!1))},this.__onDocumentKeydown=e=>{if(this.open){if(e.key==="Escape"){this.__setOpen(!1);return}if(this.overlay&&e.key==="Tab"){const t=this.__getFocusable();if(t.length===0)return;const i=t[0],r=t[t.length-1],s=this.renderRoot,n=s.activeElement||document.activeElement;e.shiftKey?(n===i||!s.contains(n))&&(e.preventDefault(),r.focus()):(n===r||!s.contains(n))&&(e.preventDefault(),i.focus())}}}}static async __ensureParts(){a.ScbDrawer.__partsReady||(a.ScbDrawer.__partsLoading||(a.ScbDrawer.__partsLoading=Promise.all([Promise.resolve().then(()=>Pd),Promise.resolve().then(()=>Bd),Promise.resolve().then(()=>qd)]).then(()=>{a.ScbDrawer.__partsReady=!0})),await a.ScbDrawer.__partsLoading)}static __ensureOverlayStyles(){if(typeof document>"u"||document.getElementById("scb-drawer-overlay-styles"))return;const e=document.createElement("style");e.id="scb-drawer-overlay-styles",e.textContent=`
|
|
4645
4443
|
.scb-drawer-global-overlay {
|
|
4646
4444
|
position: fixed;
|
|
4647
4445
|
inset: 0;
|
|
@@ -4680,7 +4478,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4680
4478
|
`}connectedCallback(){super.connectedCallback(),window.addEventListener("scb-drawer-select",this._onGlobalSelect),document.addEventListener("click",this.__onDocumentClick,!1)}disconnectedCallback(){window.removeEventListener("scb-drawer-select",this._onGlobalSelect),document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.overlay&&(a.ScbDrawer.__hideOverlay(this),this.lockScroll&&a.ScbDrawer.__lockScrollDisable()),super.disconnectedCallback()}__getActionFromEvent(e){if(!this.id)return null;const t=e.composedPath();for(const i of t)if(i instanceof Element){if(i.getAttribute("data-drawer-open")===this.id)return this.__lastTriggerEl=i,"open";if(i.getAttribute("data-drawer-close")===this.id)return this.__lastTriggerEl=i,"close";if(i.getAttribute("data-drawer-toggle")===this.id)return this.__lastTriggerEl=i,"toggle";if(i.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=i,"toggle"}return null}__getFocusable(){const e=this.renderRoot;return Array.from(e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(t=>!t.hasAttribute("disabled")&&t.tabIndex>=0)}__setOpen(e){this.open=e}updated(e){if(e.has("open")){const t=!!e.get("open");this.__applyOpenSideEffects(t,this.open)}e.has("right")&&this.right&&this.left&&(this.left=!1),e.has("left")&&this.left&&this.right&&(this.right=!1)}__applyOpenSideEffects(e,t){var i,r;t&&!e?(this.floating&&this.overlay&&(a.ScbDrawer.__showOverlay(this),this.lockScroll&&a.ScbDrawer.__lockScrollEnable()),document.addEventListener("keydown",this.__onDocumentKeydown,!0),a.ScbDrawer.__ensureParts(),this.__updateTriggersExpanded(),this.updateComplete.then(()=>{var n;const s=this.__getFocusable()[0];(n=s==null?void 0:s.focus)==null||n.call(s)}),this.dispatchEvent(new CustomEvent("scb-drawer-opened",{bubbles:!0,composed:!0}))):!t&&e&&(this.floating&&this.overlay&&(a.ScbDrawer.__hideOverlay(this),this.lockScroll&&a.ScbDrawer.__lockScrollDisable()),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.__updateTriggersExpanded(),(r=(i=this.__lastTriggerEl)==null?void 0:i.focus)==null||r.call(i),this.dispatchEvent(new CustomEvent("scb-drawer-closed",{bubbles:!0,composed:!0})))}__updateTriggersExpanded(){if(!this.id)return;document.querySelectorAll(`[aria-controls="${this.id}"],
|
|
4681
4479
|
[data-drawer-open="${this.id}"],
|
|
4682
4480
|
[data-drawer-close="${this.id}"],
|
|
4683
|
-
[data-drawer-toggle="${this.id}"]`).forEach(t=>{t.hasAttribute("aria-controls")&&t.setAttribute("aria-expanded",String(this.open))})}},a.ScbDrawer.__overlayEl=null,a.ScbDrawer.__overlayStack=[],a.ScbDrawer.__lockedCount=0,a.ScbDrawer.__prevDocOverflow=null,a.ScbDrawer.__prevBodyOverflow=null,a.ScbDrawer.__partsReady=!1,a.ScbDrawer.__partsLoading=null,a.ScbDrawer.styles=
|
|
4481
|
+
[data-drawer-toggle="${this.id}"]`).forEach(t=>{t.hasAttribute("aria-controls")&&t.setAttribute("aria-expanded",String(this.open))})}},a.ScbDrawer.__overlayEl=null,a.ScbDrawer.__overlayStack=[],a.ScbDrawer.__lockedCount=0,a.ScbDrawer.__prevDocOverflow=null,a.ScbDrawer.__prevBodyOverflow=null,a.ScbDrawer.__partsReady=!1,a.ScbDrawer.__partsLoading=null,a.ScbDrawer.styles=b`
|
|
4684
4482
|
:host {
|
|
4685
4483
|
display: block;
|
|
4686
4484
|
color: var(--md-sys-color-on-surface);
|
|
@@ -4794,16 +4592,16 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4794
4592
|
content-visibility: auto;
|
|
4795
4593
|
contain-intrinsic-size: 0 600px;
|
|
4796
4594
|
}
|
|
4797
|
-
`,ye([l({type:String})],a.ScbDrawer.prototype,"label",2),ye([l({type:String,attribute:"sub-label"})],a.ScbDrawer.prototype,"subLabel",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"floating",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"left",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"right",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"open",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"overlay",2),ye([l({type:Boolean,reflect:!0,attribute:"lock-scroll"})],a.ScbDrawer.prototype,"lockScroll",2),ye([l({type:Boolean,reflect:!0,attribute:"close-on-overlay"})],a.ScbDrawer.prototype,"closeOnOverlay",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"modal",2),a.ScbDrawer=ye([g("scb-drawer")],a.ScbDrawer);var
|
|
4595
|
+
`,ye([l({type:String})],a.ScbDrawer.prototype,"label",2),ye([l({type:String,attribute:"sub-label"})],a.ScbDrawer.prototype,"subLabel",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"floating",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"left",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"right",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"open",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"overlay",2),ye([l({type:Boolean,reflect:!0,attribute:"lock-scroll"})],a.ScbDrawer.prototype,"lockScroll",2),ye([l({type:Boolean,reflect:!0,attribute:"close-on-overlay"})],a.ScbDrawer.prototype,"closeOnOverlay",2),ye([l({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"modal",2),a.ScbDrawer=ye([g("scb-drawer")],a.ScbDrawer);var Fd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,fs=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Fd(e,t,r),r};a.ScbSubDrawer=class extends y{constructor(){super(...arguments),this.label="",this._onGlobalSelect=e=>{const t=e;this.querySelectorAll("scb-drawer-item").forEach(r=>r.selected=!1),this.contains(t.detail.item)&&(t.detail.item.selected=!0)}}connectedCallback(){super.connectedCallback(),window.addEventListener("scb-drawer-select",this._onGlobalSelect)}disconnectedCallback(){window.removeEventListener("scb-drawer-select",this._onGlobalSelect),super.disconnectedCallback()}render(){return c`
|
|
4798
4596
|
<nav aria-label="${this.label}">
|
|
4799
4597
|
<slot></slot>
|
|
4800
4598
|
</nav>
|
|
4801
|
-
`}},a.ScbSubDrawer.styles=
|
|
4599
|
+
`}},a.ScbSubDrawer.styles=b`
|
|
4802
4600
|
:host {
|
|
4803
4601
|
display: block;
|
|
4804
4602
|
width: 100%;
|
|
4805
4603
|
}
|
|
4806
|
-
`,fs([l({type:String})],a.ScbSubDrawer.prototype,"label",2),a.ScbSubDrawer=fs([g("scb-sub-drawer")],a.ScbSubDrawer);const
|
|
4604
|
+
`,fs([l({type:String})],a.ScbSubDrawer.prototype,"label",2),a.ScbSubDrawer=fs([g("scb-sub-drawer")],a.ScbSubDrawer);const qd=Object.freeze(Object.defineProperty({__proto__:null,get ScbSubDrawer(){return a.ScbSubDrawer}},Symbol.toStringTag,{value:"Module"}));var Vd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,mr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ud(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Vd(e,t,r),r};a.ScbFactCardContent=class extends y{constructor(){super(...arguments),this.title="",this.subtitle="",this.supportingText=""}render(){return c`
|
|
4807
4605
|
${this.title?c`<div class="label">${this.title}</div>`:""}
|
|
4808
4606
|
${this.subtitle?c`<div class="sub-label">${this.subtitle}</div>`:""}
|
|
4809
4607
|
${this.supportingText?c`<div class="supporting-text">${this.supportingText}</div>`:""}
|
|
@@ -4811,7 +4609,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4811
4609
|
<div class="content links">
|
|
4812
4610
|
<slot></slot>
|
|
4813
4611
|
</div>
|
|
4814
|
-
`}},a.ScbFactCardContent.styles=
|
|
4612
|
+
`}},a.ScbFactCardContent.styles=b`
|
|
4815
4613
|
:host {
|
|
4816
4614
|
display: flex;
|
|
4817
4615
|
flex-direction: column;
|
|
@@ -4848,7 +4646,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4848
4646
|
flex-direction: column;
|
|
4849
4647
|
gap: var(--spacing-3);
|
|
4850
4648
|
}
|
|
4851
|
-
`,
|
|
4649
|
+
`,mr([l({type:String,reflect:!0,attribute:"title"})],a.ScbFactCardContent.prototype,"title",2),mr([l({type:String,reflect:!0,attribute:"subtitle"})],a.ScbFactCardContent.prototype,"subtitle",2),mr([l({type:String,reflect:!0,attribute:"supporting-text"})],a.ScbFactCardContent.prototype,"supportingText",2),a.ScbFactCardContent=mr([g("scb-fact-card-content")],a.ScbFactCardContent);var jd=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jd(e,t,r),r};a.ScbFactCard=class extends y{constructor(){super(...arguments),this.__onCloseClick=e=>{e.stopPropagation(),this.__setOpen(!1)},this.variant="filled",this.title="",this.subtitle="",this.supportingText="",this.icon="",this.showCloseButton=!1,this.open=!0,this.__lastTriggerEl=null,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight=""}static __handleDocClick(e){const t=e.composedPath();for(const i of t){if(!(i instanceof Element))continue;const r=i.getAttribute("data-fact-card-toggle")||i.getAttribute("aria-controls");if(!r)continue;const s=a.ScbFactCard.__instances.get(r);if(!s){a.ScbFactCard.__instances.delete(r);continue}s.__lastTriggerEl=i,s.__setOpen(!s.open),e.stopPropagation();break}}static __ensureDocListener(){a.ScbFactCard.__docListenerAttached||(document.addEventListener("click",a.ScbFactCard.__handleDocClick,!0),a.ScbFactCard.__docListenerAttached=!0)}static __maybeRemoveDocListener(){a.ScbFactCard.__docListenerAttached&&a.ScbFactCard.__instances.size===0&&(document.removeEventListener("click",a.ScbFactCard.__handleDocClick,!0),a.ScbFactCard.__docListenerAttached=!1)}connectedCallback(){super.connectedCallback(),this.id&&a.ScbFactCard.__instances.set(this.id,this),a.ScbFactCard.__ensureDocListener()}disconnectedCallback(){this.id&&a.ScbFactCard.__instances.delete(this.id),a.ScbFactCard.__maybeRemoveDocListener(),super.disconnectedCallback()}updated(e){e.has("open")&&this.__updateTriggersExpanded(),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size"))}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-fact-card-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__setOpen(e){const t=this.open;this.open=e,e&&!t?this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})):!e&&t&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}render(){if(!this.open)return c``;const e=this.variant==="outlined"?"outlined":"filled",t=!!this.icon;return c`
|
|
4852
4650
|
<div class="outer ${t?"has-icon":""}">
|
|
4853
4651
|
${t?c`<div class="icon-wrapper ${e}"><md-icon>${this.icon}</md-icon></div>`:""}
|
|
4854
4652
|
<div class="scb-fact-card ${e} ${this.showCloseButton?"has-close":""}">
|
|
@@ -4858,7 +4656,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4858
4656
|
</div>
|
|
4859
4657
|
</div>
|
|
4860
4658
|
</div>
|
|
4861
|
-
`}async firstUpdated(){a.ScbFactCard.__iconLoaded||(await Promise.resolve().then(()=>
|
|
4659
|
+
`}async firstUpdated(){a.ScbFactCard.__iconLoaded||(await Promise.resolve().then(()=>De),a.ScbFactCard.__iconLoaded=!0)}},a.ScbFactCard.__iconLoaded=!1,a.ScbFactCard.__instances=new Map,a.ScbFactCard.__docListenerAttached=!1,a.ScbFactCard.styles=b`
|
|
4862
4660
|
:host {
|
|
4863
4661
|
--scb-fact-card-icon-overhang: 40px;
|
|
4864
4662
|
display: block;
|
|
@@ -4979,9 +4777,9 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4979
4777
|
overflow-wrap: normal;
|
|
4980
4778
|
hyphens: auto;
|
|
4981
4779
|
}
|
|
4982
|
-
`,oe([l({type:String})],a.ScbFactCard.prototype,"variant",2),oe([l({type:String,attribute:"title"})],a.ScbFactCard.prototype,"title",2),oe([l({type:String,attribute:"subtitle"})],a.ScbFactCard.prototype,"subtitle",2),oe([l({type:String,attribute:"supporting-text"})],a.ScbFactCard.prototype,"supportingText",2),oe([l({type:String})],a.ScbFactCard.prototype,"icon",2),oe([l({type:Boolean,attribute:"show-close-button"})],a.ScbFactCard.prototype,"showCloseButton",2),oe([l({type:Boolean,reflect:!0})],a.ScbFactCard.prototype,"open",2),oe([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"sizing",2),oe([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"width",2),oe([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbFactCard.prototype,"maxWidth",2),oe([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"height",2),oe([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbFactCard.prototype,"maxHeight",2),a.ScbFactCard=oe([g("scb-fact-card")],a.ScbFactCard);var
|
|
4780
|
+
`,oe([l({type:String})],a.ScbFactCard.prototype,"variant",2),oe([l({type:String,attribute:"title"})],a.ScbFactCard.prototype,"title",2),oe([l({type:String,attribute:"subtitle"})],a.ScbFactCard.prototype,"subtitle",2),oe([l({type:String,attribute:"supporting-text"})],a.ScbFactCard.prototype,"supportingText",2),oe([l({type:String})],a.ScbFactCard.prototype,"icon",2),oe([l({type:Boolean,attribute:"show-close-button"})],a.ScbFactCard.prototype,"showCloseButton",2),oe([l({type:Boolean,reflect:!0})],a.ScbFactCard.prototype,"open",2),oe([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"sizing",2),oe([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"width",2),oe([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbFactCard.prototype,"maxWidth",2),oe([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"height",2),oe([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbFactCard.prototype,"maxHeight",2),a.ScbFactCard=oe([g("scb-fact-card")],a.ScbFactCard);var Kd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,gs=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kd(e,t,r),r};a.ScbFooterSection=class extends y{constructor(){super(...arguments),this.title=""}render(){return c`<slot></slot>`}},a.ScbFooterSection.styles=b`
|
|
4983
4781
|
:host { display: none; }
|
|
4984
|
-
`,gs([l({type:String,reflect:!0})],a.ScbFooterSection.prototype,"title",2),a.ScbFooterSection=gs([g("scb-footer-section")],a.ScbFooterSection);var
|
|
4782
|
+
`,gs([l({type:String,reflect:!0})],a.ScbFooterSection.prototype,"title",2),a.ScbFooterSection=gs([g("scb-footer-section")],a.ScbFooterSection);var Yd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,ys=o=>{throw TypeError(o)},he=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Yd(e,t,r),r},Zd=(o,e,t)=>e.has(o)||ys("Cannot "+t),Jd=(o,e,t)=>e.has(o)?ys("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),ze=(o,e,t)=>(Zd(o,e,"access private method"),t),pe,Ho,He;a.ScbGridItem=class extends y{constructor(){super(...arguments),Jd(this,pe),this.fit=!1}firstUpdated(){ze(this,pe,Ho).call(this)}updated(){ze(this,pe,Ho).call(this)}render(){return c`<slot></slot>`}},pe=new WeakSet,Ho=function(){ze(this,pe,He).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),ze(this,pe,He).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),ze(this,pe,He).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),ze(this,pe,He).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),ze(this,pe,He).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),ze(this,pe,He).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),ze(this,pe,He).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),ze(this,pe,He).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.removeProperty("--scb-grid-item-align"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.removeProperty("--scb-grid-item-justify"),this.style.removeProperty("justify-self"))},He=function(o,e){e===null||e===""?this.style.removeProperty(o):this.style.setProperty(o,e)},a.ScbGridItem.styles=b`
|
|
4985
4783
|
:host {
|
|
4986
4784
|
box-sizing: border-box;
|
|
4987
4785
|
display: block;
|
|
@@ -4991,7 +4789,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
4991
4789
|
}
|
|
4992
4790
|
:host([fit]) { block-size: 100%; }
|
|
4993
4791
|
:host([fit]) ::slotted(*) { block-size: 100%; }
|
|
4994
|
-
`,he([l({type:Number,attribute:"col-span",reflect:!0})],a.ScbGridItem.prototype,"colSpan",2),he([l({type:Number,attribute:"col-span-compact",reflect:!0})],a.ScbGridItem.prototype,"colSpanCompact",2),he([l({type:Number,attribute:"col-span-medium",reflect:!0})],a.ScbGridItem.prototype,"colSpanMedium",2),he([l({type:Number,attribute:"col-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"colSpanExpanded",2),he([l({type:Number,attribute:"row-span",reflect:!0})],a.ScbGridItem.prototype,"rowSpan",2),he([l({type:Number,attribute:"row-span-compact",reflect:!0})],a.ScbGridItem.prototype,"rowSpanCompact",2),he([l({type:Number,attribute:"row-span-medium",reflect:!0})],a.ScbGridItem.prototype,"rowSpanMedium",2),he([l({type:Number,attribute:"row-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"rowSpanExpanded",2),he([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"align",2),he([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"justify",2),he([l({type:Boolean,reflect:!0})],a.ScbGridItem.prototype,"fit",2),a.ScbGridItem=he([g("scb-grid-item")],a.ScbGridItem);var
|
|
4792
|
+
`,he([l({type:Number,attribute:"col-span",reflect:!0})],a.ScbGridItem.prototype,"colSpan",2),he([l({type:Number,attribute:"col-span-compact",reflect:!0})],a.ScbGridItem.prototype,"colSpanCompact",2),he([l({type:Number,attribute:"col-span-medium",reflect:!0})],a.ScbGridItem.prototype,"colSpanMedium",2),he([l({type:Number,attribute:"col-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"colSpanExpanded",2),he([l({type:Number,attribute:"row-span",reflect:!0})],a.ScbGridItem.prototype,"rowSpan",2),he([l({type:Number,attribute:"row-span-compact",reflect:!0})],a.ScbGridItem.prototype,"rowSpanCompact",2),he([l({type:Number,attribute:"row-span-medium",reflect:!0})],a.ScbGridItem.prototype,"rowSpanMedium",2),he([l({type:Number,attribute:"row-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"rowSpanExpanded",2),he([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"align",2),he([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"justify",2),he([l({type:Boolean,reflect:!0})],a.ScbGridItem.prototype,"fit",2),a.ScbGridItem=he([g("scb-grid-item")],a.ScbGridItem);var Qd=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,xs=o=>{throw TypeError(o)},Fe=(o,e,t,i)=>{for(var r=i>1?void 0:i?eh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Qd(e,t,r),r},th=(o,e,t)=>e.has(o)||xs("Cannot "+t),ih=(o,e,t)=>e.has(o)?xs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),_s=(o,e,t)=>(th(o,e,"access private method"),t),br,Fo;a.ScbStack=class extends y{constructor(){super(...arguments),ih(this,br),this.direction="column",this.gap="",this.rowGap="",this.columnGap="",this.align="stretch",this.justify="start",this.wrap=!1,this.inline=!1}firstUpdated(){_s(this,br,Fo).call(this)}updated(){_s(this,br,Fo).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="base"><slot></slot></div>`}},br=new WeakSet,Fo=function(){this.style.setProperty("--scb-stack-direction",this.direction);const o="var(--spacing-5, 16px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??o,i=this.mapSpacingToken(this.columnGap)??e.col??o;this.style.setProperty("--scb-stack-gap",`${t}`),this.style.setProperty("--scb-stack-row-gap",t),this.style.setProperty("--scb-stack-column-gap",i);const r={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"},s={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"};this.style.setProperty("--scb-stack-align",r[this.align]??"stretch"),this.style.setProperty("--scb-stack-justify",s[this.justify]??"flex-start"),this.style.setProperty("--scb-stack-wrap",this.wrap?"wrap":"nowrap")},a.ScbStack.styles=b`
|
|
4995
4793
|
:host {
|
|
4996
4794
|
box-sizing: border-box;
|
|
4997
4795
|
display: block;
|
|
@@ -5023,7 +4821,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5023
4821
|
:host([direction="row"]) ::slotted(*) {
|
|
5024
4822
|
flex: var(--scb-stack-item-flex, 0 0 auto);
|
|
5025
4823
|
}
|
|
5026
|
-
`,Fe([l({type:String,reflect:!0})],a.ScbStack.prototype,"direction",2),Fe([l({type:String,reflect:!0})],a.ScbStack.prototype,"gap",2),Fe([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbStack.prototype,"rowGap",2),Fe([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbStack.prototype,"columnGap",2),Fe([l({type:String,reflect:!0})],a.ScbStack.prototype,"align",2),Fe([l({type:String,reflect:!0})],a.ScbStack.prototype,"justify",2),Fe([l({type:Boolean,reflect:!0})],a.ScbStack.prototype,"wrap",2),Fe([l({type:Boolean,reflect:!0})],a.ScbStack.prototype,"inline",2),a.ScbStack=Fe([g("scb-stack")],a.ScbStack);var
|
|
4824
|
+
`,Fe([l({type:String,reflect:!0})],a.ScbStack.prototype,"direction",2),Fe([l({type:String,reflect:!0})],a.ScbStack.prototype,"gap",2),Fe([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbStack.prototype,"rowGap",2),Fe([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbStack.prototype,"columnGap",2),Fe([l({type:String,reflect:!0})],a.ScbStack.prototype,"align",2),Fe([l({type:String,reflect:!0})],a.ScbStack.prototype,"justify",2),Fe([l({type:Boolean,reflect:!0})],a.ScbStack.prototype,"wrap",2),Fe([l({type:Boolean,reflect:!0})],a.ScbStack.prototype,"inline",2),a.ScbStack=Fe([g("scb-stack")],a.ScbStack);var rh=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,ws=o=>{throw TypeError(o)},ae=(o,e,t,i)=>{for(var r=i>1?void 0:i?oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&rh(e,t,r),r},ah=(o,e,t)=>e.has(o)||ws("Cannot "+t),sh=(o,e,t)=>e.has(o)?ws("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Dt=(o,e,t)=>(ah(o,e,"access private method"),t),Qe,No,ui;a.ScbGrid=class extends y{constructor(){super(...arguments),sh(this,Qe),this.colsCompact=4,this.colsMedium=8,this.colsExpanded=12,this.gap="",this.rowGap="",this.columnGap="",this.alignItems="stretch",this.justifyItems="stretch",this.paddingInline="",this.paddingBlock="",this.maxWidth="",this.autoRows=""}firstUpdated(){Dt(this,Qe,No).call(this)}updated(){Dt(this,Qe,No).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="grid"><slot></slot></div>`}},Qe=new WeakSet,No=function(){this.style.setProperty("--scb-grid-cols-compact",String(this.colsCompact)),this.style.setProperty("--scb-grid-cols-medium",String(this.colsMedium)),this.style.setProperty("--scb-grid-cols-expanded",String(this.colsExpanded));const o="var(--spacing-7, 24px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??o,i=this.mapSpacingToken(this.columnGap)??e.col??o;this.style.setProperty("--scb-grid-row-gap",t),this.style.setProperty("--scb-grid-column-gap",i),this.style.setProperty("--scb-grid-gap",`${t} ${i}`),this.style.setProperty("--scb-grid-align-items",this.alignItems),this.style.setProperty("--scb-grid-justify-items",this.justifyItems);const r=this.mapSpacingToken(this.paddingInline),s=this.mapSpacingToken(this.paddingBlock);Dt(this,Qe,ui).call(this,"--scb-grid-max-width",this.maxWidth),Dt(this,Qe,ui).call(this,"--scb-grid-padding-inline",r??""),Dt(this,Qe,ui).call(this,"--scb-grid-padding-block",s??""),Dt(this,Qe,ui).call(this,"--scb-grid-auto-rows",this.autoRows)},ui=function(o,e){e?this.style.setProperty(o,e):this.style.removeProperty(o)},a.ScbGrid.styles=b`
|
|
5027
4825
|
:host {
|
|
5028
4826
|
box-sizing: border-box;
|
|
5029
4827
|
display: block;
|
|
@@ -5120,7 +4918,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5120
4918
|
}
|
|
5121
4919
|
}
|
|
5122
4920
|
}
|
|
5123
|
-
`,ae([l({type:Number,attribute:"cols-compact",reflect:!0})],a.ScbGrid.prototype,"colsCompact",2),ae([l({type:Number,attribute:"cols-medium",reflect:!0})],a.ScbGrid.prototype,"colsMedium",2),ae([l({type:Number,attribute:"cols-expanded",reflect:!0})],a.ScbGrid.prototype,"colsExpanded",2),ae([l({type:String,reflect:!0})],a.ScbGrid.prototype,"gap",2),ae([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbGrid.prototype,"rowGap",2),ae([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbGrid.prototype,"columnGap",2),ae([l({type:String,attribute:"align-items",reflect:!0})],a.ScbGrid.prototype,"alignItems",2),ae([l({type:String,attribute:"justify-items",reflect:!0})],a.ScbGrid.prototype,"justifyItems",2),ae([l({type:String,attribute:"padding-inline",reflect:!0})],a.ScbGrid.prototype,"paddingInline",2),ae([l({type:String,attribute:"padding-block",reflect:!0})],a.ScbGrid.prototype,"paddingBlock",2),ae([l({type:String,attribute:"max-width",reflect:!0})],a.ScbGrid.prototype,"maxWidth",2),ae([l({type:String,attribute:"auto-rows",reflect:!0})],a.ScbGrid.prototype,"autoRows",2),a.ScbGrid=ae([g("scb-grid")],a.ScbGrid);var
|
|
4921
|
+
`,ae([l({type:Number,attribute:"cols-compact",reflect:!0})],a.ScbGrid.prototype,"colsCompact",2),ae([l({type:Number,attribute:"cols-medium",reflect:!0})],a.ScbGrid.prototype,"colsMedium",2),ae([l({type:Number,attribute:"cols-expanded",reflect:!0})],a.ScbGrid.prototype,"colsExpanded",2),ae([l({type:String,reflect:!0})],a.ScbGrid.prototype,"gap",2),ae([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbGrid.prototype,"rowGap",2),ae([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbGrid.prototype,"columnGap",2),ae([l({type:String,attribute:"align-items",reflect:!0})],a.ScbGrid.prototype,"alignItems",2),ae([l({type:String,attribute:"justify-items",reflect:!0})],a.ScbGrid.prototype,"justifyItems",2),ae([l({type:String,attribute:"padding-inline",reflect:!0})],a.ScbGrid.prototype,"paddingInline",2),ae([l({type:String,attribute:"padding-block",reflect:!0})],a.ScbGrid.prototype,"paddingBlock",2),ae([l({type:String,attribute:"max-width",reflect:!0})],a.ScbGrid.prototype,"maxWidth",2),ae([l({type:String,attribute:"auto-rows",reflect:!0})],a.ScbGrid.prototype,"autoRows",2),a.ScbGrid=ae([g("scb-grid")],a.ScbGrid);var nh=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,Ss=o=>{throw TypeError(o)},vi=(o,e,t,i)=>{for(var r=i>1?void 0:i?lh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&nh(e,t,r),r},qo=(o,e,t)=>e.has(o)||Ss("Cannot "+t),Ne=(o,e,t)=>(qo(o,e,"read from private field"),t?t.call(o):e.get(o)),Rt=(o,e,t)=>e.has(o)?Ss("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),xt=(o,e,t,i)=>(qo(o,e,"write to private field"),e.set(o,t),t),qe=(o,e,t)=>(qo(o,e,"access private method"),t),Bt,mi,Mt,bi,ue,ks,Vo,$s,Uo,jo,Cs,Es,Wo;a.ScbFooter=class extends y{constructor(){super(...arguments),Rt(this,ue),this.maxWidth="1440px",this.deferPaint=!1,this.sections=[],this.description="Statistikmyndigheten SCB förser samhället med statistik för beslutsfattande, debatt och forskning.",Rt(this,Bt,null),Rt(this,mi,""),Rt(this,Mt),Rt(this,bi,!1),Rt(this,jo,8)}connectedCallback(){super.connectedCallback(),this.style.setProperty("--scb-footer-max-width",this.maxWidth),qe(this,ue,Uo).call(this,!0),qe(this,ue,ks).call(this)}updated(e){e.has("maxWidth")&&this.style.setProperty("--scb-footer-max-width",this.maxWidth)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=Ne(this,Mt))==null||e.disconnect()}render(){const e=Ne(this,ue,$s);return c`
|
|
5124
4922
|
<footer class="outer" role="contentinfo">
|
|
5125
4923
|
<nav aria-label="Sidfot med länkar">
|
|
5126
4924
|
<scb-grid
|
|
@@ -5149,7 +4947,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5149
4947
|
</div>
|
|
5150
4948
|
</div>
|
|
5151
4949
|
</footer>
|
|
5152
|
-
`}},Bt=new WeakMap,
|
|
4950
|
+
`}},Bt=new WeakMap,mi=new WeakMap,Mt=new WeakMap,bi=new WeakMap,ue=new WeakSet,ks=function(){var o;(o=Ne(this,Mt))==null||o.disconnect(),xt(this,Mt,new MutationObserver(e=>{for(const t of e){if(t.type==="childList"){const i=[...t.addedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK"),r=[...t.removedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK");if(i||r){qe(this,ue,Vo).call(this);return}}if(t.type==="attributes"&&(t.target.tagName==="SCB-FOOTER-SECTION"||t.target.tagName==="SCB-LINK")){qe(this,ue,Vo).call(this);return}}})),Ne(this,Mt).observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["title","href","target"]})},Vo=function(){Ne(this,bi)||(xt(this,bi,!0),queueMicrotask(()=>{xt(this,bi,!1),qe(this,ue,Uo).call(this,!1)}))},$s=function(){return Ne(this,Bt)??this.sections??[]},Uo=function(o=!1){const e=Array.from(this.querySelectorAll("scb-footer-section"));if(!e.length){Ne(this,Bt)!==null&&(xt(this,Bt,null),xt(this,mi,""),o||this.requestUpdate());return}const t=e.map(r=>{const s=(r.getAttribute("title")||"").trim(),n=Array.from(r.querySelectorAll("scb-link")).map(h=>{const p=(h.getAttribute("href")||"").trim(),v=h.getAttribute("target"),m={label:(h.textContent||"").trim(),href:p};return v&&(m.target=v),m});return{title:s,links:n}}),i=JSON.stringify(t);i!==Ne(this,mi)&&(xt(this,mi,i),xt(this,Bt,t),o||this.requestUpdate())},jo=new WeakMap,Cs=function(o){const e=[],i=o.length;if(i>0&&i<4)return e.push(c`
|
|
5153
4951
|
<scb-grid-item
|
|
5154
4952
|
col-span-compact="4"
|
|
5155
4953
|
col-span-medium="8"
|
|
@@ -5178,7 +4976,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5178
4976
|
`)}
|
|
5179
4977
|
</ul>
|
|
5180
4978
|
</section>
|
|
5181
|
-
`},a.ScbFooter.styles=
|
|
4979
|
+
`},a.ScbFooter.styles=b`
|
|
5182
4980
|
:host {
|
|
5183
4981
|
display: block;
|
|
5184
4982
|
color: var(--p-100);
|
|
@@ -5327,15 +5125,15 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5327
5125
|
|
|
5328
5126
|
.spacer { display: none; }
|
|
5329
5127
|
@media (min-width: 840px) { .spacer { display: block; } }
|
|
5330
|
-
`,vi([l({type:String,attribute:"max-width",reflect:!0,converter:{fromAttribute:o=>{if(o==null)return"1440px";const e=o.trim();return e===""?"1440px":/^\d+$/.test(e)?`${e}px`:e}}})],a.ScbFooter.prototype,"maxWidth",2),vi([l({type:Boolean,reflect:!0,attribute:"defer-paint"})],a.ScbFooter.prototype,"deferPaint",2),vi([l({type:Array})],a.ScbFooter.prototype,"sections",2),vi([l({type:String})],a.ScbFooter.prototype,"description",2),a.ScbFooter=vi([g("scb-footer")],a.ScbFooter);class As extends HTMLElement{get label(){return this.getAttribute("label")??""}set label(e){this.setAttribute("label",e)}get icon(){return this.getAttribute("icon")??void 0}set icon(e){e==null||e===""?this.removeAttribute("icon"):this.setAttribute("icon",e)}connectedCallback(){this.style.display="none"}}customElements.define("scb-header-drawer-group",As);var
|
|
5128
|
+
`,vi([l({type:String,attribute:"max-width",reflect:!0,converter:{fromAttribute:o=>{if(o==null)return"1440px";const e=o.trim();return e===""?"1440px":/^\d+$/.test(e)?`${e}px`:e}}})],a.ScbFooter.prototype,"maxWidth",2),vi([l({type:Boolean,reflect:!0,attribute:"defer-paint"})],a.ScbFooter.prototype,"deferPaint",2),vi([l({type:Array})],a.ScbFooter.prototype,"sections",2),vi([l({type:String})],a.ScbFooter.prototype,"description",2),a.ScbFooter=vi([g("scb-footer")],a.ScbFooter);class As extends HTMLElement{get label(){return this.getAttribute("label")??""}set label(e){this.setAttribute("label",e)}get icon(){return this.getAttribute("icon")??void 0}set icon(e){e==null||e===""?this.removeAttribute("icon"):this.setAttribute("icon",e)}connectedCallback(){this.style.display="none"}}customElements.define("scb-header-drawer-group",As);var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,fr=(o,e,t,i)=>{for(var r=i>1?void 0:i?dh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ch(e,t,r),r};a.ScbHeaderDrawerItem=class extends y{constructor(){super(...arguments),this.label="",this.href=""}render(){return c`<slot></slot>`}},a.ScbHeaderDrawerItem.styles=b`
|
|
5331
5129
|
:host {
|
|
5332
5130
|
display: none !important;
|
|
5333
5131
|
}
|
|
5334
|
-
`,fr([l({type:String})],a.ScbHeaderDrawerItem.prototype,"label",2),fr([l({type:String})],a.ScbHeaderDrawerItem.prototype,"href",2),fr([l({type:String})],a.ScbHeaderDrawerItem.prototype,"icon",2),a.ScbHeaderDrawerItem=fr([g("scb-header-drawer-item")],a.ScbHeaderDrawerItem);var
|
|
5132
|
+
`,fr([l({type:String})],a.ScbHeaderDrawerItem.prototype,"label",2),fr([l({type:String})],a.ScbHeaderDrawerItem.prototype,"href",2),fr([l({type:String})],a.ScbHeaderDrawerItem.prototype,"icon",2),a.ScbHeaderDrawerItem=fr([g("scb-header-drawer-item")],a.ScbHeaderDrawerItem);var hh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,Ko=(o,e,t,i)=>{for(var r=i>1?void 0:i?ph(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&hh(e,t,r),r};a.ScbHeaderTab=class extends y{constructor(){super(...arguments),this.label="",this.href=""}render(){return c`<slot></slot>`}},a.ScbHeaderTab.styles=b`
|
|
5335
5133
|
:host {
|
|
5336
5134
|
display: none !important;
|
|
5337
5135
|
}
|
|
5338
|
-
`,Ko([l({type:String})],a.ScbHeaderTab.prototype,"label",2),Ko([l({type:String})],a.ScbHeaderTab.prototype,"href",2),a.ScbHeaderTab=Ko([g("scb-header-tab")],a.ScbHeaderTab);class zs extends HTMLElement{get label(){return this.getAttribute("label")??""}set label(e){this.setAttribute("label",e)}get href(){return this.getAttribute("href")??"#"}set href(e){this.setAttribute("href",e)}get target(){return this.getAttribute("target")??void 0}set target(e){e==null?this.removeAttribute("target"):this.setAttribute("target",e)}connectedCallback(){this.style.display="none"}}customElements.define("scb-header-utility",zs);var mh=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,O=(o,e,t,i)=>{for(var r=i>1?void 0:i?fh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&mh(e,t,r),r};const gr={fromAttribute:o=>o==null?!0:!/^(false|0|off|no)$/i.test(o),toAttribute:o=>String(!!o)};a.ScbHeader=class extends y{constructor(){super(...arguments),this.maxWidth="1440px",this.logoText="",this.logoHref="/",this.banner=!1,this.tabs=[],this.activeTab=0,this.utilityItems=[],this.showDrawer=!0,this.showSearch=!0,this.includeUtilityInDrawer=!1,this.drawerOverlay=!0,this.searchText="",this._drawerId="main-drawer",this._drawerExpanded=!1,this._searchId="header-search",this._slotTabs=[],this._slotUtils=[],this._slotMenu=[],this._measureScheduled=!1,this._scheduleMeasure=()=>{this._measureScheduled||(this._measureScheduled=!0,requestAnimationFrame(()=>{this._measureScheduled=!1,this._measure()}))},this._onWindowResize=()=>{this._scheduleMeasure()},this._onDrawerSelect=e=>{this.dispatchEvent(new CustomEvent("drawer-select",{detail:e.detail,bubbles:!0,composed:!0})),this._closeDrawerNow()},this._collapsed=!1,this._unlockAtWidth=0,this._hideLogoText=!1,this._logoTextUnlockAt=0,this._harvestPending=!1,this._harvest=()=>{const e=this._slotEl;if(!e)return;const t=e.assignedElements({flatten:!0}),i=[],r=[],s=[];let n=-1;const h=p=>({label:p.getAttribute("label")??"",href:p.getAttribute("href")??void 0,icon:p.getAttribute("icon")??void 0});for(const p of t){const v=p.tagName.toLowerCase();if(v==="scb-header-tab"){const f=p.getAttribute("label")??"",b=p.getAttribute("href"),x=b&&b.trim()!==""?b:void 0;(p.hasAttribute("selected")||p.getAttribute("selected")==="true"||p.getAttribute("active")==="true"||p.getAttribute("aria-current")==="page")&&n===-1&&(n=i.length),i.push({label:f,href:x});continue}if(v==="scb-header-utility"){r.push({label:p.getAttribute("label")??"",href:p.getAttribute("href")??"#",target:p.getAttribute("target")??void 0});continue}if(v==="scb-header-drawer-group"){const f={label:p.getAttribute("label")??"",icon:p.getAttribute("icon")??void 0,children:[]};p.querySelectorAll("scb-header-drawer-item").forEach(x=>f.children.push(h(x))),s.push(f);continue}v==="scb-header-drawer-item"&&s.push(h(p))}this._slotTabs=i,this._slotUtils=r,this._slotMenu=s,!this.hasAttribute("active-tab")&&n>=0&&(this.activeTab=n),queueMicrotask(()=>{this.updateComplete.then(()=>{this._scheduleMeasure()})})},this._measure=()=>{var b,x,_;const e=this._top,t=this._logoGroup;if(!e||!t)return;const i=window.innerWidth,r=e.clientWidth,s=this._overflows(this._util),n=this._overflows(this._tabsNav),h=i<this.BP_MD||s||n;this._collapsed?!h&&r>=this._unlockAtWidth&&this._setCollapsed(!1):h&&(this._unlockAtWidth=r+this._HYST,this._setCollapsed(!0));let p=!1;if(this.showSearch&&i>=this.BP_SM&&i<this.BP_MD&&this._searchWrap){const S=getComputedStyle(this._searchWrap),C=Math.max(this._num(S.minWidth,this._tokenPx("--scb-header-search-min",320)),this._tokenPx("--scb-header-search-min",320)),E=this._num(getComputedStyle(e).gap,this._tokenPx("--spacing-7",24)),A=this.showDrawer&&(i<this.BP_MD||this._collapsed)?((b=this._menuBtn)==null?void 0:b.getBoundingClientRect().width)||this._tokenPx("--icon-size-large",48):0;p=t.getBoundingClientRect().width+E+C+E+A+8>r+.5}this._setHideSearch(p);let v=!1;if(this.showDrawer&&(i<this.BP_MD||this._collapsed)&&!this._visible(this._util)&&!this._visible(this._searchWrap)){const S=this._num(getComputedStyle(e).gap,this._tokenPx("--spacing-7",24)),C=((x=this._menuBtn)==null?void 0:x.getBoundingClientRect().width)||this._tokenPx("--icon-size-large",48),E=(((_=this._logoGroup)==null?void 0:_.getBoundingClientRect().width)||0)+S+C;this._hideLogoText?v=!(r>=this._logoTextUnlockAt):E>r+.5&&(v=!0,this._logoTextUnlockAt=r+this._HYST)}else v=!1,this._logoTextUnlockAt=0;this._setHideLogoText(v)},this._onMenuClick=async e=>{e.preventDefault(),e.stopPropagation(),this.showDrawer&&(this.dispatchEvent(new CustomEvent("menu-click",{bubbles:!0,composed:!0})),await a.ScbHeader._nextFrame(),await a.ScbHeader._nextFrame(),this._openDrawerNow())},this._onSearchClick=e=>{var r;const t=this._searchEl;if(t!=null&&t.submit&&typeof t.submit=="function"){t.submit();return}const i=(t==null?void 0:t.value)??"";this.searchText=i,this.dispatchEvent(new CustomEvent("search-click",{detail:{value:i},bubbles:!0,composed:!0})),(r=t==null?void 0:t.focus)==null||r.call(t)},this._onTabClick=e=>{const t=e.currentTarget;if(!t)return;const i=t.tagName.toLowerCase()==="a";if(i&&(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))return;const r=t.getAttribute("data-index"),s=r!=null?Number(r):0;this.activeTab=s;const p=((this._slotTabs.length?this._slotTabs:this.tabs)[s]??{}).href??"",v=new CustomEvent("tab-change",{detail:{index:s,href:p},bubbles:!0,composed:!0,cancelable:!0});!this.dispatchEvent(v)&&i&&e.preventDefault()},this._onTabsKeydown=e=>{const t=e.key;if(t!=="ArrowLeft"&&t!=="ArrowRight"&&t!=="Home"&&t!=="End")return;const i=Array.from(this.renderRoot.querySelectorAll(".tab-link"));if(!i.length)return;const r=e.target;let s=i.indexOf(r??i[0]);s===-1&&(s=0),t==="ArrowRight"?s=(s+1)%i.length:t==="ArrowLeft"?s=(s-1+i.length)%i.length:t==="Home"?s=0:t==="End"&&(s=i.length-1),e.preventDefault();const n=i[s];n.focus();const h=n.getAttribute("data-index"),p=h!=null?Number(h):s;this.activeTab=p},this._onSearchInput=e=>{var t;this.searchText=((t=e.detail)==null?void 0:t.value)??"",this.dispatchEvent(new CustomEvent("search-input",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:this.searchText},bubbles:!0,composed:!0}))},this._onSearchSubmit=e=>{var t,i;this.searchText=((t=e.detail)==null?void 0:t.value)??"",this.dispatchEvent(new CustomEvent("search-change",{detail:{value:this.searchText,active:(i=e.detail)==null?void 0:i.active},bubbles:!0,composed:!0}))},this._onSearchClear=()=>{this.searchText="",this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:""},bubbles:!0,composed:!0}))}}get _HYST(){return this._tokenPx("--spacing-11",64)}get BP_SM(){return this._tokenPx("--bp-sm",a.ScbHeader.BP_SM_DEFAULT)}get BP_MD(){return this._tokenPx("--bp-md",a.ScbHeader.BP_MD_DEFAULT)}_scheduleHarvest(){this._harvestPending||(this._harvestPending=!0,queueMicrotask(()=>{this._harvestPending=!1,this._harvest()}))}get _slotEl(){var e;return((e=this.shadowRoot)==null?void 0:e.querySelector("slot#data-slot"))??null}get _top(){return this.renderRoot.querySelector(".top-row")}get _util(){return this.renderRoot.querySelector(".utility")}get _logoGroup(){return this.renderRoot.querySelector(".logo-wrap")||this.renderRoot.querySelector(".logo-group")}get _searchWrap(){return this.renderRoot.querySelector(".search")}get _menuBtn(){return this.renderRoot.querySelector(".menu-trigger")}get _searchEl(){return this.renderRoot.querySelector(`#${this._searchId}`)}get _tabsNav(){return this.renderRoot.querySelector(".tabs-nav")}_attachSlotObservers(){var t;(t=this._slotMo)==null||t.disconnect();const e=new MutationObserver(i=>{this._scheduleHarvest()});this._slotMo=e,e.observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["label","href","icon","target","selected","aria-current","active"]})}_setCollapsed(e){this._collapsed!==e&&(this._collapsed=e,e?this.setAttribute("data-collapsed",""):this.removeAttribute("data-collapsed"))}_setHideSearch(e){e?this.setAttribute("data-hide-search",""):this.removeAttribute("data-hide-search")}_setHideLogoText(e){this._hideLogoText!==e&&(this._hideLogoText=e,e?this.setAttribute("data-hide-logo-text",""):this.removeAttribute("data-hide-logo-text"))}_num(e,t){const i=Number.parseFloat(String(e??"").trim());return Number.isFinite(i)?i:t}_tokenPx(e,t){const i=getComputedStyle(this);return this._num(i.getPropertyValue(e),t)}_visible(e){return e?getComputedStyle(e).display!=="none":!1}_overflows(e){return!e||!this._visible(e)?!1:e.scrollWidth>e.clientWidth+1}firstUpdated(){this.updateComplete.then(()=>{this._harvest(),this._attachSlotObservers()});const e=this._top;e&&(this._ro=new ResizeObserver(()=>this._scheduleMeasure()),this._ro.observe(e)),window.addEventListener("resize",this._onWindowResize,{passive:!0})}updated(e){e.has("searchMax")&&this.style.setProperty("--scb-header-search-max",this.searchMax??"480px"),e.has("searchMin")&&this.style.setProperty("--scb-header-search-min",this.searchMin??"320px"),e.has("searchHeight")&&(this.searchHeight&&this.searchHeight.trim()?this.style.setProperty("--scb-search-height",this.searchHeight.trim()):this.style.removeProperty("--scb-search-height")),(e.has("utilityItems")||e.has("tabs")||e.has("logoText")||e.has("activeTab")||e.has("_slotTabs")||e.has("_slotUtils")||e.has("_slotMenu")||e.has("showDrawer")||e.has("showSearch")||e.has("searchMax")||e.has("searchMin"))&&this.updateComplete.then(()=>{this._scheduleMeasure()})}disconnectedCallback(){var e,t;(e=this._ro)==null||e.disconnect(),(t=this._slotMo)==null||t.disconnect(),window.removeEventListener("resize",this._onWindowResize),super.disconnectedCallback()}_openDrawerNow(){var t,i;const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!0,e.setAttribute("open",""),(t=e.show)==null||t.call(e),(i=e.openDrawer)==null||i.call(e),this._drawerExpanded=!0,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-open",{bubbles:!0,composed:!0})))}_closeDrawerNow(){const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!1),this._drawerExpanded=!1,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-close",{bubbles:!0,composed:!0}))}_syncMenuBtnAria(){const e=this.renderRoot.querySelector(".menu-trigger");e&&e.setAttribute("aria-expanded",String(this._drawerExpanded))}_renderDrawerNodes(e){return!e||e.length===0?c``:c`${e.map(t=>{const i=Array.isArray(t.children)&&t.children.length>0;return c`
|
|
5136
|
+
`,Ko([l({type:String})],a.ScbHeaderTab.prototype,"label",2),Ko([l({type:String})],a.ScbHeaderTab.prototype,"href",2),a.ScbHeaderTab=Ko([g("scb-header-tab")],a.ScbHeaderTab);class zs extends HTMLElement{get label(){return this.getAttribute("label")??""}set label(e){this.setAttribute("label",e)}get href(){return this.getAttribute("href")??"#"}set href(e){this.setAttribute("href",e)}get target(){return this.getAttribute("target")??void 0}set target(e){e==null?this.removeAttribute("target"):this.setAttribute("target",e)}connectedCallback(){this.style.display="none"}}customElements.define("scb-header-utility",zs);var uh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,O=(o,e,t,i)=>{for(var r=i>1?void 0:i?vh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&uh(e,t,r),r};const gr={fromAttribute:o=>o==null?!0:!/^(false|0|off|no)$/i.test(o),toAttribute:o=>String(!!o)};a.ScbHeader=class extends y{constructor(){super(...arguments),this.maxWidth="1440px",this.logoText="",this.logoHref="/",this.banner=!1,this.tabs=[],this.activeTab=0,this.utilityItems=[],this.showDrawer=!0,this.showSearch=!0,this.includeUtilityInDrawer=!1,this.drawerOverlay=!0,this.searchText="",this._drawerId="main-drawer",this._drawerExpanded=!1,this._searchId="header-search",this._slotTabs=[],this._slotUtils=[],this._slotMenu=[],this._measureScheduled=!1,this._scheduleMeasure=()=>{this._measureScheduled||(this._measureScheduled=!0,requestAnimationFrame(()=>{this._measureScheduled=!1,this._measure()}))},this._onWindowResize=()=>{this._scheduleMeasure()},this._onDrawerSelect=e=>{this.dispatchEvent(new CustomEvent("drawer-select",{detail:e.detail,bubbles:!0,composed:!0})),this._closeDrawerNow()},this._collapsed=!1,this._unlockAtWidth=0,this._hideLogoText=!1,this._logoTextUnlockAt=0,this._harvestPending=!1,this._harvest=()=>{const e=this._slotEl;if(!e)return;const t=e.assignedElements({flatten:!0}),i=[],r=[],s=[];let n=-1;const h=p=>({label:p.getAttribute("label")??"",href:p.getAttribute("href")??void 0,icon:p.getAttribute("icon")??void 0});for(const p of t){const v=p.tagName.toLowerCase();if(v==="scb-header-tab"){const f=p.getAttribute("label")??"",m=p.getAttribute("href"),x=m&&m.trim()!==""?m:void 0;(p.hasAttribute("selected")||p.getAttribute("selected")==="true"||p.getAttribute("active")==="true"||p.getAttribute("aria-current")==="page")&&n===-1&&(n=i.length),i.push({label:f,href:x});continue}if(v==="scb-header-utility"){r.push({label:p.getAttribute("label")??"",href:p.getAttribute("href")??"#",target:p.getAttribute("target")??void 0});continue}if(v==="scb-header-drawer-group"){const f={label:p.getAttribute("label")??"",icon:p.getAttribute("icon")??void 0,children:[]};p.querySelectorAll("scb-header-drawer-item").forEach(x=>f.children.push(h(x))),s.push(f);continue}v==="scb-header-drawer-item"&&s.push(h(p))}this._slotTabs=i,this._slotUtils=r,this._slotMenu=s,!this.hasAttribute("active-tab")&&n>=0&&(this.activeTab=n),queueMicrotask(()=>{this.updateComplete.then(()=>{this._scheduleMeasure()})})},this._measure=()=>{var m,x,_;const e=this._top,t=this._logoGroup;if(!e||!t)return;const i=window.innerWidth,r=e.clientWidth,s=this._overflows(this._util),n=this._overflows(this._tabsNav),h=i<this.BP_MD||s||n;this._collapsed?!h&&r>=this._unlockAtWidth&&this._setCollapsed(!1):h&&(this._unlockAtWidth=r+this._HYST,this._setCollapsed(!0));let p=!1;if(this.showSearch&&i>=this.BP_SM&&i<this.BP_MD&&this._searchWrap){const S=getComputedStyle(this._searchWrap),C=Math.max(this._num(S.minWidth,this._tokenPx("--scb-header-search-min",320)),this._tokenPx("--scb-header-search-min",320)),E=this._num(getComputedStyle(e).gap,this._tokenPx("--spacing-7",24)),A=this.showDrawer&&(i<this.BP_MD||this._collapsed)?((m=this._menuBtn)==null?void 0:m.getBoundingClientRect().width)||this._tokenPx("--icon-size-large",48):0;p=t.getBoundingClientRect().width+E+C+E+A+8>r+.5}this._setHideSearch(p);let v=!1;if(this.showDrawer&&(i<this.BP_MD||this._collapsed)&&!this._visible(this._util)&&!this._visible(this._searchWrap)){const S=this._num(getComputedStyle(e).gap,this._tokenPx("--spacing-7",24)),C=((x=this._menuBtn)==null?void 0:x.getBoundingClientRect().width)||this._tokenPx("--icon-size-large",48),E=(((_=this._logoGroup)==null?void 0:_.getBoundingClientRect().width)||0)+S+C;this._hideLogoText?v=!(r>=this._logoTextUnlockAt):E>r+.5&&(v=!0,this._logoTextUnlockAt=r+this._HYST)}else v=!1,this._logoTextUnlockAt=0;this._setHideLogoText(v)},this._onMenuClick=async e=>{e.preventDefault(),e.stopPropagation(),this.showDrawer&&(this.dispatchEvent(new CustomEvent("menu-click",{bubbles:!0,composed:!0})),await a.ScbHeader._nextFrame(),await a.ScbHeader._nextFrame(),this._openDrawerNow())},this._onSearchClick=e=>{var r;const t=this._searchEl;if(t!=null&&t.submit&&typeof t.submit=="function"){t.submit();return}const i=(t==null?void 0:t.value)??"";this.searchText=i,this.dispatchEvent(new CustomEvent("search-click",{detail:{value:i},bubbles:!0,composed:!0})),(r=t==null?void 0:t.focus)==null||r.call(t)},this._onTabClick=e=>{const t=e.currentTarget;if(!t)return;const i=t.tagName.toLowerCase()==="a";if(i&&(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))return;const r=t.getAttribute("data-index"),s=r!=null?Number(r):0;this.activeTab=s;const p=((this._slotTabs.length?this._slotTabs:this.tabs)[s]??{}).href??"",v=new CustomEvent("tab-change",{detail:{index:s,href:p},bubbles:!0,composed:!0,cancelable:!0});!this.dispatchEvent(v)&&i&&e.preventDefault()},this._onTabsKeydown=e=>{const t=e.key;if(t!=="ArrowLeft"&&t!=="ArrowRight"&&t!=="Home"&&t!=="End")return;const i=Array.from(this.renderRoot.querySelectorAll(".tab-link"));if(!i.length)return;const r=e.target;let s=i.indexOf(r??i[0]);s===-1&&(s=0),t==="ArrowRight"?s=(s+1)%i.length:t==="ArrowLeft"?s=(s-1+i.length)%i.length:t==="Home"?s=0:t==="End"&&(s=i.length-1),e.preventDefault();const n=i[s];n.focus();const h=n.getAttribute("data-index"),p=h!=null?Number(h):s;this.activeTab=p},this._onSearchInput=e=>{var t;this.searchText=((t=e.detail)==null?void 0:t.value)??"",this.dispatchEvent(new CustomEvent("search-input",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:this.searchText},bubbles:!0,composed:!0}))},this._onSearchSubmit=e=>{var t,i;this.searchText=((t=e.detail)==null?void 0:t.value)??"",this.dispatchEvent(new CustomEvent("search-change",{detail:{value:this.searchText,active:(i=e.detail)==null?void 0:i.active},bubbles:!0,composed:!0}))},this._onSearchClear=()=>{this.searchText="",this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:""},bubbles:!0,composed:!0}))}}get _HYST(){return this._tokenPx("--spacing-11",64)}get BP_SM(){return this._tokenPx("--bp-sm",a.ScbHeader.BP_SM_DEFAULT)}get BP_MD(){return this._tokenPx("--bp-md",a.ScbHeader.BP_MD_DEFAULT)}_scheduleHarvest(){this._harvestPending||(this._harvestPending=!0,queueMicrotask(()=>{this._harvestPending=!1,this._harvest()}))}get _slotEl(){var e;return((e=this.shadowRoot)==null?void 0:e.querySelector("slot#data-slot"))??null}get _top(){return this.renderRoot.querySelector(".top-row")}get _util(){return this.renderRoot.querySelector(".utility")}get _logoGroup(){return this.renderRoot.querySelector(".logo-wrap")||this.renderRoot.querySelector(".logo-group")}get _searchWrap(){return this.renderRoot.querySelector(".search")}get _menuBtn(){return this.renderRoot.querySelector(".menu-trigger")}get _searchEl(){return this.renderRoot.querySelector(`#${this._searchId}`)}get _tabsNav(){return this.renderRoot.querySelector(".tabs-nav")}_attachSlotObservers(){var t;(t=this._slotMo)==null||t.disconnect();const e=new MutationObserver(i=>{this._scheduleHarvest()});this._slotMo=e,e.observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["label","href","icon","target","selected","aria-current","active"]})}_setCollapsed(e){this._collapsed!==e&&(this._collapsed=e,e?this.setAttribute("data-collapsed",""):this.removeAttribute("data-collapsed"))}_setHideSearch(e){e?this.setAttribute("data-hide-search",""):this.removeAttribute("data-hide-search")}_setHideLogoText(e){this._hideLogoText!==e&&(this._hideLogoText=e,e?this.setAttribute("data-hide-logo-text",""):this.removeAttribute("data-hide-logo-text"))}_num(e,t){const i=Number.parseFloat(String(e??"").trim());return Number.isFinite(i)?i:t}_tokenPx(e,t){const i=getComputedStyle(this);return this._num(i.getPropertyValue(e),t)}_visible(e){return e?getComputedStyle(e).display!=="none":!1}_overflows(e){return!e||!this._visible(e)?!1:e.scrollWidth>e.clientWidth+1}firstUpdated(){this.updateComplete.then(()=>{this._harvest(),this._attachSlotObservers()});const e=this._top;e&&(this._ro=new ResizeObserver(()=>this._scheduleMeasure()),this._ro.observe(e)),window.addEventListener("resize",this._onWindowResize,{passive:!0})}updated(e){e.has("searchMax")&&this.style.setProperty("--scb-header-search-max",this.searchMax??"480px"),e.has("searchMin")&&this.style.setProperty("--scb-header-search-min",this.searchMin??"320px"),e.has("searchHeight")&&(this.searchHeight&&this.searchHeight.trim()?this.style.setProperty("--scb-search-height",this.searchHeight.trim()):this.style.removeProperty("--scb-search-height")),(e.has("utilityItems")||e.has("tabs")||e.has("logoText")||e.has("activeTab")||e.has("_slotTabs")||e.has("_slotUtils")||e.has("_slotMenu")||e.has("showDrawer")||e.has("showSearch")||e.has("searchMax")||e.has("searchMin"))&&this.updateComplete.then(()=>{this._scheduleMeasure()})}disconnectedCallback(){var e,t;(e=this._ro)==null||e.disconnect(),(t=this._slotMo)==null||t.disconnect(),window.removeEventListener("resize",this._onWindowResize),super.disconnectedCallback()}_openDrawerNow(){var t,i;const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!0,e.setAttribute("open",""),(t=e.show)==null||t.call(e),(i=e.openDrawer)==null||i.call(e),this._drawerExpanded=!0,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-open",{bubbles:!0,composed:!0})))}_closeDrawerNow(){const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!1),this._drawerExpanded=!1,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-close",{bubbles:!0,composed:!0}))}_syncMenuBtnAria(){const e=this.renderRoot.querySelector(".menu-trigger");e&&e.setAttribute("aria-expanded",String(this._drawerExpanded))}_renderDrawerNodes(e){return!e||e.length===0?c``:c`${e.map(t=>{const i=Array.isArray(t.children)&&t.children.length>0;return c`
|
|
5339
5137
|
<scb-drawer-item
|
|
5340
5138
|
label=${t.label}
|
|
5341
5139
|
?selected=${!1}
|
|
@@ -5559,7 +5357,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5559
5357
|
</clipPath>
|
|
5560
5358
|
</defs>
|
|
5561
5359
|
</svg>
|
|
5562
|
-
`}},a.ScbHeader._JSON_ARRAY={fromAttribute:o=>{if(o==null||o==="")return[];try{const e=JSON.parse(o);return Array.isArray(e)?e:[]}catch{return[]}},toAttribute:o=>o==null?null:JSON.stringify(o)},a.ScbHeader.BP_SM_DEFAULT=600,a.ScbHeader.BP_MD_DEFAULT=840,a.ScbHeader.styles=
|
|
5360
|
+
`}},a.ScbHeader._JSON_ARRAY={fromAttribute:o=>{if(o==null||o==="")return[];try{const e=JSON.parse(o);return Array.isArray(e)?e:[]}catch{return[]}},toAttribute:o=>o==null?null:JSON.stringify(o)},a.ScbHeader.BP_SM_DEFAULT=600,a.ScbHeader.BP_MD_DEFAULT=840,a.ScbHeader.styles=b`
|
|
5563
5361
|
:host {
|
|
5564
5362
|
display: block;
|
|
5565
5363
|
background: var(--scb-header-background, transparent);
|
|
@@ -5823,7 +5621,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5823
5621
|
:host([data-hide-logo-text]) .logo-text {
|
|
5824
5622
|
display: none;
|
|
5825
5623
|
}
|
|
5826
|
-
`,a.ScbHeader._nextFrame=()=>new Promise(o=>requestAnimationFrame(()=>o())),O([l({type:String,attribute:"max-width"})],a.ScbHeader.prototype,"maxWidth",2),O([l({type:String,attribute:"logo-text"})],a.ScbHeader.prototype,"logoText",2),O([l({type:String,attribute:"logo-href"})],a.ScbHeader.prototype,"logoHref",2),O([l({type:Boolean,reflect:!0})],a.ScbHeader.prototype,"banner",2),O([l({type:String,attribute:"banner-label"})],a.ScbHeader.prototype,"bannerLabel",2),O([l({attribute:"tabs",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"tabs",2),O([l({type:Number,attribute:"active-tab"})],a.ScbHeader.prototype,"activeTab",2),O([l({attribute:"utility-items",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"utilityItems",2),O([l({type:String,attribute:"search-placeholder"})],a.ScbHeader.prototype,"searchPlaceholder",2),O([l({type:String,attribute:"drawer-label"})],a.ScbHeader.prototype,"drawerLabel",2),O([l({type:String,attribute:"drawer-sub-label"})],a.ScbHeader.prototype,"drawerSubLabel",2),O([l({type:String,attribute:"drawer-section-label"})],a.ScbHeader.prototype,"drawerSectionLabel",2),O([l({type:String,attribute:"drawer-search-placeholder"})],a.ScbHeader.prototype,"drawerSearchPlaceholder",2),O([l({attribute:"menu-data",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"menuData",2),O([l({attribute:"show-drawer",reflect:!0,converter:gr})],a.ScbHeader.prototype,"showDrawer",2),O([l({attribute:"show-search",reflect:!0,converter:gr})],a.ScbHeader.prototype,"showSearch",2),O([l({attribute:"include-utility-in-drawer",reflect:!0,converter:gr})],a.ScbHeader.prototype,"includeUtilityInDrawer",2),O([l({attribute:"drawer-overlay",reflect:!0,converter:gr})],a.ScbHeader.prototype,"drawerOverlay",2),O([l({type:String,attribute:"search-max"})],a.ScbHeader.prototype,"searchMax",2),O([l({type:String,attribute:"search-min"})],a.ScbHeader.prototype,"searchMin",2),O([l({type:String,attribute:"search-height"})],a.ScbHeader.prototype,"searchHeight",2),O([l({type:String,attribute:"search-text",reflect:!0})],a.ScbHeader.prototype,"searchText",2),O([w()],a.ScbHeader.prototype,"_drawerId",2),O([w()],a.ScbHeader.prototype,"_drawerExpanded",2),O([w()],a.ScbHeader.prototype,"_searchId",2),O([w()],a.ScbHeader.prototype,"_slotTabs",2),O([w()],a.ScbHeader.prototype,"_slotUtils",2),O([w()],a.ScbHeader.prototype,"_slotMenu",2),O([w()],a.ScbHeader.prototype,"_collapsed",2),O([w()],a.ScbHeader.prototype,"_hideLogoText",2),a.ScbHeader=O([g("scb-header")],a.ScbHeader);var
|
|
5624
|
+
`,a.ScbHeader._nextFrame=()=>new Promise(o=>requestAnimationFrame(()=>o())),O([l({type:String,attribute:"max-width"})],a.ScbHeader.prototype,"maxWidth",2),O([l({type:String,attribute:"logo-text"})],a.ScbHeader.prototype,"logoText",2),O([l({type:String,attribute:"logo-href"})],a.ScbHeader.prototype,"logoHref",2),O([l({type:Boolean,reflect:!0})],a.ScbHeader.prototype,"banner",2),O([l({type:String,attribute:"banner-label"})],a.ScbHeader.prototype,"bannerLabel",2),O([l({attribute:"tabs",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"tabs",2),O([l({type:Number,attribute:"active-tab"})],a.ScbHeader.prototype,"activeTab",2),O([l({attribute:"utility-items",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"utilityItems",2),O([l({type:String,attribute:"search-placeholder"})],a.ScbHeader.prototype,"searchPlaceholder",2),O([l({type:String,attribute:"drawer-label"})],a.ScbHeader.prototype,"drawerLabel",2),O([l({type:String,attribute:"drawer-sub-label"})],a.ScbHeader.prototype,"drawerSubLabel",2),O([l({type:String,attribute:"drawer-section-label"})],a.ScbHeader.prototype,"drawerSectionLabel",2),O([l({type:String,attribute:"drawer-search-placeholder"})],a.ScbHeader.prototype,"drawerSearchPlaceholder",2),O([l({attribute:"menu-data",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"menuData",2),O([l({attribute:"show-drawer",reflect:!0,converter:gr})],a.ScbHeader.prototype,"showDrawer",2),O([l({attribute:"show-search",reflect:!0,converter:gr})],a.ScbHeader.prototype,"showSearch",2),O([l({attribute:"include-utility-in-drawer",reflect:!0,converter:gr})],a.ScbHeader.prototype,"includeUtilityInDrawer",2),O([l({attribute:"drawer-overlay",reflect:!0,converter:gr})],a.ScbHeader.prototype,"drawerOverlay",2),O([l({type:String,attribute:"search-max"})],a.ScbHeader.prototype,"searchMax",2),O([l({type:String,attribute:"search-min"})],a.ScbHeader.prototype,"searchMin",2),O([l({type:String,attribute:"search-height"})],a.ScbHeader.prototype,"searchHeight",2),O([l({type:String,attribute:"search-text",reflect:!0})],a.ScbHeader.prototype,"searchText",2),O([w()],a.ScbHeader.prototype,"_drawerId",2),O([w()],a.ScbHeader.prototype,"_drawerExpanded",2),O([w()],a.ScbHeader.prototype,"_searchId",2),O([w()],a.ScbHeader.prototype,"_slotTabs",2),O([w()],a.ScbHeader.prototype,"_slotUtils",2),O([w()],a.ScbHeader.prototype,"_slotMenu",2),O([w()],a.ScbHeader.prototype,"_collapsed",2),O([w()],a.ScbHeader.prototype,"_hideLogoText",2),a.ScbHeader=O([g("scb-header")],a.ScbHeader);var mh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,_t=(o,e,t,i)=>{for(var r=i>1?void 0:i?bh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&mh(e,t,r),r};a.ScbHorizontalScroller=class extends y{constructor(){super(...arguments),this.variant="standard",this.width="100%",this.showScrollbar=!0,this.rightScrollButtonLabel="Scrolla höger",this.leftScrollButtonLabel="Scrolla vänster",this.contentFlex=!1,this.updateScrollButtons=()=>{var i;this.requestUpdate();const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");if(!e)return;e.scrollLeft>0?this.setAttribute("data-scroll-left",""):this.removeAttribute("data-scroll-left");const t=e;t.scrollLeft+t.clientWidth<t.scrollWidth-1?this.setAttribute("data-scroll-right",""):this.removeAttribute("data-scroll-right")},this.lastScrollLeft=0,this.isScrolling=!1,this.scrollEndTimeout=null,this.handleScroll=()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-horizontal-scroller");e&&(this.updateScrollButtons(),this.dispatchCustomEvent("scb-scroll",{scrollLeft:e.scrollLeft}),this.isScrolling||(this.isScrolling=!0,this.dispatchCustomEvent("scb-scroll-start",{scrollLeft:e.scrollLeft})),clearTimeout(this.scrollEndTimeout),this.scrollEndTimeout=setTimeout(()=>{this.isScrolling=!1,this.dispatchCustomEvent("scb-scroll-end",{scrollLeft:e.scrollLeft})},120),e.scrollLeft>this.lastScrollLeft?this.dispatchCustomEvent("scb-scroll-right",{scrollLeft:e.scrollLeft}):e.scrollLeft<this.lastScrollLeft&&this.dispatchCustomEvent("scb-scroll-left",{scrollLeft:e.scrollLeft}),this.lastScrollLeft=e.scrollLeft)}}doScrollBy(e){var i;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");t&&t.scrollBy({left:e,behavior:"smooth"})}get canScrollLeft(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-horizontal-scroller");return e?e.scrollLeft>0:!1}get canScrollRight(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");if(!e)return!1;const t=e;return t.scrollLeft+t.clientWidth<t.scrollWidth-1}connectedCallback(){super.connectedCallback(),this.addEventListener("scroll",this.updateScrollButtons,!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",this.updateScrollButtons,!0)}dispatchCustomEvent(e,t={}){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}firstUpdated(){var n,h,p,v;const e=(n=this.shadowRoot)==null?void 0:n.querySelector(".scb-horizontal-scroller"),t=(h=this.shadowRoot)==null?void 0:h.querySelector(".scroll-shadow-left"),i=(p=this.shadowRoot)==null?void 0:p.querySelector(".scroll-shadow-right"),r=(v=this.shadowRoot)==null?void 0:v.querySelector("slot");e&&(e.addEventListener("scroll",this.handleScroll),e.addEventListener("wheel",function(f){f.deltaY!==0&&(f.preventDefault(),e.scrollLeft+=f.deltaY)},{passive:!1}));const s=()=>{if(r&&t&&i){const f=r.getBoundingClientRect();t.style.height=`${f.height}px`,i.style.height=`${f.height}px`}};s(),r&&new ResizeObserver(s).observe(r),this.updateComplete.then(()=>{this.updateScrollButtons()})}updated(e){var h,p,v,f;const t=(h=this.shadowRoot)==null?void 0:h.querySelector(".scroll-shadow-left"),i=(p=this.shadowRoot)==null?void 0:p.querySelector(".scroll-shadow-right"),r=(v=this.shadowRoot)==null?void 0:v.querySelector("slot"),s=(f=this.shadowRoot)==null?void 0:f.querySelector(".scb-horizontal-scroller");if(s){s.addEventListener("scroll",this.handleScroll),s.addEventListener("wheel",function(x){x.deltaY!==0&&(x.preventDefault(),s.scrollLeft+=x.deltaY)},{passive:!1}),s.scrollLeft>0?this.setAttribute("data-scroll-left",""):this.removeAttribute("data-scroll-left");const m=s;m.scrollLeft+m.clientWidth<m.scrollWidth-1?this.setAttribute("data-scroll-right",""):this.removeAttribute("data-scroll-right")}e.has("width")&&this.style.setProperty("--scb-horizontal-scroller-width",this.width);const n=()=>{if(r&&t&&i){const m=r.getBoundingClientRect();t.style.height=`${m.height}px`,i.style.height=`${m.height}px`}};n(),r&&new ResizeObserver(n).observe(r)}render(){const e=this.variant;var t=!!(this.canScrollLeft||this.canScrollRight);switch(e){case"inline":return c`
|
|
5827
5625
|
<div class="scb-horizontal-scroller ${t?"canScroll":""}" tabindex="0">
|
|
5828
5626
|
${this.variant!="inline"?c`<div class="scroll-shadow-left"></div>`:""}
|
|
5829
5627
|
<slot></slot>
|
|
@@ -5854,7 +5652,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5854
5652
|
${this.canScrollRight?c`
|
|
5855
5653
|
<scb-icon-button class="scroll-button-right" icon="chevron_right" aria-label="Scrolla höger" variant="filled-tonal" @click="${()=>this.doScrollBy(100)}"></scb-icon-button>
|
|
5856
5654
|
`:""}
|
|
5857
|
-
`}}},a.ScbHorizontalScroller.styles=
|
|
5655
|
+
`}}},a.ScbHorizontalScroller.styles=b`
|
|
5858
5656
|
:host {
|
|
5859
5657
|
display: flex;
|
|
5860
5658
|
position: relative;
|
|
@@ -5967,7 +5765,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5967
5765
|
gap: var(--spacing-5);
|
|
5968
5766
|
}
|
|
5969
5767
|
|
|
5970
|
-
`,_t([l({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"variant",2),_t([l({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"width",2),_t([l({type:Boolean,reflect:!0,attribute:"show-scrollbar"})],a.ScbHorizontalScroller.prototype,"showScrollbar",2),_t([l({type:String,reflect:!0,attribute:"right-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"rightScrollButtonLabel",2),_t([l({type:String,reflect:!0,attribute:"left-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"leftScrollButtonLabel",2),_t([l({type:Boolean,reflect:!0,attribute:"content-flex"})],a.ScbHorizontalScroller.prototype,"contentFlex",2),a.ScbHorizontalScroller=_t([g("scb-horizontal-scroller")],a.ScbHorizontalScroller);var
|
|
5768
|
+
`,_t([l({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"variant",2),_t([l({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"width",2),_t([l({type:Boolean,reflect:!0,attribute:"show-scrollbar"})],a.ScbHorizontalScroller.prototype,"showScrollbar",2),_t([l({type:String,reflect:!0,attribute:"right-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"rightScrollButtonLabel",2),_t([l({type:String,reflect:!0,attribute:"left-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"leftScrollButtonLabel",2),_t([l({type:Boolean,reflect:!0,attribute:"content-flex"})],a.ScbHorizontalScroller.prototype,"contentFlex",2),a.ScbHorizontalScroller=_t([g("scb-horizontal-scroller")],a.ScbHorizontalScroller);var fh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,se=(o,e,t,i)=>{for(var r=i>1?void 0:i?gh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fh(e,t,r),r};a.ScbKeyFigureCard=class extends y{constructor(){super(...arguments),this.keyfigure=0,this.subtitle="",this.supportingText="",this.cardHref="",this.icon="",this.size="standard",this.unit="",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.sizing="stretch",this.__onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.cardHref&&(e.preventDefault(),window.location.href=this.cardHref)},this.__handleHrefNavigation=e=>{this.cardHref&&(e.target.closest("a")||(window.location.href=this.cardHref))}}formatNumber(e){if(typeof e=="number")return e.toLocaleString("sv-SE").replace(/\u00A0/g," ");const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString("sv-SE").replace(/\u00A0/g," ")}async firstUpdated(){a.ScbKeyFigureCard.__iconLoaded||(await Promise.resolve().then(()=>De),a.ScbKeyFigureCard.__iconLoaded=!0),a.ScbKeyFigureCard.__rippleLoaded||(await Promise.resolve().then(()=>Ii),a.ScbKeyFigureCard.__rippleLoaded=!0),this.__applyInnerSizing()}render(){const e=!!this.cardHref,t=this.formatNumber(this.keyfigure),i=(this.unit||"").trim(),r=i?`${t} ${i}`:t;return c`
|
|
5971
5769
|
<div
|
|
5972
5770
|
class="scb-keyfigure-card ${e?"clickable":""} ${this.size}"
|
|
5973
5771
|
role=${e?"link":"group"}
|
|
@@ -5999,7 +5797,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
5999
5797
|
</div>
|
|
6000
5798
|
|
|
6001
5799
|
<md-focus-ring></md-focus-ring>
|
|
6002
|
-
`}__applyInnerSizing(){const e=this.renderRoot.querySelector(".scb-keyfigure-card");if(!e)return;this.width&&this.width.trim()!==""?(e.style.inlineSize="100%",e.style.maxInlineSize="100%"):(e.style.removeProperty("inline-size"),e.style.removeProperty("max-inline-size")),this.height&&this.height.trim()!==""||this.sizing==="stretch"?e.style.blockSize="100%":e.style.removeProperty("block-size"),this.maxHeight&&this.maxHeight.trim()!==""?e.style.maxBlockSize="100%":e.style.removeProperty("max-block-size")}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),(e.has("width")||e.has("height")||e.has("maxHeight")||e.has("sizing"))&&this.__applyInnerSizing()}},a.ScbKeyFigureCard.__iconLoaded=!1,a.ScbKeyFigureCard.__rippleLoaded=!1,a.ScbKeyFigureCard.styles=
|
|
5800
|
+
`}__applyInnerSizing(){const e=this.renderRoot.querySelector(".scb-keyfigure-card");if(!e)return;this.width&&this.width.trim()!==""?(e.style.inlineSize="100%",e.style.maxInlineSize="100%"):(e.style.removeProperty("inline-size"),e.style.removeProperty("max-inline-size")),this.height&&this.height.trim()!==""||this.sizing==="stretch"?e.style.blockSize="100%":e.style.removeProperty("block-size"),this.maxHeight&&this.maxHeight.trim()!==""?e.style.maxBlockSize="100%":e.style.removeProperty("max-block-size")}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),(e.has("width")||e.has("height")||e.has("maxHeight")||e.has("sizing"))&&this.__applyInnerSizing()}},a.ScbKeyFigureCard.__iconLoaded=!1,a.ScbKeyFigureCard.__rippleLoaded=!1,a.ScbKeyFigureCard.styles=b`
|
|
6003
5801
|
:host {
|
|
6004
5802
|
display: block;
|
|
6005
5803
|
box-sizing: border-box;
|
|
@@ -6115,7 +5913,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6115
5913
|
line-height: var(--md-sys-typescale-display-medium-line-height);
|
|
6116
5914
|
letter-spacing: var(--md-sys-typescale-display-medium-tracking);
|
|
6117
5915
|
}
|
|
6118
|
-
`,se([l({attribute:"keyfigure"})],a.ScbKeyFigureCard.prototype,"keyfigure",2),se([l({type:String,attribute:"subtitle"})],a.ScbKeyFigureCard.prototype,"subtitle",2),se([l({type:String,attribute:"supporting-text"})],a.ScbKeyFigureCard.prototype,"supportingText",2),se([l({type:String,attribute:"card-href"})],a.ScbKeyFigureCard.prototype,"cardHref",2),se([l({type:String})],a.ScbKeyFigureCard.prototype,"icon",2),se([l({type:String})],a.ScbKeyFigureCard.prototype,"size",2),se([l({type:String})],a.ScbKeyFigureCard.prototype,"unit",2),se([l({type:String,reflect:!0})],a.ScbKeyFigureCard.prototype,"width",2),se([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbKeyFigureCard.prototype,"maxWidth",2),se([l({type:String,reflect:!0})],a.ScbKeyFigureCard.prototype,"height",2),se([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbKeyFigureCard.prototype,"maxHeight",2),se([l({type:String,reflect:!0})],a.ScbKeyFigureCard.prototype,"sizing",2),a.ScbKeyFigureCard=se([g("scb-keyfigure-card")],a.ScbKeyFigureCard);var
|
|
5916
|
+
`,se([l({attribute:"keyfigure"})],a.ScbKeyFigureCard.prototype,"keyfigure",2),se([l({type:String,attribute:"subtitle"})],a.ScbKeyFigureCard.prototype,"subtitle",2),se([l({type:String,attribute:"supporting-text"})],a.ScbKeyFigureCard.prototype,"supportingText",2),se([l({type:String,attribute:"card-href"})],a.ScbKeyFigureCard.prototype,"cardHref",2),se([l({type:String})],a.ScbKeyFigureCard.prototype,"icon",2),se([l({type:String})],a.ScbKeyFigureCard.prototype,"size",2),se([l({type:String})],a.ScbKeyFigureCard.prototype,"unit",2),se([l({type:String,reflect:!0})],a.ScbKeyFigureCard.prototype,"width",2),se([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbKeyFigureCard.prototype,"maxWidth",2),se([l({type:String,reflect:!0})],a.ScbKeyFigureCard.prototype,"height",2),se([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbKeyFigureCard.prototype,"maxHeight",2),se([l({type:String,reflect:!0})],a.ScbKeyFigureCard.prototype,"sizing",2),a.ScbKeyFigureCard=se([g("scb-keyfigure-card")],a.ScbKeyFigureCard);var yh=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,et=(o,e,t,i)=>{for(var r=i>1?void 0:i?xh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&yh(e,t,r),r};a.ScbMenuItem=class extends y{constructor(){super(...arguments),this.label="",this.hasSubMenu=!1,this.openLeft=!1,this.divider=!1,this.leadingIcon="",this.trailingIcon="",this.itemHref="",this.handleClick=e=>{this.itemHref?this._navigateToHref(e):this._toggleSubMenu()},this._onBlur=e=>{const t=this.closest("scb-sub-menu");if(t&&t.open){const i=e.relatedTarget;(!i||!t.contains(i))&&t.dispatchEvent(new CustomEvent("hide-submenu",{bubbles:!0,composed:!0}))}},this._onFocus=()=>{const e=this.nextElementSibling;this.classList.contains("open-submenu")&&(e&&e.tagName==="SCB-SUB-MENU"&&e.hasAttribute("open")||this.classList.remove("open-submenu"))},this._onKeyDown=e=>{var t,i,r,s,n,h;if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.handleClick(e);return}if(e.key==="ArrowDown"){e.preventDefault();let p=this.nextElementSibling;for(;p&&p.tagName!=="SCB-MENU-ITEM";)p=p.nextElementSibling;p&&((i=(t=p.shadowRoot)==null?void 0:t.querySelector("li"))==null||i.focus());return}if(e.key==="ArrowUp"){e.preventDefault();let p=this.previousElementSibling;for(;p&&p.tagName!=="SCB-MENU-ITEM";)p=p.previousElementSibling;p&&((s=(r=p.shadowRoot)==null?void 0:r.querySelector("li"))==null||s.focus());return}if(e.key==="ArrowRight"){e.preventDefault();const p=this.nextElementSibling;p&&p.tagName==="SCB-SUB-MENU"&&(p.hasAttribute("open")||(this._toggleSubMenu(),p.dispatchEvent(new CustomEvent("show-submenu",{bubbles:!0,composed:!0}))),setTimeout(()=>{var f,m;const v=p.querySelector("scb-menu-item");v&&((m=(f=v.shadowRoot)==null?void 0:f.querySelector("li"))==null||m.focus())},0));return}if(e.key==="ArrowLeft"){e.preventDefault();const p=this.nextElementSibling;if(p&&p.tagName==="SCB-SUB-MENU"&&p.hasAttribute("open")){this._toggleSubMenu(),p.dispatchEvent(new CustomEvent("hide-submenu",{bubbles:!0,composed:!0}));return}const v=this.closest("scb-sub-menu");if(v){const f=v.previousElementSibling;f&&f.tagName==="SCB-MENU-ITEM"&&((h=(n=f.shadowRoot)==null?void 0:n.querySelector("li"))==null||h.focus())}return}}}updated(){const e=this.nextElementSibling;this.hasSubMenu=!!(e&&e.tagName==="SCB-SUB-MENU"),this.openLeft=!!(this.hasSubMenu&&e&&e.hasAttribute("open-left"))}render(){return c`
|
|
6119
5917
|
${this.divider?c`<scb-divider></scb-divider>`:""}
|
|
6120
5918
|
<li @click=${this.handleClick} @keydown=${this._onKeyDown} @blur=${this._onBlur} @focus=${this._onFocus} role="menuitem" tabindex="0">
|
|
6121
5919
|
|
|
@@ -6133,7 +5931,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6133
5931
|
<md-ripple></md-ripple>
|
|
6134
5932
|
`}
|
|
6135
5933
|
</li>
|
|
6136
|
-
`}_navigateToHref(e){this.itemHref&&(window.location.href=this.itemHref),e.stopPropagation()}_toggleSubMenu(){const e=this.nextElementSibling;e&&e.tagName==="SCB-SUB-MENU"&&(this.classList.toggle("open-submenu"),e.hasAttribute("open")?e.dispatchEvent(new CustomEvent("hide-submenu",{bubbles:!0,composed:!0})):e.dispatchEvent(new CustomEvent("show-submenu",{bubbles:!0,composed:!0})))}},a.ScbMenuItem.styles=
|
|
5934
|
+
`}_navigateToHref(e){this.itemHref&&(window.location.href=this.itemHref),e.stopPropagation()}_toggleSubMenu(){const e=this.nextElementSibling;e&&e.tagName==="SCB-SUB-MENU"&&(this.classList.toggle("open-submenu"),e.hasAttribute("open")?e.dispatchEvent(new CustomEvent("hide-submenu",{bubbles:!0,composed:!0})):e.dispatchEvent(new CustomEvent("show-submenu",{bubbles:!0,composed:!0})))}},a.ScbMenuItem.styles=b`
|
|
6137
5935
|
:host {
|
|
6138
5936
|
display: block;
|
|
6139
5937
|
}
|
|
@@ -6176,11 +5974,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6176
5974
|
:host li:focus {
|
|
6177
5975
|
outline: none;
|
|
6178
5976
|
}
|
|
6179
|
-
`,et([l({type:String})],a.ScbMenuItem.prototype,"label",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"hasSubMenu",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"openLeft",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"divider",2),et([l({type:String,attribute:"leading-icon"})],a.ScbMenuItem.prototype,"leadingIcon",2),et([l({type:String,attribute:"trailing-icon"})],a.ScbMenuItem.prototype,"trailingIcon",2),et([l({type:String,attribute:"item-href"})],a.ScbMenuItem.prototype,"itemHref",2),a.ScbMenuItem=et([g("scb-menu-item")],a.ScbMenuItem);var
|
|
5977
|
+
`,et([l({type:String})],a.ScbMenuItem.prototype,"label",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"hasSubMenu",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"openLeft",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"divider",2),et([l({type:String,attribute:"leading-icon"})],a.ScbMenuItem.prototype,"leadingIcon",2),et([l({type:String,attribute:"trailing-icon"})],a.ScbMenuItem.prototype,"trailingIcon",2),et([l({type:String,attribute:"item-href"})],a.ScbMenuItem.prototype,"itemHref",2),a.ScbMenuItem=et([g("scb-menu-item")],a.ScbMenuItem);var _h=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,Is=(o,e,t,i)=>{for(var r=i>1?void 0:i?wh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_h(e,t,r),r};a.ScbSubMenu=class extends y{constructor(){super(...arguments),this.open=!1,this._show=()=>{this.setAttribute("open",""),this.open=!0},this._hide=e=>{this.removeAttribute("open"),this.open=!1,e&&e.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("show-submenu",this._show),this.addEventListener("hide-submenu",this._hide)}disconnectedCallback(){this.removeEventListener("show-submenu",this._show),this.removeEventListener("hide-submenu",this._hide),super.disconnectedCallback()}firstUpdated(){let e=0,t=this.parentElement;for(;t;)t.tagName==="SCB-SUB-MENU"&&e++,t=t.parentElement;e%2===1?this.setAttribute("open-left",""):this.removeAttribute("open-left")}render(){return c`
|
|
6180
5978
|
<div role="menu" class="submenu${this.open?" open":""}">
|
|
6181
5979
|
<slot></slot>
|
|
6182
5980
|
</div>
|
|
6183
|
-
`}},a.ScbSubMenu.styles=
|
|
5981
|
+
`}},a.ScbSubMenu.styles=b`
|
|
6184
5982
|
:host {
|
|
6185
5983
|
display: block;
|
|
6186
5984
|
position: relative;
|
|
@@ -6208,14 +6006,14 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6208
6006
|
.submenu.open {
|
|
6209
6007
|
display: block;
|
|
6210
6008
|
}
|
|
6211
|
-
`,Is([l({type:Boolean,reflect:!0})],a.ScbSubMenu.prototype,"open",2),a.ScbSubMenu=Is([g("scb-sub-menu")],a.ScbSubMenu);var
|
|
6009
|
+
`,Is([l({type:Boolean,reflect:!0})],a.ScbSubMenu.prototype,"open",2),a.ScbSubMenu=Is([g("scb-sub-menu")],a.ScbSubMenu);var Sh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Go=(o,e,t,i)=>{for(var r=i>1?void 0:i?kh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sh(e,t,r),r};a.ScbMenu=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.__lastTriggerEl=null,this.__onDocumentClick=e=>{if(!this.inSb&&this.open&&!this.isClickInScbMenu(e)){this.__setOpen(!1);return}const t=this.__getActionFromEvent(e);if(t){t==="open"&&(this.__setOpen(!0),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))),t==="close"&&(this.__setOpen(!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))),t==="toggle"&&(this.__setOpen(!this.open),this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0}))),e.stopPropagation();return}},this.__onDocumentKeydown=e=>{if(this.open&&e.key==="Escape"){this.__setOpen(!1);return}}}render(){return c`
|
|
6212
6010
|
<div
|
|
6213
6011
|
role="menu"
|
|
6214
6012
|
class="scb-menu-panel${this.open?" open":""}"
|
|
6215
6013
|
>
|
|
6216
6014
|
<slot></slot>
|
|
6217
6015
|
</div>
|
|
6218
|
-
`}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),super.disconnectedCallback()}__setOpen(e){this.open=e}__getActionFromEvent(e){if(!this.id)return null;const t=e.composedPath();for(const i of t)if(i instanceof Element){if(i.getAttribute("data-menu-open")===this.id)return this.__lastTriggerEl=i,"open";if(i.getAttribute("data-menu-close")===this.id)return this.__lastTriggerEl=i,"close";if(i.getAttribute("data-menu-toggle")===this.id)return this.__lastTriggerEl=i,"toggle";if(i.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=i,"toggle"}return null}isClickInScbMenu(e){return e.composedPath().some(i=>i instanceof Element&&(i.tagName==="SCB-MENU"||i.tagName==="SCB-SUB-MENU"))}updated(e){e.has("open")&&(this.__applyOpenSideEffects(),this.open?this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}__applyOpenSideEffects(){this.__updateTriggersExpanded()}__updateTriggersExpanded(){if(!this.id)return;document.querySelectorAll(`[aria-controls="${this.id}"], [data-menu-open="${this.id}"], [data-menu-close="${this.id}"], [data-menu-toggle="${this.id}"]`).forEach(t=>{t.hasAttribute("aria-controls")&&t.setAttribute("aria-expanded",String(this.open))})}},a.ScbMenu.styles=
|
|
6016
|
+
`}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),super.disconnectedCallback()}__setOpen(e){this.open=e}__getActionFromEvent(e){if(!this.id)return null;const t=e.composedPath();for(const i of t)if(i instanceof Element){if(i.getAttribute("data-menu-open")===this.id)return this.__lastTriggerEl=i,"open";if(i.getAttribute("data-menu-close")===this.id)return this.__lastTriggerEl=i,"close";if(i.getAttribute("data-menu-toggle")===this.id)return this.__lastTriggerEl=i,"toggle";if(i.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=i,"toggle"}return null}isClickInScbMenu(e){return e.composedPath().some(i=>i instanceof Element&&(i.tagName==="SCB-MENU"||i.tagName==="SCB-SUB-MENU"))}updated(e){e.has("open")&&(this.__applyOpenSideEffects(),this.open?this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}__applyOpenSideEffects(){this.__updateTriggersExpanded()}__updateTriggersExpanded(){if(!this.id)return;document.querySelectorAll(`[aria-controls="${this.id}"], [data-menu-open="${this.id}"], [data-menu-close="${this.id}"], [data-menu-toggle="${this.id}"]`).forEach(t=>{t.hasAttribute("aria-controls")&&t.setAttribute("aria-expanded",String(this.open))})}},a.ScbMenu.styles=b`
|
|
6219
6017
|
:host {
|
|
6220
6018
|
position: absolute;
|
|
6221
6019
|
display: block;
|
|
@@ -6253,7 +6051,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6253
6051
|
opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1),
|
|
6254
6052
|
transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
|
|
6255
6053
|
}
|
|
6256
|
-
`,Go([l({type:Boolean,reflect:!0})],a.ScbMenu.prototype,"open",2),Go([l({type:Boolean,attribute:!1})],a.ScbMenu.prototype,"inSb",2),a.ScbMenu=Go([g("scb-menu")],a.ScbMenu);var
|
|
6054
|
+
`,Go([l({type:Boolean,reflect:!0})],a.ScbMenu.prototype,"open",2),Go([l({type:Boolean,attribute:!1})],a.ScbMenu.prototype,"inSb",2),a.ScbMenu=Go([g("scb-menu")],a.ScbMenu);var $h=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,W=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$h(e,t,r),r};a.ScbNotificationCard=class extends y{constructor(){super(...arguments),this.variant="success",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.open=!1,this.linkText="",this.linkHref="#",this.showIcon=!1,this.showCloseButton=!1,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.fullHeight=!1,this.fullWidth=!1,this._closeNotification=()=>{this.open=!1;const e=new CustomEvent("close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(e)}}_iconForVariant(){switch(this.variant){case"success":return"check_circle";case"error":return"error";case"warning":return"warning";case"info":default:return"info"}}updated(e){super.updated(e),e.has("width")&&(this.width&&this.width.trim()!==""?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth&&this.maxWidth.trim()!==""?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height&&this.height.trim()!==""?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight&&this.maxHeight.trim()!==""?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size"))}render(){const e=this.direction==="vertical"?"vertical":"horizontal",t=this.variant==="success"?"--_icon-color: var(--md-sys-color-on-success-container);":this.variant==="error"?"--_icon-color: var(--md-sys-color-on-error-container);":this.variant==="warning"?"--_icon-color: var(--md-sys-color-on-warning-container);":"--_icon-color: var(--md-sys-color-on-info-container);";return c`
|
|
6257
6055
|
<div
|
|
6258
6056
|
class="notification"
|
|
6259
6057
|
type=${this.variant}
|
|
@@ -6299,7 +6097,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6299
6097
|
`:null}
|
|
6300
6098
|
</div>
|
|
6301
6099
|
<md-focus-ring></md-focus-ring>
|
|
6302
|
-
`}},a.ScbNotificationCard.styles=[
|
|
6100
|
+
`}},a.ScbNotificationCard.styles=[b`
|
|
6303
6101
|
:host {
|
|
6304
6102
|
display: block;
|
|
6305
6103
|
position: relative;
|
|
@@ -6549,7 +6347,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6549
6347
|
box-shadow: 0 0 0 2px var(--md-sys-color-primary, #1976d2);
|
|
6550
6348
|
}
|
|
6551
6349
|
}
|
|
6552
|
-
`],W([l({type:String})],a.ScbNotificationCard.prototype,"variant",2),W([l({type:String,reflect:!0})],a.ScbNotificationCard.prototype,"direction",2),W([l({type:String})],a.ScbNotificationCard.prototype,"title",2),W([l({type:String})],a.ScbNotificationCard.prototype,"subtitle",2),W([l({type:String,attribute:"supporting-text"})],a.ScbNotificationCard.prototype,"supportingText",2),W([l({type:Boolean,reflect:!0})],a.ScbNotificationCard.prototype,"open",2),W([l({type:String,attribute:"link-text"})],a.ScbNotificationCard.prototype,"linkText",2),W([l({type:String,attribute:"link-href"})],a.ScbNotificationCard.prototype,"linkHref",2),W([l({type:Boolean,attribute:"show-icon"})],a.ScbNotificationCard.prototype,"showIcon",2),W([l({type:Boolean,attribute:"show-close-button"})],a.ScbNotificationCard.prototype,"showCloseButton",2),W([l({type:String,reflect:!0})],a.ScbNotificationCard.prototype,"sizing",2),W([l({type:String,reflect:!0})],a.ScbNotificationCard.prototype,"width",2),W([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbNotificationCard.prototype,"maxWidth",2),W([l({type:String,reflect:!0})],a.ScbNotificationCard.prototype,"height",2),W([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbNotificationCard.prototype,"maxHeight",2),W([l({type:Boolean,reflect:!0,attribute:"full-height"})],a.ScbNotificationCard.prototype,"fullHeight",2),W([l({type:Boolean,reflect:!0,attribute:"full-width"})],a.ScbNotificationCard.prototype,"fullWidth",2),a.ScbNotificationCard=W([g("scb-notification-card")],a.ScbNotificationCard);var
|
|
6350
|
+
`],W([l({type:String})],a.ScbNotificationCard.prototype,"variant",2),W([l({type:String,reflect:!0})],a.ScbNotificationCard.prototype,"direction",2),W([l({type:String})],a.ScbNotificationCard.prototype,"title",2),W([l({type:String})],a.ScbNotificationCard.prototype,"subtitle",2),W([l({type:String,attribute:"supporting-text"})],a.ScbNotificationCard.prototype,"supportingText",2),W([l({type:Boolean,reflect:!0})],a.ScbNotificationCard.prototype,"open",2),W([l({type:String,attribute:"link-text"})],a.ScbNotificationCard.prototype,"linkText",2),W([l({type:String,attribute:"link-href"})],a.ScbNotificationCard.prototype,"linkHref",2),W([l({type:Boolean,attribute:"show-icon"})],a.ScbNotificationCard.prototype,"showIcon",2),W([l({type:Boolean,attribute:"show-close-button"})],a.ScbNotificationCard.prototype,"showCloseButton",2),W([l({type:String,reflect:!0})],a.ScbNotificationCard.prototype,"sizing",2),W([l({type:String,reflect:!0})],a.ScbNotificationCard.prototype,"width",2),W([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbNotificationCard.prototype,"maxWidth",2),W([l({type:String,reflect:!0})],a.ScbNotificationCard.prototype,"height",2),W([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbNotificationCard.prototype,"maxHeight",2),W([l({type:Boolean,reflect:!0,attribute:"full-height"})],a.ScbNotificationCard.prototype,"fullHeight",2),W([l({type:Boolean,reflect:!0,attribute:"full-width"})],a.ScbNotificationCard.prototype,"fullWidth",2),a.ScbNotificationCard=W([g("scb-notification-card")],a.ScbNotificationCard);var Eh=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,Ve=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ah(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Eh(e,t,r),r};a.ScbPagination=class extends y{constructor(){super(...arguments),this.variant="icon-text",this.page=1,this.totalPages=0,this.pagingHref="/products?page=",this.paginationAriaLabel="Paginering",this.currentAriaLabel="Nuvarande sida, ",this.pagingNumberAriaLabel="Gå till sida ",this.isNarrow=window.innerWidth<=768,this._onResize=()=>{this.isNarrow=window.innerWidth<=768}}_prevPage(){this.page>1&&this.page--,this.dispatchEvent(new CustomEvent("page-change",{detail:{page:this.page}}))}_nextPage(){this.page<this.totalPages&&this.page++,this.dispatchEvent(new CustomEvent("page-change",{detail:{page:this.page}}))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._onResize),this._onResize()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._onResize)}render(){if(this.totalPages===0)return null;const e=this.variant?`${this.variant.toLowerCase()}`:"",t=[],{page:i,totalPages:r}=this,s=window.innerWidth<=768,n=s?1:2,h=p=>p===i?c`
|
|
6553
6351
|
<li>
|
|
6554
6352
|
<span
|
|
6555
6353
|
class="page-number active"
|
|
@@ -6596,7 +6394,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6596
6394
|
</div>
|
|
6597
6395
|
</div>
|
|
6598
6396
|
</nav>
|
|
6599
|
-
`}},a.ScbPagination.styles=[
|
|
6397
|
+
`}},a.ScbPagination.styles=[b`
|
|
6600
6398
|
:host .pagination {
|
|
6601
6399
|
--md-text-button-label-text-color: var(--md-sys-color-on-surface, #0F0865);
|
|
6602
6400
|
--md-text-button-pressed-state-layer-color: var(--md-sys-color-on-surface, #0F0865);
|
|
@@ -6723,7 +6521,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6723
6521
|
margin-top: 8px;
|
|
6724
6522
|
}
|
|
6725
6523
|
}
|
|
6726
|
-
`],Ve([l({type:String})],a.ScbPagination.prototype,"variant",2),Ve([l({type:Number})],a.ScbPagination.prototype,"page",2),Ve([l({type:Number,attribute:"total-pages"})],a.ScbPagination.prototype,"totalPages",2),Ve([l({type:String,attribute:"paging-href"})],a.ScbPagination.prototype,"pagingHref",2),Ve([l({type:String,attribute:"pagination-aria-label"})],a.ScbPagination.prototype,"paginationAriaLabel",2),Ve([l({type:String,attribute:"current-aria-label"})],a.ScbPagination.prototype,"currentAriaLabel",2),Ve([l({type:String,attribute:"paging-number-aria-label"})],a.ScbPagination.prototype,"pagingNumberAriaLabel",2),Ve([l({type:Boolean})],a.ScbPagination.prototype,"isNarrow",2),a.ScbPagination=Ve([g("scb-pagination")],a.ScbPagination);var
|
|
6524
|
+
`],Ve([l({type:String})],a.ScbPagination.prototype,"variant",2),Ve([l({type:Number})],a.ScbPagination.prototype,"page",2),Ve([l({type:Number,attribute:"total-pages"})],a.ScbPagination.prototype,"totalPages",2),Ve([l({type:String,attribute:"paging-href"})],a.ScbPagination.prototype,"pagingHref",2),Ve([l({type:String,attribute:"pagination-aria-label"})],a.ScbPagination.prototype,"paginationAriaLabel",2),Ve([l({type:String,attribute:"current-aria-label"})],a.ScbPagination.prototype,"currentAriaLabel",2),Ve([l({type:String,attribute:"paging-number-aria-label"})],a.ScbPagination.prototype,"pagingNumberAriaLabel",2),Ve([l({type:Boolean})],a.ScbPagination.prototype,"isNarrow",2),a.ScbPagination=Ve([g("scb-pagination")],a.ScbPagination);var zh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,fi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ih(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&zh(e,t,r),r};a.ScbProgressIndicator=class extends y{constructor(){super(...arguments),this.id="",this.type="circular",this.progress=25,this.isStatic=!0}render(){return c`
|
|
6727
6525
|
<div class="scb-progress-indicator">
|
|
6728
6526
|
${this.type==="circular"?c`
|
|
6729
6527
|
<div class="circular">
|
|
@@ -6744,7 +6542,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6744
6542
|
</div>
|
|
6745
6543
|
`}
|
|
6746
6544
|
</div>
|
|
6747
|
-
`}},a.ScbProgressIndicator.styles=[
|
|
6545
|
+
`}},a.ScbProgressIndicator.styles=[b`
|
|
6748
6546
|
|
|
6749
6547
|
.circular {
|
|
6750
6548
|
display: flex;
|
|
@@ -6799,7 +6597,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6799
6597
|
50% { margin-left: 30%; width: 60%; }
|
|
6800
6598
|
100% { margin-left: 100%; width: 40%; }
|
|
6801
6599
|
}
|
|
6802
|
-
`],fi([l({type:String})],a.ScbProgressIndicator.prototype,"id",2),fi([l({type:String,reflect:!0})],a.ScbProgressIndicator.prototype,"type",2),fi([l({type:Number,reflect:!0})],a.ScbProgressIndicator.prototype,"progress",2),fi([l({type:Boolean,attribute:"is-static"})],a.ScbProgressIndicator.prototype,"isStatic",2),a.ScbProgressIndicator=fi([g("scb-progress-indicator")],a.ScbProgressIndicator);var
|
|
6600
|
+
`],fi([l({type:String})],a.ScbProgressIndicator.prototype,"id",2),fi([l({type:String,reflect:!0})],a.ScbProgressIndicator.prototype,"type",2),fi([l({type:Number,reflect:!0})],a.ScbProgressIndicator.prototype,"progress",2),fi([l({type:Boolean,attribute:"is-static"})],a.ScbProgressIndicator.prototype,"isStatic",2),a.ScbProgressIndicator=fi([g("scb-progress-indicator")],a.ScbProgressIndicator);var Th=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,tt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Th(e,t,r),r};a.ScbProgressStep=class extends y{constructor(){super(...arguments),this.width="100%",this.active=!1,this.disabled=!1,this.href="",this.label="",this.position="top",this._stepId=`scb-step-${Math.random().toString(36).slice(2)}`}updated(e){var t;(t=super.updated)==null||t.call(this,e),this.style.setProperty("--progress-step-width",this.width)}_onClick(){this.dispatchEvent(new CustomEvent("step-click",{detail:{},bubbles:!0,composed:!0}))}firstUpdated(e){var t;(t=super.firstUpdated)==null||t.call(this,e),this._setupTooltipPositioning()}_setupTooltipPositioning(){new MutationObserver(()=>this._adjustTooltipPosition()).observe(this,{attributes:!0,childList:!0,subtree:!0}),window.addEventListener("resize",()=>this._adjustTooltipPosition())}_adjustTooltipPosition(){const e=this.renderRoot.querySelector(".tooltip");if(!e)return;e.style.left="50%",e.style.right="",e.style.transform="translateX(-50%)",e.classList.remove("tooltip-left","tooltip-right");const t=e.getBoundingClientRect(),i=8;t.right>window.innerWidth-i&&(e.style.left="auto",e.style.right=`${i}px`,e.style.transform="none",e.classList.add("tooltip-right")),t.left<i&&(e.style.left=`${i}px`,e.style.right="auto",e.style.transform="none",e.classList.add("tooltip-left"))}render(){const e=!!this.href&&!this.disabled;return c`
|
|
6803
6601
|
${e?c`
|
|
6804
6602
|
<a
|
|
6805
6603
|
id=${this._stepId}
|
|
@@ -6826,7 +6624,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6826
6624
|
`}
|
|
6827
6625
|
${this.disabled?"":c`<md-focus-ring for="${this._stepId}"></md-focus-ring>`}
|
|
6828
6626
|
${this.label&&!this.disabled?c`<div class="tooltip ${this.position==="bottom"?"bottom":"top"}">${this.label}</div>`:""}
|
|
6829
|
-
`}},a.ScbProgressStep.styles=
|
|
6627
|
+
`}},a.ScbProgressStep.styles=b`
|
|
6830
6628
|
:host {
|
|
6831
6629
|
display: block;
|
|
6832
6630
|
width: var(--progress-step-width, 100%);
|
|
@@ -6945,14 +6743,14 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
6945
6743
|
left: auto;
|
|
6946
6744
|
transform: none;
|
|
6947
6745
|
}
|
|
6948
|
-
`,tt([l({type:String})],a.ScbProgressStep.prototype,"width",2),tt([l({type:Boolean,reflect:!0})],a.ScbProgressStep.prototype,"active",2),tt([l({type:Boolean,reflect:!0})],a.ScbProgressStep.prototype,"disabled",2),tt([l({type:String,reflect:!0})],a.ScbProgressStep.prototype,"href",2),tt([l({type:String})],a.ScbProgressStep.prototype,"label",2),tt([l({type:String})],a.ScbProgressStep.prototype,"position",2),tt([w()],a.ScbProgressStep.prototype,"_stepId",2),a.ScbProgressStep=tt([g("scb-progress-step")],a.ScbProgressStep);var
|
|
6746
|
+
`,tt([l({type:String})],a.ScbProgressStep.prototype,"width",2),tt([l({type:Boolean,reflect:!0})],a.ScbProgressStep.prototype,"active",2),tt([l({type:Boolean,reflect:!0})],a.ScbProgressStep.prototype,"disabled",2),tt([l({type:String,reflect:!0})],a.ScbProgressStep.prototype,"href",2),tt([l({type:String})],a.ScbProgressStep.prototype,"label",2),tt([l({type:String})],a.ScbProgressStep.prototype,"position",2),tt([w()],a.ScbProgressStep.prototype,"_stepId",2),a.ScbProgressStep=tt([g("scb-progress-step")],a.ScbProgressStep);var Lh=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,yr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ph(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Lh(e,t,r),r};a.ScbProgressStepper=class extends y{constructor(){super(...arguments),this.progressWidth=23,this.height="normal",this.position="top"}updated(e){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");if(!t)return;e.has("progressWidth")&&t.dispatchEvent(new Event("slotchange"));const i=t.assignedElements({flatten:!0}),r=this.progressWidth;let s=0;i.forEach((h,p)=>{if(h instanceof a.ScbProgressStep){const v=typeof h.width=="string"?parseFloat(h.width.replace("%","")):Number(h.width);s+=v,this.position=="bottom"?h.setAttribute("position","bottom"):h.setAttribute("position","top"),s<=r+2?h.setAttribute("active","true"):h.removeAttribute("active"),p===i.length-1?h.classList.add("last-step"):h.classList.remove("last-step")}})}render(){return c`
|
|
6949
6747
|
<div class="progress-bar">
|
|
6950
6748
|
<div class="progress-bar__fill" style="width: ${this.progressWidth}%;"></div>
|
|
6951
6749
|
</div>
|
|
6952
6750
|
<div class="progress-container">
|
|
6953
6751
|
<slot></slot>
|
|
6954
6752
|
</div>
|
|
6955
|
-
`}},a.ScbProgressStepper.styles=
|
|
6753
|
+
`}},a.ScbProgressStepper.styles=b`
|
|
6956
6754
|
:host {
|
|
6957
6755
|
display: block;
|
|
6958
6756
|
width: 100%;
|
|
@@ -7001,14 +6799,14 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7001
6799
|
position: relative;
|
|
7002
6800
|
gap: 0;
|
|
7003
6801
|
}
|
|
7004
|
-
`,yr([l({type:Number,reflect:!0,attribute:"progress-width",hasChanged:(o,e)=>o!==e})],a.ScbProgressStepper.prototype,"progressWidth",2),yr([l({type:String,reflect:!0})],a.ScbProgressStepper.prototype,"height",2),yr([l({type:String,reflect:!0})],a.ScbProgressStepper.prototype,"position",2),a.ScbProgressStepper=yr([g("scb-progress-stepper")],a.ScbProgressStepper);var
|
|
6802
|
+
`,yr([l({type:Number,reflect:!0,attribute:"progress-width",hasChanged:(o,e)=>o!==e})],a.ScbProgressStepper.prototype,"progressWidth",2),yr([l({type:String,reflect:!0})],a.ScbProgressStepper.prototype,"height",2),yr([l({type:String,reflect:!0})],a.ScbProgressStepper.prototype,"position",2),a.ScbProgressStepper=yr([g("scb-progress-stepper")],a.ScbProgressStepper);var Dh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Ht=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Dh(e,t,r),r};a.ScbSegmentedItem=class extends y{constructor(){super(...arguments),this.label="",this.value="",this.selected=!1,this.icon="",this.disabled=!1}render(){var n;const e=this.parentElement,t=(n=e==null?void 0:e.hasAttribute)==null?void 0:n.call(e,"disabled"),i=this.disabled||t,r=!!this.icon,s=!!this.label;return c`
|
|
7005
6803
|
<div class="segmented-item${r||this.selected?" has-icon":""}${s?"":" no-label"}" aria-disabled="${i?"true":"false"}">
|
|
7006
6804
|
<md-ripple ?disabled="${i}"></md-ripple>
|
|
7007
6805
|
${this.selected?r&&s?c`<md-icon>check</md-icon>`:r?c`<md-icon>check</md-icon><md-icon>${this.icon}</md-icon>`:c`<md-icon>check</md-icon>`:r?c`<md-icon>${this.icon}</md-icon>`:""}
|
|
7008
6806
|
${s?c`<span>${this.label}</span>`:""}
|
|
7009
6807
|
<md-focus-ring inward></md-focus-ring>
|
|
7010
6808
|
</div>
|
|
7011
|
-
`}firstUpdated(){this.setAttribute("tabindex",this.disabled?"-1":"0"),this.setAttribute("role","button")}},a.ScbSegmentedItem.styles=
|
|
6809
|
+
`}firstUpdated(){this.setAttribute("tabindex",this.disabled?"-1":"0"),this.setAttribute("role","button")}},a.ScbSegmentedItem.styles=b`
|
|
7012
6810
|
.segmented-item {
|
|
7013
6811
|
display: flex;
|
|
7014
6812
|
gap: var(--spacing-3);
|
|
@@ -7075,7 +6873,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7075
6873
|
border-top-right-radius: var(--md-sys-shape-corner-full);
|
|
7076
6874
|
border-bottom-right-radius: var(--md-sys-shape-corner-full);
|
|
7077
6875
|
}
|
|
7078
|
-
`,Ht([l({type:String,reflect:!0})],a.ScbSegmentedItem.prototype,"label",2),Ht([l({type:String,reflect:!0})],a.ScbSegmentedItem.prototype,"value",2),Ht([l({type:Boolean,reflect:!0})],a.ScbSegmentedItem.prototype,"selected",2),Ht([l({type:String,reflect:!0})],a.ScbSegmentedItem.prototype,"icon",2),Ht([l({type:Boolean,reflect:!0})],a.ScbSegmentedItem.prototype,"disabled",2),a.ScbSegmentedItem=Ht([g("scb-segmented-item")],a.ScbSegmentedItem);var
|
|
6876
|
+
`,Ht([l({type:String,reflect:!0})],a.ScbSegmentedItem.prototype,"label",2),Ht([l({type:String,reflect:!0})],a.ScbSegmentedItem.prototype,"value",2),Ht([l({type:Boolean,reflect:!0})],a.ScbSegmentedItem.prototype,"selected",2),Ht([l({type:String,reflect:!0})],a.ScbSegmentedItem.prototype,"icon",2),Ht([l({type:Boolean,reflect:!0})],a.ScbSegmentedItem.prototype,"disabled",2),a.ScbSegmentedItem=Ht([g("scb-segmented-item")],a.ScbSegmentedItem);var Bh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,gi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bh(e,t,r),r};a.ScbSegmentedButton=class extends y{constructor(){super(...arguments),this.variant="single-select",this.value="",this.values=[],this.disabled=!1}onSlotClick(e){let t=e.target;if(!t||!t.closest)return;const i=t.closest("scb-segmented-item");if(!i||this.disabled||i.hasAttribute("disabled"))return;const r=i.getAttribute("value")||"";r&&(this.variant==="multi-select"?(this.values.indexOf(r)===-1?this.values=[...this.values,r]:this.values=this.values.filter(n=>n!==r),this.dispatchEvent(new CustomEvent("change",{detail:{values:this.values},bubbles:!0,composed:!0})),this.updateSegments()):r!==this.value&&(this.value=r,this.dispatchEvent(new CustomEvent("change",{detail:{value:r},bubbles:!0,composed:!0})),this.updateSegments()))}updateSegments(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;e.assignedElements().forEach(r=>{if(r.tagName==="SCB-SEGMENTED-ITEM"){const s=r.getAttribute("value")||"";if(s){let n=!1;this.variant==="multi-select"?n=!!this.values&&this.values.includes(s):n=s===this.value,r.setAttribute("aria-pressed",n?"true":"false"),n?r.setAttribute("selected","true"):r.removeAttribute("selected")}this.disabled&&r.setAttribute("disabled","true")}})}firstUpdated(){var t;this.updateSegments();const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(e.addEventListener("click",i=>this.onSlotClick(i)),e.addEventListener("focus",()=>{this.dispatchEvent(new CustomEvent("focus",{detail:{},bubbles:!0,composed:!0}))},!0),e.addEventListener("blur",()=>{this.dispatchEvent(new CustomEvent("blur",{detail:{},bubbles:!0,composed:!0}))},!0),e.addEventListener("keydown",i=>{if(i.code==="Space"||i.code==="Enter"||i.code==="NumpadEnter"){const r=i.target;if(r&&r.closest){const s=r.closest("scb-segmented-item");s&&!s.hasAttribute("disabled")&&!this.disabled&&(this.onSlotClick(i),i.preventDefault())}}}))}updated(){this.updateSegments()}render(){return c`<slot></slot>`}},a.ScbSegmentedButton.styles=b`
|
|
7079
6877
|
:host {
|
|
7080
6878
|
--scb-segmented-button-width: 100%;
|
|
7081
6879
|
--scb-segmented-button-height: 48px;
|
|
@@ -7102,11 +6900,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7102
6900
|
::slotted([role="button"]:first-child .segmented-item) {
|
|
7103
6901
|
border-left: 1px solid var(--md-sys-color-outline);
|
|
7104
6902
|
}
|
|
7105
|
-
`,gi([l({type:String,reflect:!0})],a.ScbSegmentedButton.prototype,"variant",2),gi([l({type:String,reflect:!0})],a.ScbSegmentedButton.prototype,"value",2),gi([l({type:Array})],a.ScbSegmentedButton.prototype,"values",2),gi([l({type:Boolean,reflect:!0})],a.ScbSegmentedButton.prototype,"disabled",2),a.ScbSegmentedButton=gi([g("scb-segmented-button")],a.ScbSegmentedButton);var
|
|
6903
|
+
`,gi([l({type:String,reflect:!0})],a.ScbSegmentedButton.prototype,"variant",2),gi([l({type:String,reflect:!0})],a.ScbSegmentedButton.prototype,"value",2),gi([l({type:Array})],a.ScbSegmentedButton.prototype,"values",2),gi([l({type:Boolean,reflect:!0})],a.ScbSegmentedButton.prototype,"disabled",2),a.ScbSegmentedButton=gi([g("scb-segmented-button")],a.ScbSegmentedButton);var Hh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,yi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hh(e,t,r),r};a.ScbSkeleton=class extends y{constructor(){super(...arguments),this.variant="rectangular",this.width="100%",this.height="100%",this.borderSize="small"}render(){return this.style.setProperty("--scb-skeleton-width",this.width),this.style.setProperty("--scb-skeleton-height",this.height),this.variant==="rounded"&&this.style.setProperty("--scb-skeleton-border-size",this.borderSize==="small"?"8px":this.borderSize==="medium"?"16px":this.borderSize==="large"?"24px":"8px"),c`
|
|
7106
6904
|
<div
|
|
7107
6905
|
class="skeleton${this.variant==="circular"?" circle":""} ${this.variant==="rounded"?" rounded":""}"
|
|
7108
6906
|
><slot></slot></div>
|
|
7109
|
-
`}},a.ScbSkeleton.styles=
|
|
6907
|
+
`}},a.ScbSkeleton.styles=b`
|
|
7110
6908
|
:host {
|
|
7111
6909
|
display: inline-block;
|
|
7112
6910
|
max-width: var(--scb-skeleton-width);
|
|
@@ -7134,7 +6932,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7134
6932
|
background-position: -200% 0;
|
|
7135
6933
|
}
|
|
7136
6934
|
}
|
|
7137
|
-
`,yi([l({type:String})],a.ScbSkeleton.prototype,"variant",2),yi([l({type:String})],a.ScbSkeleton.prototype,"width",2),yi([l({type:String})],a.ScbSkeleton.prototype,"height",2),yi([l({type:String,attribute:"border-size"})],a.ScbSkeleton.prototype,"borderSize",2),a.ScbSkeleton=yi([g("scb-skeleton")],a.ScbSkeleton);var
|
|
6935
|
+
`,yi([l({type:String})],a.ScbSkeleton.prototype,"variant",2),yi([l({type:String})],a.ScbSkeleton.prototype,"width",2),yi([l({type:String})],a.ScbSkeleton.prototype,"height",2),yi([l({type:String,attribute:"border-size"})],a.ScbSkeleton.prototype,"borderSize",2),a.ScbSkeleton=yi([g("scb-skeleton")],a.ScbSkeleton);var Nh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,it=(o,e,t,i)=>{for(var r=i>1?void 0:i?qh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Nh(e,t,r),r};a.ScbSnackbar=class extends y{constructor(){super(...arguments),this.message="",this.open=!1,this.actionText="",this.showClose=!1,this.fixed=!1,this.fadeout=!1,this.withLongerAction=!1}handleAction(){this.dispatchEvent(new CustomEvent("snackbar-action",{bubbles:!0,composed:!0})),this.open=!1}handleClose(){this.open=!1}updated(e){super.updated(e),e.has("open")&&(this.open?this.dispatchEvent(new CustomEvent("snackbar-open",{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent("snackbar-close",{bubbles:!0,composed:!0}))),(e.has("open")||e.has("fadeout"))&&(this.open&&this.fadeout?(window.clearTimeout(this._fadeoutTimer),this._fadeoutTimer=window.setTimeout(()=>{this.open=!1},5e3)):window.clearTimeout(this._fadeoutTimer))}render(){const e=!!this.actionText,t=!!this.showClose;let i="snackbar";return!e&&!t&&(i+=" no-actions"),this.withLongerAction&&(i+=" longer-action"),c`
|
|
7138
6936
|
<div class="${i}" ?hidden=${!this.open}>
|
|
7139
6937
|
${this.withLongerAction?c`
|
|
7140
6938
|
<div class="message">${this.message}</div>
|
|
@@ -7172,7 +6970,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7172
6970
|
`:""}
|
|
7173
6971
|
`}
|
|
7174
6972
|
</div>
|
|
7175
|
-
`}},a.ScbSnackbar.styles=
|
|
6973
|
+
`}},a.ScbSnackbar.styles=b`
|
|
7176
6974
|
:host {
|
|
7177
6975
|
position: relative;
|
|
7178
6976
|
display: block;
|
|
@@ -7256,10 +7054,10 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7256
7054
|
);
|
|
7257
7055
|
--md-focus-ring-color: var(--md-sys-color-inverse-on-surface);
|
|
7258
7056
|
}
|
|
7259
|
-
`,it([l({type:String})],a.ScbSnackbar.prototype,"message",2),it([l({type:Boolean,reflect:!0})],a.ScbSnackbar.prototype,"open",2),it([l({type:String,attribute:"action-text"})],a.ScbSnackbar.prototype,"actionText",2),it([l({type:Boolean,attribute:"show-close"})],a.ScbSnackbar.prototype,"showClose",2),it([l({type:Boolean,reflect:!0})],a.ScbSnackbar.prototype,"fixed",2),it([l({type:Boolean})],a.ScbSnackbar.prototype,"fadeout",2),it([l({type:Boolean,attribute:"with-longer-action"})],a.ScbSnackbar.prototype,"withLongerAction",2),a.ScbSnackbar=it([g("scb-snackbar")],a.ScbSnackbar);var
|
|
7057
|
+
`,it([l({type:String})],a.ScbSnackbar.prototype,"message",2),it([l({type:Boolean,reflect:!0})],a.ScbSnackbar.prototype,"open",2),it([l({type:String,attribute:"action-text"})],a.ScbSnackbar.prototype,"actionText",2),it([l({type:Boolean,attribute:"show-close"})],a.ScbSnackbar.prototype,"showClose",2),it([l({type:Boolean,reflect:!0})],a.ScbSnackbar.prototype,"fixed",2),it([l({type:Boolean})],a.ScbSnackbar.prototype,"fadeout",2),it([l({type:Boolean,attribute:"with-longer-action"})],a.ScbSnackbar.prototype,"withLongerAction",2),a.ScbSnackbar=it([g("scb-snackbar")],a.ScbSnackbar);var Vh=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,xr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Uh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Vh(e,t,r),r};a.ScbStatusPill=class extends y{constructor(){super(...arguments),this.status="",this.label="",this.showIcon=!1}render(){return c`
|
|
7260
7058
|
${this.showIcon?this.status==="success"?c`<md-icon>check_circle</md-icon>`:this.status==="warning"?c`<md-icon>warning</md-icon>`:this.status==="error"?c`<md-icon>error</md-icon>`:"":""}
|
|
7261
7059
|
<span class="label">${this.label}</span>
|
|
7262
|
-
`}},a.ScbStatusPill.styles=
|
|
7060
|
+
`}},a.ScbStatusPill.styles=b`
|
|
7263
7061
|
:host {
|
|
7264
7062
|
display: inline-block;
|
|
7265
7063
|
border-radius: var(--md-sys-shape-corner-full);
|
|
@@ -7290,7 +7088,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7290
7088
|
background: var(--md-sys-color-error-container);
|
|
7291
7089
|
color: var(--md-sys-color-on-error-container);
|
|
7292
7090
|
}
|
|
7293
|
-
`,xr([l({type:String})],a.ScbStatusPill.prototype,"status",2),xr([l({type:String})],a.ScbStatusPill.prototype,"label",2),xr([l({type:Boolean,attribute:"show-icon"})],a.ScbStatusPill.prototype,"showIcon",2),a.ScbStatusPill=xr([g("scb-status-pill")],a.ScbStatusPill);var
|
|
7091
|
+
`,xr([l({type:String})],a.ScbStatusPill.prototype,"status",2),xr([l({type:String})],a.ScbStatusPill.prototype,"label",2),xr([l({type:Boolean,attribute:"show-icon"})],a.ScbStatusPill.prototype,"showIcon",2),a.ScbStatusPill=xr([g("scb-status-pill")],a.ScbStatusPill);var jh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jh(e,t,r),r};a.ScbStep=class extends y{constructor(){super(...arguments),this.label="",this.subLabel="",this.symbolVariant="number",this.number=0,this.active=!1,this.completed=!1,this.changeOnCompleted=!1,this.islast=!1,this.variant="horizontal",this.icon=""}updated(){!this.subLabel||this.subLabel.trim()===""?this.setAttribute("no-content",""):this.removeAttribute("no-content")}handleKeyDown(e){e.key==="Enter"||e.key===" "?(e.preventDefault(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0}))):(e.key==="ArrowRight"||e.key==="ArrowLeft")&&(this.dispatchEvent(new CustomEvent("scb-stepper-keynav",{detail:{key:e.key},bubbles:!0,composed:!0})),e.preventDefault())}render(){const e=this.active?"step":void 0,t=this.label?`${this.label}${this.subLabel?": "+this.subLabel:""}`:void 0;switch(this.symbolVariant){case"icon":return c`
|
|
7294
7092
|
<div
|
|
7295
7093
|
class="scb-step-content"
|
|
7296
7094
|
tabindex="0"
|
|
@@ -7347,7 +7145,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7347
7145
|
</div>
|
|
7348
7146
|
<md-focus-ring></md-focus-ring>
|
|
7349
7147
|
</div>
|
|
7350
|
-
`}}},a.ScbStep.styles=
|
|
7148
|
+
`}}},a.ScbStep.styles=b`
|
|
7351
7149
|
:host {
|
|
7352
7150
|
font-family: var(--brand-font);
|
|
7353
7151
|
}
|
|
@@ -7454,7 +7252,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7454
7252
|
}
|
|
7455
7253
|
}
|
|
7456
7254
|
|
|
7457
|
-
`,xe([l({type:String,reflect:!0})],a.ScbStep.prototype,"label",2),xe([l({type:String,reflect:!0,attribute:"sub-label"})],a.ScbStep.prototype,"subLabel",2),xe([l({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStep.prototype,"symbolVariant",2),xe([l({type:Number,reflect:!0})],a.ScbStep.prototype,"number",2),xe([l({type:Boolean,reflect:!0})],a.ScbStep.prototype,"active",2),xe([l({type:Boolean,reflect:!0})],a.ScbStep.prototype,"completed",2),xe([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStep.prototype,"changeOnCompleted",2),xe([l({type:Boolean,reflect:!0})],a.ScbStep.prototype,"islast",2),xe([l({type:String,reflect:!0})],a.ScbStep.prototype,"variant",2),xe([l({type:String})],a.ScbStep.prototype,"icon",2),a.ScbStep=xe([g("scb-step")],a.ScbStep);var
|
|
7255
|
+
`,xe([l({type:String,reflect:!0})],a.ScbStep.prototype,"label",2),xe([l({type:String,reflect:!0,attribute:"sub-label"})],a.ScbStep.prototype,"subLabel",2),xe([l({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStep.prototype,"symbolVariant",2),xe([l({type:Number,reflect:!0})],a.ScbStep.prototype,"number",2),xe([l({type:Boolean,reflect:!0})],a.ScbStep.prototype,"active",2),xe([l({type:Boolean,reflect:!0})],a.ScbStep.prototype,"completed",2),xe([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStep.prototype,"changeOnCompleted",2),xe([l({type:Boolean,reflect:!0})],a.ScbStep.prototype,"islast",2),xe([l({type:String,reflect:!0})],a.ScbStep.prototype,"variant",2),xe([l({type:String})],a.ScbStep.prototype,"icon",2),a.ScbStep=xe([g("scb-step")],a.ScbStep);var Kh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,wt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kh(e,t,r),r};a.ScbStepper=class extends y{constructor(){super(...arguments),this.type="",this.label="",this.changeOnCompleted=!1,this.variant="horizontal",this.symbolVariant="number",this.activeIndex=0,this._onKeyNav=e=>{const t=this._getSteps(),i=this.activeIndex;let r=i;e.detail.key==="ArrowRight"?i<t.length-1?r=i+1:r=0:e.detail.key==="ArrowLeft"&&(i>0?r=i-1:r=t.length-1),r!==i&&(this._onStepClick(r),setTimeout(()=>{var n;const s=(n=t[r].shadowRoot)==null?void 0:n.querySelector(".scb-step-content");s&&"focus"in s&&typeof s.focus=="function"&&s.focus()},0))},this._onStepContainerClick=e=>{const t=this._getSteps(),i=e.composedPath(),r=t.findIndex(s=>i.includes(s));r!==-1&&this._onStepClick(r)}}_onStepClick(e){const t=this.activeIndex;this.activeIndex=e,this._updateSteps(),this.dispatchEvent(new CustomEvent("scb-step-change",{detail:{index:this.activeIndex,step:this._getSteps()[this.activeIndex]},bubbles:!0,composed:!0})),e>t?this.dispatchEvent(new CustomEvent("scb-step-next",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0})):e<t&&this.dispatchEvent(new CustomEvent("scb-step-prev",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0}))}nextStep(){const e=this._getSteps();this.activeIndex<e.length-1&&this._onStepClick(this.activeIndex+1)}prevStep(){this.activeIndex>0&&this._onStepClick(this.activeIndex-1)}getActiveIndex(){return this.activeIndex}_updateSteps(){const e=this._getSteps();e.forEach((t,i)=>{t.active=i===this.activeIndex,t.completed=i<this.activeIndex,t.islast=!1,t.changeOnCompleted=this.changeOnCompleted,t.number=i+1,t.variant=this.variant,t.symbolVariant=this.symbolVariant}),e.length>0&&(e[e.length-1].islast=!0)}_getSteps(){return Array.from(this.querySelectorAll("scb-step"))}firstUpdated(){this._updateSteps()}updated(){this._updateSteps()}render(){return c`
|
|
7458
7256
|
<div
|
|
7459
7257
|
class="steps"
|
|
7460
7258
|
role="list"
|
|
@@ -7464,7 +7262,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7464
7262
|
>
|
|
7465
7263
|
<slot></slot>
|
|
7466
7264
|
</div>
|
|
7467
|
-
`}},a.ScbStepper.styles=
|
|
7265
|
+
`}},a.ScbStepper.styles=b`
|
|
7468
7266
|
:host {
|
|
7469
7267
|
--scb-stepper-width: 100%;
|
|
7470
7268
|
--scb-stepper-height: 100%;
|
|
@@ -7536,17 +7334,17 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7536
7334
|
::slotted(scb-step[symbol-variant="marker"]:not(:first-child))::before {
|
|
7537
7335
|
top: 20px;
|
|
7538
7336
|
}
|
|
7539
|
-
`,wt([l({type:String,reflect:!0})],a.ScbStepper.prototype,"type",2),wt([l({type:String,reflect:!0})],a.ScbStepper.prototype,"label",2),wt([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStepper.prototype,"changeOnCompleted",2),wt([l({type:String})],a.ScbStepper.prototype,"variant",2),wt([l({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStepper.prototype,"symbolVariant",2),wt([w()],a.ScbStepper.prototype,"activeIndex",2),a.ScbStepper=wt([g("scb-stepper")],a.ScbStepper);var
|
|
7337
|
+
`,wt([l({type:String,reflect:!0})],a.ScbStepper.prototype,"type",2),wt([l({type:String,reflect:!0})],a.ScbStepper.prototype,"label",2),wt([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStepper.prototype,"changeOnCompleted",2),wt([l({type:String})],a.ScbStepper.prototype,"variant",2),wt([l({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStepper.prototype,"symbolVariant",2),wt([w()],a.ScbStepper.prototype,"activeIndex",2),a.ScbStepper=wt([g("scb-stepper")],a.ScbStepper);var Yh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,_r=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Yh(e,t,r),r};a.ScbPrimaryTab=class extends oi{constructor(){super(...arguments),this.iconOnly=!1,this.inlineIcon=!1,this._onActivate=()=>{var t;const e=((t=this.textContent)==null?void 0:t.trim())??"";this.dispatchEvent(new CustomEvent("activate",{detail:{label:e},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}get icon(){return this._icon}set icon(e){const t=this._icon;t!==e&&(this._icon=e,this.requestUpdate("icon",t),this.updateIconSlot())}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",this._onActivate),this._icon&&this.updateIconSlot()}updated(){var e;if(super.updated(),this.setAttribute("aria-selected",this.active?"true":"false"),this.iconOnly&&!this.hasAttribute("aria-label")){const t=((e=this.textContent)==null?void 0:e.trim())??"";t&&this.setAttribute("aria-label",t)}}updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},a.ScbPrimaryTab.styles=[...oi.styles,b`
|
|
7540
7338
|
/* Icon-only: dölj textslot */
|
|
7541
7339
|
:host([icon-only]) slot:not([name='icon']) {
|
|
7542
7340
|
display: none;
|
|
7543
7341
|
}
|
|
7544
|
-
`],_r([l({type:String})],a.ScbPrimaryTab.prototype,"icon",1),_r([l({type:Boolean,reflect:!0,attribute:"icon-only"})],a.ScbPrimaryTab.prototype,"iconOnly",2),_r([l({type:Boolean,reflect:!0,attribute:"inline-icon"})],a.ScbPrimaryTab.prototype,"inlineIcon",2),a.ScbPrimaryTab=_r([g("scb-primary-tab")],a.ScbPrimaryTab);var
|
|
7342
|
+
`],_r([l({type:String})],a.ScbPrimaryTab.prototype,"icon",1),_r([l({type:Boolean,reflect:!0,attribute:"icon-only"})],a.ScbPrimaryTab.prototype,"iconOnly",2),_r([l({type:Boolean,reflect:!0,attribute:"inline-icon"})],a.ScbPrimaryTab.prototype,"inlineIcon",2),a.ScbPrimaryTab=_r([g("scb-primary-tab")],a.ScbPrimaryTab);var Zh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,Yo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Zh(e,t,r),r};a.ScbSecondaryTab=class extends ai{constructor(){super(...arguments),this.iconOnly=!1,this._onActivate=()=>{var t;const e=((t=this.textContent)==null?void 0:t.trim())??"";this.dispatchEvent(new CustomEvent("activate",{detail:{label:e},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}get icon(){return this._icon}set icon(e){const t=this._icon;t!==e&&(this._icon=e,this.requestUpdate("icon",t),this.updateIconSlot())}firstUpdated(e){var t;if(super.firstUpdated(e),this.iconOnly&&!this.hasAttribute("aria-label")){const i=((t=this.textContent)==null?void 0:t.trim())??"";i&&this.setAttribute("aria-label",i)}this.addEventListener("click",this._onActivate),this._icon&&this.updateIconSlot()}updated(){var e;if(super.updated(),this.iconOnly&&!this.hasAttribute("aria-label")){const t=((e=this.textContent)==null?void 0:e.trim())??"";t&&this.setAttribute("aria-label",t)}}updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},a.ScbSecondaryTab.styles=[...ai.styles,b`
|
|
7545
7343
|
/* Icon-only: göm all text utom slot="icon" */
|
|
7546
7344
|
:host([icon-only]) slot:not([name='icon']) {
|
|
7547
7345
|
display: none;
|
|
7548
7346
|
}
|
|
7549
|
-
`],Yo([l({type:String})],a.ScbSecondaryTab.prototype,"icon",1),Yo([l({type:Boolean,reflect:!0,attribute:"icon-only"})],a.ScbSecondaryTab.prototype,"iconOnly",2),a.ScbSecondaryTab=Yo([g("scb-secondary-tab")],a.ScbSecondaryTab);var
|
|
7347
|
+
`],Yo([l({type:String})],a.ScbSecondaryTab.prototype,"icon",1),Yo([l({type:Boolean,reflect:!0,attribute:"icon-only"})],a.ScbSecondaryTab.prototype,"iconOnly",2),a.ScbSecondaryTab=Yo([g("scb-secondary-tab")],a.ScbSecondaryTab);var Qh=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,Ts=(o,e,t,i)=>{for(var r=i>1?void 0:i?ep(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Qh(e,t,r),r};a.ScbTabs=class extends si{constructor(){super(...arguments),this.ariaLabel="",this._isDispatching=!1,this._onChange=e=>{if(!e.composed&&!this._isDispatching){e.stopPropagation(),this._isDispatching=!0;const t=e.target.activeTabIndex;this.dispatchEvent(new CustomEvent("change",{detail:{activeTabIndex:t},bubbles:!0,composed:!0})),this._isDispatching=!1}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tablist")}firstUpdated(e){super.firstUpdated(e),this.addEventListener("change",this._onChange)}},a.ScbTabs.styles=[...si.styles,b`
|
|
7550
7348
|
:host {
|
|
7551
7349
|
/*Containerfärg */
|
|
7552
7350
|
--md-primary-tab-container-color: var(--md-sys-color-surface);
|
|
@@ -7568,7 +7366,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7568
7366
|
--md-secondary-tab-hover-state-layer-color: var(--md-sys-color-on-surface);
|
|
7569
7367
|
}
|
|
7570
7368
|
|
|
7571
|
-
`],Ts([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbTabs.prototype,"ariaLabel",2),a.ScbTabs=Ts([g("scb-tabs")],a.ScbTabs);var
|
|
7369
|
+
`],Ts([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbTabs.prototype,"ariaLabel",2),a.ScbTabs=Ts([g("scb-tabs")],a.ScbTabs);var tp=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,Ft=(o,e,t,i)=>{for(var r=i>1?void 0:i?ip(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&tp(e,t,r),r};a.ScbTocItem=class extends y{constructor(){super(...arguments),this.expanded=!1,this.label="",this.supportingText="",this.itemHref="#",this.divider=!0,this._unique=crypto.randomUUID(),this._slotHasContent=!1,this._onSlotChange=()=>{const e=this.renderRoot.querySelector("slot");this._slotHasContent=!!e&&e.assignedNodes().length>0,this.requestUpdate(),this._updateTabbable()},this.toggleAccordion=()=>{const e=this.closest("scb-toc");e!=null&&e.hasAttribute("detached")||e.querySelectorAll("scb-toc-item").forEach(r=>{r!==this&&r.expanded&&(r.expanded=!1,this.toggleBottom(r),r.dispatchEvent(new CustomEvent("expanded-changed",{detail:{expanded:!1},bubbles:!0,composed:!0})))});const t=this.expanded;this.expanded=!this.expanded,this.toggleBottom(this),t!==this.expanded&&this.dispatchEvent(new CustomEvent("expanded-changed",{detail:{expanded:this.expanded},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.addEventListener("slotchange",this._onSlotChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("slotchange",this._onSlotChange)}updated(e){e.has("expanded")&&this._updateTabbable()}_updateTabbable(){if(typeof window>"u")return;const e=this.renderRoot.querySelector("slot");if(!e)return;e.assignedElements({flatten:!0}).forEach(i=>{var r;i.matches("a,button,input,select,textarea,[tabindex]")&&(this.expanded?i.removeAttribute("tabindex"):i.setAttribute("tabindex","-1")),(r=i.querySelectorAll)==null||r.call(i,"a,button,input,select,textarea,[tabindex]").forEach(s=>{const n=s;this.expanded?n.removeAttribute("tabindex"):n.setAttribute("tabindex","-1")})})}toggleBottom(e){const t=e.renderRoot.querySelector(".scb-toc-item-bottom");t&&(e.expanded?(t.style.maxHeight=`${t.scrollHeight}px`,setTimeout(()=>t.style.maxHeight="unset",160)):(t.style.maxHeight=`${t.scrollHeight}px`,requestAnimationFrame(()=>t.style.maxHeight="0")))}_onKeyDown(e){const t=this.closest("scb-toc"),r=Array.from((t==null?void 0:t.querySelectorAll("scb-toc-item"))||[]).map(h=>h.renderRoot.querySelector(".scb-toc-item")).filter(h=>!!h),s=e.currentTarget,n=r.indexOf(s);switch(e.key){case"Enter":case" ":e.preventDefault(),this.toggleAccordion();break;case"ArrowDown":e.preventDefault(),n<r.length-1&&r[n+1].focus();break;case"ArrowUp":e.preventDefault(),n>0&&r[n-1].focus();break;case"Home":e.preventDefault(),r.length&&r[0].focus();break;case"End":e.preventDefault(),r.length&&r[r.length-1].focus();break}}render(){const e=`bottom-${this._unique}`,t=`toc-label-${this._unique}`;return c`
|
|
7572
7370
|
<div
|
|
7573
7371
|
class="scb-toc-item"
|
|
7574
7372
|
role="listitem"
|
|
@@ -7600,7 +7398,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7600
7398
|
</div>
|
|
7601
7399
|
${this.divider?c`<scb-divider></scb-divider>`:""}
|
|
7602
7400
|
</div>
|
|
7603
|
-
`}},a.ScbTocItem.styles=[
|
|
7401
|
+
`}},a.ScbTocItem.styles=[b`
|
|
7604
7402
|
.scb-toc-item-top {
|
|
7605
7403
|
padding: var(--spacing-5) var(--spacing-3);
|
|
7606
7404
|
display: flex;
|
|
@@ -7667,11 +7465,11 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7667
7465
|
color: var(--md-sys-color-on-surface);
|
|
7668
7466
|
font-family: var(--brand-font, 'Inter', sans-serif);
|
|
7669
7467
|
}
|
|
7670
|
-
`],Ft([l({type:Boolean})],a.ScbTocItem.prototype,"expanded",2),Ft([l({type:String,reflect:!0})],a.ScbTocItem.prototype,"label",2),Ft([l({type:String,attribute:"supporting-text"})],a.ScbTocItem.prototype,"supportingText",2),Ft([l({type:String,attribute:"item-href"})],a.ScbTocItem.prototype,"itemHref",2),Ft([l({type:Boolean,attribute:"divider"})],a.ScbTocItem.prototype,"divider",2),a.ScbTocItem=Ft([g("scb-toc-item")],a.ScbTocItem);var
|
|
7468
|
+
`],Ft([l({type:Boolean})],a.ScbTocItem.prototype,"expanded",2),Ft([l({type:String,reflect:!0})],a.ScbTocItem.prototype,"label",2),Ft([l({type:String,attribute:"supporting-text"})],a.ScbTocItem.prototype,"supportingText",2),Ft([l({type:String,attribute:"item-href"})],a.ScbTocItem.prototype,"itemHref",2),Ft([l({type:Boolean,attribute:"divider"})],a.ScbTocItem.prototype,"divider",2),a.ScbTocItem=Ft([g("scb-toc-item")],a.ScbTocItem);var rp=Object.defineProperty,op=Object.getOwnPropertyDescriptor,Os=(o,e,t,i)=>{for(var r=i>1?void 0:i?op(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&rp(e,t,r),r};a.ScbToc=class extends y{constructor(){super(...arguments),this.detached=!1}render(){return c`
|
|
7671
7469
|
<div class="scb-toc-list" role="list">
|
|
7672
7470
|
<slot></slot>
|
|
7673
7471
|
</div>
|
|
7674
|
-
`}},a.ScbToc.styles=[
|
|
7472
|
+
`}},a.ScbToc.styles=[b`
|
|
7675
7473
|
:host {
|
|
7676
7474
|
display: block;
|
|
7677
7475
|
}
|
|
@@ -7679,7 +7477,198 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7679
7477
|
.scb-toc-list {
|
|
7680
7478
|
display: block;
|
|
7681
7479
|
}
|
|
7682
|
-
`],Os([l({type:Boolean,reflect:!0})],a.ScbToc.prototype,"detached",2),a.ScbToc=Os([g("scb-toc")],a.ScbToc);var
|
|
7480
|
+
`],Os([l({type:Boolean,reflect:!0})],a.ScbToc.prototype,"detached",2),a.ScbToc=Os([g("scb-toc")],a.ScbToc);var ap=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,Ie=(o,e,t,i)=>{for(var r=i>1?void 0:i?sp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ap(e,t,r),r};let np=0;a.ScbTooltip=class extends y{constructor(){super(...arguments),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=.25,this.offset=0,this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++np}`,this._onTriggerMouseEnter=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTriggerFocus=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTooltipMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!0,this.open=!0)},this._onTooltipMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!1,this._clickActive||(this.open=!1))},this._onTriggerClick=()=>{this._clickActive=!this._clickActive,this._clickActive?this.open=!0:this._hoverActive||(this.open=!1)}}firstUpdated(){if(this._originalPosition=this.position,this._updateDelayCss(),this._updateTriggerElement(),this._updateTooltipHoverListeners(),this.open){const e=this._getTooltipElement();e&&this._showTooltip(e)}}updated(e){if(e.has("trigger")&&(this._updateTriggerElement(),this._updateTooltipHoverListeners()),e.has("delay")&&this._updateDelayCss(),e.has("open")){const t=this._getTooltipElement();if(!t)return;this.open?this._showTooltip(t):this._hideTooltip(t)}}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners();const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave)),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null)}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_updateDelayCss(){const e=Number.isFinite(this.delay)?this.delay:.25;this.style.setProperty("--delay",`${e}s`)}_findTriggerElement(){const e=this.querySelector("[scb-tooltip-anchor]:not([slot])");return e||(Array.from(this.children).find(i=>i.nodeType===Node.ELEMENT_NODE)??null)}_updateTriggerElement(){const e=this._triggerEl;e&&(this._detachTriggerListeners(),e.removeAttribute("aria-describedby"));const t=this._findTriggerElement();this._triggerEl=t,t&&(t.setAttribute("aria-describedby",this._tooltipId),(this.trigger==="click"||this.trigger==="hover-click")&&t.addEventListener("click",this._onTriggerClick),(this.trigger==="hover"||this.trigger==="hover-click")&&(t.addEventListener("mouseenter",this._onTriggerMouseEnter),t.addEventListener("mouseleave",this._onTriggerMouseLeave),t.addEventListener("focus",this._onTriggerFocus),t.addEventListener("blur",this._onTriggerBlur)))}_updateTooltipHoverListeners(){const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave),(this.trigger==="hover"||this.trigger==="hover-click")&&(e.addEventListener("mouseenter",this._onTooltipMouseEnter),e.addEventListener("mouseleave",this._onTooltipMouseLeave)))}_detachTriggerListeners(){const e=this._triggerEl;e&&(e.removeEventListener("click",this._onTriggerClick),e.removeEventListener("mouseenter",this._onTriggerMouseEnter),e.removeEventListener("mouseleave",this._onTriggerMouseLeave),e.removeEventListener("focus",this._onTriggerFocus),e.removeEventListener("blur",this._onTriggerBlur))}_showTooltip(e){this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null);const t=this._triggerEl;this._resetPosition(),e.classList.remove("hidden"),e.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{t&&this._positionTooltip(e,t),e.setAttribute("open","")})}_hideTooltip(e){e.removeAttribute("open"),e.setAttribute("aria-hidden","true"),this._scheduleHidden(e)}_scheduleHidden(e){const t=(Number.isFinite(this.delay)?this.delay:.25)*1e3;if(t<=0){e.classList.add("hidden");return}this._hideTimeout=window.setTimeout(()=>{e.classList.add("hidden"),this._hideTimeout=null},t)}_resetPosition(){this.position=this._originalPosition}_positionTooltip(e,t){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.getBoundingClientRect(),p=(this.offset??0)+8,v=8,f=v,m=window.innerHeight-v,x=v,_=window.innerWidth-v,S=F=>F>=f&&F+r.height<=m,C=F=>F>=x&&F+r.width<=_,E=(F,le,Se,wi)=>{let Nt=0;F<Se&&(Nt+=Se-F);const Sr=F+le;return Sr>wi&&(Nt+=Sr-wi),Nt},A=F=>{let le=0,Se=0;switch(F){case"top":le=i.top-s.top-r.height-p,Se=i.left-s.left+(i.width-r.width)/2;break;case"bottom":le=i.bottom-s.top+p,Se=i.left-s.left+(i.width-r.width)/2;break;case"left":Se=i.left-s.left-r.width-p,le=i.top-s.top+(i.height-r.height)/2;break;case"right":Se=i.right-s.left+p,le=i.top-s.top+(i.height-r.height)/2;break}const wi=le+s.top,Nt=Se+s.left,Sr=E(wi,r.height,f,m),dp=E(Nt,r.width,x,_);return{pos:F,top:le,left:Se,fitsV:S(wi),fitsH:C(Nt),totalOverflow:Sr+dp}},z=this.position==="top"||this.position==="bottom",X=this.position,q=this._getOppositePosition(X),ve=[X,q,z?"left":"top",z?"right":"bottom"].map(A);let ne=ve.find(F=>F.fitsV&&F.fitsH)??ve.reduce((F,le)=>le.totalOverflow<F.totalOverflow?le:F);const St=(F,le,Se)=>Math.min(Math.max(F,le),Se),Te=f-s.top,rt=m-r.height-s.top,wr=x-s.left,xi=_-r.width-s.left,_i=St(ne.top,Te,rt),we=St(ne.left,wr,xi);e.style.top=`${_i}px`,e.style.left=`${we}px`,this.position!==ne.pos&&(this.position=ne.pos)}_getOppositePosition(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}_onDefaultSlotChange(){this._updateTriggerElement()}render(){const e=this.arrow?c`<svg
|
|
7481
|
+
class="scb-tooltip-arrow"
|
|
7482
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7483
|
+
width="13"
|
|
7484
|
+
height="6"
|
|
7485
|
+
viewBox="0 0 13 6"
|
|
7486
|
+
fill="none"
|
|
7487
|
+
>
|
|
7488
|
+
<path
|
|
7489
|
+
d="M6.5 6L0.5 0H12.5L6.5 6Z"
|
|
7490
|
+
fill="var(--md-sys-color-inverse-surface, #0F0865)"
|
|
7491
|
+
/>
|
|
7492
|
+
</svg>`:u,t=this.label||this.supportingtext;return this.variant==="rich"?c`
|
|
7493
|
+
<div
|
|
7494
|
+
id=${this._tooltipId}
|
|
7495
|
+
class="scb-tooltip hidden"
|
|
7496
|
+
role="tooltip"
|
|
7497
|
+
aria-label=${t}
|
|
7498
|
+
aria-hidden="true"
|
|
7499
|
+
>
|
|
7500
|
+
<div class="scb-tooltip-text-container">
|
|
7501
|
+
<label class="scb-tooltip-label">${this.label}</label>
|
|
7502
|
+
<span class="scb-tooltip-supporting-text">
|
|
7503
|
+
${this.supportingtext}
|
|
7504
|
+
</span>
|
|
7505
|
+
</div>
|
|
7506
|
+
<div class="scb-tooltip-button-container">
|
|
7507
|
+
<slot name="scb-tooltip-button"></slot>
|
|
7508
|
+
</div>
|
|
7509
|
+
</div>
|
|
7510
|
+
<slot @slotchange=${this._onDefaultSlotChange}></slot>
|
|
7511
|
+
`:c`
|
|
7512
|
+
<div
|
|
7513
|
+
id=${this._tooltipId}
|
|
7514
|
+
class="scb-tooltip hidden"
|
|
7515
|
+
role="tooltip"
|
|
7516
|
+
aria-label=${t}
|
|
7517
|
+
aria-hidden="true"
|
|
7518
|
+
>
|
|
7519
|
+
<div class="scb-tooltip-container">
|
|
7520
|
+
<span class="scb-tooltip-supporting-text">
|
|
7521
|
+
${this.supportingtext}
|
|
7522
|
+
</span>
|
|
7523
|
+
</div>
|
|
7524
|
+
${e}
|
|
7525
|
+
</div>
|
|
7526
|
+
<slot @slotchange=${this._onDefaultSlotChange}></slot>
|
|
7527
|
+
`}},a.ScbTooltip.styles=b`
|
|
7528
|
+
:host {
|
|
7529
|
+
position: relative;
|
|
7530
|
+
display: inline-block;
|
|
7531
|
+
--delay: 0.25s;
|
|
7532
|
+
}
|
|
7533
|
+
|
|
7534
|
+
.scb-tooltip {
|
|
7535
|
+
position: absolute;
|
|
7536
|
+
min-width: 120px;
|
|
7537
|
+
max-width: 300px;
|
|
7538
|
+
opacity: 0;
|
|
7539
|
+
visibility: hidden;
|
|
7540
|
+
z-index: 10;
|
|
7541
|
+
transition:
|
|
7542
|
+
opacity var(--delay) ease-in-out,
|
|
7543
|
+
visibility var(--delay) ease-in-out;
|
|
7544
|
+
}
|
|
7545
|
+
|
|
7546
|
+
.scb-tooltip[open] {
|
|
7547
|
+
opacity: 1;
|
|
7548
|
+
visibility: visible;
|
|
7549
|
+
}
|
|
7550
|
+
|
|
7551
|
+
.hidden {
|
|
7552
|
+
visibility: hidden;
|
|
7553
|
+
}
|
|
7554
|
+
|
|
7555
|
+
.scb-tooltip-supporting-text {
|
|
7556
|
+
font-family: var(--brand-font, Inter);
|
|
7557
|
+
font-size: var(--md-sys-typescale-body-small-size);
|
|
7558
|
+
font-style: normal;
|
|
7559
|
+
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
7560
|
+
letter-spacing: var(--md-sys-typescale-body-small-tracking);
|
|
7561
|
+
}
|
|
7562
|
+
|
|
7563
|
+
/* Plain variant */
|
|
7564
|
+
|
|
7565
|
+
:host([variant='plain']) .scb-tooltip {
|
|
7566
|
+
max-width: 184px;
|
|
7567
|
+
}
|
|
7568
|
+
|
|
7569
|
+
:host([variant='plain']) .scb-tooltip-container {
|
|
7570
|
+
display: inline-flex;
|
|
7571
|
+
flex-direction: column;
|
|
7572
|
+
justify-content: center;
|
|
7573
|
+
align-items: center;
|
|
7574
|
+
background: var(--md-sys-color-inverse-surface);
|
|
7575
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
7576
|
+
min-height: 14px;
|
|
7577
|
+
width: 100%;
|
|
7578
|
+
}
|
|
7579
|
+
|
|
7580
|
+
:host([variant='plain']) .scb-tooltip-supporting-text {
|
|
7581
|
+
padding: var(--spacing-2) var(--spacing-3);
|
|
7582
|
+
color: var(--md-sys-color-inverse-on-surface);
|
|
7583
|
+
}
|
|
7584
|
+
|
|
7585
|
+
.scb-tooltip-arrow {
|
|
7586
|
+
width: 12px;
|
|
7587
|
+
height: 6px;
|
|
7588
|
+
position: absolute;
|
|
7589
|
+
}
|
|
7590
|
+
|
|
7591
|
+
:host([position='top']) .scb-tooltip-arrow {
|
|
7592
|
+
left: 50%;
|
|
7593
|
+
bottom: -6px;
|
|
7594
|
+
transform: translateX(-50%) rotate(0deg);
|
|
7595
|
+
}
|
|
7596
|
+
|
|
7597
|
+
:host([position='right']) .scb-tooltip-arrow {
|
|
7598
|
+
left: -9px;
|
|
7599
|
+
top: 50%;
|
|
7600
|
+
transform: translateY(-50%) rotate(90deg);
|
|
7601
|
+
}
|
|
7602
|
+
|
|
7603
|
+
:host([position='bottom']) .scb-tooltip-arrow {
|
|
7604
|
+
left: 50%;
|
|
7605
|
+
top: -6px;
|
|
7606
|
+
transform: translateX(-50%) rotate(180deg);
|
|
7607
|
+
}
|
|
7608
|
+
|
|
7609
|
+
:host([position='left']) .scb-tooltip-arrow {
|
|
7610
|
+
left: 100%;
|
|
7611
|
+
top: 50%;
|
|
7612
|
+
transform: translateY(-50%) translateX(-3px) rotate(270deg);
|
|
7613
|
+
}
|
|
7614
|
+
|
|
7615
|
+
:host([variant='plain'][arrow='false']) .scb-tooltip-arrow {
|
|
7616
|
+
display: none;
|
|
7617
|
+
}
|
|
7618
|
+
|
|
7619
|
+
/* Rich variant */
|
|
7620
|
+
|
|
7621
|
+
:host([variant='rich']) {
|
|
7622
|
+
align-items: flex-start;
|
|
7623
|
+
gap: var(--spacing-2);
|
|
7624
|
+
}
|
|
7625
|
+
|
|
7626
|
+
:host([variant='rich']) .scb-tooltip {
|
|
7627
|
+
background: var(--md-sys-color-surface-container, #ebf8ff);
|
|
7628
|
+
box-shadow:
|
|
7629
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.2),
|
|
7630
|
+
0 1px 10px 0 rgba(0, 0, 0, 0.12),
|
|
7631
|
+
0 4px 5px 0 rgba(0, 0, 0, 0.14);
|
|
7632
|
+
display: inline-flex;
|
|
7633
|
+
padding-bottom: var(--spacing-3);
|
|
7634
|
+
flex-direction: column;
|
|
7635
|
+
align-items: flex-start;
|
|
7636
|
+
gap: var(--spacing-3);
|
|
7637
|
+
border-radius: var(--md-sys-shape-corner-medium);
|
|
7638
|
+
min-width: 200px;
|
|
7639
|
+
max-width: 300px;
|
|
7640
|
+
}
|
|
7641
|
+
|
|
7642
|
+
:host([variant='rich']) .scb-tooltip-text-container {
|
|
7643
|
+
display: flex;
|
|
7644
|
+
min-width: 220px;
|
|
7645
|
+
padding: var(--spacing-4) var(--spacing-5) var(--spacing-2) var(--spacing-5);
|
|
7646
|
+
align-items: flex-start;
|
|
7647
|
+
gap: var(--spacing-2);
|
|
7648
|
+
flex-direction: column;
|
|
7649
|
+
}
|
|
7650
|
+
|
|
7651
|
+
:host([variant='rich']) .scb-tooltip-label {
|
|
7652
|
+
font-family: var(--brand-font, Inter);
|
|
7653
|
+
font-size: var(--md-sys-typescale-title-small-size);
|
|
7654
|
+
font-style: normal;
|
|
7655
|
+
font-weight: var(--weight-semibold);
|
|
7656
|
+
line-height: var(--md-sys-typescale-title-small-Line-Height);
|
|
7657
|
+
letter-spacing: var(--md-sys-typescale-title-small-Tracking);
|
|
7658
|
+
}
|
|
7659
|
+
|
|
7660
|
+
:host([variant='rich']) .scb-tooltip-supporting-text {
|
|
7661
|
+
color: var(--md-sys-color-on-surface-variant, rgba(11, 5, 68, 0.75));
|
|
7662
|
+
}
|
|
7663
|
+
|
|
7664
|
+
:host([variant='rich']) .scb-tooltip-button-container {
|
|
7665
|
+
display: flex;
|
|
7666
|
+
padding: 0 var(--spacing-3);
|
|
7667
|
+
align-items: center;
|
|
7668
|
+
gap: var(--spacing-3);
|
|
7669
|
+
align-self: stretch;
|
|
7670
|
+
}
|
|
7671
|
+
`,Ie([l({type:String,reflect:!0})],a.ScbTooltip.prototype,"variant",2),Ie([l({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"arrow",2),Ie([l({type:String,attribute:"supporting-text"})],a.ScbTooltip.prototype,"supportingtext",2),Ie([l({type:String})],a.ScbTooltip.prototype,"label",2),Ie([l({type:String,reflect:!0})],a.ScbTooltip.prototype,"trigger",2),Ie([l({type:String,reflect:!0})],a.ScbTooltip.prototype,"position",2),Ie([l({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"open",2),Ie([l({type:Number,reflect:!0})],a.ScbTooltip.prototype,"delay",2),Ie([l({type:Number,reflect:!0})],a.ScbTooltip.prototype,"offset",2),a.ScbTooltip=Ie([g("scb-tooltip")],a.ScbTooltip);var lp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,_e=(o,e,t,i)=>{for(var r=i>1?void 0:i?cp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&lp(e,t,r),r};return a.ScbViz=class extends y{constructor(){super(...arguments),this.variant="Standard",this.selectedChip="Diagram",this.title="",this.subtitle="",this.description="",this.comment="",this.source="",this.footnote="",this.lang="sv",this.imageHref=""}get descriptionLabel(){return this.lang==="en"?"Description of the chart":"Beskrivning av diagrammet"}get moreAboutStatsLabel(){return this.lang==="en"?"More about the statistics":"Mer om statistiken"}get commentLabel(){return this.lang==="en"?"Comments":"Kommentar"}get sourceLabel(){return this.lang==="en"?"Source":"Källa"}get footnoteLabel(){return this.lang==="en"?"Footnotes":"Fotnot"}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="table"]');e&&(e.addEventListener("slotchange",()=>this._styleSlottedTable()),this._styleSlottedTable())}updated(){this._styleSlottedTable()}_styleSlottedTable(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="table"]');if(!e)return;e.assignedElements({flatten:!0}).forEach(r=>{r.tagName==="TABLE"&&(r.style.borderCollapse="collapse",r.style.width="100%",r.querySelectorAll("tbody tr:nth-child(odd)").forEach(s=>{s.style.background="var(--md-sys-color-surface-container)"}),r.querySelectorAll("th").forEach(s=>{s.style.border="1px solid var(--md-sys-color-on-surface)",s.style.padding="8px"}),r.querySelectorAll("td").forEach(s=>{s.style.border="1px solid var(--md-sys-color-on-surface)",s.style.padding="8px"}),r.querySelectorAll("tr").forEach(s=>{const n=Array.from(s.children).filter(h=>h.tagName==="TD"||h.tagName==="TH");n.length>0&&(n[0].style.borderLeft="none",n[n.length-1].style.borderRight="none")}))})}render(){switch(this.variant){case"Table":return c`
|
|
7683
7672
|
<div part="container">
|
|
7684
7673
|
<div class="header">
|
|
7685
7674
|
${this.title?c`
|
|
@@ -7859,7 +7848,7 @@ var ScbWcTest=function(a){"use strict";var Ls;function d(o,e,t,i){var r=argument
|
|
|
7859
7848
|
</div>
|
|
7860
7849
|
<slot></slot>
|
|
7861
7850
|
</div>
|
|
7862
|
-
`}}_onSegmentedChange(e){var i;const t=(i=e.detail)==null?void 0:i.value;this.selectedChip===t?this.selectedChip=null:this.selectedChip=t}},a.ScbViz.styles=
|
|
7851
|
+
`}}_onSegmentedChange(e){var i;const t=(i=e.detail)==null?void 0:i.value;this.selectedChip===t?this.selectedChip=null:this.selectedChip=t}},a.ScbViz.styles=b`
|
|
7863
7852
|
:host {
|
|
7864
7853
|
display: block;
|
|
7865
7854
|
font-family: var(--brand-font);
|