kemet-ui 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,25 +8,25 @@ const t=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */;var a;const l=window.trustedTypes,d=l?l.emptyScript:"",h=window.reactiveElementPolyfillSupport,c={toAttribute(t,e){switch(e){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},p=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:c,reflect:!1,hasChanged:p};class u extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,s)=>{const i=this._$Eh(s,e);void 0!==i&&(this._$Eu.set(i,s),t.push(i))})),t}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const o=this[t];this[e]=i,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of e)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eh(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,s;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var e;const s=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,s)=>{t?e.adoptedStyleSheets=s.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):s.forEach((t=>{const s=document.createElement("style"),i=window.litNonce;void 0!==i&&s.setAttribute("nonce",i),s.textContent=t.cssText,e.appendChild(s)}))})(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ES(t,e,s=m){var i,o;const r=this.constructor._$Eh(t,s);if(void 0!==r&&!0===s.reflect){const n=(null!==(o=null===(i=s.converter)||void 0===i?void 0:i.toAttribute)&&void 0!==o?o:c.toAttribute)(e,s.type);this._$Ei=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Ei=null}}_$AK(t,e){var s,i,o;const r=this.constructor,n=r._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=r.getPropertyOptions(n),a=t.converter,l=null!==(o=null!==(i=null===(s=a)||void 0===s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof a?a:null)&&void 0!==o?o:c.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,s){let i=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(s)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
11
+ */;var a;const l=window.trustedTypes,d=l?l.emptyScript:"",h=window.reactiveElementPolyfillSupport,c={toAttribute(t,e){switch(e){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},p=(t,e)=>e!==t&&(e==e||t==t),u={attribute:!0,type:String,converter:c,reflect:!1,hasChanged:p};class m extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,s)=>{const i=this._$Eh(s,e);void 0!==i&&(this._$Eu.set(i,s),t.push(i))})),t}static createProperty(t,e=u){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const o=this[t];this[e]=i,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||u}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of e)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eh(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,s;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var e;const s=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,s)=>{t?e.adoptedStyleSheets=s.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):s.forEach((t=>{const s=document.createElement("style"),i=window.litNonce;void 0!==i&&s.setAttribute("nonce",i),s.textContent=t.cssText,e.appendChild(s)}))})(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ES(t,e,s=u){var i,o;const r=this.constructor._$Eh(t,s);if(void 0!==r&&!0===s.reflect){const n=(null!==(o=null===(i=s.converter)||void 0===i?void 0:i.toAttribute)&&void 0!==o?o:c.toAttribute)(e,s.type);this._$Ei=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Ei=null}}_$AK(t,e){var s,i,o;const r=this.constructor,n=r._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=r.getPropertyOptions(n),a=t.converter,l=null!==(o=null!==(i=null===(s=a)||void 0===s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof a?a:null)&&void 0!==o?o:c.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,s){let i=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(s)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
12
12
  /**
13
13
  * @license
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- var f;u.finalized=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:u}),(null!==(a=globalThis.reactiveElementVersions)&&void 0!==a?a:globalThis.reactiveElementVersions=[]).push("1.3.2");const g=globalThis.trustedTypes,v=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,k="?"+b,y=`<${k}>`,w=document,x=(t="")=>w.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,C=/>/g,A=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,z=/'/g,L=/"/g,B=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),I=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),T=new WeakMap,X=w.createTreeWalker(w,129,null,!1),U=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"<svg>":"",n=S;for(let e=0;e<s;e++){const s=t[e];let a,l,d=-1,h=0;for(;h<s.length&&(n.lastIndex=h,l=n.exec(s),null!==l);)h=n.lastIndex,n===S?"!--"===l[1]?n=_:void 0!==l[1]?n=C:void 0!==l[2]?(B.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=A):void 0!==l[3]&&(n=A):n===A?">"===l[0]?(n=null!=o?o:S,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?A:'"'===l[3]?L:z):n===L||n===z?n=A:n===_||n===C?n=S:(n=A,o=void 0);const c=n===A&&t[e+1].startsWith("/>")?" ":"";r+=n===S?s+y:d>=0?(i.push(a),s.slice(0,d)+"$lit$"+s.slice(d)+b+c):s+b+(-2===d?(i.push(void 0),e):c)}const a=r+(t[s]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(a):a,i]};class D{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,d]=U(t,e);if(this.el=D.createElement(l,s),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=X.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(b)){const s=d[r++];if(t.push(e),void 0!==s){const t=i.getAttribute(s.toLowerCase()+"$lit$").split(b),e=/([.?@])?(.*)/.exec(s);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?H:"?"===e[1]?V:"@"===e[1]?F:N})}else a.push({type:6,index:o})}for(const e of t)i.removeAttribute(e)}if(B.test(i.tagName)){const t=i.textContent.split(b),e=t.length-1;if(e>0){i.textContent=g?g.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],x()),X.nextNode(),a.push({type:2,index:++o});i.append(t[e],x())}}}else if(8===i.nodeType)if(i.data===k)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(b,t+1));)a.push({type:7,index:o}),t+=b.length-1}o++}}static createElement(t,e){const s=w.createElement("template");return s.innerHTML=t,s}}function M(t,e,s=t,i){var o,r,n,a;if(e===I)return e;let l=void 0!==i?null===(o=s._$Cl)||void 0===o?void 0:o[i]:s._$Cu;const d=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,s,i)),void 0!==i?(null!==(n=(a=s)._$Cl)&&void 0!==n?n:a._$Cl=[])[i]=l:s._$Cu=l),void 0!==l&&(e=M(t,l._$AS(t,e.values),l,i)),e}class q{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:s},parts:i}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:w).importNode(s,!0);X.currentNode=o;let r=X.nextNode(),n=0,a=0,l=i[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new R(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new j(r,this,t)),this.v.push(e),l=i[++a]}n!==(null==l?void 0:l.index)&&(r=X.nextNode(),n++)}return o}m(t){let e=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class R{constructor(t,e,s,i){var o;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cg=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),E(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==I&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return $(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==O&&E(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.createTextNode(t)),this._$AH=t}T(t){var e;const{values:s,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=D.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(s);else{const t=new q(o,this),e=t.p(this.options);t.m(s),this.k(e),this._$AH=t}}_$AC(t){let e=T.get(t.strings);return void 0===e&&T.set(t.strings,e=new D(t)),e}S(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new R(this.M(x()),this.M(x()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class N{constructor(t,e,s,i,o){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=M(this,t,e,0),r=!E(t)||t!==this._$AH&&t!==I,r&&(this._$AH=t);else{const i=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=M(this,i[s+n],e,n),a===I&&(a=this._$AH[n]),r||(r=!E(a)||a!==this._$AH[n]),a===O?t=O:t!==O&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!i&&this.C(t)}C(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends N{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===O?void 0:t}}const Y=g?g.emptyScript:"";class V extends N{constructor(){super(...arguments),this.type=4}C(t){t&&t!==O?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class F extends N{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){var s;if((t=null!==(s=M(this,t,e,0))&&void 0!==s?s:O)===I)return;const i=this._$AH,o=t===O&&i!==O||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==O&&(i===O||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const K=window.litHtmlPolyfillSupport;
17
+ var f;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:m}),(null!==(a=globalThis.reactiveElementVersions)&&void 0!==a?a:globalThis.reactiveElementVersions=[]).push("1.3.2");const g=globalThis.trustedTypes,v=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,k="?"+b,y=`<${k}>`,x=document,w=(t="")=>x.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,C=/>/g,A=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,z=/'/g,L=/"/g,B=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),O=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),P=new WeakMap,D=x.createTreeWalker(x,129,null,!1),M=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"<svg>":"",n=S;for(let e=0;e<s;e++){const s=t[e];let a,l,d=-1,h=0;for(;h<s.length&&(n.lastIndex=h,l=n.exec(s),null!==l);)h=n.lastIndex,n===S?"!--"===l[1]?n=_:void 0!==l[1]?n=C:void 0!==l[2]?(B.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=A):void 0!==l[3]&&(n=A):n===A?">"===l[0]?(n=null!=o?o:S,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?A:'"'===l[3]?L:z):n===L||n===z?n=A:n===_||n===C?n=S:(n=A,o=void 0);const c=n===A&&t[e+1].startsWith("/>")?" ":"";r+=n===S?s+y:d>=0?(i.push(a),s.slice(0,d)+"$lit$"+s.slice(d)+b+c):s+b+(-2===d?(i.push(void 0),e):c)}const a=r+(t[s]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(a):a,i]};class U{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,d]=M(t,e);if(this.el=U.createElement(l,s),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=D.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(b)){const s=d[r++];if(t.push(e),void 0!==s){const t=i.getAttribute(s.toLowerCase()+"$lit$").split(b),e=/([.?@])?(.*)/.exec(s);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?V:"@"===e[1]?F:R})}else a.push({type:6,index:o})}for(const e of t)i.removeAttribute(e)}if(B.test(i.tagName)){const t=i.textContent.split(b),e=t.length-1;if(e>0){i.textContent=g?g.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],w()),D.nextNode(),a.push({type:2,index:++o});i.append(t[e],w())}}}else if(8===i.nodeType)if(i.data===k)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(b,t+1));)a.push({type:7,index:o}),t+=b.length-1}o++}}static createElement(t,e){const s=x.createElement("template");return s.innerHTML=t,s}}function X(t,e,s=t,i){var o,r,n,a;if(e===O)return e;let l=void 0!==i?null===(o=s._$Cl)||void 0===o?void 0:o[i]:s._$Cu;const d=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,s,i)),void 0!==i?(null!==(n=(a=s)._$Cl)&&void 0!==n?n:a._$Cl=[])[i]=l:s._$Cu=l),void 0!==l&&(e=X(t,l._$AS(t,e.values),l,i)),e}class N{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:s},parts:i}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(s,!0);D.currentNode=o;let r=D.nextNode(),n=0,a=0,l=i[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new j(r,this,t)),this.v.push(e),l=i[++a]}n!==(null==l?void 0:l.index)&&(r=D.nextNode(),n++)}return o}m(t){let e=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class q{constructor(t,e,s,i){var o;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cg=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),E(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==O&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return $(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==T&&E(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}T(t){var e;const{values:s,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=U.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(s);else{const t=new N(o,this),e=t.p(this.options);t.m(s),this.k(e),this._$AH=t}}_$AC(t){let e=P.get(t.strings);return void 0===e&&P.set(t.strings,e=new U(t)),e}S(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new q(this.M(w()),this.M(w()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class R{constructor(t,e,s,i,o){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=X(this,t,e,0),r=!E(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const i=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=X(this,i[s+n],e,n),a===O&&(a=this._$AH[n]),r||(r=!E(a)||a!==this._$AH[n]),a===T?t=T:t!==T&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!i&&this.C(t)}C(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends R{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===T?void 0:t}}const H=g?g.emptyScript:"";class V extends R{constructor(){super(...arguments),this.type=4}C(t){t&&t!==T?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class F extends R{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){var s;if((t=null!==(s=X(this,t,e,0))&&void 0!==s?s:T)===O)return;const i=this._$AH,o=t===T&&i!==T||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==T&&(i===T||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const K=window.litHtmlPolyfillSupport;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:globalThis.litHtmlVersions=[]).push("2.2.3");class G extends u{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,s)=>{var i,o;const r=null!==(i=null==s?void 0:s.renderBefore)&&void 0!==i?i:e;let n=r._$litPart$;if(void 0===n){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;r._$litPart$=n=new R(e.insertBefore(x(),t),t,void 0,null!=s?s:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return I}}G.finalized=!0,G._$litElement$=!0,null===(W=globalThis.litElementHydrateSupport)||void 0===W||W.call(globalThis,{LitElement:G});const J=globalThis.litElementPolyfillSupport;null==J||J({LitElement:G}),(null!==(Z=globalThis.litElementVersions)&&void 0!==Z?Z:globalThis.litElementVersions=[]).push("3.2.0");customElements.get("kemet-icon")||customElements.define("kemet-icon",class extends G{static get properties(){return{icon:{type:String},set:{type:String},size:{type:Number}}}static get styles(){return[r`
23
+ var W,J;null==K||K(U,q),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:globalThis.litHtmlVersions=[]).push("2.2.3");class Z extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,s)=>{var i,o;const r=null!==(i=null==s?void 0:s.renderBefore)&&void 0!==i?i:e;let n=r._$litPart$;if(void 0===n){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;r._$litPart$=n=new q(e.insertBefore(w(),t),t,void 0,null!=s?s:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return O}}Z.finalized=!0,Z._$litElement$=!0,null===(W=globalThis.litElementHydrateSupport)||void 0===W||W.call(globalThis,{LitElement:Z});const G=globalThis.litElementPolyfillSupport;null==G||G({LitElement:Z}),(null!==(J=globalThis.litElementVersions)&&void 0!==J?J:globalThis.litElementVersions=[]).push("3.2.0");customElements.get("kemet-icon")||customElements.define("kemet-icon",class extends Z{static get properties(){return{icon:{type:String},set:{type:String},size:{type:Number}}}static get styles(){return[r`
24
24
  :host {
25
25
  display: inline-flex;
26
26
  align-items: center;
27
27
  justify-content: center;
28
28
  }
29
- `]}constructor(){super(),this.set="bootstrap",this.icon="alarm",this.size=16}updated(){this.getIcon(),this.style.width=`${this.size}px`,this.style.height=`${this.size}px`}render(){return P``}async getIcon(){const t=new DOMParser;let e;try{if(e=await fetch(`${this.getUrl()}/${this.icon}.svg`).then((t=>t.text())),e.indexOf("</svg>")<0)throw new Error("Not a valid svg.")}catch(t){e="",console.error(t)}const s=t.parseFromString(e,"image/svg+xml").documentElement,i=this.shadowRoot.querySelector("svg");if("svg"===s.tagName)s.setAttribute("id",this.icon),s.setAttribute("width",`${this.size}px`),s.setAttribute("height",`${this.size}px`),s.setAttribute("fill","currentColor"),i&&i.remove(),this.shadowRoot.appendChild(s);else{console.error(`Could not find icon "${this.icon}" in set "${this.set}"`);const e=`\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="kemet-error" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" xml:space="preserve" width="${this.size}" height="${this.size}">\n <style type="text/css">\n .st0{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;}\n .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#EC1C24;}\n </style>\n <g><path class="st0" d="M256,0c70.7,0,134.7,28.7,181,75c46.3,46.3,75,110.3,75,181c0,70.7-28.7,134.7-75,181 c-46.3,46.3-110.3,75-181,75c-70.7,0-134.7-28.7-181-75C28.7,390.7,0,326.7,0,256c0-70.7,28.7-134.7,75-181S185.3,0,256,0z"/><path class="st1" d="M512,256c0-70.7-28.7-134.7-75-181C390.7,28.7,326.7,0,256,0C193,0,135.5,22.8,90.9,60.6l-0.1-0.1 C85.3,65.1,80,69.9,75,75c-5,5.1-9.9,10.3-14.5,15.8l0.1,0.1C22.8,135.5,0,193,0,256c0,70.7,28.7,134.7,75,181 c46.3,46.3,110.3,75,181,75c63,0,120.5-22.8,165.1-60.6l0.1,0.1c5.4-4.6,10.7-9.5,15.8-14.5c5-5,9.9-10.3,14.5-15.8l-0.1-0.1 C489.2,376.6,512,319,512,256z M256,42.9c58.9,0,112.1,23.9,150.7,62.4c38.6,38.6,62.4,91.9,62.4,150.7c0,51.1-18.1,98-48.1,134.8 L121.2,90.9C158,60.9,204.9,42.9,256,42.9z M256,469.1c-58.8,0-112.1-23.9-150.7-62.4C66.7,368.1,42.9,314.9,42.9,256 c0-51.1,18.1-98,48.1-134.8l299.8,299.8C354,451.1,307.1,469.1,256,469.1z"/></g>\n </svg>\n `,s=t.parseFromString(e,"image/svg+xml").documentElement;i&&i.remove(),this.shadowRoot.appendChild(s)}}getUrl(){let t;switch(this.set){case"bootstrap":t="https://unpkg.com/bootstrap-icons@latest/icons";break;case"font-awesome-brands":t="https://unpkg.com/@fortawesome/fontawesome-free@latest/svgs/brands";break;case"font-awesome-regular":t="https://unpkg.com/@fortawesome/fontawesome-free@latest/svgs/regular";break;case"font-awesome-solid":t="https://unpkg.com/@fortawesome/fontawesome-free@latest/svgs/solid";break;default:t="https://unpkg.com/bootstrap-icons@latest/icons"}return t}});customElements.get("kemet-accordion-panel")||customElements.define("kemet-accordion-panel",class extends G{static get styles(){return[r`
29
+ `]}constructor(){super(),this.set="bootstrap",this.icon="alarm",this.size=16}updated(){this.getIcon(),this.style.width=`${this.size}px`,this.style.height=`${this.size}px`}render(){return I``}async getIcon(){const t=new DOMParser;let e;try{if(e=await fetch(`${this.getUrl()}/${this.icon}.svg`).then((t=>t.text())),e.indexOf("</svg>")<0)throw new Error("Not a valid svg.")}catch(t){e="",console.error(t)}const s=t.parseFromString(e,"image/svg+xml").documentElement,i=this.shadowRoot.querySelector("svg");if("svg"===s.tagName)s.setAttribute("id",this.icon),s.setAttribute("width",`${this.size}px`),s.setAttribute("height",`${this.size}px`),s.setAttribute("fill","currentColor"),i&&i.remove(),this.shadowRoot.appendChild(s);else{console.error(`Could not find icon "${this.icon}" in set "${this.set}"`);const e=`\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="kemet-error" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" xml:space="preserve" width="${this.size}" height="${this.size}">\n <style type="text/css">\n .st0{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;}\n .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#EC1C24;}\n </style>\n <g><path class="st0" d="M256,0c70.7,0,134.7,28.7,181,75c46.3,46.3,75,110.3,75,181c0,70.7-28.7,134.7-75,181 c-46.3,46.3-110.3,75-181,75c-70.7,0-134.7-28.7-181-75C28.7,390.7,0,326.7,0,256c0-70.7,28.7-134.7,75-181S185.3,0,256,0z"/><path class="st1" d="M512,256c0-70.7-28.7-134.7-75-181C390.7,28.7,326.7,0,256,0C193,0,135.5,22.8,90.9,60.6l-0.1-0.1 C85.3,65.1,80,69.9,75,75c-5,5.1-9.9,10.3-14.5,15.8l0.1,0.1C22.8,135.5,0,193,0,256c0,70.7,28.7,134.7,75,181 c46.3,46.3,110.3,75,181,75c63,0,120.5-22.8,165.1-60.6l0.1,0.1c5.4-4.6,10.7-9.5,15.8-14.5c5-5,9.9-10.3,14.5-15.8l-0.1-0.1 C489.2,376.6,512,319,512,256z M256,42.9c58.9,0,112.1,23.9,150.7,62.4c38.6,38.6,62.4,91.9,62.4,150.7c0,51.1-18.1,98-48.1,134.8 L121.2,90.9C158,60.9,204.9,42.9,256,42.9z M256,469.1c-58.8,0-112.1-23.9-150.7-62.4C66.7,368.1,42.9,314.9,42.9,256 c0-51.1,18.1-98,48.1-134.8l299.8,299.8C354,451.1,307.1,469.1,256,469.1z"/></g>\n </svg>\n `,s=t.parseFromString(e,"image/svg+xml").documentElement;i&&i.remove(),this.shadowRoot.appendChild(s)}}getUrl(){let t;switch(this.set){case"bootstrap":default:t="https://unpkg.com/bootstrap-icons@latest/icons";break;case"font-awesome-brands":t="https://unpkg.com/@fortawesome/fontawesome-free@latest/svgs/brands";break;case"font-awesome-regular":t="https://unpkg.com/@fortawesome/fontawesome-free@latest/svgs/regular";break;case"font-awesome-solid":t="https://unpkg.com/@fortawesome/fontawesome-free@latest/svgs/solid"}return t}});customElements.get("kemet-accordion-panel")||customElements.define("kemet-accordion-panel",class extends Z{static get styles(){return[r`
30
30
  *,
31
31
  *::before,
32
32
  *::after {
@@ -59,7 +59,7 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
59
59
  ::slotted([slot='body']) {
60
60
  padding: 1rem 0;
61
61
  }
62
- `]}static get properties(){return{opened:{type:Boolean,reflect:!0},maxHeight:{type:String,attribute:"max-height"},slug:{type:String}}}constructor(){super(),this.opened=void 0,this.maxHeight="0px",this.slug="panel"}firstUpdated(){this.focusableSelector="body, a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",this.bodyElement=this.querySelector('[slot="body"]'),this.bodyElementFirst=this.bodyElement.querySelector(":first-child"),this.bodyElementLast=this.bodyElement.querySelector(":last-child"),this.bodyElementFirst&&(this.bodyElementFirst.style.marginTop=0),this.bodyELementLast&&(this.bodyElementLast.style.marginBottom=0)}updated(t){t.get("opened")||!0!==this.opened||(this.maxHeight=`${this.bodyElement.offsetHeight}px`,this.dispatchEvent(new CustomEvent("kemet-accordion-panel-opened",{bubbles:!0,composed:!0,detail:this}))),t.get("opened")&&!1===this.opened&&(this.maxHeight="0px",this.dispatchEvent(new CustomEvent("kemet-accordion-panel-closed",{bubbles:!0,composed:!0,detail:this}))),this.a11y(),this.focusableBodyElements()}render(){return P`
62
+ `]}static get properties(){return{opened:{type:Boolean,reflect:!0},maxHeight:{type:String,attribute:"max-height"},slug:{type:String}}}constructor(){super(),this.opened=void 0,this.maxHeight="0px",this.slug="panel"}firstUpdated(){this.focusableSelector="body, a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",this.bodyElement=this.querySelector('[slot="body"]'),this.bodyElementFirst=this.bodyElement.querySelector(":first-child"),this.bodyElementLast=this.bodyElement.querySelector(":last-child"),this.bodyElementFirst&&(this.bodyElementFirst.style.marginTop=0),this.bodyELementLast&&(this.bodyElementLast.style.marginBottom=0)}updated(t){t.get("opened")||!0!==this.opened||(this.maxHeight=`${this.bodyElement.offsetHeight}px`,this.dispatchEvent(new CustomEvent("kemet-accordion-panel-opened",{bubbles:!0,composed:!0,detail:this}))),t.get("opened")&&!1===this.opened&&(this.maxHeight="0px",this.dispatchEvent(new CustomEvent("kemet-accordion-panel-closed",{bubbles:!0,composed:!0,detail:this}))),this.a11y(),this.focusableBodyElements()}render(){return I`
63
63
  <button
64
64
  class="trigger"
65
65
  part="trigger"
@@ -72,48 +72,11 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
72
72
  <section class="body" part="body" style="max-height:${this.maxHeight};">
73
73
  <slot name="body"></slot>
74
74
  </section>
75
- `}toggle(){this.opened=!this.opened}focusableBodyElements(){const t=this.bodyElement.querySelectorAll(this.focusableSelector);this.opened?t.forEach((t=>{t.removeAttribute("tabindex")})):t.forEach((t=>{t.setAttribute("tabindex","-1")}))}a11y(){const t=this.shadowRoot.querySelector(".trigger"),e=this.shadowRoot.querySelector(".body");t.setAttribute("id",`${this.slug}-button`),t.setAttribute("aria-controls",`${this.slug}-content`),e.setAttribute("id",`${this.slug}-content`),e.setAttribute("aria-labelledby",`${this.slug}-button`),e.setAttribute("aria-hidden",`${!this.opened}`)}handleKeyDown(t){"Space"!==t.key&&"Enter"!==t.key||this.toggle()}});customElements.get("kemet-accordion")||customElements.define("kemet-accordion",class extends G{static get styles(){return[r`
75
+ `}toggle(){this.opened=!this.opened}focusableBodyElements(){const t=this.bodyElement.querySelectorAll(this.focusableSelector);this.opened?t.forEach((t=>{t.removeAttribute("tabindex")})):t.forEach((t=>{t.setAttribute("tabindex","-1")}))}a11y(){const t=this.shadowRoot.querySelector(".trigger"),e=this.shadowRoot.querySelector(".body");t.setAttribute("id",`${this.slug}-button`),t.setAttribute("aria-controls",`${this.slug}-content`),e.setAttribute("id",`${this.slug}-content`),e.setAttribute("aria-labelledby",`${this.slug}-button`),e.setAttribute("aria-hidden",`${!this.opened}`)}handleKeyDown(t){"Space"!==t.key&&"Enter"!==t.key||this.toggle()}});customElements.get("kemet-accordion")||customElements.define("kemet-accordion",class extends Z{static get styles(){return[r`
76
76
  :host {
77
77
  display: block;
78
78
  }
79
- `]}static get properties(){return{currentPanel:{type:Number},togglePanels:{type:Boolean,attribute:"toggle-panels"}}}constructor(){super(),this.togglePanels=!1,this.currentPanel=void 0,this.addEventListener("kemet-accordion-panel-opened",this.handlePanelOpened.bind(this))}firstUpdated(){this.onKeyDown=t=>this.handleKeyDown(t)}render(){return P`<slot @slotchange=${t=>this.handleSlotChange(t)}></slot>`}handleSlotChange(){this.panels=this.querySelectorAll("kemet-accordion-panel"),this.panels.forEach((t=>{t.removeEventListener("keydown",this.onKeyDown),t.addEventListener("keydown",this.onKeyDown)}))}handlePanelOpened(t){this.togglePanels&&this.panels.forEach((e=>{e!==t.detail&&(e.opened=!1)}))}navigatePanels(t){switch(t){case"home":this.currentPanel=0;break;case"end":this.currentPanel=this.panels.length-1;break;case"next":this.currentPanel+=1;break;case"prev":this.currentPanel-=1;break;default:this.currentPanelFocus=0}this.currentPanel>this.panels.length-1&&(this.currentPanel=0),this.currentPanel<0&&(this.currentPanel=this.panels.length-1),this.panels[this.currentPanel].shadowRoot.querySelector("button").focus()}handleKeyDown(t){switch(t.key){case"Enter":case"Space":t.preventDefault(),t.target.click();break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.navigatePanels("prev");break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.navigatePanels("next");break;case"End":t.preventDefault(),this.navigatePanels("end");break;case"Home":t.preventDefault(),this.navigatePanels("home")}}expandAll(){this.panels.forEach((t=>{t.opened=!0}))}collapseAll(){this.panels.forEach((t=>{t.opened=!1}))}});customElements.get("kemet-badge")||customElements.define("kemet-badge",class extends G{static get styles(){return[r`
80
- :host {
81
- display: inline-flex;
82
- align-items: center;
83
- justify-content: center;
84
- padding: var(--kemet-badge-padding, 10px);
85
- line-height: 1;
86
- color: var(--kemet-color-white);
87
- }
88
-
89
- :host([status='primary']) {
90
- background-color: var(--kemet-color-primary);
91
- }
92
-
93
- :host([status='success']) {
94
- background-color: var(--kemet-color-success);
95
- }
96
-
97
- :host([status='standard']) {
98
- background-color: var(--kemet-color-gray6);
99
- }
100
-
101
- :host([status='warning']) {
102
- background-color: var(--kemet-color-warning);
103
- }
104
-
105
- :host([status='error']) {
106
- background-color: var(--kemet-color-error);
107
- }
108
-
109
- :host([circle]) {
110
- border-radius: 50%;
111
- }
112
-
113
- :host([pill]) {
114
- border-radius: 99rem;
115
- }
116
- `]}static get properties(){return{status:{type:String,reflect:!0},circle:{type:Boolean,reflect:!0},pill:{type:Boolean,reflect:!0},circlePadding:{type:Number,attribute:"circle-padding"}}}constructor(){super(),this.status="primary",this.pill=!1,this.circle=!1,this.circlePadding=0}render(){return P`<slot @slotchange=${()=>this.handleSlotChange()}></slot>`}handleSlotChange(){this.circle&&(this.style.height=`${this.offsetWidth+this.circlePadding}px`,this.style.width=`${this.offsetWidth+this.circlePadding}px`)}});class Q{host;form;options;constructor(t,e){(this.host=t).addController(this),this.options={form:t=>t.closest("form"),name:t=>t.name,value:t=>t.value,disabled:t=>t.disabled,checkValidity:t=>"function"!=typeof t.checkValidity||t.checkValidity(),...e},this.handleFormData=this.handleFormData.bind(this),this.handleFormSubmit=this.handleFormSubmit.bind(this)}hostConnected(){this.form=this.options.form(this.host),this.form&&(this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit))}hostDisconnected(){this.form&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form=void 0)}handleFormData(t){const e=this.options.disabled(this.host),s=this.options.name(this.host),i=this.options.value(this.host);e||"string"!=typeof s||void 0===i||(Array.isArray(i)?i.forEach((e=>{t.formData?.append(s,e.toString())})):t.formData?.append(s,i.toString()))}handleFormSubmit(t){const e=this.options.disabled(this.host),s=this.options.checkValidity;if(this.form=this.options.form(this.host),this.form&&!this.form.noValidate&&!e&&!s(this.host)){t.preventDefault(),t.stopImmediatePropagation();this.form.querySelectorAll("kemet-input, kemet-textarea, kemet-select, kemet-checkbox, kemet-radios").forEach((t=>{t.checkValidity(),t.checkValidity()||(t.status="error",t.invalid=!0,t.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:t.validity?t.validity:{},element:t}}))),t.checkLimitValidity&&!t.checkLimitValidity()&&(t.status="error",t.invalid=!0,t.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:{passedLimit:!0},element:t}})))}))}}submit(){const t=document.createElement("button");this.form&&(t.type="submit",t.style.position="absolute",t.style.width="0",t.style.height="0",t.style.clip="rect(0 0 0 0)",t.style.clipPath="inset(50%)",t.style.overflow="hidden",t.style.whiteSpace="nowrap",this.form.append(t),t.click(),t.remove())}}customElements.get("kemet-button")||customElements.define("kemet-button",class extends G{static get styles(){return[r`
79
+ `]}static get properties(){return{currentPanel:{type:Number},togglePanels:{type:Boolean,attribute:"toggle-panels"}}}constructor(){super(),this.togglePanels=!1,this.currentPanel=void 0,this.addEventListener("kemet-accordion-panel-opened",this.handlePanelOpened.bind(this))}firstUpdated(){this.onKeyDown=t=>this.handleKeyDown(t)}render(){return I`<slot @slotchange=${t=>this.handleSlotChange(t)}></slot>`}handleSlotChange(){this.panels=this.querySelectorAll("kemet-accordion-panel"),this.panels.forEach((t=>{t.removeEventListener("keydown",this.onKeyDown),t.addEventListener("keydown",this.onKeyDown)}))}handlePanelOpened(t){this.togglePanels&&this.panels.forEach((e=>{e!==t.detail&&(e.opened=!1)}))}navigatePanels(t){switch(t){case"home":this.currentPanel=0;break;case"end":this.currentPanel=this.panels.length-1;break;case"next":this.currentPanel+=1;break;case"prev":this.currentPanel-=1;break;default:this.currentPanelFocus=0}this.currentPanel>this.panels.length-1&&(this.currentPanel=0),this.currentPanel<0&&(this.currentPanel=this.panels.length-1),this.panels[this.currentPanel].shadowRoot.querySelector("button").focus()}handleKeyDown(t){switch(t.key){case"Enter":case"Space":t.preventDefault(),t.target.click();break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.navigatePanels("prev");break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.navigatePanels("next");break;case"End":t.preventDefault(),this.navigatePanels("end");break;case"Home":t.preventDefault(),this.navigatePanels("home")}}expandAll(){this.panels.forEach((t=>{t.opened=!0}))}collapseAll(){this.panels.forEach((t=>{t.opened=!1}))}});class Q{host;form;options;constructor(t,e){(this.host=t).addController(this),this.options={form:t=>t.closest("form"),name:t=>t.name,value:t=>t.value,disabled:t=>t.disabled,checkValidity:t=>"function"!=typeof t.checkValidity||t.checkValidity(),...e},this.handleFormData=this.handleFormData.bind(this),this.handleFormSubmit=this.handleFormSubmit.bind(this)}hostConnected(){this.form=this.options.form(this.host),this.form&&(this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit))}hostDisconnected(){this.form&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form=void 0)}handleFormData(t){const e=this.options.disabled(this.host),s=this.options.name(this.host),i=this.options.value(this.host);e||"string"!=typeof s||void 0===i||(Array.isArray(i)?i.forEach((e=>{t.formData?.append(s,e.toString())})):t.formData?.append(s,i.toString()))}handleFormSubmit(t){const e=this.options.disabled(this.host),s=this.options.checkValidity;if(this.form=this.options.form(this.host),this.form&&!this.form.noValidate&&!e&&!s(this.host)){t.preventDefault(),t.stopImmediatePropagation();this.form.querySelectorAll("kemet-input, kemet-textarea, kemet-select, kemet-checkbox, kemet-radios").forEach((t=>{t.checkValidity(),t.checkValidity()||(t.status="error",t.invalid=!0,t.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:t.validity?t.validity:{},element:t}}))),t.checkLimitValidity&&!t.checkLimitValidity()&&(t.status="error",t.invalid=!0,t.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:{passedLimit:!0},element:t}})))}))}}submit(){const t=document.createElement("button");this.form&&(t.type="submit",t.style.position="absolute",t.style.width="0",t.style.height="0",t.style.clip="rect(0 0 0 0)",t.style.clipPath="inset(50%)",t.style.overflow="hidden",t.style.whiteSpace="nowrap",this.form.append(t),t.click(),t.remove())}}customElements.get("kemet-button")||customElements.define("kemet-button",class extends Z{static get styles(){return[r`
117
80
  :host {
118
81
  cursor: pointer;
119
82
  display: inline-flex;
@@ -182,23 +145,208 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
182
145
  --kemet-button-background-color: var(--kemet-color-white);
183
146
  --kemet-button-border: var(--kemet-button-border-width, 1px) var(--kemet-button-border-style, solid) var(--kemet-button-border-color, var(--kemet-color-primary));
184
147
  }
185
- `]}static get properties(){return{active:{type:Boolean,reflect:!0},hover:{type:Boolean,reflect:!0},focused:{type:Boolean,reflect:!0},link:{type:String},outlined:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},type:{type:String,reflect:!0}}}constructor(){super(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("mouseover",this.handleMouseOver.bind(this)),this.addEventListener("mouseout",this.handleMouseOut.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this)),this.addEventListener("keyup",(t=>this.handleKeyUp(t))),this.type="standard",this.outline=!1,this.disable=!1,this.formSubmitController=new Q(this)}render(){return this.link&&!this.disabled?P`
148
+ `]}static get properties(){return{active:{type:Boolean,reflect:!0},hover:{type:Boolean,reflect:!0},focused:{type:Boolean,reflect:!0},link:{type:String},outlined:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},type:{type:String,reflect:!0}}}constructor(){super(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("mouseover",this.handleMouseOver.bind(this)),this.addEventListener("mouseout",this.handleMouseOut.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this)),this.addEventListener("keyup",(t=>this.handleKeyUp(t))),this.type="standard",this.outline=!1,this.disable=!1,this.formSubmitController=new Q(this)}render(){return this.link&&!this.disabled?I`
186
149
  <a href=${this.link} class="button" role="button" part="button">
187
150
  <slot name="left"></slot>
188
151
  <slot></slot>
189
152
  <slot name="right"></slot>
190
153
  </a>
191
- `:P`
154
+ `:I`
192
155
  <button class="button" part="button" ?disabled=${this.disabled} aria-disabled=${this.disabled?"true":"false"}>
193
156
  <slot name="left"></slot>
194
157
  <slot></slot>
195
158
  <slot name="right"></slot>
196
159
  </button>
197
- `}handleMouseOver(){this.hover=!0}handleMouseOut(){this.hover=!1}handleClick(){this.hover=!1,this.active=!0,setTimeout((()=>{this.active=!1}),300),this.shadowRoot.querySelector("button")&&this.formSubmitController.submit(this)}handleBlur(){this.focused=!1,this.active=!1,this.hover=!1}handleKeyUp(t){"Tab"===t.key&&(this.focused=!0)}});class tt extends G{static get styles(){return[r`
160
+ `}handleMouseOver(){this.hover=!0}handleMouseOut(){this.hover=!1}handleClick(){this.hover=!1,this.active=!0,setTimeout((()=>{this.active=!1}),300),this.shadowRoot.querySelector("button")&&this.formSubmitController.submit(this)}handleBlur(){this.focused=!1,this.active=!1,this.hover=!1}handleKeyUp(t){"Tab"===t.key&&(this.focused=!0)}});customElements.get("kemet-badge")||customElements.define("kemet-badge",class extends Z{static get styles(){return[r`
161
+ :host {
162
+ display: inline-flex;
163
+ align-items: center;
164
+ justify-content: center;
165
+ padding: var(--kemet-badge-padding, 10px);
166
+ line-height: 1;
167
+ color: var(--kemet-color-white);
168
+ }
169
+
170
+ :host([status='primary']) {
171
+ background-color: var(--kemet-color-primary);
172
+ }
173
+
174
+ :host([status='success']) {
175
+ background-color: var(--kemet-color-success);
176
+ }
177
+
178
+ :host([status='standard']) {
179
+ background-color: var(--kemet-color-gray6);
180
+ }
181
+
182
+ :host([status='warning']) {
183
+ background-color: var(--kemet-color-warning);
184
+ }
185
+
186
+ :host([status='error']) {
187
+ background-color: var(--kemet-color-error);
188
+ }
189
+
190
+ :host([circle]) {
191
+ border-radius: 50%;
192
+ }
193
+
194
+ :host([pill]) {
195
+ border-radius: 99rem;
196
+ }
197
+ `]}static get properties(){return{status:{type:String,reflect:!0},circle:{type:Boolean,reflect:!0},pill:{type:Boolean,reflect:!0},circlePadding:{type:Number,attribute:"circle-padding"}}}constructor(){super(),this.status="primary",this.pill=!1,this.circle=!1,this.circlePadding=0}render(){return I`<slot @slotchange=${()=>this.handleSlotChange()}></slot>`}handleSlotChange(){this.circle&&(this.style.height=`${this.offsetWidth+this.circlePadding}px`,this.style.width=`${this.offsetWidth+this.circlePadding}px`)}});
198
+ /**
199
+ * @license
200
+ * Copyright 2018 Google LLC
201
+ * SPDX-License-Identifier: BSD-3-Clause
202
+ */
203
+ const tt=t=>null!=t?t:T
204
+ /**
205
+ * @license
206
+ * Copyright 2017 Google LLC
207
+ * SPDX-License-Identifier: BSD-3-Clause
208
+ */,et=1,st=2,it=3,ot=4,rt=t=>(...e)=>({_$litDirective$:t,values:e});class nt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
209
+ /**
210
+ * @license
211
+ * Copyright 2020 Google LLC
212
+ * SPDX-License-Identifier: BSD-3-Clause
213
+ */const at={},lt=rt(class extends nt{constructor(t){if(super(t),t.type!==it&&t.type!==et&&t.type!==ot)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===O||e===T)return e;const s=t.element,i=t.name;if(t.type===it){if(e===s[i])return O}else if(t.type===ot){if(!!e===s.hasAttribute(i))return O}else if(t.type===et&&s.getAttribute(i)===e+"")return O;return((t,e=at)=>{t._$AH=e;
214
+ /**
215
+ * @license
216
+ * Copyright 2020 Google LLC
217
+ * SPDX-License-Identifier: BSD-3-Clause
218
+ */})(t),e}});customElements.get("kemet-checkbox")||customElements.define("kemet-checkbox",class extends Z{static get styles(){return[r`
219
+ *,
220
+ *::before,
221
+ *::after {
222
+ box-sizing: border-box;
223
+ }
224
+
225
+ :host {
226
+ display: inline-block;
227
+ }
228
+
229
+ :host([disabled]) {
230
+ opacity: 0.5;
231
+ }
232
+
233
+ label {
234
+ display: inline-flex;
235
+ gap: 0.5rem;
236
+ align-items: center;
237
+ }
238
+
239
+ input {
240
+ cursor: pointer;
241
+ margin: 0;
242
+ padding: 0;
243
+ width: var(--kemet-checkbox-size, 18px);
244
+ height: var(--kemet-checkbox-size, 18px);
245
+ position: absolute;
246
+ opacity: 0;
247
+ }
248
+
249
+ button {
250
+ margin: 0;
251
+ border: none;
252
+ background: none;
253
+ }
254
+
255
+ [part='checkbox'] {
256
+ color: var(--kemet-checkbox-color, var(--kemet-color-primary));
257
+ display: flex;
258
+ align-items: center;
259
+ justify-content: center;
260
+ width: var(--kemet-checkbox-size, 18px);
261
+ height: var(--kemet-checkbox-size, 18px);
262
+ border: var(--kemet-checkbox-border, 1px solid var(--kemet-color-primary));
263
+ }
264
+
265
+ :host([rounded]) [part='checkbox'] {
266
+ border-radius: var(--kemet-checkbox-border-radius, 4px);
267
+ }
268
+
269
+ :host([filled][checked]) [part='checkbox'],
270
+ :host([filled][indeterminate]) [part='checkbox'] {
271
+ border: none;
272
+ background-color: var(--kemet-checkbox-filled-background-color, var(--kemet-color-primary));
273
+ }
274
+
275
+ [part='mark'] {
276
+ display: flex;
277
+ width: calc(var(--kemet-checkbox-size, 18px) - 4px);
278
+ height: calc(var(--kemet-checkbox-size, 18px) - 4px);
279
+ }
280
+
281
+ :host([filled][checked]) [part='mark'],
282
+ :host([filled][indeterminate]) [part='mark'] {
283
+ color: var(--kemet-checkbox-filled-color, var(--kemet-color-white));
284
+ }
285
+
286
+ [part='message'] {
287
+ display: block;
288
+ margin-top: 0.5rem;
289
+ }
290
+
291
+ :host([status='error']) [part='message'] {
292
+ color: var(--kemet-color-error);
293
+ }
294
+
295
+ :host([status='warning']) [part='message'] {
296
+ color: var(--kemet-color-error);
297
+ }
298
+ `]}static get properties(){return{label:{type:String},checked:{type:Boolean,reflect:!0},indeterminate:{type:Boolean,reflect:!0},name:{type:String},value:{type:String},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},focused:{type:Boolean,reflect:!0},rounded:{type:Boolean,reflect:!0},filled:{type:Boolean,reflect:!0},status:{type:String,reflect:!0},message:{type:String}}}constructor(){super(),this.label="",this.name="checkbox",this.disabled=!1,this.required=!1,this.rounded=!1,this.filled=!1,this.status="standard",this.formSubmitController=new Q(this)}firstUpdated(){this.input=this.shadowRoot.querySelector("input")}render(){return I`
299
+ <label part="label">
300
+ <input
301
+ type="checkbox"
302
+ name=${tt(this.name)}
303
+ .value=${this.value}
304
+ .indeterminate=${lt(this.indeterminate)}
305
+ .checked=${lt(this.checked)}
306
+ .disabled=${this.disabled}
307
+ .required=${this.required}
308
+ aria-checked=${this.checked?"true":"false"}
309
+ @click=${()=>this.handleClick()}
310
+ @blur=${()=>this.handleBlur()}
311
+ @focus=${()=>this.handleFocus()}
312
+ @change=${()=>this.handleChange()}
313
+ />
314
+ <button part="checkbox" aria-label=${this.label}>
315
+ ${this.makeCheckMark()}
316
+ </button>
317
+ <span part="text">${this.label}</span>
318
+ </label>
319
+ ${this.makeMessage()}
320
+ `}click(){this.input.click()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("kemet-checkbox-change",{bubbles:!0,composed:!0,detail:this}))}handleBlur(){this.focused=!1,this.dispatchEvent(new CustomEvent("kemet-checkbox-focused",{bubbles:!0,composed:!0,detail:!1}))}handleFocus(){this.focused=!0,this.dispatchEvent(new CustomEvent("kemet-checkbox-focused",{bubbles:!0,composed:!0,detail:!0}))}handleChange(){this.value=this.checked,this.input.checkValidity()&&(this.status="standard")}makeMessage(){return"error"===this.status||"warning"===this.status?I`<span part="message">${this.message}</span>`:null}makeCheckMark(){return this.checked?I`
321
+ <span part="mark">
322
+ <svg viewBox="0 0 16 16">
323
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
324
+ <g stroke="currentColor" stroke-width="2">
325
+ <g transform="translate(3.428571, 3.428571)">
326
+ <path d="M0,5.71428571 L3.42857143,9.14285714"></path>
327
+ <path d="M9.14285714,0 L3.42857143,9.14285714"></path>
328
+ </g>
329
+ </g>
330
+ </g>
331
+ </svg>
332
+ </span>
333
+ `:!this.checked&&this.indeterminate?I`
334
+ <span part="mark">
335
+ <svg viewBox="0 0 16 16">
336
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
337
+ <g stroke="currentColor" stroke-width="2">
338
+ <g transform="translate(2.285714, 6.857143)">
339
+ <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
340
+ </g>
341
+ </g>
342
+ </g>
343
+ </svg>
344
+ </span>
345
+ `:null}checkValidity(){return this.input.checkValidity()}});class dt extends Z{static get styles(){return[r`
198
346
  :host {
199
347
  display: inline-block;
200
348
  }
201
- `]}static get properties(){return{current:{type:Number}}}firstUpdated(){this.carousel=this.closest("kemet-carousel")}updated(){this.current=this.carousel.index+1}render(){return P`${this.current}`}}customElements.get("kemet-carousel-current")||customElements.define("kemet-carousel-current",tt);class et extends G{static get styles(){return[r`
349
+ `]}static get properties(){return{current:{type:Number}}}firstUpdated(){this.carousel=this.closest("kemet-carousel")}updated(){this.current=this.carousel.index+1}render(){return I`${this.current}`}}customElements.get("kemet-carousel-current")||customElements.define("kemet-carousel-current",dt);class ht extends Z{static get styles(){return[r`
202
350
  :host {
203
351
  cursor: pointer;
204
352
  }
@@ -206,11 +354,11 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
206
354
  :host([disabled]) {
207
355
  cursor: not-allowed;
208
356
  }
209
- `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return P`
357
+ `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return I`
210
358
  <span tabindex="0" @keyup=${()=>this.first()} @click=${()=>this.first()}>
211
359
  <slot></slot>
212
360
  </span>
213
- `}first(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-first",{bubbles:!0,composed:!0,detail:this}))}}customElements.get("kemet-carousel-first")||customElements.define("kemet-carousel-first",et);class st extends G{static get styles(){return[r`
361
+ `}first(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-first",{bubbles:!0,composed:!0,detail:this}))}}customElements.get("kemet-carousel-first")||customElements.define("kemet-carousel-first",ht);class ct extends Z{static get styles(){return[r`
214
362
  :host {
215
363
  cursor: pointer;
216
364
  }
@@ -218,11 +366,11 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
218
366
  :host([disabled]) {
219
367
  cursor: not-allowed;
220
368
  }
221
- `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return P`
369
+ `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return I`
222
370
  <span tabindex="0" @keyup=${()=>this.last()} @click=${()=>this.last()}>
223
371
  <slot></slot>
224
372
  </span>
225
- `}last(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-last",{bubbles:!0,composed:!0,detail:this}))}}customElements.get("kemet-carousel-last")||customElements.define("kemet-carousel-last",st);customElements.get("kemet-carousel-link")||customElements.define("kemet-carousel-link",class extends G{static get properties(){return{slide:{type:Number,reflect:!0},selected:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}}}static get styles(){return[r`
373
+ `}last(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-last",{bubbles:!0,composed:!0,detail:this}))}}customElements.get("kemet-carousel-last")||customElements.define("kemet-carousel-last",ct);customElements.get("kemet-carousel-link")||customElements.define("kemet-carousel-link",class extends Z{static get properties(){return{slide:{type:Number,reflect:!0},selected:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}}}static get styles(){return[r`
226
374
  :host([selected]) {
227
375
  color: var(--kemet-carousel-link-selected-color, var(--kemet-color-primary));
228
376
  }
@@ -234,11 +382,11 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
234
382
  :host([disabled]) {
235
383
  cursor: not-allowed;
236
384
  }
237
- `]}render(){return P`
385
+ `]}render(){return I`
238
386
  <span tabindex="0" @keyup=${()=>this.changed()} @click=${()=>this.changed()}>
239
387
  <slot></slot>
240
388
  </span>
241
- `}changed(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-link",{bubbles:!0,composed:!0,detail:this}))}});customElements.get("kemet-carousel-next")||customElements.define("kemet-carousel-next",class extends G{static get styles(){return[r`
389
+ `}changed(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-link",{bubbles:!0,composed:!0,detail:this}))}});customElements.get("kemet-carousel-next")||customElements.define("kemet-carousel-next",class extends Z{static get styles(){return[r`
242
390
  :host {
243
391
  cursor: pointer;
244
392
  }
@@ -246,11 +394,11 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
246
394
  :host([disabled]) {
247
395
  cursor: not-allowed;
248
396
  }
249
- `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return P`
397
+ `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return I`
250
398
  <span tabindex="0" @keyup=${()=>this.next()} @click=${()=>this.next()}>
251
399
  <slot></slot>
252
400
  </span>
253
- `}next(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-next",{bubbles:!0,composed:!0,detail:this}))}});class it extends G{static get styles(){return[r`
401
+ `}next(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-next",{bubbles:!0,composed:!0,detail:this}))}});class pt extends Z{static get styles(){return[r`
254
402
  :host {
255
403
  cursor: pointer;
256
404
  }
@@ -258,11 +406,11 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
258
406
  :host([disabled]) {
259
407
  cursor: not-allowed;
260
408
  }
261
- `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return P`
409
+ `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return I`
262
410
  <span tabindex="0" @keyup=${()=>this.prev()} @click=${()=>this.prev()}>
263
411
  <slot></slot>
264
412
  </span>
265
- `}prev(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-prev",{bubbles:!0,composed:!0,detail:this}))}}customElements.get("kemet-carousel-prev")||customElements.define("kemet-carousel-prev",it);customElements.get("kemet-carousel-slide")||customElements.define("kemet-carousel-slide",class extends G{static get styles(){return[r`
413
+ `}prev(){this.disabled||this.dispatchEvent(new CustomEvent("kemet-carousel-prev",{bubbles:!0,composed:!0,detail:this}))}}customElements.get("kemet-carousel-prev")||customElements.define("kemet-carousel-prev",pt);customElements.get("kemet-carousel-slide")||customElements.define("kemet-carousel-slide",class extends Z{static get styles(){return[r`
266
414
  :host,
267
415
  :host *,
268
416
  :host *::before,
@@ -273,13 +421,13 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
273
421
  :host {
274
422
  flex: 0 0 auto;
275
423
  }
276
- `]}static get properties(){return{selected:{type:Boolean,reflect:!0},"aria-hidden":{type:String,reflect:!0}}}constructor(){super(),this.selected=!1,this["aria-hidden"]="true"}render(){return P`
424
+ `]}static get properties(){return{selected:{type:Boolean,reflect:!0},"aria-hidden":{type:String,reflect:!0}}}constructor(){super(),this.selected=!1,this["aria-hidden"]="true"}render(){return I`
277
425
  <slot></slot>
278
- `}});class ot extends G{static get styles(){return[r`
426
+ `}});class ut extends Z{static get styles(){return[r`
279
427
  :host {
280
428
  display: inline-block;
281
429
  }
282
- `]}static get properties(){return{total:{type:Number}}}firstUpdated(){this.carousel=this.closest("kemet-carousel")}updated(){this.total=this.carousel.total}render(){return P`${this.total}`}}customElements.get("kemet-carousel-total")||customElements.define("kemet-carousel-total",ot);customElements.get("kemet-carousel")||customElements.define("kemet-carousel",class extends G{static get styles(){return r`
430
+ `]}static get properties(){return{total:{type:Number}}}firstUpdated(){this.carousel=this.closest("kemet-carousel")}updated(){this.total=this.carousel.total}render(){return I`${this.total}`}}customElements.get("kemet-carousel-total")||customElements.define("kemet-carousel-total",ut);customElements.get("kemet-carousel")||customElements.define("kemet-carousel",class extends Z{static get styles(){return r`
283
431
  :host,
284
432
  *,
285
433
  *::before,
@@ -342,7 +490,7 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
342
490
  :host(:hover) ::slotted([slot='prev']) {
343
491
  opacity: var(--kemet-carousel-arrows-opacity-hover, 1);
344
492
  }
345
- `}static get properties(){return{index:{type:Number,reflect:!0},total:{type:Number},sliderWidth:{type:String},sliderTranslateX:{type:String},inner:{type:Boolean,reflect:!0},arrows:{type:Boolean,reflect:!0},options:{type:Object},breakpoints:{type:Object}}}constructor(){super(),this.index=0,this.total=0,this.sliderWidth="auto",this.sliderTranslateX="0",this.inner=!1,this.arrows=!1,this.options={perView:1,perMove:1,gap:12,slideshow:0,rewind:!0,center:!1},this.breakpoints={768:{perView:2,gap:24,rewind:!1},1280:{perView:2.5,center:!0}},this.addEventListener("kemet-carousel-first",this.handleFirst.bind(this)),this.addEventListener("kemet-carousel-last",this.handleLast.bind(this)),this.addEventListener("kemet-carousel-next",this.handleNext.bind(this)),this.addEventListener("kemet-carousel-prev",this.handlePrev.bind(this)),this.addEventListener("kemet-carousel-link",this.handleLink.bind(this))}firstUpdated(){this.slides=[],this.links=[],this.containerElement=this.shadowRoot.querySelector('[part="container"]'),this.slidesElement=this.shadowRoot.querySelector('[part="slides"]'),this.sliderElement=this.shadowRoot.querySelector('[part="slider"]'),this.toolbarElement=this.shadowRoot.querySelector('[part="toolbar"]'),this.toolbarSlotElement=this.querySelector('[slot="toolbar"]'),this.informationElement=this.querySelector("kemet-carousel-information"),window.addEventListener("resize",(()=>{this.setSlideSize(),this.setToolbarSize(),this.updateIndex(this.index)})),this.sliderElement.addEventListener("transitionend",this.handleTransitionEnd.bind(this)),this.swipeMove=t=>{t.preventDefault();const e=t.touches?t.touches[0].pageX:t.pageX,s=this.slides[this.index];this.sliderTranslateX=e-this.startX-s.offsetLeft+"px"},this.handleSlideShow=()=>{this.getOption("slideshow")>0&&(this.updateIndex(this.index+1),clearTimeout(this.handleSlideShow))},this.setSlideSize(),this.goToSlide(this.index)}updated(t){this.setSlideSize(),this.setToolbarSize(),t.has("index")&&(this.updateIndex(this.index),setTimeout(this.handleSlideShow,1e3*this.getOption("slideshow")))}render(){return P`
493
+ `}static get properties(){return{index:{type:Number,reflect:!0},total:{type:Number},sliderWidth:{type:String},sliderTranslateX:{type:String},inner:{type:Boolean,reflect:!0},arrows:{type:Boolean,reflect:!0},options:{type:Object},breakpoints:{type:Object}}}constructor(){super(),this.index=0,this.total=0,this.sliderWidth="auto",this.sliderTranslateX="0",this.inner=!1,this.arrows=!1,this.options={perView:1,perMove:1,gap:12,slideshow:0,rewind:!0,center:!1},this.breakpoints={768:{perView:2,gap:24,rewind:!1},1280:{perView:2.5,center:!0}},this.addEventListener("kemet-carousel-first",this.handleFirst.bind(this)),this.addEventListener("kemet-carousel-last",this.handleLast.bind(this)),this.addEventListener("kemet-carousel-next",this.handleNext.bind(this)),this.addEventListener("kemet-carousel-prev",this.handlePrev.bind(this)),this.addEventListener("kemet-carousel-link",this.handleLink.bind(this))}firstUpdated(){this.slides=[],this.links=[],this.containerElement=this.shadowRoot.querySelector('[part="container"]'),this.slidesElement=this.shadowRoot.querySelector('[part="slides"]'),this.sliderElement=this.shadowRoot.querySelector('[part="slider"]'),this.toolbarElement=this.shadowRoot.querySelector('[part="toolbar"]'),this.toolbarSlotElement=this.querySelector('[slot="toolbar"]'),this.informationElement=this.querySelector("kemet-carousel-information"),window.addEventListener("resize",(()=>{this.setSlideSize(),this.setToolbarSize(),this.updateIndex(this.index)})),this.sliderElement.addEventListener("transitionend",this.handleTransitionEnd.bind(this)),this.swipeMove=t=>{t.preventDefault();const e=t.touches?t.touches[0].pageX:t.pageX,s=this.slides[this.index];this.sliderTranslateX=e-this.startX-s.offsetLeft+"px"},this.handleSlideShow=()=>{this.getOption("slideshow")>0&&(this.updateIndex(this.index+1),clearTimeout(this.handleSlideShow))},this.setSlideSize(),this.goToSlide(this.index)}updated(t){this.setSlideSize(),this.setToolbarSize(),t.has("index")&&(this.updateIndex(this.index),setTimeout(this.handleSlideShow,1e3*this.getOption("slideshow")))}render(){return I`
346
494
  <slot name="prev" @slotchange=${this.handleArrows}></slot>
347
495
  <div class="container" part="container">
348
496
  <section
@@ -361,159 +509,11 @@ var W,Z;null==K||K(D,R),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
361
509
  ${this.makeToolbar()}
362
510
  </div>
363
511
  <slot name="next" @slotchange=${this.handleArrows}></slot>
364
- `}swipeStart(t){this.startX=t.touches?t.touches[0].pageX:t.pageX,this.addEventListener("mousemove",this.swipeMove),this.addEventListener("touchmove",this.swipeMove)}swipeEnd(t){this.updateIndex(this.swipeUpdate(t)),this.removeEventListener("mousemove",this.swipeMove,!1),this.removeEventListener("touchmove",this.swipeMove,!1)}swipeUpdate(t){const e=t.changedTouches?t.changedTouches[0].pageX:t.pageX,s=this.startX>e?"right":"left",i=this.slidesElement.offsetWidth/3,o=this.startX-e,r=Math.abs(o)>i;let{index:n}=this;return r&&"right"===s&&(n=this.index>=this.slides.length-1?this.index:this.index+1),r&&"left"===s&&(n=this.index<1?0:this.index-1),n}swipeLeave(){this.updateIndex(this.index),this.removeEventListener("mousemove",this.swipeMove,!1),this.removeEventListener("touchmove",this.swipeMove,!1)}setSlideSize(){this.slideWidth=this.containerElement.offsetWidth/this.getOption("perView"),this.slides.forEach((t=>{t.style.marginLeft=this.getOption("gap")/2+"px",t.style.marginRight=this.getOption("gap")/2+"px",t.style.width=this.slideWidth-this.getOption("gap")+"px"})),this.sliderWidth=this.slideWidth*this.slides.length+"px"}setToolbarSize(){if(this.inner&&this.toolbarElement){const t=this.slidesElement.offsetWidth;this.toolbarElement.style.width=`${t}px`}}makeToolbar(){return this.toolbarSlotElement?P`
512
+ `}swipeStart(t){this.startX=t.touches?t.touches[0].pageX:t.pageX,this.addEventListener("mousemove",this.swipeMove),this.addEventListener("touchmove",this.swipeMove)}swipeEnd(t){this.updateIndex(this.swipeUpdate(t)),this.removeEventListener("mousemove",this.swipeMove,!1),this.removeEventListener("touchmove",this.swipeMove,!1)}swipeUpdate(t){const e=t.changedTouches?t.changedTouches[0].pageX:t.pageX,s=this.startX>e?"right":"left",i=this.slidesElement.offsetWidth/3,o=this.startX-e,r=Math.abs(o)>i;let{index:n}=this;return r&&"right"===s&&(n=this.index>=this.slides.length-1?this.index:this.index+1),r&&"left"===s&&(n=this.index<1?0:this.index-1),n}swipeLeave(){this.updateIndex(this.index),this.removeEventListener("mousemove",this.swipeMove,!1),this.removeEventListener("touchmove",this.swipeMove,!1)}setSlideSize(){this.slideWidth=this.containerElement.offsetWidth/this.getOption("perView"),this.slides.forEach((t=>{t.style.marginLeft=this.getOption("gap")/2+"px",t.style.marginRight=this.getOption("gap")/2+"px",t.style.width=this.slideWidth-this.getOption("gap")+"px"})),this.sliderWidth=this.slideWidth*this.slides.length+"px"}setToolbarSize(){if(this.inner&&this.toolbarElement){const t=this.slidesElement.offsetWidth;this.toolbarElement.style.width=`${t}px`}}makeToolbar(){return this.toolbarSlotElement?I`
365
513
  <section class="toolbar" part="toolbar">
366
514
  <slot name="toolbar"></slot>
367
515
  </section>
368
- `:null}handleSlotChange(){const t=this.querySelectorAll("kemet-carousel-slide"),e=this.querySelectorAll("kemet-carousel-link");t.forEach((t=>{this.slides.push(t)})),this.updateInformation(),this.total=t.length,t[this.index].selected=!0,e.forEach((t=>{this.links.push(t)}))}handleArrows(){this.arrows=!0}handleFirst(){this.updateIndex(0)}handleLast(){this.updateIndex(this.slides.length-1)}handleNext(){let t=this.index+this.getOption("perMove");t>=this.slides.length&&(t=this.getOption("rewind")?0:this.index),this.updateIndex(t)}handlePrev(){let t=this.index-this.getOption("perMove");t<0&&(t=this.getOption("rewind")?this.slides.length-1:this.index),this.updateIndex(t)}updateIndex(t){let e=this.slides[this.index],s=this.links[t];this.links.forEach((t=>{t.selected=!1})),s||([s]=this.links),s&&(s.selected=!0),e&&(e.setAttribute("aria-hidden","true"),t>-1&&t<this.slides.length?this.index=t:(console.warn("An invalid index number was entered. The kemet-carousel has been reset to the first slide."),this.index=0),this.goToSlide(this.index),e=this.slides[this.index],e.setAttribute("aria-hidden","false"),this.slides.forEach((t=>{t.selected=!1})),e.selected=!0,this.dispatchEvent(new CustomEvent("kemet-carousel-change-start",{bubbles:!0,composed:!0,detail:this})),this.updateInformation())}updateInformation(){this.informationSlot=this.slides[this.index].querySelector('[slot="information"]'),this.informationElement&&(this.informationSlot?this.informationElement.innerHTML=this.informationSlot.outerHTML:this.informationElement.innerHTML="")}goToSlide(t){if(!0===this.getOption("center")){const e=this.slidesElement.offsetWidth/2,s=this.slideWidth*t;this.sliderTranslateX=s-(s-e)-this.slideWidth/2-s+"px"}else this.sliderTranslateX=this.slideWidth*t*-1+"px"}handleTransitionEnd(){const t=this.querySelector("kemet-carousel-current");t&&(t.current=this.index+1),this.dispatchEvent(new CustomEvent("kemet-carousel-change-finished",{bubbles:!0,composed:!0,detail:this}))}handleLink(t){this.updateIndex(t.detail.slide)}getOption(t){const e=Object.keys(this.breakpoints);let s=this.options[t];return e.forEach((e=>(window.matchMedia(`(min-width: ${e}px)`).matches&&void 0!==this.breakpoints[e][t]&&(s=this.breakpoints[e][t]),s))),s}});
369
- /**
370
- * @license
371
- * Copyright 2018 Google LLC
372
- * SPDX-License-Identifier: BSD-3-Clause
373
- */
374
- const rt=t=>null!=t?t:O
375
- /**
376
- * @license
377
- * Copyright 2017 Google LLC
378
- * SPDX-License-Identifier: BSD-3-Clause
379
- */,nt=1,at=2,lt=3,dt=4,ht=t=>(...e)=>({_$litDirective$:t,values:e});class ct{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
380
- /**
381
- * @license
382
- * Copyright 2020 Google LLC
383
- * SPDX-License-Identifier: BSD-3-Clause
384
- */const pt={},mt=ht(class extends ct{constructor(t){if(super(t),t.type!==lt&&t.type!==nt&&t.type!==dt)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===I||e===O)return e;const s=t.element,i=t.name;if(t.type===lt){if(e===s[i])return I}else if(t.type===dt){if(!!e===s.hasAttribute(i))return I}else if(t.type===nt&&s.getAttribute(i)===e+"")return I;return((t,e=pt)=>{t._$AH=e;
385
- /**
386
- * @license
387
- * Copyright 2020 Google LLC
388
- * SPDX-License-Identifier: BSD-3-Clause
389
- */})(t),e}});customElements.get("kemet-checkbox")||customElements.define("kemet-checkbox",class extends G{static get styles(){return[r`
390
- *,
391
- *::before,
392
- *::after {
393
- box-sizing: border-box;
394
- }
395
-
396
- :host {
397
- display: inline-block;
398
- }
399
-
400
- :host([disabled]) {
401
- opacity: 0.5;
402
- }
403
-
404
- label {
405
- display: inline-flex;
406
- gap: 0.5rem;
407
- align-items: center;
408
- }
409
-
410
- input {
411
- cursor: pointer;
412
- margin: 0;
413
- padding: 0;
414
- width: var(--kemet-checkbox-size, 18px);
415
- height: var(--kemet-checkbox-size, 18px);
416
- position: absolute;
417
- opacity: 0;
418
- }
419
-
420
- button {
421
- margin: 0;
422
- border: none;
423
- background: none;
424
- }
425
-
426
- [part='checkbox'] {
427
- color: var(--kemet-checkbox-color, var(--kemet-color-primary));
428
- display: flex;
429
- align-items: center;
430
- justify-content: center;
431
- width: var(--kemet-checkbox-size, 18px);
432
- height: var(--kemet-checkbox-size, 18px);
433
- border: var(--kemet-checkbox-border, 1px solid var(--kemet-color-primary));
434
- }
435
-
436
- :host([rounded]) [part='checkbox'] {
437
- border-radius: var(--kemet-checkbox-border-radius, 4px);
438
- }
439
-
440
- :host([filled][checked]) [part='checkbox'],
441
- :host([filled][indeterminate]) [part='checkbox'] {
442
- border: none;
443
- background-color: var(--kemet-checkbox-filled-background-color, var(--kemet-color-primary));
444
- }
445
-
446
- [part='mark'] {
447
- display: flex;
448
- width: calc(var(--kemet-checkbox-size, 18px) - 4px);
449
- height: calc(var(--kemet-checkbox-size, 18px) - 4px);
450
- }
451
-
452
- :host([filled][checked]) [part='mark'],
453
- :host([filled][indeterminate]) [part='mark'] {
454
- color: var(--kemet-checkbox-filled-color, var(--kemet-color-white));
455
- }
456
-
457
- [part='message'] {
458
- display: block;
459
- margin-top: 0.5rem;
460
- }
461
-
462
- :host([status='error']) [part='message'] {
463
- color: var(--kemet-color-error);
464
- }
465
-
466
- :host([status='warning']) [part='message'] {
467
- color: var(--kemet-color-error);
468
- }
469
- `]}static get properties(){return{label:{type:String},checked:{type:Boolean,reflect:!0},indeterminate:{type:Boolean,reflect:!0},name:{type:String},value:{type:String},disabled:{type:Boolean,reflect:!0},required:{type:Boolean,reflect:!0},focused:{type:Boolean,reflect:!0},rounded:{type:Boolean,reflect:!0},filled:{type:Boolean,reflect:!0},status:{type:String,reflect:!0},message:{type:String}}}constructor(){super(),this.label="",this.name="checkbox",this.disabled=!1,this.required=!1,this.rounded=!1,this.filled=!1,this.status="standard",this.formSubmitController=new Q(this)}firstUpdated(){this.input=this.shadowRoot.querySelector("input")}render(){return P`
470
- <label part="label">
471
- <input
472
- type="checkbox"
473
- name=${rt(this.name)}
474
- .value=${this.value}
475
- .indeterminate=${mt(this.indeterminate)}
476
- .checked=${mt(this.checked)}
477
- .disabled=${this.disabled}
478
- .required=${this.required}
479
- aria-checked=${this.checked?"true":"false"}
480
- @click=${()=>this.handleClick()}
481
- @blur=${()=>this.handleBlur()}
482
- @focus=${()=>this.handleFocus()}
483
- @change=${()=>this.handleChange()}
484
- />
485
- <button part="checkbox" aria-label=${this.label}>
486
- ${this.makeCheckMark()}
487
- </button>
488
- <span part="text">${this.label}</span>
489
- </label>
490
- ${this.makeMessage()}
491
- `}click(){this.input.click()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("kemet-checkbox-change",{bubbles:!0,composed:!0,detail:this}))}handleBlur(){this.focused=!1,this.dispatchEvent(new CustomEvent("kemet-checkbox-focused",{bubbles:!0,composed:!0,detail:!1}))}handleFocus(){this.focused=!0,this.dispatchEvent(new CustomEvent("kemet-checkbox-focused",{bubbles:!0,composed:!0,detail:!0}))}handleChange(){this.value=this.checked,this.input.checkValidity()&&(this.status="standard")}makeMessage(){return"error"===this.status||"warning"===this.status?P`<span part="message">${this.message}</span>`:null}makeCheckMark(){return this.checked?P`
492
- <span part="mark">
493
- <svg viewBox="0 0 16 16">
494
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
495
- <g stroke="currentColor" stroke-width="2">
496
- <g transform="translate(3.428571, 3.428571)">
497
- <path d="M0,5.71428571 L3.42857143,9.14285714"></path>
498
- <path d="M9.14285714,0 L3.42857143,9.14285714"></path>
499
- </g>
500
- </g>
501
- </g>
502
- </svg>
503
- </span>
504
- `:!this.checked&&this.indeterminate?P`
505
- <span part="mark">
506
- <svg viewBox="0 0 16 16">
507
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
508
- <g stroke="currentColor" stroke-width="2">
509
- <g transform="translate(2.285714, 6.857143)">
510
- <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
511
- </g>
512
- </g>
513
- </g>
514
- </svg>
515
- </span>
516
- `:null}checkValidity(){return this.input.checkValidity()}});customElements.get("kemet-combo")||customElements.define("kemet-combo",class extends G{static get styles(){return[r`
516
+ `:null}handleSlotChange(){const t=this.querySelectorAll("kemet-carousel-slide"),e=this.querySelectorAll("kemet-carousel-link");t.forEach((t=>{this.slides.push(t)})),this.updateInformation(),this.total=t.length,t[this.index].selected=!0,e.forEach((t=>{this.links.push(t)}))}handleArrows(){this.arrows=!0}handleFirst(){this.updateIndex(0)}handleLast(){this.updateIndex(this.slides.length-1)}handleNext(){let t=this.index+this.getOption("perMove");t>=this.slides.length&&(t=this.getOption("rewind")?0:this.index),this.updateIndex(t)}handlePrev(){let t=this.index-this.getOption("perMove");t<0&&(t=this.getOption("rewind")?this.slides.length-1:this.index),this.updateIndex(t)}updateIndex(t){let e=this.slides[this.index],s=this.links[t];this.links.forEach((t=>{t.selected=!1})),s||([s]=this.links),s&&(s.selected=!0),e&&(e.setAttribute("aria-hidden","true"),t>-1&&t<this.slides.length?this.index=t:(console.warn("An invalid index number was entered. The kemet-carousel has been reset to the first slide."),this.index=0),this.goToSlide(this.index),e=this.slides[this.index],e.setAttribute("aria-hidden","false"),this.slides.forEach((t=>{t.selected=!1})),e.selected=!0,this.dispatchEvent(new CustomEvent("kemet-carousel-change-start",{bubbles:!0,composed:!0,detail:this})),this.updateInformation())}updateInformation(){this.informationSlot=this.slides[this.index].querySelector('[slot="information"]'),this.informationElement&&(this.informationSlot?this.informationElement.innerHTML=this.informationSlot.outerHTML:this.informationElement.innerHTML="")}goToSlide(t){if(!0===this.getOption("center")){const e=this.slidesElement.offsetWidth/2,s=this.slideWidth*t;this.sliderTranslateX=s-(s-e)-this.slideWidth/2-s+"px"}else this.sliderTranslateX=this.slideWidth*t*-1+"px"}handleTransitionEnd(){const t=this.querySelector("kemet-carousel-current");t&&(t.current=this.index+1),this.dispatchEvent(new CustomEvent("kemet-carousel-change-finished",{bubbles:!0,composed:!0,detail:this}))}handleLink(t){this.updateIndex(t.detail.slide)}getOption(t){const e=Object.keys(this.breakpoints);let s=this.options[t];return e.forEach((e=>(window.matchMedia(`(min-width: ${e}px)`).matches&&void 0!==this.breakpoints[e][t]&&(s=this.breakpoints[e][t]),s))),s}});customElements.get("kemet-combo")||customElements.define("kemet-combo",class extends Z{static get styles(){return[r`
517
517
  :host {
518
518
  opacity: 0;
519
519
  width: var(--kemet-combo-width, calc(100% - 2px));
@@ -554,20 +554,20 @@ const rt=t=>null!=t?t:O
554
554
  outline: none;
555
555
  background-color: var(--kemet-combo-hover-background-color, var(--kemet-color-primary));
556
556
  }
557
- `]}static get properties(){return{slug:{type:String},options:{type:Array},filteredOptions:{type:Array},show:{type:Boolean,reflect:!0}}}firstUpdated(){this.field=this.closest("kemet-field"),this.input=this.field.querySelector('[slot="input"]'),this.slug=this.field.slug,this.input.addEventListener("kemet-input-input",this.handleInput.bind(this)),this.input.addEventListener("keydown",(t=>this.handleInputKeyDown(t)))}render(){return P`
557
+ `]}static get properties(){return{slug:{type:String},options:{type:Array},filteredOptions:{type:Array},show:{type:Boolean,reflect:!0}}}firstUpdated(){this.field=this.closest("kemet-field"),this.input=this.field.querySelector('[slot="input"]'),this.slug=this.field.slug||"slug",this.input.addEventListener("kemet-input-input",this.handleInput.bind(this)),this.input.addEventListener("keydown",(t=>this.handleInputKeyDown(t)))}render(){return I`
558
558
  <div
559
559
  role="combobox"
560
560
  aria-expanded=${this.show}
561
561
  aria-controls="${this.slug}-listbox"
562
562
  aria-haspopup="listbox"
563
563
  id="${this.slug}-combobox"
564
- aria-label="${this.field.label}"
564
+ aria-label="${this.field?.label}"
565
565
  >
566
566
  <ul role="listbox" aria-labelledby="${this.slug}-label" id="${this.slug}-listbox">
567
567
  ${this.makeOptions()}
568
568
  </ul>
569
569
  </div>
570
- `}makeOptions(){if(this.input){this.filteredOptions=this.options.filter((t=>-1!==t.toLowerCase().indexOf(this.input.value.toLowerCase())));return this.filteredOptions.map(((t,e)=>P`<li
570
+ `}makeOptions(){if(this.input){this.filteredOptions=this.options.filter((t=>-1!==t.toLowerCase().indexOf(this.input.value.toLowerCase())));return this.filteredOptions.map(((t,e)=>I`<li
571
571
  id="${this.slug}-option-${e}"
572
572
  role="option"
573
573
  tabindex="0"
@@ -576,13 +576,13 @@ const rt=t=>null!=t?t:O
576
576
  @keydown=${t=>this.handleOptionKeyDown(t)}
577
577
  >
578
578
  ${t}
579
- </li>`))}return null}handleInput(t){this.makeOptions(),t.detail.length>0?this.show=!0:this.show=!1}handleSelection(t){this.input.value=t.target.innerText,this.show=!1,this.dispatchEvent(new CustomEvent("kemet-combo-selection",{bubbles:!0,composed:!0,detail:t.target.getAttribute("id")}))}handleOptionKeyDown(t){if(t.preventDefault(),"ArrowDown"===t.code){const e=t.target.nextElementSibling;e?e.focus():this.shadowRoot.querySelector("li").focus()}if("ArrowUp"===t.code){const e=t.target.previousElementSibling;e?e.focus():this.shadowRoot.querySelector("li:last-child").focus()}"Escape"!==t.code&&"Tab"!==t.code||(this.show=!1,this.input.focus()),"Enter"!==t.code&&"Space"!==t.code||this.handleSelection(t)}handleInputKeyDown(t){"ArrowDown"===t.code&&this.shadowRoot.querySelector("li").focus(),"Escape"===t.code&&(this.show=!1)}});customElements.get("kemet-count")||customElements.define("kemet-count",class extends G{static get styles(){return[r`
579
+ </li>`))}return null}handleInput(t){this.makeOptions(),t.detail.length>0?this.show=!0:this.show=!1}handleSelection(t){this.input.value=t.target.innerText,this.show=!1,this.dispatchEvent(new CustomEvent("kemet-combo-selection",{bubbles:!0,composed:!0,detail:{element:t.target,text:t.target.innerText,id:t.target.getAttribute("id")}}))}handleOptionKeyDown(t){if(t.preventDefault(),"ArrowDown"===t.code){const e=t.target.nextElementSibling;e?e.focus():this.shadowRoot.querySelector("li").focus()}if("ArrowUp"===t.code){const e=t.target.previousElementSibling;e?e.focus():this.shadowRoot.querySelector("li:last-child").focus()}"Escape"!==t.code&&"Tab"!==t.code||(this.show=!1,this.input.focus()),"Enter"!==t.code&&"Space"!==t.code||this.handleSelection(t)}handleInputKeyDown(t){"ArrowDown"===t.code&&this.shadowRoot.querySelector("li").focus(),"Escape"===t.code&&(this.show=!1)}});customElements.get("kemet-count")||customElements.define("kemet-count",class extends Z{static get styles(){return[r`
580
580
  :host {
581
581
  display: block;
582
582
  font-size: var(--kemet-count-font-size, 90%);
583
583
  margin-top: 0.8rem;
584
584
  }
585
- `]}static get properties(){return{message:{type:String},remaining:{type:Number},limit:{type:Number},validateImmediately:{type:Boolean,attribute:"validate-immediately"}}}firstUpdated(){this.field=this.closest("kemet-field"),this.inputSlot=this.field.querySelector('[slot="input"]'),this.remaining=this.limit-this.field.length,this.field.addEventListener("kemet-field-input",(t=>{this.remaining=this.limit-t.detail;const e=this.input||this.textarea;e&&(this.remaining<0?(e.validity.passedLimit=!0,this.validateImmediately&&(this.inputSlot.status="error",this.inputSlot.invalid=!0,this.dispatchEvent(new CustomEvent("kemet-count-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:e.validity,element:this.inputSlot}})))):(this.inputSlot.status="standard",e.checkValidity(),this.dispatchEvent(new CustomEvent("kemet-count-status",{bubbles:!0,composed:!0,detail:{status:"standard",validity:e.validity,element:this.inputSlot}}))))})),this.input=this.inputSlot.shadowRoot.querySelector("input"),this.textarea=this.inputSlot.shadowRoot.querySelector("textarea")}render(){return P`${this.remaining} ${this.message}`}});customElements.get("kemet-draggable")||customElements.define("kemet-draggable",class extends G{static get styles(){return r`
585
+ `]}static get properties(){return{message:{type:String},remaining:{type:Number},limit:{type:Number},validateImmediately:{type:Boolean,attribute:"validate-immediately"}}}firstUpdated(){this.field=this.closest("kemet-field"),this.inputSlot=this.field.querySelector('[slot="input"]'),this.remaining=this.limit-this.field.length,this.field.addEventListener("kemet-field-input",(t=>{this.remaining=this.limit-t.detail;const e=this.input||this.textarea;e&&(this.remaining<0?(e.validity.passedLimit=!0,this.validateImmediately&&(this.inputSlot.status="error",this.inputSlot.invalid=!0,this.dispatchEvent(new CustomEvent("kemet-count-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:e.validity,element:this.inputSlot}})))):(this.inputSlot.status="standard",e.checkValidity(),this.dispatchEvent(new CustomEvent("kemet-count-status",{bubbles:!0,composed:!0,detail:{status:"standard",validity:e.validity,element:this.inputSlot}}))))})),this.input=this.inputSlot.shadowRoot.querySelector("input"),this.textarea=this.inputSlot.shadowRoot.querySelector("textarea")}render(){return I`${this.remaining} ${this.message}`}});customElements.get("kemet-draggable")||customElements.define("kemet-draggable",class extends Z{static get styles(){return r`
586
586
  :host {
587
587
  display: inline-block;
588
588
  }
@@ -590,11 +590,11 @@ const rt=t=>null!=t?t:O
590
590
  #draggable {
591
591
  position: absolute;
592
592
  }
593
- `}static get properties(){return{memory:{type:String},top:{type:String},left:{type:String},measure:{type:Boolean}}}constructor(){super(),this.top="auto",this.left="auto",this.measure=!1}firstUpdated(){this.position1=0,this.position2=0,this.position3=0,this.position4=0,this.mouseMove=t=>this.drag(t),this.mouseUp=()=>this.stopDrag(),this.draggableElement=this.shadowRoot.getElementById("draggable");const t=JSON.parse(localStorage.getItem(this.memory));t&&(this.top=t.top,this.left=t.left),this.measure&&this.measureContent()}render(){return P`
593
+ `}static get properties(){return{memory:{type:String},top:{type:String},left:{type:String},measure:{type:Boolean}}}constructor(){super(),this.top="auto",this.left="auto",this.measure=!1}firstUpdated(){this.position1=0,this.position2=0,this.position3=0,this.position4=0,this.mouseMove=t=>this.drag(t),this.mouseUp=()=>this.stopDrag(),this.draggableElement=this.shadowRoot.getElementById("draggable");const t=JSON.parse(localStorage.getItem(this.memory));t&&(this.top=t.top,this.left=t.left),this.measure&&this.measureContent()}render(){return I`
594
594
  <div id="draggable" @mousedown=${t=>this.startDrag(t)} style="top:${this.top}; left:${this.left}">
595
595
  <slot></slot>
596
596
  </div>
597
- `}startDrag(t){t&&(t.preventDefault(),this.position3=t.clientX,this.position4=t.clientY),document.addEventListener("mouseup",this.mouseUp),document.addEventListener("mousemove",this.mouseMove),this.dispatchEvent(new CustomEvent("kemet-draggable-start",{bubbles:!0,composed:!0,detail:this}))}drag(t){t.preventDefault(),this.position1=this.position3-t.clientX,this.position2=this.position4-t.clientY,this.position3=t.clientX,this.position4=t.clientY,this.top=this.draggableElement.offsetTop-this.position2+"px",this.left=this.draggableElement.offsetLeft-this.position1+"px"}stopDrag(){if(document.removeEventListener("mouseup",this.mouseUp),document.removeEventListener("mousemove",this.mouseMove),this.memory){const t={top:this.top,left:this.left};localStorage.setItem(this.memory,JSON.stringify(t))}this.dispatchEvent(new CustomEvent("kemet-draggable-stop",{bubbles:!0,composed:!0,detail:this}))}measureContent(){this.style.width=`${this.draggableElement.offsetWidth}px`,this.style.height=`${this.draggableElement.offsetHeight}px`}});const ut=`${document.documentElement.scrollHeight}px`,ft=r`
597
+ `}startDrag(t){t&&(t.preventDefault(),this.position3=t.clientX,this.position4=t.clientY),document.addEventListener("mouseup",this.mouseUp),document.addEventListener("mousemove",this.mouseMove),this.dispatchEvent(new CustomEvent("kemet-draggable-start",{bubbles:!0,composed:!0,detail:this}))}drag(t){t.preventDefault(),this.position1=this.position3-t.clientX,this.position2=this.position4-t.clientY,this.position3=t.clientX,this.position4=t.clientY,this.top=this.draggableElement.offsetTop-this.position2+"px",this.left=this.draggableElement.offsetLeft-this.position1+"px"}stopDrag(){if(document.removeEventListener("mouseup",this.mouseUp),document.removeEventListener("mousemove",this.mouseMove),this.memory){const t={top:this.top,left:this.left};localStorage.setItem(this.memory,JSON.stringify(t))}this.dispatchEvent(new CustomEvent("kemet-draggable-stop",{bubbles:!0,composed:!0,detail:this}))}measureContent(){this.style.width=`${this.draggableElement.offsetWidth}px`,this.style.height=`${this.draggableElement.offsetHeight}px`}});const mt=`${document.documentElement.scrollHeight}px`,ft=r`
598
598
  *,
599
599
  *::before,
600
600
  *::after {
@@ -728,7 +728,7 @@ const rt=t=>null!=t?t:O
728
728
  :host([effect='slide'][side='bottom']) .off-canvas__nav {
729
729
  width: 100vw;
730
730
  height: var(--kemet-drawer-height, 100vh);
731
- transform: translate3d(0, ${o(ut)}, 0);
731
+ transform: translate3d(0, ${o(mt)}, 0);
732
732
  }
733
733
 
734
734
  :host([effect='slide'][side='bottom'][opened]) .off-canvas__nav {
@@ -782,7 +782,7 @@ const rt=t=>null!=t?t:O
782
782
  :host([effect='reveal'][side='bottom']) .off-canvas__nav {
783
783
  width: 100vw;
784
784
  height: var(--kemet-drawer-height, 100vh);
785
- transform: translate3d(0, ${o(ut)}, 0);
785
+ transform: translate3d(0, ${o(mt)}, 0);
786
786
  }
787
787
 
788
788
  :host([effect='reveal'][side='bottom'][opened]) .off-canvas__nav {
@@ -841,7 +841,7 @@ const rt=t=>null!=t?t:O
841
841
  :host([effect='push'][side='bottom']) .off-canvas__nav {
842
842
  width: 100vw;
843
843
  height: var(--kemet-drawer-height, 100vh);
844
- transform: translate3d(0, ${o(ut)}, 0);
844
+ transform: translate3d(0, ${o(mt)}, 0);
845
845
  }
846
846
 
847
847
  :host([effect='push'][side='bottom'][opened]) .off-canvas__nav {
@@ -897,13 +897,13 @@ const rt=t=>null!=t?t:O
897
897
  :host([effect='scale'][side='bottom']) .off-canvas__nav {
898
898
  width: 100vw;
899
899
  height: var(--kemet-drawer-height, 100vh);
900
- transform: translate3d(0, ${o(ut)}, 0);
900
+ transform: translate3d(0, ${o(mt)}, 0);
901
901
  }
902
902
 
903
903
  :host([effect='scale'][side='bottom'][opened]) .off-canvas__nav {
904
904
  transform: translate3d(0, calc(100vh - var(--kemet-drawer-height, 100vh)), 0);
905
905
  }
906
- `;customElements.get("kemet-drawer")||customElements.define("kemet-drawer",class extends G{static get styles(){return[ft,gt]}static get properties(){return{opened:{type:Boolean,reflect:!0},effect:{type:String,reflect:!0},side:{type:String,reflect:!0},overlay:{type:Boolean,reflect:!0}}}constructor(){super(),this.opened=void 0,this.effect="slide",this.side="left",this.overlay=!1}firstUpdated(){this.addEventListener("click",(t=>{this.opened&&"kemet-drawer"===t.target.tagName.toLowerCase()&&(this.opened=!1)}))}updated(t){t.get("opened")||!0!==this.opened||this.dispatchEvent(new CustomEvent("kemet-drawer-opened",{bubbles:!0,composed:!0,detail:this})),t.get("opened")&&!1===this.opened&&this.dispatchEvent(new CustomEvent("kemet-drawer-closed",{bubbles:!0,composed:!0,detail:this}))}render(){return P`
906
+ `;customElements.get("kemet-drawer")||customElements.define("kemet-drawer",class extends Z{static get styles(){return[ft,gt]}static get properties(){return{opened:{type:Boolean,reflect:!0},effect:{type:String,reflect:!0},side:{type:String,reflect:!0},overlay:{type:Boolean,reflect:!0}}}constructor(){super(),this.opened=void 0,this.effect="slide",this.side="left",this.overlay=!1}firstUpdated(){this.addEventListener("click",(t=>{this.opened&&"kemet-drawer"===t.target.tagName.toLowerCase()&&(this.opened=!1)}))}updated(t){t.get("opened")||!0!==this.opened||this.dispatchEvent(new CustomEvent("kemet-drawer-opened",{bubbles:!0,composed:!0,detail:this})),t.get("opened")&&!1===this.opened&&this.dispatchEvent(new CustomEvent("kemet-drawer-closed",{bubbles:!0,composed:!0,detail:this}))}render(){return I`
907
907
  <section class="off-canvas" part="container">
908
908
  <nav class="off-canvas__nav" part="drawer" title="Drawer">
909
909
  <slot name="navigation"></slot>
@@ -916,7 +916,7 @@ const rt=t=>null!=t?t:O
916
916
  </main>
917
917
  </div>
918
918
  </section>
919
- `}});customElements.get("kemet-fab")||customElements.define("kemet-fab",class extends G{static get styles(){return[r`
919
+ `}});customElements.get("kemet-fab")||customElements.define("kemet-fab",class extends Z{static get styles(){return[r`
920
920
  :host {
921
921
  --kemet-fab-size: 50px;
922
922
 
@@ -1008,7 +1008,7 @@ const rt=t=>null!=t?t:O
1008
1008
  :host([expanded]) .text {
1009
1009
  opacity: 1;
1010
1010
  }
1011
- `]}static get properties(){return{expanded:{type:Boolean,reflect:!0},outlined:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},pill:{type:Boolean,reflect:!0},expandPoint:{type:Number,attribute:"expand-point"},collapsePoint:{type:Number,attribute:"collapse-point"}}}constructor(){super(),this.outlined=!1,this.disabled=!1,this.expanded=!1}firstUpdated(){window.addEventListener("scroll",this.handleScroll.bind(this)),this.addEventListener("mouseover",this.handleMouseOver.bind(this)),this.addEventListener("mouseout",this.handleMouseOut.bind(this))}render(){return P`
1011
+ `]}static get properties(){return{expanded:{type:Boolean,reflect:!0},outlined:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},pill:{type:Boolean,reflect:!0},expandPoint:{type:Number,attribute:"expand-point"},collapsePoint:{type:Number,attribute:"collapse-point"}}}constructor(){super(),this.outlined=!1,this.disabled=!1,this.expanded=!1}firstUpdated(){window.addEventListener("scroll",this.handleScroll.bind(this)),this.addEventListener("mouseover",this.handleMouseOver.bind(this)),this.addEventListener("mouseout",this.handleMouseOut.bind(this))}render(){return I`
1012
1012
  <button class="button" part="button" ?disabled=${this.disabled} aria-disabled=${this.disabled?"true":"false"}>
1013
1013
  <span class="icon" part="icon">
1014
1014
  <slot name="icon"></slot>
@@ -1017,7 +1017,7 @@ const rt=t=>null!=t?t:O
1017
1017
  <slot></slot>
1018
1018
  </span>
1019
1019
  </button>
1020
- `}handleMouseOver(){this.disabled||(this.expanded=!0)}handleMouseOut(){this.disabled||(this.expanded=!1)}handleScroll(){window.scrollY>this.expandPoint&&(this.expanded=!0),window.scrollY<this.expandPoint&&(this.expanded=!1),window.scrollY>this.collapsePoint&&(this.expanded=!1),window.scrollY<this.collapsePoint&&(this.expanded=!0)}});customElements.get("kemet-field")||customElements.define("kemet-field",class extends G{static get styles(){return[r`
1020
+ `}handleMouseOver(){this.disabled||(this.expanded=!0)}handleMouseOut(){this.disabled||(this.expanded=!1)}handleScroll(){window.scrollY>this.expandPoint&&(this.expanded=!0),window.scrollY<this.expandPoint&&(this.expanded=!1),window.scrollY>this.collapsePoint&&(this.expanded=!1),window.scrollY<this.collapsePoint&&(this.expanded=!0)}});customElements.get("kemet-field")||customElements.define("kemet-field",class extends Z{static get styles(){return[r`
1021
1021
  *,
1022
1022
  *::before,
1023
1023
  *::after {
@@ -1075,20 +1075,20 @@ const rt=t=>null!=t?t:O
1075
1075
  :host([status='warning']) .message {
1076
1076
  color: var(--kemet-color-warning);
1077
1077
  }
1078
- `]}static get properties(){return{slug:{type:String},label:{type:String},message:{type:String},focused:{type:Boolean,reflect:!0},status:{type:String,reflect:!0},filled:{type:Boolean,reflect:!0},length:{type:Number},disabled:{type:Boolean,reflect:!0},errorIcon:{type:String,attribute:"error-icon"},successIcon:{type:String,attribute:"success-icon"}}}constructor(){super(),this.status="standard",this.errorIcon="exclamation-triangle-fill",this.successIcon="check-lg",this.addEventListener("kemet-input-focused",(t=>this.handleFocused(t))),this.addEventListener("kemet-input-status",(t=>this.handleStatus(t))),this.addEventListener("kemet-input-input",(t=>this.handleInput(t))),this.addEventListener("kemet-count-status",(t=>this.handleStatus(t))),this.addEventListener("kemet-combo-selection",(t=>this.handleSelection(t)))}firstUpdated(){this.slotInput=this.querySelector('[slot="input"]'),this.slotCombo=this.querySelector('[slot="combo"]'),this.slotInput.value?this.length=this.slotInput.value.length:this.length=0}render(){return P`
1078
+ `]}static get properties(){return{slug:{type:String},label:{type:String},message:{type:String},focused:{type:Boolean,reflect:!0},status:{type:String,reflect:!0},filled:{type:Boolean,reflect:!0},length:{type:Number},disabled:{type:Boolean,reflect:!0},errorIcon:{type:String,attribute:"error-icon"},successIcon:{type:String,attribute:"success-icon"}}}constructor(){super(),this.status="standard",this.errorIcon="exclamation-triangle-fill",this.successIcon="check-lg",this.addEventListener("kemet-input-focused",(t=>this.handleFocused(t))),this.addEventListener("kemet-input-status",(t=>this.handleStatus(t))),this.addEventListener("kemet-input-input",(t=>this.handleInput(t))),this.addEventListener("kemet-count-status",(t=>this.handleStatus(t))),this.addEventListener("kemet-combo-selection",(t=>this.handleSelection(t)))}firstUpdated(){this.slotInput=this.querySelector('[slot="input"]'),this.slotCombo=this.querySelector('[slot="combo"]'),this.slotInput.value?this.length=this.slotInput.value.length:this.length=0}render(){return I`
1079
1079
  <label for="${this.slug}" id="${this.slug}-label" part="label">
1080
1080
  <span>${this.label}${this.makeStatusIcon()}</span>
1081
1081
  <slot name="input"></slot>
1082
1082
  </label>
1083
1083
  ${this.makeStatusMessage()}
1084
1084
  <slot name="component"></slot>
1085
- `}makeStatusIcon(){return"error"===this.status||"warning"===this.status?P`<kemet-icon icon="${this.errorIcon}" size="16"></kemet-icon>`:"success"===this.status?P`<kemet-icon icon="${this.successIcon}" size="16"></kemet-icon>`:null}makeStatusMessage(){return"standard"!==this.status?P`<span class="message" part="message">${this.message}</span>`:null}handleFocused(t){this.focused=t.detail,!this.focused&&this.slotCombo&&this.slotCombo.options.length<1&&(this.slotCombo.show=!1)}handleStatus(t){this.status=t.detail.status}handleInput(t){this.dispatchEvent(new CustomEvent("kemet-field-input",{bubbles:!1,detail:t.detail.length})),""===t.detail?this.filled=!1:this.filled=!0}handleSelection(t){this.slotInput.setAttribute("aria-activedescendant",t.detail)}});customElements.get("kemet-flipcard-trigger")||customElements.define("kemet-flipcard-trigger",class extends G{static get styles(){return[r`
1085
+ `}makeStatusIcon(){return"error"===this.status||"warning"===this.status?I`<kemet-icon icon="${this.errorIcon}" size="16"></kemet-icon>`:"success"===this.status?I`<kemet-icon icon="${this.successIcon}" size="16"></kemet-icon>`:null}makeStatusMessage(){return"standard"!==this.status?I`<span class="message" part="message">${this.message}</span>`:null}handleFocused(t){this.focused=t.detail,!this.focused&&this.slotCombo&&this.slotCombo.options.length<1&&(this.slotCombo.show=!1)}handleStatus(t){this.status=t.detail.status}handleInput(t){this.dispatchEvent(new CustomEvent("kemet-field-input",{bubbles:!1,detail:t.detail.length})),""===t.detail?this.filled=!1:this.filled=!0}handleSelection(t){this.slotInput.setAttribute("aria-activedescendant",t.detail)}});customElements.get("kemet-flipcard-trigger")||customElements.define("kemet-flipcard-trigger",class extends Z{static get styles(){return[r`
1086
1086
  :host {
1087
1087
  cursor: pointer;
1088
1088
  }
1089
- `]}firstUpdated(){this.keyCodes={ENTER:13,SPACE:32}}render(){return P`
1089
+ `]}firstUpdated(){this.keyCodes={ENTER:13,SPACE:32}}render(){return I`
1090
1090
  <slot tabindex="0" @click=${()=>this.trigger()} @keypress=${t=>this.handleKeyup(t)}></slot>
1091
- `}trigger(){this.dispatchEvent(new CustomEvent("kemet-flipcard-flipped",{bubbles:!0,composed:!0,detail:this}))}handleKeyup(t){t.preventDefault(),t.keyCode===this.keyCodes.ENTER&&this.trigger()}});customElements.get("kemet-flipcard")||window.customElements.define("kemet-flipcard",class extends G{static get styles(){return r`
1091
+ `}trigger(){this.dispatchEvent(new CustomEvent("kemet-flipcard-flipped",{bubbles:!0,composed:!0,detail:this}))}handleKeyup(t){t.preventDefault(),t.keyCode===this.keyCodes.ENTER&&this.trigger()}});customElements.get("kemet-flipcard")||window.customElements.define("kemet-flipcard",class extends Z{static get styles(){return r`
1092
1092
  *,
1093
1093
  ::after,
1094
1094
  ::before {
@@ -1170,7 +1170,7 @@ const rt=t=>null!=t?t:O
1170
1170
  width: 100%;
1171
1171
  height: 100%;
1172
1172
  }
1173
- `}static get properties(){return{axis:{type:String,reflect:!0},flipped:{type:Boolean,reflect:!0},flipOnHover:{type:Boolean,attribute:"flip-on-hover"},height:{type:String},measure:{type:Boolean}}}constructor(){super(),this.axis="horizontal",this.flipped=!1,this.flipOnHover=!1,this.height="auto",this.measure=!1,this.addEventListener("kemet-flipcard-flipped",(()=>{this.flipped=!this.flipped}))}firstUpdated(){this.frontChildren=this.shadowRoot.querySelector('[name="front"]').assignedNodes({flatten:!0}),this.backChildren=this.shadowRoot.querySelector('[name="back"]').assignedNodes({flatten:!0}),[this.frontElement]=this.frontChildren,[this.backElement]=this.backChildren,window.addEventListener("resize",this.determineHeight.bind(this))}updated(){this.determineHeight()}render(){return P`
1173
+ `}static get properties(){return{axis:{type:String,reflect:!0},flipped:{type:Boolean,reflect:!0},flipOnHover:{type:Boolean,attribute:"flip-on-hover"},height:{type:String},measure:{type:Boolean}}}constructor(){super(),this.axis="horizontal",this.flipped=!1,this.flipOnHover=!1,this.height="auto",this.measure=!1,this.addEventListener("kemet-flipcard-flipped",(()=>{this.flipped=!this.flipped}))}firstUpdated(){this.frontChildren=this.shadowRoot.querySelector('[name="front"]').assignedNodes({flatten:!0}),this.backChildren=this.shadowRoot.querySelector('[name="back"]').assignedNodes({flatten:!0}),[this.frontElement]=this.frontChildren,[this.backElement]=this.backChildren,window.addEventListener("resize",this.determineHeight.bind(this))}updated(){this.determineHeight()}render(){return I`
1174
1174
  <section
1175
1175
  tabindex="0"
1176
1176
  part="wrapper"
@@ -1185,7 +1185,7 @@ const rt=t=>null!=t?t:O
1185
1185
  <slot name="back" @slotchange="${()=>this.determineHeight()}"></slot>
1186
1186
  </div>
1187
1187
  </section>
1188
- `}determineHeight(){setTimeout((()=>{this.measure?(this.frontElement.offsetHeight>this.backElement.offsetHeight?this.height=`${this.frontElement.offsetHeight}px`:this.height=`${this.backElement.offsetHeight}px`,this.style.height=this.height):this.style.removeProperty("height")}),0)}});customElements.get("kemet-input")||customElements.define("kemet-input",class extends G{static get styles(){return[r`
1188
+ `}determineHeight(){setTimeout((()=>{this.measure?(this.frontElement.offsetHeight>this.backElement.offsetHeight?this.height=`${this.frontElement.offsetHeight}px`:this.height=`${this.backElement.offsetHeight}px`,this.style.height=this.height):this.style.removeProperty("height")}),0)}});customElements.get("kemet-input")||customElements.define("kemet-input",class extends Z{static get styles(){return[r`
1189
1189
  :host {
1190
1190
  position: relative;
1191
1191
  display: block;
@@ -1295,32 +1295,32 @@ const rt=t=>null!=t?t:O
1295
1295
  :host([status='success']) kemet-icon {
1296
1296
  color: var(--kemet-color-success);
1297
1297
  }
1298
- `]}static get properties(){return{slug:{type:String},name:{type:String},placeholder:{type:String},minlength:{type:String},maxlength:{type:String},min:{type:String},max:{type:String},step:{type:String},autocomplete:{type:String},pattern:{type:String},inputmode:{type:String},autofocus:{type:Boolean},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean},required:{type:Boolean,reflect:!0},type:{type:String},value:{type:String},invalid:{type:Boolean,reflect:!0},status:{type:String,reflect:!0},validateOnBlur:{type:Boolean,attribute:"validate-on-blur"},ariaAutoComplete:{type:String,attribute:"aria-autocomplete"},ariaControls:{type:String,attribute:"aria-controls"},ariaActiveDescendant:{type:String,attribute:"aria-activedescendant"},rounded:{type:Boolean,reflect:!0},filled:{type:Boolean,reflect:!0},iconRight:{type:String,reflect:!0,attribute:"icon-right"},iconLeft:{type:String,reflect:!0,attribute:"icon-left"},iconSize:{type:Number},validity:{type:Object},isPasswordVisible:{type:Boolean},inputType:{type:String},focused:{type:Boolean,reflect:!0}}}constructor(){super(),this.name="input",this.type="text",this.value="",this.status="standard",this.iconSize=20,this.validateOnBlur=!1,this.isPasswordVisible=!1,this.focused=!1,this.formSubmitController=new Q(this)}firstUpdated(){this.input=this.shadowRoot.querySelector("input"),this.field=this.closest("kemet-field"),this.form=this.closest("form"),this.slug=this.field?this.field.slug:"input",this.field&&this.field.addEventListener("fmc-password-status",(t=>this.handleStatus(t)))}render(){return P`
1298
+ `]}static get properties(){return{slug:{type:String},name:{type:String},placeholder:{type:String},minlength:{type:String},maxlength:{type:String},min:{type:String},max:{type:String},step:{type:String},autocomplete:{type:String},pattern:{type:String},inputmode:{type:String},autofocus:{type:Boolean},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean},required:{type:Boolean,reflect:!0},type:{type:String},value:{type:String},invalid:{type:Boolean,reflect:!0},status:{type:String,reflect:!0},validateOnBlur:{type:Boolean,attribute:"validate-on-blur"},ariaAutoComplete:{type:String,attribute:"aria-autocomplete"},ariaControls:{type:String,attribute:"aria-controls"},ariaActiveDescendant:{type:String,attribute:"aria-activedescendant"},rounded:{type:Boolean,reflect:!0},filled:{type:Boolean,reflect:!0},iconRight:{type:String,reflect:!0,attribute:"icon-right"},iconLeft:{type:String,reflect:!0,attribute:"icon-left"},iconSize:{type:Number},validity:{type:Object},isPasswordVisible:{type:Boolean},inputType:{type:String},focused:{type:Boolean,reflect:!0}}}constructor(){super(),this.name="input",this.type="text",this.value="",this.status="standard",this.iconSize=20,this.validateOnBlur=!1,this.isPasswordVisible=!1,this.focused=!1,this.formSubmitController=new Q(this)}firstUpdated(){this.input=this.shadowRoot.querySelector("input"),this.field=this.closest("kemet-field"),this.form=this.closest("form"),this.slug=this.field?this.field.slug:"input",this.field&&this.field.addEventListener("fmc-password-status",(t=>this.handleStatus(t)))}render(){return I`
1299
1299
  <div>
1300
1300
  ${this.makeIconLeft()}
1301
1301
  <input
1302
1302
  part="input"
1303
1303
  id=${this.slug}
1304
1304
  name=${this.name}
1305
- placeholder=${rt(this.placeholder)}
1306
- minlength=${rt(this.minlength)}
1307
- maxlength=${rt(this.maxlength)}
1308
- min=${rt(this.min)}
1309
- max=${rt(this.max)}
1310
- step=${rt(this.step)}
1311
- autocomplete=${rt(this.autocomplete)}
1312
- aria-autocomplete=${rt(this.ariaAutoComplete)}
1313
- aria-controls=${rt(this.ariaControls)}
1314
- aria-activedescendant=${rt(this.ariaActiveDescendant)}
1315
- pattern=${rt(this.pattern)}
1316
- inputmode=${rt(this.inputmode)}
1305
+ placeholder=${tt(this.placeholder)}
1306
+ minlength=${tt(this.minlength)}
1307
+ maxlength=${tt(this.maxlength)}
1308
+ min=${tt(this.min)}
1309
+ max=${tt(this.max)}
1310
+ step=${tt(this.step)}
1311
+ autocomplete=${tt(this.autocomplete)}
1312
+ aria-autocomplete=${tt(this.ariaAutoComplete)}
1313
+ aria-controls=${tt(this.ariaControls)}
1314
+ aria-activedescendant=${tt(this.ariaActiveDescendant)}
1315
+ pattern=${tt(this.pattern)}
1316
+ inputmode=${tt(this.inputmode)}
1317
1317
  aria-invalid=${this.invalid?"true":"false"}
1318
1318
  ?autofocus=${this.autofocus}
1319
1319
  ?disabled=${this.disabled}
1320
1320
  ?readonly=${this.readonly}
1321
1321
  ?required=${this.required}
1322
1322
  .type="${"password"===this.type&&this.isPasswordVisible?"text":this.type}"
1323
- .value=${mt(this.value)}
1323
+ .value=${lt(this.value)}
1324
1324
  @change=${this.handleChange}
1325
1325
  @input=${this.handleInput}
1326
1326
  @invalid=${this.handleInvalid}
@@ -1329,17 +1329,17 @@ const rt=t=>null!=t?t:O
1329
1329
  />
1330
1330
  ${this.makeIconRight()} ${this.makeIconClear()} ${this.makeVisibilityToggle()}
1331
1331
  </div>
1332
- `}makeIconRight(){return this.iconRight?P`
1332
+ `}makeIconRight(){return this.iconRight?I`
1333
1333
  <kemet-icon class="right" icon="${this.iconRight}" size="${this.iconSize?this.iconSize:20}"></kemet-icon>
1334
- `:null}makeIconLeft(){return this.iconLeft?P`
1334
+ `:null}makeIconLeft(){return this.iconLeft?I`
1335
1335
  <kemet-icon class="left" icon="${this.iconLeft}" size="${this.iconSize?this.iconSize:16}"></kemet-icon>
1336
- `:null}makeIconClear(){return"search"===this.type&&""!==this.value?P`
1336
+ `:null}makeIconClear(){return"search"===this.type&&""!==this.value?I`
1337
1337
  <kemet-icon class="search right" icon="x-lg" size="${this.iconSize}" @click=${()=>this.handleClear()}></kemet-icon>
1338
- `:null}makeVisibilityToggle(){return"password"===this.type?P`<kemet-icon
1338
+ `:null}makeVisibilityToggle(){return"password"===this.type?I`<kemet-icon
1339
1339
  class="eye right"
1340
1340
  icon="${this.setPasswordIcon()}"
1341
1341
  @click=${()=>this.togglePasswordVisibility()}
1342
- ></kemet-icon>`:null}setPasswordIcon(){return this.isPasswordVisible?"eye":"eye-slash"}handleFocus(){this.focused=!0,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!0}))}handleBlur(){this.validateOnBlur&&this.form&&!this.form.noValidate&&(this.input.checkValidity(),this.validity=this.input.validity),this.focused=!1,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!1}))}handleChange(){this.value=this.input.value,this.input.checkValidity()&&this.checkLimitValidity()&&"success"!==this.status&&(this.invalid=!1,this.status="standard",this.validity=this.input.validity,this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"standard",validity:this.input.validity,element:this}})))}handleInput(){this.value=this.input.value,this.dispatchEvent(new CustomEvent("kemet-input-input",{bubbles:!0,composed:!0,detail:this.value}))}handleInvalid(){this.validity=this.input.validity,this.validateOnBlur&&(this.invalid=!0,this.status="error",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:this.input.validity,element:this}})))}handleStatus(t){this.status=t.detail.status}togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("kemet-input-input",{bubbles:!0,composed:!0,detail:this.value}))}checkLimitValidity(){if(this.field){const t=this.field.querySelector("kemet-count");if(t)return this.value.length<t.limit}return!0}checkValidity(){return this.input.checkValidity()}focus(){this.input.focus()}});customElements.get("kemet-modal-close")||customElements.define("kemet-modal-close",class extends G{static get styles(){return[r`
1342
+ ></kemet-icon>`:null}setPasswordIcon(){return this.isPasswordVisible?"eye":"eye-slash"}handleFocus(){this.focused=!0,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!0}))}handleBlur(){this.validateOnBlur&&this.form&&!this.form.noValidate&&(this.input.checkValidity(),this.validity=this.input.validity),this.focused=!1,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!1}))}handleChange(){this.value=this.input.value,this.input.checkValidity()&&this.checkLimitValidity()&&"success"!==this.status&&(this.invalid=!1,this.status="standard",this.validity=this.input.validity,this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"standard",validity:this.input.validity,element:this}})))}handleInput(){this.value=this.input.value,this.dispatchEvent(new CustomEvent("kemet-input-input",{bubbles:!0,composed:!0,detail:this.value}))}handleInvalid(){this.validity=this.input.validity,this.validateOnBlur&&(this.invalid=!0,this.status="error",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:this.input.validity,element:this}})))}handleStatus(t){this.status=t.detail.status}togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("kemet-input-input",{bubbles:!0,composed:!0,detail:this.value}))}checkLimitValidity(){if(this.field){const t=this.field.querySelector("kemet-count");if(t)return this.value.length<t.limit}return!0}checkValidity(){return this.input.checkValidity()}focus(){this.input.focus()}});customElements.get("kemet-modal-close")||customElements.define("kemet-modal-close",class extends Z{static get styles(){return[r`
1343
1343
  :host {
1344
1344
  position: absolute;
1345
1345
  top: -0.5rem;
@@ -1348,7 +1348,7 @@ const rt=t=>null!=t?t:O
1348
1348
  border-radius: 50%;
1349
1349
  cursor: pointer;
1350
1350
  }
1351
- `]}render(){return P`
1351
+ `]}render(){return I`
1352
1352
  <slot @keyup=${()=>this.close()} @click=${()=>this.close()}></slot>
1353
1353
  `}close(){this.dispatchEvent(new CustomEvent("kemet-modal-close-pressed",{bubbles:!0,composed:!0,detail:this}))}});const vt=r`
1354
1354
  *,
@@ -1612,12 +1612,12 @@ const rt=t=>null!=t?t:O
1612
1612
  transform: translateZ(0px) translateX(0%) rotateY(0deg);
1613
1613
  opacity: 1;
1614
1614
  }
1615
- `;customElements.get("kemet-modal")||customElements.define("kemet-modal",class extends G{static get styles(){return[vt,bt]}static get properties(){return{opened:{type:Boolean,reflect:!0},effect:{type:String,reflect:!0},closeOnClick:{type:Boolean,attribute:"close-on-click"},breakpoint:{type:String},mobile:{type:Boolean,reflect:!0}}}constructor(){super(),this.opened=!1,this.closeOnClick=!1,this.breakpoint="600px",this.addEventListener("kemet-modal-close-pressed",(()=>{this.opened=!1}))}firstUpdated(){this.focusableSelector="body, a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",this.focusableElements=this.querySelectorAll(this.focusableSelector),this.addEventListener("keyup",(t=>{"Escape"===t.key&&(this.opened=!1)})),this.addEventListener("click",(t=>{this.opened&&this.closeOnClick&&"kemet-modal"===t.target.tagName.toLowerCase()&&(this.opened=!1)})),window.addEventListener("resize",(()=>{this.isMobile()})),this.focusableElements.forEach((t=>{t.addEventListener("keydown",(t=>this.handleFocusableDown(t)))}))}updated(t){t.get("opened")||!0!==this.opened||(setTimeout((()=>{this.focusableElements[0].focus()}),100),this.dispatchEvent(new CustomEvent("kemet-modal-opened",{bubbles:!0,composed:!0,detail:this}))),t.get("opened")&&!1===this.opened&&this.dispatchEvent(new CustomEvent("kemet-modal-closed",{bubbles:!0,composed:!0,detail:this})),this.isMobile()}render(){return P`
1615
+ `;customElements.get("kemet-modal")||customElements.define("kemet-modal",class extends Z{static get styles(){return[vt,bt]}static get properties(){return{opened:{type:Boolean,reflect:!0},effect:{type:String,reflect:!0},closeOnClick:{type:Boolean,attribute:"close-on-click"},breakpoint:{type:String},mobile:{type:Boolean,reflect:!0}}}constructor(){super(),this.opened=!1,this.closeOnClick=!1,this.breakpoint="600px",this.addEventListener("kemet-modal-close-pressed",(()=>{this.opened=!1}))}firstUpdated(){this.focusableSelector="body, a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",this.focusableElements=this.querySelectorAll(this.focusableSelector),this.addEventListener("keyup",(t=>{"Escape"===t.key&&(this.opened=!1)})),this.addEventListener("click",(t=>{this.opened&&this.closeOnClick&&"kemet-modal"===t.target.tagName.toLowerCase()&&(this.opened=!1)})),window.addEventListener("resize",(()=>{this.isMobile()})),this.focusableElements.forEach((t=>{t.addEventListener("keydown",(t=>this.handleFocusableDown(t)))}))}updated(t){t.get("opened")||!0!==this.opened||(setTimeout((()=>{this.focusableElements[0]?.focus()}),100),this.dispatchEvent(new CustomEvent("kemet-modal-opened",{bubbles:!0,composed:!0,detail:this}))),t.get("opened")&&!1===this.opened&&this.dispatchEvent(new CustomEvent("kemet-modal-closed",{bubbles:!0,composed:!0,detail:this})),this.isMobile()}render(){return I`
1616
1616
  <div class="content" part="content">
1617
1617
  <slot></slot>
1618
1618
  </div>
1619
1619
  <div class="overlay" part="overlay"></div>
1620
- `}isMobile(){const t=window.matchMedia(`(max-width: ${this.breakpoint})`);this.mobile=t.matches}handleFocusableDown(t){const e=this.focusableElements[0],s=this.focusableElements[this.focusableElements.length-1];"Tab"===t.key&&(t.shiftKey&&document.activeElement===e?(t.preventDefault(),s.focus()):t.shiftKey||document.activeElement!==s||(t.preventDefault(),e.focus()))}});customElements.get("kemet-password")||customElements.define("kemet-password",class extends G{static get styles(){return[r`
1620
+ `}isMobile(){const t=window.matchMedia(`(max-width: ${this.breakpoint})`);this.mobile=t.matches}handleFocusableDown(t){const e=this.focusableElements[0],s=this.focusableElements[this.focusableElements.length-1];"Tab"===t.key&&(t.shiftKey&&document.activeElement===e?(t.preventDefault(),s.focus()):t.shiftKey||document.activeElement!==s||(t.preventDefault(),e.focus()))}});customElements.get("kemet-password")||customElements.define("kemet-password",class extends Z{static get styles(){return[r`
1621
1621
  :host {
1622
1622
  color: inherit;
1623
1623
  display: none;
@@ -1694,7 +1694,7 @@ const rt=t=>null!=t?t:O
1694
1694
  position: absolute;
1695
1695
  left: -2.4rem;
1696
1696
  }
1697
- `]}static get properties(){return{rules:{type:Array},show:{type:Boolean,reflect:!0},value:{type:String},message:{type:String},strength:{type:String},icon:{type:String},iconSize:{type:Number}}}constructor(){super(),this.rules=[{pattern:"(?=.{8,}$)",message:"At least 8 characters long"},{pattern:"(?=.*[a-z])(?=.*[A-Z])",message:"Uppercase and lowercase"},{pattern:"(?=.*[0-9])",message:"At least one number (0-9)"}],this.message="Please make sure you meet all the requirements.",this.icon="check2",this.iconSize=16}firstUpdated(){this.field=this.closest("kemet-field"),this.input=this.field.querySelector('[slot="input"]'),this.slug=this.field.slug,this.input.addEventListener("kemet-input-input",this.handleInput.bind(this))}render(){return P`
1697
+ `]}static get properties(){return{rules:{type:Array},show:{type:Boolean,reflect:!0},value:{type:String},message:{type:String},strength:{type:String},icon:{type:String},iconSize:{type:Number}}}constructor(){super(),this.rules=[{pattern:"(?=.{8,}$)",message:"At least 8 characters long"},{pattern:"(?=.*[a-z])(?=.*[A-Z])",message:"Uppercase and lowercase"},{pattern:"(?=.*[0-9])",message:"At least one number (0-9)"}],this.message="Please make sure you meet all the requirements.",this.icon="check2",this.iconSize=16}firstUpdated(){this.field=this.closest("kemet-field"),this.input=this.field.querySelector('[slot="input"]'),this.slug=this.field.slug,this.input.addEventListener("kemet-input-input",this.handleInput.bind(this))}render(){return I`
1698
1698
  <div role="alert" aria-live="assertive">
1699
1699
  <div class="status status--${this.strength}" part="status">
1700
1700
  <span>${this.strength}</span>
@@ -1709,7 +1709,7 @@ const rt=t=>null!=t?t:O
1709
1709
  ${this.makeRules()}
1710
1710
  </ul>
1711
1711
  </div>
1712
- `}makeRules(){if(this.input){return this.rules.map(((t,e)=>{const s=new RegExp(t.pattern).test(this.input.value);return this.rules[e].meetsCriteria=s,P`<li>${this.makeCheckIcon(s)} ${t.message}</li>`}))}return null}makeCheckIcon(t){return t?P`<kemet-icon icon=${this.icon} size=${this.iconSize}></kemet-icon>`:null}handleInput(t){this.value=t.detail,this.setStrength(),this.visibility()}setStrength(){setTimeout((()=>{const t=this.rules.length,e=this.rules.filter((t=>t.meetsCriteria)).length,s=Math.round(e/t*100)/100;s<=.33&&(this.strength="weak",this.status="error"),s>.33&&s<=.67&&(this.strength="better",this.status="error"),s>.67&&(this.strength="strong",this.status="success"),this.dispatchEvent(new CustomEvent("kemet-password-status",{bubbles:!0,composed:!0,detail:{status:this.status,validity:{meetsPasswordCriteria:"success"===this.status},element:this}}))}),1)}visibility(){this.value.length>0?this.show=!0:this.show=!1}});const kt=13,yt=32;window.customElements.define("kemet-popover-close",class extends G{static get styles(){return[r`
1712
+ `}makeRules(){if(this.input){return this.rules.map(((t,e)=>{const s=new RegExp(t.pattern).test(this.input.value);return this.rules[e].meetsCriteria=s,I`<li>${this.makeCheckIcon(s)} ${t.message}</li>`}))}return null}makeCheckIcon(t){return t?I`<kemet-icon icon=${this.icon} size=${this.iconSize}></kemet-icon>`:null}handleInput(t){this.value=t.detail,this.setStrength(),this.visibility()}setStrength(){setTimeout((()=>{const t=this.rules.length,e=this.rules.filter((t=>t.meetsCriteria)).length,s=Math.round(e/t*100)/100;s<=.33&&(this.strength="weak",this.status="error"),s>.33&&s<=.67&&(this.strength="better",this.status="error"),s>.67&&(this.strength="strong",this.status="success"),this.dispatchEvent(new CustomEvent("kemet-password-status",{bubbles:!0,composed:!0,detail:{status:this.status,validity:{meetsPasswordCriteria:"success"===this.status},element:this}}))}),1)}visibility(){this.value.length>0?this.show=!0:this.show=!1}});const kt=13,yt=32;window.customElements.define("kemet-popover-close",class extends Z{static get styles(){return[r`
1713
1713
  button {
1714
1714
  font: inherit;
1715
1715
  color: inherit;
@@ -1717,11 +1717,11 @@ const rt=t=>null!=t?t:O
1717
1717
  border: 0;
1718
1718
  background: transparent;
1719
1719
  }
1720
- `]}render(){return P`
1720
+ `]}render(){return I`
1721
1721
  <button @click=${()=>this.close()} @keyup=${t=>this.handleKeyboard(t)}>
1722
1722
  <slot></slot>
1723
1723
  </button>
1724
- `}close(){this.dispatchEvent(new CustomEvent("kemet-popover-close-btn",{bubbles:!0,composed:!0,detail:this}))}handleKeyboard(t){t.preventDefault(),t.keyCode!==yt&&t.keyCode!==kt||this.close()}});const wt=r`
1724
+ `}close(){this.dispatchEvent(new CustomEvent("kemet-popover-close-btn",{bubbles:!0,composed:!0,detail:this}))}handleKeyboard(t){t.preventDefault(),t.keyCode!==yt&&t.keyCode!==kt||this.close()}});const xt=r`
1725
1725
  :host([effect="fade"]) #content {
1726
1726
  opacity: 0;
1727
1727
  transition: all var(--kemet-popover-transition-speed, 0.3s);
@@ -1730,7 +1730,7 @@ const rt=t=>null!=t?t:O
1730
1730
  :host([effect="fade"][opened]) #content {
1731
1731
  opacity: 1;
1732
1732
  }
1733
- `,xt=r`
1733
+ `,wt=r`
1734
1734
  :host([effect="scale"]) #content {
1735
1735
  opacity: 0;
1736
1736
  transition: all var(--kemet-popover-transition-speed, 0.3s);
@@ -2108,7 +2108,7 @@ const rt=t=>null!=t?t:O
2108
2108
  ::slotted([slot="custom-tooltip"]) {
2109
2109
  display: flex;
2110
2110
  }
2111
- `,Bt=13,Pt=32,It=27;customElements.get("kemet-popover")||customElements.define("kemet-popover",class extends G{static get styles(){return[r`
2111
+ `,Bt=13,It=32,Ot=27;customElements.get("kemet-popover")||customElements.define("kemet-popover",class extends Z{static get styles(){return[r`
2112
2112
  :host {
2113
2113
  display: inline-block;
2114
2114
  position: relative;
@@ -2193,7 +2193,7 @@ const rt=t=>null!=t?t:O
2193
2193
  height: 100%;
2194
2194
  min-height: 100vh;
2195
2195
  }
2196
- `,zt,Lt,wt,xt,Et,$t,St,_t,Ct,At]}static get properties(){return{opened:{type:Boolean,reflect:!0},effect:{string:String,reflect:!0},position:{type:String,reflect:!0},tooltip:{type:Boolean},customTooltip:{type:Boolean,attribute:"custom-tooltip"},fireOn:{type:String,attribute:"fire-on"},clickOutside:{type:Boolean,attribute:"click-outside"},smart:{type:Boolean}}}constructor(){super(),this.opened=!1,this.effect=null,this.position="top",this.tooltip=!1,this.customTooltip=!1,this.fireOn="hover",this.clickOutside=!1,this.smart=!0,this.addEventListener("kemet-popover-close-btn",this.close.bind(this))}firstUpdated(){this.focusableSelector="body, a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable], kemet-popover-close",this.focusableElements=this.querySelectorAll(this.focusableSelector),this.contentElement=this.shadowRoot.querySelector('slot[name="content"]').assignedNodes({flatten:!0})[0],window.addEventListener("resize",(()=>{this.smartContent()})),"click"===this.fireOn&&this.focusableElements.forEach((t=>{t.addEventListener("keydown",(t=>this.handleFocusableDown(t)))}))}updated(t){t.get("opened")||!0!==this.opened||this.dispatchEvent(new CustomEvent("kemet-popover-opened",{bubbles:!0,composed:!0,detail:this})),t.get("opened")&&!1===this.opened&&this.dispatchEvent(new CustomEvent("kemet-popover-closed",{bubbles:!0,composed:!0,detail:this})),this.smartContent()}render(){return P`
2196
+ `,zt,Lt,xt,wt,Et,$t,St,_t,Ct,At]}static get properties(){return{opened:{type:Boolean,reflect:!0},effect:{string:String,reflect:!0},position:{type:String,reflect:!0},tooltip:{type:Boolean},customTooltip:{type:Boolean,attribute:"custom-tooltip"},fireOn:{type:String,attribute:"fire-on"},clickOutside:{type:Boolean,attribute:"click-outside"},smart:{type:Boolean}}}constructor(){super(),this.opened=!1,this.effect=null,this.position="top",this.tooltip=!1,this.customTooltip=!1,this.fireOn="hover",this.clickOutside=!1,this.smart=!0,this.addEventListener("kemet-popover-close-btn",this.close.bind(this))}firstUpdated(){this.focusableSelector="body, a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable], kemet-popover-close",this.focusableElements=this.querySelectorAll(this.focusableSelector),this.contentElement=this.shadowRoot.querySelector('slot[name="content"]').assignedNodes({flatten:!0})[0],window.addEventListener("resize",(()=>{this.smartContent()})),"click"===this.fireOn&&this.focusableElements.forEach((t=>{t.addEventListener("keydown",(t=>this.handleFocusableDown(t)))}))}updated(t){t.get("opened")||!0!==this.opened||this.dispatchEvent(new CustomEvent("kemet-popover-opened",{bubbles:!0,composed:!0,detail:this})),t.get("opened")&&!1===this.opened&&this.dispatchEvent(new CustomEvent("kemet-popover-closed",{bubbles:!0,composed:!0,detail:this})),this.smartContent()}render(){return I`
2197
2197
  <div
2198
2198
  id="trigger"
2199
2199
  part="trigger"
@@ -2211,19 +2211,19 @@ const rt=t=>null!=t?t:O
2211
2211
  </div>
2212
2212
  </div>
2213
2213
  ${this.makeOverlay()}
2214
- `}open(){this.opened=!0}close(){this.opened=!1}toggle(t){const e="trigger"===t.target.getAttribute("slot"),s="trigger"===t.target.getAttribute("part");(e||s)&&(this.opened?this.close():this.open())}handleKeyUp(t){t.preventDefault(),t.keyCode===It&&this.close(),t.keyCode!==Bt&&t.keyCode!==Pt||this.toggle()}handleFocusableDown(t){const e=this.focusableElements[0],s=this.focusableElements[this.focusableElements.length-1];"Tab"===t.key&&(t.shiftKey&&document.activeElement===e?(t.preventDefault(),s.focus()):t.shiftKey||document.activeElement!==s||(t.preventDefault(),e.focus()))}makeTooltip(){return this.customTooltip?P`
2214
+ `}open(){this.opened=!0}close(){this.opened=!1}toggle(t){const e="trigger"===t.target.getAttribute("slot"),s="trigger"===t.target.getAttribute("part");(e||s)&&(this.opened?this.close():this.open())}handleKeyUp(t){t.preventDefault(),t.keyCode===Ot&&this.close(),t.keyCode!==Bt&&t.keyCode!==It||this.toggle()}handleFocusableDown(t){const e=this.focusableElements[0],s=this.focusableElements[this.focusableElements.length-1];"Tab"===t.key&&(t.shiftKey&&document.activeElement===e?(t.preventDefault(),s.focus()):t.shiftKey||document.activeElement!==s||(t.preventDefault(),e.focus()))}makeTooltip(){return this.customTooltip?I`
2215
2215
  <div id="custom-tooltip" part="custom-tooltip">
2216
2216
  <slot name="custom-tooltip"></slot>
2217
2217
  </div>
2218
- `:this.tooltip?P`
2218
+ `:this.tooltip?I`
2219
2219
  <div id="tooltip" part="tooltip">
2220
2220
  <svg width="29px" height="14px" enable-background="new 0 0 29 14" viewBox="0 0 29 14">
2221
2221
  <polygon points="0.15,0 14.5,14.35 28.85,0 "/>
2222
2222
  </svg>
2223
2223
  </div>
2224
- `:null}makeOverlay(){return this.clickOutside?P`
2224
+ `:null}makeOverlay(){return this.clickOutside?I`
2225
2225
  <div id="overlay" @keyup=${()=>this.close()} @click=${()=>this.close()}></div>
2226
- `:null}smartContent(){if(this.smart){this.contentElement.style.removeProperty("left"),this.contentElement.style.removeProperty("right"),this.contentElement.style.removeProperty("top"),this.contentElement.style.removeProperty("bottom");const t=this.contentElement.getBoundingClientRect(),e=24,s=t.left<0,i=window.innerWidth-t.right<0,o=t.top<0,r=t.bottom>window.innerHeight;"top"===this.position&&o&&this.setPosition(t),"right"===this.position&&i&&this.setPosition(t),"bottom"===this.position&&r&&this.setPosition(t),"left"===this.position&&s&&this.setPosition(t),s?this.contentElement.style.left=`${Math.abs(t.left-e)}px`:this.contentElement.style.removeProperty("left"),i?this.contentElement.style.right=`${Math.abs(window.innerWidth-t.right-e)}px`:this.contentElement.style.removeProperty("right"),o?this.contentElement.style.top=`${Math.abs(t.top-e)}px`:this.contentElement.style.removeProperty("top"),r?this.contentElement.style.bottom=`${Math.abs(t.bottom-window.innerHeight-e)}px`:this.contentElement.style.removeProperty("bottom")}}setPosition(t){t.top>0?this.position="top":t.right<window.innerWidth?this.position="right":t.bottom<window.innerHeight&&(this.position="bottom")}});customElements.get("kemet-radio")||customElements.define("kemet-radio",class extends G{static get styles(){return[r`
2226
+ `:null}smartContent(){if(this.smart){this.contentElement.style.removeProperty("left"),this.contentElement.style.removeProperty("right"),this.contentElement.style.removeProperty("top"),this.contentElement.style.removeProperty("bottom");const t=this.contentElement.getBoundingClientRect(),e=24,s=t.left<0,i=window.innerWidth-t.right<0,o=t.top<0,r=t.bottom>window.innerHeight;"top"===this.position&&o&&this.setPosition(t),"right"===this.position&&i&&this.setPosition(t),"bottom"===this.position&&r&&this.setPosition(t),"left"===this.position&&s&&this.setPosition(t),s?this.contentElement.style.left=`${Math.abs(t.left-e)}px`:this.contentElement.style.removeProperty("left"),i?this.contentElement.style.right=`${Math.abs(window.innerWidth-t.right-e)}px`:this.contentElement.style.removeProperty("right"),o?this.contentElement.style.top=`${Math.abs(t.top-e)}px`:this.contentElement.style.removeProperty("top"),r?this.contentElement.style.bottom=`${Math.abs(t.bottom-window.innerHeight-e)}px`:this.contentElement.style.removeProperty("bottom")}}setPosition(t){t.top>0?this.position="top":t.right<window.innerWidth?this.position="right":t.bottom<window.innerHeight&&(this.position="bottom")}});customElements.get("kemet-radio")||customElements.define("kemet-radio",class extends Z{static get styles(){return[r`
2227
2227
  *,
2228
2228
  *::before,
2229
2229
  *::after {
@@ -2282,13 +2282,13 @@ const rt=t=>null!=t?t:O
2282
2282
  background: var(--kemet-radio-dot-color-filled, var(--kemet-color-white));
2283
2283
  box-shadow: inset 0px 0px 0px var(--kemet-radio-dot-border-width, 4px) var(--kemet-radio-dot-border-color, var(--kemet-color-primary));
2284
2284
  }
2285
- `]}static get properties(){return{label:{type:String},checked:{type:Boolean,reflect:!0},name:{type:String},value:{type:String},disabled:{type:Boolean,reflect:!0},focused:{type:Boolean,reflect:!0},filled:{type:Boolean,reflect:!0}}}constructor(){super(),this.label="",this.name=this.closest("kemet-radios").name||"radio-button",this.disabled=!1}firstUpdated(){this.input=this.shadowRoot.querySelector("input"),this.setAttribute("role","radio"),this.checked?this.setAttribute("aria-checked","true"):this.setAttribute("aria-checked","false")}render(){return P`
2285
+ `]}static get properties(){return{label:{type:String},checked:{type:Boolean,reflect:!0},name:{type:String},value:{type:String},disabled:{type:Boolean,reflect:!0},focused:{type:Boolean,reflect:!0},filled:{type:Boolean,reflect:!0}}}constructor(){super(),this.label="",this.name=this.closest("kemet-radios").name||"radio-button",this.disabled=!1}firstUpdated(){this.input=this.shadowRoot.querySelector("input"),this.setAttribute("role","radio"),this.checked?this.setAttribute("aria-checked","true"):this.setAttribute("aria-checked","false")}render(){return I`
2286
2286
  <label part="label">
2287
2287
  <input
2288
2288
  type="radio"
2289
- name=${rt(this.name)}
2289
+ name=${tt(this.name)}
2290
2290
  .value=${this.value}
2291
- .checked=${mt(this.checked)}
2291
+ .checked=${lt(this.checked)}
2292
2292
  .disabled=${this.disabled}
2293
2293
  @blur=${()=>this.handleBlur()}
2294
2294
  @focus=${()=>this.handleFocus()}
@@ -2296,9 +2296,9 @@ const rt=t=>null!=t?t:O
2296
2296
  <button part="button" aria-label=${this.label}>${this.makeDot()}</button>
2297
2297
  <span part="text">${this.label}</span>
2298
2298
  </label>
2299
- `}click(){this.input.click()}blur(){this.input.blur()}focus(){this.input.focus()}handleBlur(){this.focused=!1,this.dispatchEvent(new CustomEvent("kemet-radio-focused",{bubbles:!0,composed:!0,detail:!1}))}handleFocus(){this.focused=!0,this.dispatchEvent(new CustomEvent("kemet-radio-focused",{bubbles:!0,composed:!0,detail:!0}))}makeDot(){return this.checked?P`
2299
+ `}click(){this.input.click()}blur(){this.input.blur()}focus(){this.input.focus()}handleBlur(){this.focused=!1,this.dispatchEvent(new CustomEvent("kemet-radio-focused",{bubbles:!0,composed:!0,detail:!1}))}handleFocus(){this.focused=!0,this.dispatchEvent(new CustomEvent("kemet-radio-focused",{bubbles:!0,composed:!0,detail:!0}))}makeDot(){return this.checked?I`
2300
2300
  <span part="dot"></span>
2301
- `:null}});customElements.get("kemet-radios")||customElements.define("kemet-radios",class extends G{static get styles(){return[r`
2301
+ `:null}});customElements.get("kemet-radios")||customElements.define("kemet-radios",class extends Z{static get styles(){return[r`
2302
2302
  *,
2303
2303
  *::before,
2304
2304
  *::after {
@@ -2337,19 +2337,19 @@ const rt=t=>null!=t?t:O
2337
2337
  :host([status='warning']) [part='message'] {
2338
2338
  color: var(--kemet-color-error);
2339
2339
  }
2340
- `]}static get properties(){return{legend:{type:String},axis:{type:String,reflect:!0},value:{type:String},name:{type:String},status:{type:String,reflect:!0},message:{type:String},required:{type:Boolean}}}constructor(){super(),this.legend="",this.axis="horizontal",this.name="radios",this.status="standard",this.formSubmitController=new Q(this)}firstUpdated(){this.radios=this.querySelectorAll("kemet-radio"),this.setAttribute("role","radiogroup")}render(){return P`
2340
+ `]}static get properties(){return{legend:{type:String},axis:{type:String,reflect:!0},value:{type:String},name:{type:String},status:{type:String,reflect:!0},message:{type:String},required:{type:Boolean}}}constructor(){super(),this.legend="",this.axis="horizontal",this.name="radios",this.status="standard",this.formSubmitController=new Q(this)}firstUpdated(){this.radios=this.querySelectorAll("kemet-radio"),this.setAttribute("role","radiogroup")}render(){return I`
2341
2341
  <fieldset part="fieldset">
2342
- ${""!==this.legend?P`<legend part="legend">${this.legend}</legend>`:null}
2342
+ ${""!==this.legend?I`<legend part="legend">${this.legend}</legend>`:null}
2343
2343
  <slot @click=${t=>this.handleClick(t)} @keydown=${t=>this.handleKeyDown(t)} @slotchange=${()=>this.handleSlotChange()}></slot>
2344
2344
  </fieldset>
2345
2345
  ${this.makeMessage()}
2346
- `}handleClick(t){const{target:e}=t;this.radios.forEach((t=>{t.checked=!1,t.tabIndex=t===e?0:-1,t.setAttribute("aria-checked","false")})),e.disabled||(e.checked=!0,e.setAttribute("aria-checked","true"),this.value=e.value,this.status="standard",this.dispatchEvent(new CustomEvent("kemet-radios-change",{bubbles:!0,composed:!0,detail:e})))}handleKeyDown(t){const e=Array.from(this.radios),s=["ArrowRight","ArrowDown"].includes(t.key)?1:-1;let i=(e.findIndex((t=>t.checked))??e[0])+s;["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"].includes(t.key)&&(i<0&&(i=e.length-1),i>e.length-1&&(i=0),this.radios.forEach((t=>{t.checked=!1,t.tabIndex=-1})),this.radios[i].focus(),this.radios[i].checked=!0,this.radios[i].tabIndex=0)}handleSlotChange(){const t=Array.from(this.radios).find((t=>t.checked));this.radios.forEach((t=>{t.tabIndex=-1,t.input.tabIndex=-1})),t&&(t.tabIndex=0)}makeMessage(){return"error"===this.status||"warning"===this.status?P`<span part="message">${this.message}</span>`:null}checkValidity(){return!this.required||!!this.value}});
2346
+ `}handleClick(t){const{target:e}=t;this.radios.forEach((t=>{t.checked=!1,t.tabIndex=t===e?0:-1,t.setAttribute("aria-checked","false")})),e.disabled||(e.checked=!0,e.setAttribute("aria-checked","true"),this.value=e.value,this.status="standard",this.dispatchEvent(new CustomEvent("kemet-radios-change",{bubbles:!0,composed:!0,detail:e})))}handleKeyDown(t){const e=Array.from(this.radios),s=["ArrowRight","ArrowDown"].includes(t.key)?1:-1;let i=(e.findIndex((t=>t.checked))??e[0])+s;["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"].includes(t.key)&&(i<0&&(i=e.length-1),i>e.length-1&&(i=0),this.radios.forEach((t=>{t.checked=!1,t.tabIndex=-1})),this.radios[i].focus(),this.radios[i].checked=!0,this.radios[i].tabIndex=0)}handleSlotChange(){const t=Array.from(this.radios).find((t=>t.checked));this.radios.forEach((t=>{t.tabIndex=-1,t.input.tabIndex=-1})),t&&(t.tabIndex=0)}makeMessage(){return"error"===this.status||"warning"===this.status?I`<span part="message">${this.message}</span>`:null}checkValidity(){return!this.required||!!this.value}});
2347
2347
  /**
2348
2348
  * @license
2349
2349
  * Copyright 2017 Google LLC
2350
2350
  * SPDX-License-Identifier: BSD-3-Clause
2351
2351
  */
2352
- class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===O||null==t)return this.ft=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ot.directiveName="unsafeHTML",Ot.resultType=1;const Tt=ht(Ot);customElements.get("kemet-rotator")||customElements.define("kemet-rotator",class extends G{static get styles(){return r`
2352
+ class Tt extends nt{constructor(t){if(super(t),this.it=T,t.type!==st)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===T||null==t)return this.ft=void 0,this.it=t;if(t===O)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Tt.directiveName="unsafeHTML",Tt.resultType=1;const Pt=rt(Tt);customElements.get("kemet-rotator")||customElements.define("kemet-rotator",class extends Z{static get styles(){return r`
2353
2353
  :host {
2354
2354
  display: flex;
2355
2355
  }
@@ -2418,24 +2418,24 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2418
2418
  top: 40px;;
2419
2419
  transform: rotateX(-90deg);
2420
2420
  }
2421
- `}static get properties(){return{activeSlide:{type:Number},width:{type:String},height:{type:String},messages:{type:Array},effect:{type:String,reflect:!0},rotationSpeed:{type:Number,attribute:"rotation-speed"}}}constructor(){super(),this.activeSlide=0,this.messages=[],this.effect="fade",this.rotationSpeed=3,this.width="auto",this.height="auto"}firstUpdated(){this.prevSlide=null,window.addEventListener("resize",this.setDimensions.bind(this))}updated(t){const e=!!t.get("width"),s=!!t.get("height");this.setDimensions(),e||s||setTimeout((()=>{this.rotationSpeed>0&&this.nextSlide()}),1e3*this.rotationSpeed)}render(){const t="flip"===this.effect?`width:${this.width};`:"",e="flip"===this.effect?`height:${this.height};`:"";return P`
2421
+ `}static get properties(){return{activeSlide:{type:Number},width:{type:String},height:{type:String},messages:{type:Array},effect:{type:String,reflect:!0},rotationSpeed:{type:Number,attribute:"rotation-speed"}}}constructor(){super(),this.activeSlide=0,this.messages=[],this.effect="fade",this.rotationSpeed=3,this.width="auto",this.height="auto"}firstUpdated(){this.prevSlide=null,window.addEventListener("resize",this.setDimensions.bind(this))}updated(t){const e=!!t.get("width"),s=!!t.get("height");this.setDimensions(),e||s||setTimeout((()=>{this.rotationSpeed>0&&this.nextSlide()}),1e3*this.rotationSpeed)}render(){const t="flip"===this.effect?`width:${this.width};`:"",e="flip"===this.effect?`height:${this.height};`:"";return I`
2422
2422
  <span class="rotator" style="${t} ${e}">
2423
2423
  ${this.makeMessages()}
2424
2424
  </span>
2425
- `}makeMessages(){return this.messages.map(((t,e)=>{const s=this.activeSlide===e?"rotator__slide--active":"",i=this.prevSlide===e?"rotator__slide--prev":"";return P`
2425
+ `}makeMessages(){return this.messages.map(((t,e)=>{const s=this.activeSlide===e?"rotator__slide--active":"",i=this.prevSlide===e?"rotator__slide--prev":"";return I`
2426
2426
  <span class="rotator__slide ${s} ${i}">
2427
- ${Tt(t)}
2427
+ ${Pt(t)}
2428
2428
  </span>
2429
- `}))}setDimensions(){if("flip"===this.effect){this.width=`${this.offsetWidth}px`;const t=this.shadowRoot.querySelectorAll(".rotator__slide");let e=0;t.forEach((t=>{t.offsetHeight>e&&(e=t.offsetHeight)})),this.height=`${e}px`}}nextSlide(){this.activeSlide<this.messages.length-1?(this.activeSlide+=1,this.prevSlide=this.activeSlide-1):(this.activeSlide=0,this.prevSlide=this.messages.length-1)}});customElements.get("kemet-scroll-link")||customElements.define("kemet-scroll-link",class extends G{static get styles(){return r`
2429
+ `}))}setDimensions(){if("flip"===this.effect){this.width=`${this.offsetWidth}px`;const t=this.shadowRoot.querySelectorAll(".rotator__slide");let e=0;t.forEach((t=>{t.offsetHeight>e&&(e=t.offsetHeight)})),this.height=`${e}px`}}nextSlide(){this.activeSlide<this.messages.length-1?(this.activeSlide+=1,this.prevSlide=this.activeSlide-1):(this.activeSlide=0,this.prevSlide=this.messages.length-1)}});customElements.get("kemet-scroll-link")||customElements.define("kemet-scroll-link",class extends Z{static get styles(){return r`
2430
2430
  :host {
2431
2431
  cursor: pointer;
2432
2432
  display: inline-block;
2433
2433
  }
2434
- `}static get properties(){return{element:{type:Object},target:{type:Object},xOffset:{type:Number,attribute:"x-offset",reflect:!0},yOffset:{type:Number,attribute:"y-offset",reflect:!0}}}constructor(){super(),this.element=this.element||window,this.target=this.target||document.querySelector("body"),this.xOffset=0,this.yOffset=0}firstUpdated(){this.keyCodes={ENTER:13,SPACE:32},this.isSmoothSupported="scrollBehavior"in document.documentElement.style}render(){return P`
2434
+ `}static get properties(){return{element:{type:Object},target:{type:Object},xOffset:{type:Number,attribute:"x-offset",reflect:!0},yOffset:{type:Number,attribute:"y-offset",reflect:!0}}}constructor(){super(),this.element=this.element||window,this.target=this.target||document.querySelector("body"),this.xOffset=0,this.yOffset=0}firstUpdated(){this.keyCodes={ENTER:13,SPACE:32},this.isSmoothSupported="scrollBehavior"in document.documentElement.style}render(){return I`
2435
2435
  <div tabindex="0" @click=${()=>this.handleScroll()} @keyup=${t=>this.handleKeyup(t)}>
2436
2436
  <slot></slot>
2437
2437
  </div>
2438
- `}handleKeyup(t){t.keyCode!==this.keyCodes.ENTER&&t.keyCode!==this.keyCodes.SPACE||this.handleScroll()}handleScroll(){const t=this.target.offsetTop+this.yOffset,e=this.target.offsetLeft+this.xOffset;this.isSmoothSupported?this.element.scrollTo({top:t,left:e,behavior:"smooth"}):this.element.scrollTo(e,t)}});customElements.get("kemet-scroll-nav")||customElements.define("kemet-scroll-nav",class extends G{static get styles(){return[r`
2438
+ `}handleKeyup(t){t.keyCode!==this.keyCodes.ENTER&&t.keyCode!==this.keyCodes.SPACE||this.handleScroll()}handleScroll(){const t=this.target.offsetTop+this.yOffset,e=this.target.offsetLeft+this.xOffset;this.isSmoothSupported?this.element.scrollTo({top:t,left:e,behavior:"smooth"}):this.element.scrollTo(e,t)}});customElements.get("kemet-scroll-nav")||customElements.define("kemet-scroll-nav",class extends Z{static get styles(){return[r`
2439
2439
  :host {
2440
2440
  display: block;
2441
2441
  box-sizing: border-box;
@@ -2458,9 +2458,9 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2458
2458
  :host([transform][effect="resize"]) {
2459
2459
  height: var(--kemet-scroll-nav-resize-height-transformed, 100px);
2460
2460
  }
2461
- `]}static get properties(){return{effect:{type:String,reflect:!0},transform:{type:Boolean,reflect:!0},offset:{type:Number}}}constructor(){super(),this.effect="sticky",this.transform=!1,this.offset=0}render(){return P`
2461
+ `]}static get properties(){return{effect:{type:String,reflect:!0},transform:{type:Boolean,reflect:!0},offset:{type:Number}}}constructor(){super(),this.effect="sticky",this.transform=!1,this.offset=0}render(){return I`
2462
2462
  <slot></slot>
2463
- `}firstUpdated(){const t=this.offsetTop,e=this.offsetHeight;window.addEventListener("scroll",(()=>{this.handleScroll(t,e)}))}handleScroll(t,e){const s="sticky"===this.effect?t+this.offset:e+this.offset;window.pageYOffset>=s?this.transform=!0:this.transform=!1}});customElements.get("kemet-scroll-snap-paginator")||customElements.define("kemet-scroll-snap-paginator",class extends G{static get styles(){return r`
2463
+ `}firstUpdated(){const t=this.offsetTop,e=this.offsetHeight;window.addEventListener("scroll",(()=>{this.handleScroll(t,e)}))}handleScroll(t,e){const s="sticky"===this.effect?t+this.offset:e+this.offset;window.pageYOffset>=s?this.transform=!0:this.transform=!1}});customElements.get("kemet-scroll-snap-paginator")||customElements.define("kemet-scroll-snap-paginator",class extends Z{static get styles(){return r`
2464
2464
  :host {
2465
2465
  margin: auto;
2466
2466
  padding: var(--kemet-scroll-snap-paginator-padding, 1rem 0);
@@ -2479,11 +2479,11 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2479
2479
  cursor: pointer;
2480
2480
  color: var(--kemet-scroll-snap-paginator-link-color, var(--kemet-color-primary));
2481
2481
  }
2482
- `}static get properties(){return{slides:{type:Array},icon:{type:String},size:{type:Number},center:{type:Boolean,reflect:!0},hideFocusedLinks:{type:Boolean,attribute:"hide-focused-links"},useNumberPages:{type:Boolean,reflect:!0,attribute:"use-number-pages"},useLabelPages:{type:Boolean,reflect:!0,attribute:"use-label-pages"}}}constructor(){super(),this.slides=[],this.icon="circle-fill",this.size=16,this.hideFocusedLinks=!1,this.useNumberPages=!1,this.useLabelPages=!1}updated(){const t=this.closest("kemet-scroll-snap");t&&t.addEventListener("kemet-scroll-snap-make-slides",(t=>{this.slides=t.detail}))}render(){return P`
2482
+ `}static get properties(){return{slides:{type:Array},icon:{type:String},size:{type:Number},center:{type:Boolean,reflect:!0},hideFocusedLinks:{type:Boolean,attribute:"hide-focused-links"},useNumberPages:{type:Boolean,reflect:!0,attribute:"use-number-pages"},useLabelPages:{type:Boolean,reflect:!0,attribute:"use-label-pages"}}}constructor(){super(),this.slides=[],this.icon="circle-fill",this.size=16,this.hideFocusedLinks=!1,this.useNumberPages=!1,this.useLabelPages=!1}updated(){const t=this.closest("kemet-scroll-snap");t&&t.addEventListener("kemet-scroll-snap-make-slides",(t=>{this.slides=t.detail}))}render(){return I`
2483
2483
  <nav part="nav">${this.makePagination()}</nav>
2484
- `}makePagination(){let t=0;return this.slides?this.slides.map((e=>(t=t+=1,e.focused?P`
2484
+ `}makePagination(){let t=0;return this.slides?this.slides.map((e=>(t=t+=1,e.focused?I`
2485
2485
  <span part="span">${this.pageDisplay(e,t)}</span>
2486
- `:P`
2486
+ `:I`
2487
2487
  <span
2488
2488
  class="link"
2489
2489
  tabindex="0"
@@ -2493,16 +2493,16 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2493
2493
  aria-label="${e.label}">
2494
2494
  ${this.pageDisplay(e,t)}
2495
2495
  </span>
2496
- `))):null}pageDisplay(t,e){return this.useNumberPages?e:this.useLabelPages?t.label:P`<kemet-icon icon=${this.icon} size=${this.size}></kemet-icon>`}slideLink(t){this.dispatchEvent(new CustomEvent("kemet-scroll-snap-focus",{bubbles:!0,composed:!0,detail:t}))}handleKeyboardInput(t,e){"Enter"!==t.code&&"Space"!==t.code||this.slideLink(e)}});customElements.get("kemet-scroll-snap-slide")||customElements.define("kemet-scroll-snap-slide",class extends G{static get styles(){return r`
2496
+ `))):null}pageDisplay(t,e){return this.useNumberPages?e:this.useLabelPages?t.label:I`<kemet-icon icon=${this.icon} size=${this.size}></kemet-icon>`}slideLink(t){this.dispatchEvent(new CustomEvent("kemet-scroll-snap-focus",{bubbles:!0,composed:!0,detail:t}))}handleKeyboardInput(t,e){"Enter"!==t.code&&"Space"!==t.code||this.slideLink(e)}});customElements.get("kemet-scroll-snap-slide")||customElements.define("kemet-scroll-snap-slide",class extends Z{static get styles(){return r`
2497
2497
  :host {
2498
2498
  display: block;
2499
2499
  flex: 0 0 auto;
2500
2500
  width: var(--kemet-scroll-snap-slide-width, 100%);
2501
2501
  scroll-snap-align: var(--kemet-scroll-snap-slide-align, center);
2502
2502
  }
2503
- `}static get properties(){return{focused:{type:Boolean,reflect:!0},index:{type:String,reflect:!0},label:{type:String,reflect:!0}}}updated(){this.addTabIndex()}render(){return P`
2503
+ `}static get properties(){return{focused:{type:Boolean,reflect:!0},index:{type:String,reflect:!0},label:{type:String,reflect:!0}}}updated(){this.addTabIndex()}render(){return I`
2504
2504
  <slot></slot>
2505
- `}addTabIndex(){this.setAttribute("tabindex","0")}});customElements.get("kemet-scroll-snap")||customElements.define("kemet-scroll-snap",class extends G{static get styles(){return r`
2505
+ `}addTabIndex(){this.setAttribute("tabindex","0")}});customElements.get("kemet-scroll-snap")||customElements.define("kemet-scroll-snap",class extends Z{static get styles(){return r`
2506
2506
  *,
2507
2507
  *::after,
2508
2508
  *::before {
@@ -2553,10 +2553,10 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2553
2553
  scroll-snap-type: y mandatory;
2554
2554
  padding: var(--kemet-scroll-snap-slides-vertical-padding, 0 2rem);
2555
2555
  }
2556
- `}static get properties(){return{axis:{type:String,reflect:!0},pagination:{type:String,reflect:!0}}}constructor(){super(),this.axis="horizontal",this.pagination="bottom",this.addEventListener("kemet-scroll-snap-focus",(t=>{this.focusSlide(t.detail)}))}firstUpdated(){this.isTouchDevice="ontouchstart"in document.documentElement,this.slides=[],this.setFocusedSlides()}updated(){this.setVerticalAttribute()}render(){return P`
2556
+ `}static get properties(){return{axis:{type:String,reflect:!0},pagination:{type:String,reflect:!0}}}constructor(){super(),this.axis="horizontal",this.pagination="bottom",this.addEventListener("kemet-scroll-snap-focus",(t=>{this.focusSlide(t.detail)}))}firstUpdated(){this.isTouchDevice="ontouchstart"in document.documentElement,this.slides=[],this.setFocusedSlides()}updated(){this.setVerticalAttribute()}render(){return I`
2557
2557
  <slot name="slides"></slot>
2558
2558
  <slot name="pagination"></slot>
2559
- `}setFocusedSlides(){const t=this.querySelectorAll("kemet-scroll-snap-slide"),e=this.querySelector('[slot="slides"]'),s=new IntersectionObserver((t=>{t.forEach((t=>{const{target:e}=t;t.intersectionRatio>=.5?e.focused=!0:e.focused=!1})),this.makeSlides()}),{root:e,rootMargin:"0px",threshold:.5});t.forEach((t=>{s.observe(t)}))}makeSlides(){const t=[];this.querySelectorAll("kemet-scroll-snap-slide").forEach(((e,s)=>{const i=e;i.index=s,t.push({id:s,focused:i.focused,label:i.label})})),this.slides=t,this.dispatchEvent(new CustomEvent("kemet-scroll-snap-make-slides",{bubbles:!0,composed:!0,detail:this.slides}))}focusSlide(t){this.querySelector(`kemet-scroll-snap-slide[index="${t}"]`).scrollIntoView({behavior:"smooth",block:"nearest"})}setVerticalAttribute(){"vertical"===this.axis&&document.querySelector("html").setAttribute("kemet-scroll-snap-axis","vertical")}});customElements.get("kemet-option")||customElements.define("kemet-option",class extends G{static get properties(){return{label:{type:String},value:{type:String},disabled:{type:Boolean},selected:{type:Boolean}}}constructor(){super(),this.value=""}render(){return P`<slot></slot>`}});customElements.get("kemet-select")||customElements.define("kemet-select",class extends G{static get styles(){return[r`
2559
+ `}setFocusedSlides(){const t=this.querySelectorAll("kemet-scroll-snap-slide"),e=this.querySelector('[slot="slides"]'),s=new IntersectionObserver((t=>{t.forEach((t=>{const{target:e}=t;t.intersectionRatio>=.5?e.focused=!0:e.focused=!1})),this.makeSlides()}),{root:e,rootMargin:"0px",threshold:.5});t.forEach((t=>{s.observe(t)}))}makeSlides(){const t=[];this.querySelectorAll("kemet-scroll-snap-slide").forEach(((e,s)=>{const i=e;i.index=s,t.push({id:s,focused:i.focused,label:i.label})})),this.slides=t,this.dispatchEvent(new CustomEvent("kemet-scroll-snap-make-slides",{bubbles:!0,composed:!0,detail:this.slides}))}focusSlide(t){this.querySelector(`kemet-scroll-snap-slide[index="${t}"]`).scrollIntoView({behavior:"smooth",block:"nearest"})}setVerticalAttribute(){"vertical"===this.axis&&document.querySelector("html").setAttribute("kemet-scroll-snap-axis","vertical")}});customElements.get("kemet-option")||customElements.define("kemet-option",class extends Z{static get properties(){return{label:{type:String},value:{type:String},disabled:{type:Boolean},selected:{type:Boolean}}}constructor(){super(),this.value=""}render(){return I`<slot></slot>`}});customElements.get("kemet-select")||customElements.define("kemet-select",class extends Z{static get styles(){return[r`
2560
2560
  :host {
2561
2561
  position: relative;
2562
2562
  display: block;
@@ -2621,7 +2621,7 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2621
2621
  top: 50%;
2622
2622
  transform: translateY(-50%);
2623
2623
  }
2624
- `]}static get properties(){return{slug:{type:String},name:{type:String},value:{type:String},options:{type:Array},status:{type:String,reflect:!0},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},multiple:{type:Boolean},icon:{type:String},iconSize:{type:Number,attribute:"icon-size"},filled:{type:Boolean,reflect:!0},rounded:{type:Boolean,reflect:!0}}}constructor(){super(),this.name="select",this.icon="chevron-down",this.iconSize=16,this.formSubmitController=new Q(this),this.control=this.closest("kemet-field")}firstUpdated(){this.select=this.shadowRoot.querySelector("select"),this.selectedOption=this.querySelector("[selected]"),this.value=this.selecltedOption?this.selectedOption.value:""}render(){return P`
2624
+ `]}static get properties(){return{slug:{type:String},name:{type:String},value:{type:String},options:{type:Array},status:{type:String,reflect:!0},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},multiple:{type:Boolean},icon:{type:String},iconSize:{type:Number,attribute:"icon-size"},filled:{type:Boolean,reflect:!0},rounded:{type:Boolean,reflect:!0}}}constructor(){super(),this.name="select",this.icon="chevron-down",this.iconSize=16,this.formSubmitController=new Q(this),this.control=this.closest("kemet-field")}firstUpdated(){this.select=this.shadowRoot.querySelector("select"),this.selectedOption=this.querySelector("[selected]"),this.value=this.selecltedOption?this.selectedOption.value:""}render(){return I`
2625
2625
  <select
2626
2626
  part="select"
2627
2627
  id=${this.slug}
@@ -2638,9 +2638,27 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2638
2638
  </select>
2639
2639
  ${this.makeIcon()}
2640
2640
  <slot @slotchange=${()=>this.makeOptions()}></slot>
2641
- `}makeOptions(){return this.options=[],this.optionElements=this.querySelectorAll("kemet-option"),this.optionElements.forEach((t=>{this.options=this.options.concat({label:t.label,value:t.value,disabled:t.disabled,selected:t.selected})})),this.options.map((t=>P`<option value=${t.value} ?disabled=${t.disabled} ?selected=${t.selected}>
2641
+ `}makeOptions(){return this.options=[],this.optionElements=this.querySelectorAll("kemet-option"),this.optionElements.forEach((t=>{this.options=this.options.concat({label:t.label,value:t.value,disabled:t.disabled,selected:t.selected})})),this.options.map((t=>I`<option value=${t.value} ?disabled=${t.disabled} ?selected=${t.selected}>
2642
2642
  ${t.label}
2643
- </option>`))}makeIcon(){return this.icon||""!==this.icon?P`<kemet-icon icon=${this.icon} size=${this.iconSize}></kemet-icon>`:null}handleFocus(){this.hasFocus=!0,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!0}))}handleBlur(){this.hasFocus=!1,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!1})),this.select.checkValidity(),this.select.checkValidity()||(this.invalid=!0,this.status="error",this.control.status="error",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:this.select.validity,element:this}})))}handleChange(){this.value=this.select.value,this.select.checkValidity()&&(this.invalid=!1,this.status="standard",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"standard",validity:this.select.validity,element:this}})))}handleInvalid(){this.invalid=!0,this.status="error",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:this.select.validity,element:this}}))}checkValidity(){this.select.checkValidity()}});customElements.get("kemet-svg")||customElements.define("kemet-svg",class extends G{static get styles(){return r`
2643
+ </option>`))}makeIcon(){return this.icon||""!==this.icon?I`<kemet-icon icon=${this.icon} size=${this.iconSize}></kemet-icon>`:null}handleFocus(){this.hasFocus=!0,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!0}))}handleBlur(){this.hasFocus=!1,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!1})),this.select.checkValidity(),this.select.checkValidity()||(this.invalid=!0,this.status="error",this.control.status="error",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:this.select.validity,element:this}})))}handleChange(){this.value=this.select.value,this.select.checkValidity()&&(this.invalid=!1,this.status="standard",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"standard",validity:this.select.validity,element:this}})))}handleInvalid(){this.invalid=!0,this.status="error",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:this.select.validity,element:this}}))}checkValidity(){this.select.checkValidity()}});customElements.get("kemet-sortable-item")||customElements.define("kemet-sortable-item",class extends Z{static get styles(){return[r`
2644
+ :host {
2645
+ cursor: grab;
2646
+ display: block;
2647
+ padding: 1rem;
2648
+ border: 1px solid var(--kemet-color-primary);
2649
+ }
2650
+
2651
+ :host([ghost]) {
2652
+ opacity: 0.5;
2653
+ border-style: dashed;
2654
+ }
2655
+ `]}static get properties(){return{ghost:{type:Boolean,reflect:!0}}}firstUpdated(){this.draggable=!0}render(){return I`<slot></slot>`}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var Dt={exports:{}};!function(t){function e(){var t={dragEvents:"ondragstart"in document.documentElement,draggable:"draggable"in document.documentElement,touchEvents:"ontouchstart"in document.documentElement,userAgentSupportingNativeDnD:void 0},e=!!window.chrome||/chrome/i.test(navigator.userAgent);return t.userAgentSupportingNativeDnD=!(/iPad|iPhone|iPod|Android/.test(navigator.userAgent)||e&&t.touchEvents),t}function s(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}function i(t){if(t&&Object.keys(t).forEach((function(e){_[e]=t[e]})),!_.forceApply){var i=e();if(i.userAgentSupportingNativeDnD&&i.draggable&&i.dragEvents)return!1}return $=s(),_.holdToDrag?a("touchstart",w,!1):a("touchstart",o,!1),!0}function o(t){if(!S){var e=r(t);if(e)try{S=new T(t,_,e,n)}catch(e){throw n(_,t,3),e}}}function r(t){var e=t.target;do{if(!1!==e.draggable&&e.getAttribute&&"true"===e.getAttribute("draggable"))return e}while((e=e.parentNode)&&e!==document.body)}function n(t,e,s){if(0===s&&t.defaultActionOverride)try{t.defaultActionOverride(e),e.defaultPrevented}catch(t){}S=null}function a(t,e,s){void 0===s&&(s=!0),document.addEventListener(t,e,!!$&&{passive:s})}function l(t,e){document.removeEventListener(t,e)}function d(t){return 0===t.length?0:t.reduce((function(t,e){return e+t}),0)/t.length}function h(t){return t&&t.tagName}function c(t,e){for(var s=0;s<t.changedTouches.length;s++)if(t.changedTouches[s].identifier===e)return!0;return!1}function p(t,e,s,i,o,r,n){void 0===n&&(n=null);var a=e.changedTouches[0],l=new Event(s,{bubbles:!0,cancelable:i});l.dataTransfer=r,l.relatedTarget=n,l.screenX=a.screenX,l.screenY=a.screenY,l.clientX=a.clientX,l.clientY=a.clientY,l.pageX=a.pageX,l.pageY=a.pageY;var d=t.getBoundingClientRect();return l.offsetX=l.clientX-d.left,l.offsetY=l.clientY-d.top,l}function u(t,e,s){for(var i=[],o=[],r=0;r<e.touches.length;r++){var n=e.touches[r];i.push(n[t+"X"]),o.push(n[t+"Y"])}s.x=d(i),s.y=d(o)}function m(t,e){if(1===t.nodeType){for(var s=getComputedStyle(t),i=0;i<s.length;i++){var o=s[i];e.style.setProperty(o,s.getPropertyValue(o),s.getPropertyPriority(o))}e.style.pointerEvents="none",e.removeAttribute("id"),e.removeAttribute("class"),e.removeAttribute("draggable")}if(t.hasChildNodes())for(i=0;i<t.childNodes.length;i++)m(t.childNodes[i],e.childNodes[i])}function f(t){var e=t.cloneNode(!0);return m(t,e),e.style.position="absolute",e.style.left="0px",e.style.top="0px",e.style.zIndex="999999",e.classList.add(B),e.classList.add(O),e}function g(t){return z.map((function(e){var s=t.style[e+"transform"];return s&&"none"!==s?s.replace(/translate\(\D*\d+[^,]*,\D*\d+[^,]*\)\s*/g,""):""}))}function v(t,e,s,i,o){void 0===o&&(o=!0);var r=e.x,n=e.y;i&&(r+=i.x,n+=i.y),o&&(r-=parseInt(t.offsetWidth,10)/2,n-=parseInt(t.offsetHeight,10)/2);for(var a="translate3d("+r+"px,"+n+"px, 0)",l=0;l<z.length;l++){var d=z[l]+"transform";t.style[d]=a+" "+s[l]}}function b(t,e,s,i){var o=getComputedStyle(t);if("hidden"!==o.visibility&&"none"!==o.display){e.classList.add(I);var r=getComputedStyle(e),n=parseFloat(r.transitionDuration);if(isNaN(n)||0===n)i();else{var a=t.getBoundingClientRect(),l={x:a.left,y:a.top};l.x+=document.body.scrollLeft||document.documentElement.scrollLeft,l.y+=document.body.scrollTop||document.documentElement.scrollTop,l.x-=parseInt(o.marginLeft,10),l.y-=parseInt(o.marginTop,10);var d=parseFloat(r.transitionDelay),h=Math.round(1e3*(n+d));v(e,l,s,void 0,!1),setTimeout(i,h)}}else i()}function k(t,e){return t?t===C[0]?A[0]:0===t.indexOf(C[1])||t===C[7]?A[1]:0===t.indexOf(C[4])?A[3]:t===C[6]?A[2]:A[1]:3===e.nodeType&&"A"===e.tagName?A[3]:A[1]}function y(t,e,s,i,o,r,n){void 0===r&&(r=!0),void 0===n&&(n=null);var a=p(e,s,t,r,document.defaultView,o,n),l=!e.dispatchEvent(a);return i.g=0,l}function x(t,e){if(!t||t===C[7])return e;if(e===A[1]){if(0===t.indexOf(A[1]))return A[1]}else if(e===A[3]){if(0===t.indexOf(A[3])||t.indexOf("Link")>-1)return A[3]}else if(e===A[2]&&(0===t.indexOf(A[2])||t.indexOf("Move")>-1))return A[2];return A[0]}function w(t){var e=t.target,s=function(){r.off(),n.off(),a.off(),clearTimeout(i)},i=setTimeout((function(){r.off(),n.off(),a.off(),o(t)}),_.holdToDrag),r=E(e,"touchend",s,this),n=E(e,"touchcancel",s,this),a=E(window,"scroll",s,this)}function E(t,e,s,i){return i&&(s=s.bind(i)),t.addEventListener(e,s),{off:function(){return t.removeEventListener(e,s)}}}var $,S,_={iterationInterval:150},C=["none","copy","copyLink","copyMove","link","linkMove","move","all"],A=["none","copy","move","link"],z=["","-webkit-"],L="dnd-poly-",B=L+"drag-image",I=L+"snapback",O=L+"icon",T=function(){function t(t,e,s,i){this.h=t,this.i=e,this.j=s,this.k=i,this.l=0,this.m=null,this.o=null,this.p=t,this.q=t.changedTouches[0],this.s=this.t.bind(this),this.u=this.v.bind(this),a("touchmove",this.s,!1),a("touchend",this.u,!1),a("touchcancel",this.u,!1)}return t.prototype.A=function(){var t=this;this.l=1,this.B=A[0],this.C={D:{},F:void 0,g:3,G:[]},this.H={x:null,y:null},this.I={x:null,y:null};var e=this.j;if(this.J=new P(this.C,(function(s,i,o){e=s,"number"!=typeof i&&"number"!=typeof o||(t.K={x:i||0,y:o||0})})),this.C.g=2,this.J.dropEffect=A[0],y("dragstart",this.j,this.p,this.C,this.J))return this.l=3,this.L(),!1;if(u("page",this.p,this.I),this.M=f(e),this.N=g(this.M),!this.K)if(this.i.dragImageOffset)this.K={x:this.i.dragImageOffset.x,y:this.i.dragImageOffset.y};else if(this.i.dragImageCenterOnTouch){var s=getComputedStyle(e);this.K={x:0-parseInt(s.marginLeft,10),y:0-parseInt(s.marginTop,10)}}else{var i=e.getBoundingClientRect();s=getComputedStyle(e),this.K={x:i.left-this.q.clientX-parseInt(s.marginLeft,10)+i.width/2,y:i.top-this.q.clientY-parseInt(s.marginTop,10)+i.height/2}}return v(this.M,this.I,this.N,this.K,this.i.dragImageCenterOnTouch),document.body.appendChild(this.M),this.O=setInterval((function(){t.P||(t.P=!0,t.R(),t.P=!1)}),this.i.iterationInterval),!0},t.prototype.L=function(){this.O&&(clearInterval(this.O),this.O=null),l("touchmove",this.s),l("touchend",this.u),l("touchcancel",this.u),this.M&&(this.M.parentNode.removeChild(this.M),this.M=null),this.k(this.i,this.p,this.l)},t.prototype.t=function(t){var e=this;if(!1!==c(t,this.q.identifier)){if(this.p=t,0===this.l){var s=void 0;if(this.i.dragStartConditionOverride)try{s=this.i.dragStartConditionOverride(t)}catch(t){s=!1}else s=1===t.touches.length;return s?void(!0===this.A()&&(this.h.preventDefault(),t.preventDefault())):void this.L()}if(t.preventDefault(),u("client",t,this.H),u("page",t,this.I),this.i.dragImageTranslateOverride)try{var i=!1;if(this.i.dragImageTranslateOverride(t,{x:this.H.x,y:this.H.y},this.m,(function(t,s){e.M&&(i=!0,e.H.x+=t,e.H.y+=s,e.I.x+=t,e.I.y+=s,v(e.M,e.I,e.N,e.K,e.i.dragImageCenterOnTouch))})),i)return}catch(t){}v(this.M,this.I,this.N,this.K,this.i.dragImageCenterOnTouch)}},t.prototype.v=function(t){if(!1!==c(t,this.q.identifier)){if(this.i.dragImageTranslateOverride)try{this.i.dragImageTranslateOverride(void 0,void 0,void 0,(function(){}))}catch(t){}if(0===this.l)return void this.L();t.preventDefault(),this.l="touchcancel"===t.type?3:2}},t.prototype.R=function(){var t=this,e=this.B;this.C.g=3,this.J.dropEffect=A[0];var s=y("drag",this.j,this.p,this.C,this.J);if(s&&(this.B=A[0]),s||2===this.l||3===this.l)return this.S(this.l)?void b(this.j,this.M,this.N,(function(){t.T()})):void this.T();var i=document.elementFromPoint(this.H.x,this.H.y),o=this.o;i!==this.m&&i!==this.o&&(this.m=i,null!==this.o&&(this.C.g=3,this.J.dropEffect=A[0],y("dragexit",this.o,this.p,this.C,this.J,!1)),null===this.m?this.o=this.m:(this.C.g=3,this.J.dropEffect=k(this.C.F,this.j),y("dragenter",this.m,this.p,this.C,this.J)?(this.o=this.m,this.B=x(this.J.effectAllowed,this.J.dropEffect)):this.m!==document.body&&(this.o=document.body))),o!==this.o&&h(o)&&(this.C.g=3,this.J.dropEffect=A[0],y("dragleave",o,this.p,this.C,this.J,!1,this.o)),h(this.o)&&(this.C.g=3,this.J.dropEffect=k(this.C.F,this.j),!1===y("dragover",this.o,this.p,this.C,this.J)?this.B=A[0]:this.B=x(this.J.effectAllowed,this.J.dropEffect)),e!==this.B&&this.M.classList.remove(L+e);var r=L+this.B;!1===this.M.classList.contains(r)&&this.M.classList.add(r)},t.prototype.S=function(t){var e=this.B===A[0]||null===this.o||3===t;return e?h(this.o)&&(this.C.g=3,this.J.dropEffect=A[0],y("dragleave",this.o,this.p,this.C,this.J,!1)):h(this.o)&&(this.C.g=1,this.J.dropEffect=this.B,!0===y("drop",this.o,this.p,this.C,this.J)?this.B=this.J.dropEffect:this.B=A[0]),e},t.prototype.T=function(){this.C.g=3,this.J.dropEffect=this.B,y("dragend",this.j,this.p,this.C,this.J,!1),this.l=2,this.L()},t}(),P=function(){function t(t,e){this.U=t,this.V=e,this.W=A[0]}return Object.defineProperty(t.prototype,"types",{get:function(){if(0!==this.U.g)return Object.freeze(this.U.G)},enumerable:!0,configurable:!0}),t.prototype.setData=function(t,e){if(2===this.U.g){if(t.indexOf(" ")>-1)throw new Error("illegal arg: type contains space");this.U.D[t]=e,-1===this.U.G.indexOf(t)&&this.U.G.push(t)}},t.prototype.getData=function(t){if(1===this.U.g||2===this.U.g)return this.U.D[t]||""},t.prototype.clearData=function(t){if(2===this.U.g){if(t&&this.U.D[t]){delete this.U.D[t];var e=this.U.G.indexOf(t);return void(e>-1&&this.U.G.splice(e,1))}this.U.D={},this.U.G=[]}},t.prototype.setDragImage=function(t,e,s){2===this.U.g&&this.V(t,e,s)},Object.defineProperty(t.prototype,"effectAllowed",{get:function(){return this.U.F},set:function(t){2===this.U.g&&C.indexOf(t)>-1&&(this.U.F=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dropEffect",{get:function(){return this.W},set:function(t){0!==this.U.g&&C.indexOf(t)>-1&&(this.W=t)},enumerable:!0,configurable:!0}),t}();t.polyfill=i,Object.defineProperty(t,"__esModule",{value:!0})}(Dt.exports);customElements.get("kemet-sortable")||customElements.define("kemet-sortable",class extends Z{static get styles(){return[r`
2656
+ :host {
2657
+ display: flex;
2658
+ gap: 1rem;
2659
+ flex-direction: column;
2660
+ }
2661
+ `]}firstUpdated(){Dt.exports.polyfill(),this.addEventListener("dragstart",(t=>this.handleDragStart(t)),!1),this.addEventListener("dragenter",(t=>{t.preventDefault()}))}render(){return I`<slot></slot>`}handleDragStart(t){this.sortableItem=t.target,this.addEventListener("dragover",(t=>this.handleDragOver(t)),!1),this.addEventListener("dragend",(t=>this.handleDragEnd(t)),!1),setTimeout((()=>{this.sortableItem.ghost=!0}),0)}handleDragOver(t){t.preventDefault();const{target:e}=t;if(e&&"KEMET-SORTABLE-ITEM"===e.tagName){const s=(t=>{const e=t.target.getBoundingClientRect();return{x:t.pageX-e.left,y:t.pageY-e.top}})(t),i=(t=>{const e=t.getBoundingClientRect();return(e.bottom-e.top)/2})(t.target);s.y>i?this.insertBefore(this.sortableItem,e.nextSibling):this.insertBefore(this.sortableItem,e)}}handleDragEnd(t){t.preventDefault(),this.sortableItem.ghost=!1,this.dispatchEvent(new CustomEvent("kemet-sortable-drag-end",{bubbles:!0,composed:!0,detail:{event:t,current:this.sortableItem,all:this.querySelectorAll("kemet-sortable-item")}}))}});customElements.get("kemet-svg")||customElements.define("kemet-svg",class extends Z{static get styles(){return r`
2644
2662
  :host {
2645
2663
  display: inline-block;
2646
2664
  }
@@ -2649,13 +2667,13 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2649
2667
  width: 100%;
2650
2668
  height: 100%;
2651
2669
  }
2652
- `}static get properties(){return{set:{type:String},svg:{type:String},size:{type:Number},ratio:{type:String},viewBox:{type:String}}}constructor(){super(),this.set="svgs",this.ratio="none",this.viewBox="0 0 128 128"}updated(){this.setSize(),this.getIcon()}render(){return P`
2670
+ `}static get properties(){return{set:{type:String},svg:{type:String},size:{type:Number},ratio:{type:String},viewBox:{type:String}}}constructor(){super(),this.set="svgs",this.ratio="none",this.viewBox="0 0 128 128"}updated(){this.setSize(),this.getIcon()}render(){return I`
2653
2671
  <svg part="svg" viewBox="${this.viewBox}" preserveAspectRatio="${this.ratio}"></svg>
2654
- `}setSize(){this.size&&(this.style.width=`${this.size}px`,this.style.height=`${this.size}px`)}getIcon(){let t;const e=document.kemetSVGs[this.set];e.forEach(((s,i)=>{const o=s.getAttribute("id");o&&o===this.svg&&(t=e[i])})),t?this.fillSVG(t):console.error(`Could not find svg "${this.svg}" in set "${this.set}".`)}fillSVG(t){const e=t.cloneNode(!0),s=this.shadowRoot.querySelector("svg"),i=s.querySelector("g");i&&i.remove(),s.appendChild(e)}});customElements.get("kemet-svgs")||customElements.define("kemet-svgs",class extends G{static get styles(){return r`
2672
+ `}setSize(){this.size&&(this.style.width=`${this.size}px`,this.style.height=`${this.size}px`)}getIcon(){let t;const e=document.kemetSVGs[this.set];e.forEach(((s,i)=>{const o=s.getAttribute("id");o&&o===this.svg&&(t=e[i])})),t?this.fillSVG(t):console.error(`Could not find svg "${this.svg}" in set "${this.set}".`)}fillSVG(t){const e=t.cloneNode(!0),s=this.shadowRoot.querySelector("svg"),i=s.querySelector("g");i&&i.remove(),s.appendChild(e)}});customElements.get("kemet-svgs")||customElements.define("kemet-svgs",class extends Z{static get styles(){return r`
2655
2673
  :host {
2656
2674
  display: none;
2657
2675
  }
2658
- `}static get properties(){return{set:{type:String}}}constructor(){super(),this.set="svgs"}firstUpdated(){this.slotElement=this.shadowRoot.querySelector("slot"),document.kemetSVGs=document.kemetSVGs||{},this.populateIcons(),this.slotElement.addEventListener("slotchange",this.populateIcons())}render(){return P`<slot></slot>`}populateIcons(){const t=this.slotElement.assignedElements()[0],e=t?t.querySelectorAll("defs > g"):null;e&&(document.kemetSVGs[this.set]=e)}});customElements.define("kemet-tab-panel",class extends G{static get styles(){return r`
2676
+ `}static get properties(){return{set:{type:String}}}constructor(){super(),this.set="svgs"}firstUpdated(){this.slotElement=this.shadowRoot.querySelector("slot"),document.kemetSVGs=document.kemetSVGs||{},this.populateIcons(),this.slotElement.addEventListener("slotchange",this.populateIcons())}render(){return I`<slot></slot>`}populateIcons(){const t=this.slotElement.assignedElements()[0],e=t?t.querySelectorAll("defs > g"):null;e&&(document.kemetSVGs[this.set]=e)}});customElements.define("kemet-tab-panel",class extends Z{static get styles(){return r`
2659
2677
  :host {
2660
2678
  width: 100%;
2661
2679
  flex: 0 0 auto;
@@ -2687,9 +2705,9 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2687
2705
  :host(.vertical[selected]) {
2688
2706
  display: block;
2689
2707
  }
2690
- `}static get properties(){return{selected:{type:Boolean,reflect:!0},panel:{type:String}}}constructor(){super(),this.selected=!1}updated(){this.a11y()}render(){return P`
2708
+ `}static get properties(){return{selected:{type:Boolean,reflect:!0},panel:{type:String}}}constructor(){super(),this.selected=!1}updated(){this.a11y()}render(){return I`
2691
2709
  <slot></slot>
2692
- `}a11y(){this.setAttribute("role","tabpanel"),this.selected?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")}});customElements.define("kemet-tab",class extends G{static get styles(){return r`
2710
+ `}a11y(){this.setAttribute("role","tabpanel"),this.selected?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")}});customElements.define("kemet-tab",class extends Z{static get styles(){return r`
2693
2711
  :host {
2694
2712
  cursor: pointer;
2695
2713
  display: inline-flex;
@@ -2709,10 +2727,10 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2709
2727
  cursor: pointer;
2710
2728
  margin-left: 0.5rem;
2711
2729
  }
2712
- `}static get properties(){return{selected:{type:Boolean,reflect:!0},link:{type:String},closable:{type:Boolean}}}constructor(){super(),this.selected=!1}firstUpdated(){this.addEventListener("click",this.select.bind(this))}updated(){this.a11y()}render(){return P`
2730
+ `}static get properties(){return{selected:{type:Boolean,reflect:!0},link:{type:String},closable:{type:Boolean}}}constructor(){super(),this.selected=!1}firstUpdated(){this.addEventListener("click",this.select.bind(this))}updated(){this.a11y()}render(){return I`
2713
2731
  <slot></slot>
2714
2732
  ${this.makeCloseable()}
2715
- `}select(){this.dispatchEvent(new CustomEvent("kemet-tab-selected",{bubbles:!0,composed:!0,detail:this}))}a11y(){this.setAttribute("role","tab"),this.selected?(this.setAttribute("aria-selected","true"),this.setAttribute("tabindex","0")):(this.setAttribute("aria-selected","false"),this.setAttribute("tabindex","-1"))}makeCloseable(){return this.closable?P`<kemet-icon icon="x-lg" @click=${()=>this.handleClosable()}></kemet-icon>`:null}handleClosable(){this.dispatchEvent(new CustomEvent("kemet-tab-close",{bubbles:!0,composed:!0,detail:this}))}});const Xt=r`
2733
+ `}select(){this.dispatchEvent(new CustomEvent("kemet-tab-selected",{bubbles:!0,composed:!0,detail:this}))}a11y(){this.setAttribute("role","tab"),this.selected?(this.setAttribute("aria-selected","true"),this.setAttribute("tabindex","0")):(this.setAttribute("aria-selected","false"),this.setAttribute("tabindex","-1"))}makeCloseable(){return this.closable?I`<kemet-icon icon="x-lg" @click=${()=>this.handleClosable()}></kemet-icon>`:null}handleClosable(){this.dispatchEvent(new CustomEvent("kemet-tab-close",{bubbles:!0,composed:!0,detail:this}))}});const Mt=r`
2716
2734
  :host {
2717
2735
  --kemet-tabs-ink-size: 6px;
2718
2736
  --kemet-tabs-ink-radius: 6px;
@@ -2909,7 +2927,7 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2909
2927
  top: auto;
2910
2928
  bottom: 1rem;
2911
2929
  }
2912
- `;customElements.get("kemet-tabs")||customElements.define("kemet-tabs",class extends G{static get styles(){return[Xt]}static get properties(){return{selected:{type:String,reflect:!0},selectedIndex:{type:Number},panelPosition:{type:Number},panelEffect:{type:String,reflect:!0,attribute:"panel-effect"},swipe:{type:Boolean},placement:{type:String,reflect:!0},divider:{type:Boolean},tabsAlign:{type:String,reflect:!0,attribute:"tabs-align"},ink:{type:Object},hideInk:{type:Boolean,attribute:"hide-ink"},overflow:{type:Boolean,reflect:!0}}}constructor(){super(),this.selectedIndex=0,this.panelPosition=0,this.panelEffect="none",this.placement="top",this.tabsAlign="center",this.hideInk=!1,this.addEventListener("kemet-tab-selected",this.tabSelectedChange.bind(this)),this.addEventListener("kemet-tab-close",this.handleTabClose.bind(this)),window.addEventListener("resize",this.handleResize.bind(this))}firstUpdated(){this.tabs=[],this.panels=[],this.xDown=null,this.yDown=null,this.links=this.shadowRoot.getElementById("links")}render(){return P`
2930
+ `;customElements.get("kemet-tabs")||customElements.define("kemet-tabs",class extends Z{static get styles(){return[Mt]}static get properties(){return{selected:{type:String,reflect:!0},selectedIndex:{type:Number},panelPosition:{type:Number},panelEffect:{type:String,reflect:!0,attribute:"panel-effect"},swipe:{type:Boolean},placement:{type:String,reflect:!0},divider:{type:Boolean},tabsAlign:{type:String,reflect:!0,attribute:"tabs-align"},ink:{type:Object},hideInk:{type:Boolean,attribute:"hide-ink"},overflow:{type:Boolean,reflect:!0}}}constructor(){super(),this.selectedIndex=0,this.panelPosition=0,this.panelEffect="none",this.placement="top",this.tabsAlign="center",this.hideInk=!1,this.addEventListener("kemet-tab-selected",this.tabSelectedChange.bind(this)),this.addEventListener("kemet-tab-close",this.handleTabClose.bind(this)),window.addEventListener("resize",this.handleResize.bind(this))}firstUpdated(){this.tabs=[],this.panels=[],this.xDown=null,this.yDown=null,this.links=this.shadowRoot.getElementById("links")}render(){return I`
2913
2931
  ${this.makeLeftArrow()}
2914
2932
  ${this.makeRightArrow()}
2915
2933
  <div id="links" part="links">
@@ -2925,7 +2943,7 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2925
2943
  <slot name="panel" @slotchange=${()=>this.handlePanelsSlotChange()}></slot>
2926
2944
  </div>
2927
2945
  </section>
2928
- `}updated(){this.determineFade()}handleLinksSlotChange(){const t=this.querySelectorAll("kemet-tab");let e=0;t.forEach((t=>{t.index=e,e+=1,this.tabs=this.tabs.concat(t),t.addEventListener("keydown",(t=>this.handleTabKeydown(t)))})),this.tabs.length>0&&(this.tabs[0].selected=!0),setTimeout((()=>{this.selectTab()}),1),this.determineOverflow()}handlePanelsSlotChange(){const t=this.querySelectorAll("kemet-tab-panel"),e=this.shadowRoot.getElementById("panels");let s=0;t.forEach((t=>{t.index=s,s+=1,this.panels=this.panels.concat(t)})),this.panels.length>0&&(this.panels[0].selected=!0),this.swipe&&(e.addEventListener("touchstart",(t=>this.handleTouchStart(t)),!1),e.addEventListener("touchmove",(t=>this.handleTouchMove(t)),!1)),this.selectPanel()}handleLeftArrow(){const t=this.tabs.find((t=>t.selected))||this.tabs[0],e=t.previousElementSibling,s=this.tabs.findIndex((t=>t.selected));this.selected?this.selected=e?e.link:t.link:this.selectedIndex=s>0?s-1:0,e&&(this.links.scrollLeft=e.offsetLeft-20),this.selectTab(),this.selectPanel()}handleRightArrow(){const t=this.tabs.find((t=>t.selected))||this.tabs[this.tabs.length-1],e=t.nextElementSibling,s=this.tabs.findIndex((t=>t.selected));this.selected?this.selected=e?e.link:t.link:this.selectedIndex=s<this.tabs.length-1?s+1:this.tabs.length-1,e&&(this.links.scrollLeft=e.offsetLeft-20),this.selectTab(),this.selectPanel()}handleTabClose(t){const e=t.detail,s=this.panels[e.index];this.selected=this.tabs[0].link,this.selectedIndex=0,s.remove(),e.remove()}makeInk(t){return this.hideInk?null:"top"!==this.placement&&"bottom"!==this.placement||!this.ink||"links"!==t?"left"!==this.placement&&"right"!==this.placement||!this.ink||"host"!==t?null:P`<div part="ink" style="height:${this.ink.height}; transform:translateY(${this.ink.positionY})"></div>`:P`<div part="ink" style="width:${this.ink.width}; transform:translateX(${this.ink.positionX})"></div>`}makeDivider(){return this.divider?P`<div part="divider"></div>`:null}makeLeftArrow(){return this.overflow?P`<kemet-icon icon='chevron-left' size="20" @click=${()=>this.handleLeftArrow()}></kemet-icon>`:null}makeRightArrow(){return this.overflow?P`<kemet-icon icon='chevron-right' size="20" @click=${()=>this.handleRightArrow()}></kemet-icon>`:null}selectTab(){const t=this.links?parseInt(window.getComputedStyle(this.links).marginLeft.replace("px",""),10):0,e=this.overflow?t:0;this.selected?this.tabs.forEach((t=>{const s=t.getAttribute("link");s===this.selected?(t.selected=!0,this.selected=s,this.ink={width:`${t.offsetWidth}px`,height:`${t.offsetHeight}px`,positionX:t.offsetLeft-e+"px",positionY:`${t.offsetTop}px`},this.links.scrollLeft=t.offsetLeft-e):t.selected=!1})):this.tabs.forEach((t=>{this.selectedIndex===t.index?(t.selected=!0,this.ink={width:`${t.offsetWidth}px`,height:`${t.offsetHeight}px`,positionX:t.offsetLeft-e+"px",positionY:`${t.offsetTop}px`},this.links.scrollLeft=t.offsetLeft-e):t.selected=!1}))}selectPanel(){this.selected?this.panels.forEach((t=>{const e=t.getAttribute("panel");"fade"===this.panelEffect&&0!==t.index&&t.classList.add("push"),"left"!==this.placement&&"right"!==this.placement||t.classList.add("vertical"),e===this.selected?(t.selected=!0,this.animatePanel(e,null)):t.selected=!1})):this.panels.forEach((t=>{"fade"===this.panelEffect&&0!==t.index&&t.classList.add("push"),"left"!==this.placement&&"right"!==this.placement||t.classList.add("vertical"),this.selectedIndex===t.index?(t.selected=!0,this.animatePanel(null,t.index)):t.selected=!1}))}dispatchTabChange(){const t=new CustomEvent("kemet-tab-changed",{bubbles:!0,composed:!0,detail:this.selected});this.dispatchEvent(t)}tabSelectedChange(t){this.selected?this.selected=t.detail.getAttribute("link"):this.selectedIndex=t.detail.index,this.selectTab(),this.selectPanel(),this.dispatchTabChange()}determineFade(){this.panels.forEach((t=>{"fade"===this.panelEffect&&t.classList.add("fade")}))}determineOverflow(){const t=this.offsetWidth,e=this.querySelectorAll("kemet-tab");let s=0;e.forEach((t=>{s+=t.offsetWidth})),s>t&&("top"===this.placement||"bottom"===this.placement)?this.overflow=!0:this.overflow=!1}handleResize(){if(this.tabs&&this.panels){const t=this.links?parseInt(window.getComputedStyle(this.links).marginLeft.replace("px",""),10):0,e=this.overflow?t:0,s=this.tabs.find((t=>t.selected));s&&(this.ink={width:`${s.offsetWidth}px`,height:`${s.offsetHeight}px`,positionX:s.offsetLeft-e+"px",positionY:`${s.offsetTop}px`}),this.determineOverflow(),this.selected?this.animatePanel(this.selected,null):this.animatePanel(null,this.selectedIndex)}}animatePanel(t,e){if(t){const e=this.querySelector(`[panel="${t}"]`);e&&(this.panelPosition=-1*e.offsetLeft)}else this.panels[e]&&(this.panelPosition=-1*this.panels[e].offsetLeft)}handleTabKeydown(t){if(this.selected){switch(t.key){case"Home":this.selected=this.tabs[0].getAttribute("link");break;case"End":this.selected=this.tabs[this.tabs.length-1].getAttribute("link");break;case"ArrowRight":const t=this.querySelector("kemet-tab[selected]").nextElementSibling,e=!!t&&t.getAttribute("link");e&&(this.selected=e);break;case"ArrowLeft":const s=this.querySelector("kemet-tab[selected]").previousElementSibling,i=!!s&&s.getAttribute("link");i&&(this.selected=i)}this.tabs.find((t=>t.link===this.selected)).focus()}else{switch(t.key){case"Home":this.selectedIndex=0;break;case"End":this.selectedIndex=this.tabs.length-1;break;case"ArrowRight":this.selectedIndex<this.tabs.length-1?this.selectedIndex+=1:this.selectedIndex=this.tabs.length-1;break;case"ArrowLeft":this.selectedIndex<1?this.selectedIndex=0:this.selectedIndex-=1}this.tabs[this.selectedIndex].focus()}}handleTouchStart(t){this.xDown=t.touches[0].clientX,this.yDown=t.touches[0].clientY}handleTouchMove(t){if(!this.xDown||!this.yDown)return;const e=t.touches[0].clientX,s=t.touches[0].clientY,i=this.xDown-e,o=this.yDown-s,r=this.querySelector("kemet-tab-panel[selected]").nextElementSibling,n=!!r&&r.getAttribute("panel"),a=this.querySelector("kemet-tab-panel[selected]").previousElementSibling,l=!!a&&a.getAttribute("panel");Math.abs(i)>Math.abs(o)&&(i>0?this.selected?n&&(this.selected=n):this.selectedIndex<this.tabs.length&&(this.selectedIndex+=1):this.selected?l&&(this.selected=l):this.selectedIndex>0&&(this.selectedIndex-=1),this.selectTab(),this.selectPanel()),this.xDown=null,this.yDown=null}});customElements.get("kemet-textarea")||customElements.define("kemet-textarea",class extends G{static get styles(){return[r`
2946
+ `}updated(){this.determineFade()}handleLinksSlotChange(){const t=this.querySelectorAll("kemet-tab");let e=0;t.forEach((t=>{t.index=e,e+=1,this.tabs=this.tabs.concat(t),t.addEventListener("keydown",(t=>this.handleTabKeydown(t)))})),this.tabs.length>0&&(this.tabs[0].selected=!0),setTimeout((()=>{this.selectTab()}),1),this.determineOverflow()}handlePanelsSlotChange(){const t=this.querySelectorAll("kemet-tab-panel"),e=this.shadowRoot.getElementById("panels");let s=0;t.forEach((t=>{t.index=s,s+=1,this.panels=this.panels.concat(t)})),this.panels.length>0&&(this.panels[0].selected=!0),this.swipe&&(e.addEventListener("touchstart",(t=>this.handleTouchStart(t)),!1),e.addEventListener("touchmove",(t=>this.handleTouchMove(t)),!1)),this.selectPanel()}handleLeftArrow(){const t=this.tabs.find((t=>t.selected))||this.tabs[0],e=t.previousElementSibling,s=this.tabs.findIndex((t=>t.selected));this.selected?this.selected=e?e.link:t.link:this.selectedIndex=s>0?s-1:0,e&&(this.links.scrollLeft=e.offsetLeft-20),this.selectTab(),this.selectPanel()}handleRightArrow(){const t=this.tabs.find((t=>t.selected))||this.tabs[this.tabs.length-1],e=t.nextElementSibling,s=this.tabs.findIndex((t=>t.selected));this.selected?this.selected=e?e.link:t.link:this.selectedIndex=s<this.tabs.length-1?s+1:this.tabs.length-1,e&&(this.links.scrollLeft=e.offsetLeft-20),this.selectTab(),this.selectPanel()}handleTabClose(t){const e=t.detail,s=this.panels[e.index];this.selected=this.tabs[0].link,this.selectedIndex=0,s.remove(),e.remove()}makeInk(t){return this.hideInk?null:"top"!==this.placement&&"bottom"!==this.placement||!this.ink||"links"!==t?"left"!==this.placement&&"right"!==this.placement||!this.ink||"host"!==t?null:I`<div part="ink" style="height:${this.ink.height}; transform:translateY(${this.ink.positionY})"></div>`:I`<div part="ink" style="width:${this.ink.width}; transform:translateX(${this.ink.positionX})"></div>`}makeDivider(){return this.divider?I`<div part="divider"></div>`:null}makeLeftArrow(){return this.overflow?I`<kemet-icon icon='chevron-left' size="20" @click=${()=>this.handleLeftArrow()}></kemet-icon>`:null}makeRightArrow(){return this.overflow?I`<kemet-icon icon='chevron-right' size="20" @click=${()=>this.handleRightArrow()}></kemet-icon>`:null}selectTab(){const t=this.links?parseInt(window.getComputedStyle(this.links).marginLeft.replace("px",""),10):0,e=this.overflow?t:0;this.selected?this.tabs.forEach((t=>{const s=t.getAttribute("link");s===this.selected?(t.selected=!0,this.selected=s,this.ink={width:`${t.offsetWidth}px`,height:`${t.offsetHeight}px`,positionX:t.offsetLeft-e+"px",positionY:`${t.offsetTop}px`},this.links.scrollLeft=t.offsetLeft-e):t.selected=!1})):this.tabs.forEach((t=>{this.selectedIndex===t.index?(t.selected=!0,this.ink={width:`${t.offsetWidth}px`,height:`${t.offsetHeight}px`,positionX:t.offsetLeft-e+"px",positionY:`${t.offsetTop}px`},this.links.scrollLeft=t.offsetLeft-e):t.selected=!1}))}selectPanel(){this.selected?this.panels.forEach((t=>{const e=t.getAttribute("panel");"fade"===this.panelEffect&&0!==t.index&&t.classList.add("push"),"left"!==this.placement&&"right"!==this.placement||t.classList.add("vertical"),e===this.selected?(t.selected=!0,this.animatePanel(e,null)):t.selected=!1})):this.panels.forEach((t=>{"fade"===this.panelEffect&&0!==t.index&&t.classList.add("push"),"left"!==this.placement&&"right"!==this.placement||t.classList.add("vertical"),this.selectedIndex===t.index?(t.selected=!0,this.animatePanel(null,t.index)):t.selected=!1}))}dispatchTabChange(){const t=new CustomEvent("kemet-tab-changed",{bubbles:!0,composed:!0,detail:this.selected});this.dispatchEvent(t)}tabSelectedChange(t){this.selected?this.selected=t.detail.getAttribute("link"):this.selectedIndex=t.detail.index,this.selectTab(),this.selectPanel(),this.dispatchTabChange()}determineFade(){this.panels.forEach((t=>{"fade"===this.panelEffect&&t.classList.add("fade")}))}determineOverflow(){const t=this.offsetWidth,e=this.querySelectorAll("kemet-tab");let s=0;e.forEach((t=>{s+=t.offsetWidth})),s>t&&("top"===this.placement||"bottom"===this.placement)?this.overflow=!0:this.overflow=!1}handleResize(){if(this.tabs&&this.panels){const t=this.links?parseInt(window.getComputedStyle(this.links).marginLeft.replace("px",""),10):0,e=this.overflow?t:0,s=this.tabs.find((t=>t.selected));s&&(this.ink={width:`${s.offsetWidth}px`,height:`${s.offsetHeight}px`,positionX:s.offsetLeft-e+"px",positionY:`${s.offsetTop}px`}),this.determineOverflow(),this.selected?this.animatePanel(this.selected,null):this.animatePanel(null,this.selectedIndex)}}animatePanel(t,e){if(t){const e=this.querySelector(`[panel="${t}"]`);e&&(this.panelPosition=-1*e.offsetLeft)}else this.panels[e]&&(this.panelPosition=-1*this.panels[e].offsetLeft)}handleTabKeydown(t){if(this.selected){switch(t.key){case"Home":this.selected=this.tabs[0].getAttribute("link");break;case"End":this.selected=this.tabs[this.tabs.length-1].getAttribute("link");break;case"ArrowRight":const t=this.querySelector("kemet-tab[selected]").nextElementSibling,e=!!t&&t.getAttribute("link");e&&(this.selected=e);break;case"ArrowLeft":const s=this.querySelector("kemet-tab[selected]").previousElementSibling,i=!!s&&s.getAttribute("link");i&&(this.selected=i)}this.tabs.find((t=>t.link===this.selected)).focus()}else{switch(t.key){case"Home":this.selectedIndex=0;break;case"End":this.selectedIndex=this.tabs.length-1;break;case"ArrowRight":this.selectedIndex<this.tabs.length-1?this.selectedIndex+=1:this.selectedIndex=this.tabs.length-1;break;case"ArrowLeft":this.selectedIndex<1?this.selectedIndex=0:this.selectedIndex-=1}this.tabs[this.selectedIndex].focus()}}handleTouchStart(t){this.xDown=t.touches[0].clientX,this.yDown=t.touches[0].clientY}handleTouchMove(t){if(!this.xDown||!this.yDown)return;const e=t.touches[0].clientX,s=t.touches[0].clientY,i=this.xDown-e,o=this.yDown-s,r=this.querySelector("kemet-tab-panel[selected]").nextElementSibling,n=!!r&&r.getAttribute("panel"),a=this.querySelector("kemet-tab-panel[selected]").previousElementSibling,l=!!a&&a.getAttribute("panel");Math.abs(i)>Math.abs(o)&&(i>0?this.selected?n&&(this.selected=n):this.selectedIndex<this.tabs.length&&(this.selectedIndex+=1):this.selected?l&&(this.selected=l):this.selectedIndex>0&&(this.selectedIndex-=1),this.selectTab(),this.selectPanel()),this.xDown=null,this.yDown=null}});customElements.get("kemet-textarea")||customElements.define("kemet-textarea",class extends Z{static get styles(){return[r`
2929
2947
  :host {
2930
2948
  position: relative;
2931
2949
  display: block;
@@ -2989,30 +3007,30 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
2989
3007
  :host([status='warning'][filled]) textarea {
2990
3008
  background-color: var(--kemet-textarea-background-color-warning, var(--kemet-color-warning));
2991
3009
  }
2992
- `]}static get properties(){return{slug:{type:String},name:{type:String},placeholder:{type:String},minlength:{type:String},maxlength:{type:String},inputmode:{type:String},autofocus:{type:Boolean},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean},required:{type:Boolean,reflect:!0},value:{type:String},invalid:{type:Boolean,reflect:!0},status:{type:String,reflect:!0},rows:{type:Number},validateOnBlur:{type:Boolean,attribute:"validate-on-blur"},filled:{type:Boolean,reflect:!0},rounded:{type:Boolean,reflect:!0}}}constructor(){super(),this.slug="textarea",this.name="textarea",this.value="",this.status="standard",this.rows=4,this.formSubmitController=new Q(this)}firstUpdated(){this.form=this.closest("form"),this.control=this.closest("kemet-field"),this.textarea=this.shadowRoot.querySelector("textarea")}render(){return P`
3010
+ `]}static get properties(){return{slug:{type:String},name:{type:String},placeholder:{type:String},minlength:{type:String},maxlength:{type:String},inputmode:{type:String},autofocus:{type:Boolean},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean},required:{type:Boolean,reflect:!0},value:{type:String},invalid:{type:Boolean,reflect:!0},status:{type:String,reflect:!0},rows:{type:Number},validateOnBlur:{type:Boolean,attribute:"validate-on-blur"},filled:{type:Boolean,reflect:!0},rounded:{type:Boolean,reflect:!0}}}constructor(){super(),this.slug="textarea",this.name="textarea",this.value="",this.status="standard",this.rows=4,this.formSubmitController=new Q(this)}firstUpdated(){this.form=this.closest("form"),this.control=this.closest("kemet-field"),this.textarea=this.shadowRoot.querySelector("textarea")}render(){return I`
2993
3011
  <textarea
2994
3012
  part="textarea"
2995
3013
  id=${this.slug}
2996
3014
  name=${this.name}
2997
- .value=${mt(this.value)}
3015
+ .value=${lt(this.value)}
2998
3016
  ?disabled=${this.disabled}
2999
3017
  ?readonly=${this.readonly}
3000
3018
  ?required=${this.required}
3001
- placeholder=${rt(this.placeholder)}
3002
- rows=${rt(this.rows)}
3003
- minlength=${rt(this.minlength)}
3004
- maxlength=${rt(this.maxlength)}
3005
- autocorrect=${rt(this.autocorrect)}
3019
+ placeholder=${tt(this.placeholder)}
3020
+ rows=${tt(this.rows)}
3021
+ minlength=${tt(this.minlength)}
3022
+ maxlength=${tt(this.maxlength)}
3023
+ autocorrect=${tt(this.autocorrect)}
3006
3024
  ?autofocus=${this.autofocus}
3007
- spellcheck=${rt(this.spellcheck)}
3008
- inputmode=${rt(this.inputmode)}
3025
+ spellcheck=${tt(this.spellcheck)}
3026
+ inputmode=${tt(this.inputmode)}
3009
3027
  @change=${this.handleChange}
3010
3028
  @input=${this.handleInput}
3011
3029
  @focus=${this.handleFocus}
3012
3030
  @blur=${this.handleBlur}
3013
3031
  @invalid=${this.handleInvalid}
3014
3032
  ></textarea>
3015
- `}handleFocus(){this.hasFocus=!0,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!0}))}handleBlur(){this.hasFocus=!1,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!1})),this.validateOnBlur&&this.form&&!this.form.noValidate&&(this.textarea.checkValidity(),this.validity=this.textarea.validity)}handleChange(){this.value=this.textarea.value,this.textarea.checkValidity()&&this.checkLimitValidity()&&(this.invalid=!1,this.status="standard",this.validity=this.textarea.validity,this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"standard",validity:this.textarea.validity,element:this}})))}handleInput(){this.value=this.textarea.value,this.dispatchEvent(new CustomEvent("kemet-input-input",{bubbles:!0,composed:!0,detail:this.value}))}handleInvalid(){this.validity=this.textarea.validity,this.validateOnBlur&&(this.invalid=!0,this.status="error",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:this.textarea.validity,element:this}})))}checkLimitValidity(){if(this.control){const t=this.control.querySelector("kemet-count");if(t)return this.value.length<t.limit}return!0}checkValidity(){return this.textarea.checkValidity()}focus(){return this.textarea.focus()}});customElements.get("kemet-toggle")||customElements.define("kemet-toggle",class extends G{static get styles(){return[r`
3033
+ `}handleFocus(){this.hasFocus=!0,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!0}))}handleBlur(){this.hasFocus=!1,this.dispatchEvent(new CustomEvent("kemet-input-focused",{bubbles:!0,composed:!0,detail:!1})),this.validateOnBlur&&this.form&&!this.form.noValidate&&(this.textarea.checkValidity(),this.validity=this.textarea.validity)}handleChange(){this.value=this.textarea.value,this.textarea.checkValidity()&&this.checkLimitValidity()&&(this.invalid=!1,this.status="standard",this.validity=this.textarea.validity,this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"standard",validity:this.textarea.validity,element:this}})))}handleInput(){this.value=this.textarea.value,this.dispatchEvent(new CustomEvent("kemet-input-input",{bubbles:!0,composed:!0,detail:this.value}))}handleInvalid(){this.validity=this.textarea.validity,this.validateOnBlur&&(this.invalid=!0,this.status="error",this.dispatchEvent(new CustomEvent("kemet-input-status",{bubbles:!0,composed:!0,detail:{status:"error",validity:this.textarea.validity,element:this}})))}checkLimitValidity(){if(this.control){const t=this.control.querySelector("kemet-count");if(t)return this.value.length<t.limit}return!0}checkValidity(){return this.textarea.checkValidity()}focus(){return this.textarea.focus()}});customElements.get("kemet-toggle")||customElements.define("kemet-toggle",class extends Z{static get styles(){return[r`
3016
3034
  :host {
3017
3035
  --kemet-toggle-width: 3.5rem;
3018
3036
  --kemet-toggle-height: 2rem;
@@ -3093,7 +3111,7 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
3093
3111
  .option {
3094
3112
  font-size: 90%;
3095
3113
  }
3096
- `]}static get properties(){return{name:{type:String},checked:{type:Boolean,reflect:!0},disabled:{type:Boolean},label:{type:String},show:{type:Boolean},squared:{type:Boolean},optionChecked:{type:String,attribute:"option-checked"},optionUnchecked:{type:String,attribute:"option-unchecked"}}}constructor(){super(),this.name="toggle-switch",this.disabled=!1,this.checked=!1,this.show=!1,this.squared=!1,this.label="",this.optionChecked="on",this.optionUnchecked="off",this.value=this.checked?this.optionChecked:this.optionUnchecked,this.formSubmitController=new Q(this)}render(){return P`
3114
+ `]}static get properties(){return{name:{type:String},checked:{type:Boolean,reflect:!0},disabled:{type:Boolean},label:{type:String},show:{type:Boolean},squared:{type:Boolean},optionChecked:{type:String,attribute:"option-checked"},optionUnchecked:{type:String,attribute:"option-unchecked"}}}constructor(){super(),this.name="toggle-switch",this.disabled=!1,this.checked=!1,this.show=!1,this.squared=!1,this.label="",this.optionChecked="on",this.optionUnchecked="off",this.value=this.checked?this.optionChecked:this.optionUnchecked,this.formSubmitController=new Q(this)}render(){return I`
3097
3115
  <label part="label">
3098
3116
  ${this.makeUncheckedOption()}
3099
3117
  <span part="control">
@@ -3113,7 +3131,7 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
3113
3131
  ${this.makeCheckedOption()}
3114
3132
  <span part="text">${this.label}</span>
3115
3133
  </label>
3116
- `}handleChange(){this.checked=!this.checked,this.value=this.checked?this.optionChecked:this.optionUnchecked,this.dispatchEvent(new CustomEvent("kemet-toggle-change",{bubbles:!0,composed:!0,detail:!0}))}makeUncheckedOption(){return this.show?P`<span class="option" part="unchecked">${this.optionUnchecked}</span>`:null}makeCheckedOption(){return this.show?P`<span class="option" part="checked">${this.optionChecked}</span>`:null}});customElements.get("kemet-tracker-step")||customElements.define("kemet-tracker-step",class extends G{static get styles(){return[r`
3134
+ `}handleChange(){this.checked=!this.checked,this.value=this.checked?this.optionChecked:this.optionUnchecked,this.dispatchEvent(new CustomEvent("kemet-toggle-change",{bubbles:!0,composed:!0,detail:!0}))}makeUncheckedOption(){return this.show?I`<span class="option" part="unchecked">${this.optionUnchecked}</span>`:null}makeCheckedOption(){return this.show?I`<span class="option" part="checked">${this.optionChecked}</span>`:null}});customElements.get("kemet-tracker-step")||customElements.define("kemet-tracker-step",class extends Z{static get styles(){return[r`
3117
3135
  :host {
3118
3136
  --kemet-tracker-step-dot-size: 50px;
3119
3137
  --kemet-tracker-step-dot-size-mobile: 25px;
@@ -3221,19 +3239,213 @@ class Ot extends ct{constructor(t){if(super(t),this.it=O,t.type!==at)throw Error
3221
3239
  from { transform: scaleX(0); }
3222
3240
  to { transform: scaleX(1); }
3223
3241
  }
3224
- `]}static get properties(){return{step:{type:Number},completed:{type:Boolean,reflect:!0},current:{type:Boolean,reflect:!0},last:{type:Boolean,reflect:!0},mobile:{type:Boolean,reflect:!0},hideDotContent:{type:Boolean,reflect:!0,attribute:"hide-dot-content"},completedSize:{type:Number}}}constructor(){super(),this.completedSize=16}firstUpdated(){this.tracker=this.closest("kemet-tracker")}render(){return P`
3242
+ `]}static get properties(){return{step:{type:Number},completed:{type:Boolean,reflect:!0},current:{type:Boolean,reflect:!0},last:{type:Boolean,reflect:!0},mobile:{type:Boolean,reflect:!0},hideDotContent:{type:Boolean,reflect:!0,attribute:"hide-dot-content"},completedSize:{type:Number}}}constructor(){super(),this.completedSize=16}firstUpdated(){this.tracker=this.closest("kemet-tracker")}render(){return I`
3225
3243
  ${this.makeLine()}
3226
3244
  ${this.makeCompletedLine()}
3227
3245
  <div class="dot" part="dot">${this.makeDotContent()}</div>
3228
3246
  ${this.makeSlotContent()}
3229
- `}makeLine(){return this.last?null:P`<div class="line" part="line"></div>`}makeCompletedLine(){return this.completed&&!this.last?P`<div class="line completed" part="completed-line" @animationend=${()=>this.handleCompletedLineEnd()}></div>`:null}makeDotContent(){return!this.completed||this.mobile||this.hideDotContent?this.mobile||this.hideDotContent?null:P`
3247
+ `}makeLine(){return this.last?null:I`<div class="line" part="line"></div>`}makeCompletedLine(){return this.completed&&!this.last?I`<div class="line completed" part="completed-line" @animationend=${()=>this.handleCompletedLineEnd()}></div>`:null}makeDotContent(){return!this.completed||this.mobile||this.hideDotContent?this.mobile||this.hideDotContent?null:I`
3230
3248
  <span>${this.step}/${this.tracker?.total}</span>
3231
- `:P`
3249
+ `:I`
3232
3250
  <kemet-icon icon="check2" size=${this.completedSize}></kemet-icon>
3233
- `}makeSlotContent(){return this.mobile?null:P`<slot></slot>`}handleCompletedLineEnd(){const t=this.tracker.querySelector("[current]").shadowRoot.querySelector(".dot");t&&t.classList.add("animate")}});customElements.get("kemet-tracker")||customElements.define("kemet-tracker",class extends G{static get styles(){return[r`
3251
+ `}makeSlotContent(){return this.mobile?null:I`<slot></slot>`}handleCompletedLineEnd(){const t=this.tracker.querySelector("[current]").shadowRoot.querySelector(".dot");t&&t.classList.add("animate")}});customElements.get("kemet-tracker")||customElements.define("kemet-tracker",class extends Z{static get styles(){return[r`
3234
3252
  :host {
3235
3253
  display: flex;
3236
3254
  justify-content: center;
3237
3255
  align-items: flex-start;
3238
3256
  }
3239
- `]}static get properties(){return{total:{type:Number},breakpoint:{type:String}}}constructor(){super(),this.breakpoint="767px"}firstUpdated(){this.steps=this.querySelectorAll("kemet-tracker-step"),this.isMobile(),window.addEventListener("resize",(()=>{this.isMobile()}))}render(){return P`<slot @slotchange=${()=>this.handleSlotChange()}></slot>`}handleSlotChange(){this.total=this.steps.length,this.steps.forEach(((t,e)=>{t.step=e+1,t.step===this.total&&(t.last=!0)}))}isMobile(){const t=window.matchMedia(`(max-width: ${this.breakpoint})`);this.steps.forEach((e=>{e.mobile=t.matches}))}});export{tt as KemetCarouselCurrent,et as KemetCarouselFirst,st as KemetCarouselLast,it as KemetCarouselPrev,ot as KemetCarouselTotal,Lt as customTooltip,wt as fade,$t as fall,St as flipHorizontal,_t as flipVertical,xt as scale,Ct as sign,Et as slide,Xt as stylesKemetTabs,At as superScaled,zt as tooltip};
3257
+ `]}static get properties(){return{total:{type:Number},breakpoint:{type:String}}}constructor(){super(),this.breakpoint="767px"}firstUpdated(){this.steps=this.querySelectorAll("kemet-tracker-step"),this.isMobile(),window.addEventListener("resize",(()=>{this.isMobile()}))}render(){return I`<slot @slotchange=${()=>this.handleSlotChange()}></slot>`}handleSlotChange(){this.total=this.steps.length,this.steps.forEach(((t,e)=>{t.step=e+1,t.step===this.total&&(t.last=!0)}))}isMobile(){const t=window.matchMedia(`(max-width: ${this.breakpoint})`);this.steps.forEach((e=>{e.mobile=t.matches}))}});const Ut=r`
3258
+ .lds-ripple {
3259
+ display: inline-block;
3260
+ position: relative;
3261
+ width: 80px;
3262
+ height: 80px;
3263
+ }
3264
+
3265
+ .lds-ripple div {
3266
+ position: absolute;
3267
+ border: 4px solid var(--kemet-upload-file-ripple-color);
3268
+ opacity: 1;
3269
+ border-radius: 50%;
3270
+ animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
3271
+ }
3272
+
3273
+ .lds-ripple div:nth-child(2) {
3274
+ animation-delay: -0.5s;
3275
+ }
3276
+
3277
+ @keyframes lds-ripple {
3278
+ 0% {
3279
+ top: 36px;
3280
+ left: 36px;
3281
+ width: 0;
3282
+ height: 0;
3283
+ opacity: 0;
3284
+ }
3285
+ 4.9% {
3286
+ top: 36px;
3287
+ left: 36px;
3288
+ width: 0;
3289
+ height: 0;
3290
+ opacity: 0;
3291
+ }
3292
+ 5% {
3293
+ top: 36px;
3294
+ left: 36px;
3295
+ width: 0;
3296
+ height: 0;
3297
+ opacity: 1;
3298
+ }
3299
+ 100% {
3300
+ top: 0px;
3301
+ left: 0px;
3302
+ width: 72px;
3303
+ height: 72px;
3304
+ opacity: 0;
3305
+ }
3306
+ }
3307
+ `,Xt=(t,e=2)=>{if(0===t)return"0 Bytes";const s=e<0?0:e,i=Math.floor(Math.log(t)/Math.log(1024));return`${parseFloat((t/Math.pow(1024,i)).toFixed(s))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}`};customElements.get("kemet-upload-file")||customElements.define("kemet-upload-file",class extends Z{static get styles(){return[r`
3308
+ :host {
3309
+ --kemet-upload-file-ripple-color: var(--kemet-color-primary);
3310
+
3311
+ color: var(--kemet-upload-file-color, var(--kemet-color-gray7));
3312
+ display: grid;
3313
+ gap: 1rem;
3314
+ grid-template-columns: auto 1fr auto;
3315
+ align-items: center;
3316
+ padding: var(--kemet-upload-file-padding, 0.5rem 1rem);
3317
+ border: var(--kemet-upload-file-border, 1px solid var(--kemet-color-primary));
3318
+ }
3319
+
3320
+ :host([status='error']) {
3321
+ border: 1px solid var(--kemet-color-error);
3322
+ }
3323
+
3324
+ :host([status='complete']) {
3325
+ border: 1px solid var(--kemet-color-success);
3326
+ }
3327
+
3328
+ h3 {
3329
+ margin: 0;
3330
+ }
3331
+
3332
+ .percentage {
3333
+ font-size: clamp(2rem, 3vw, 2.5rem);
3334
+ align-self: center;
3335
+ justify-self: center;
3336
+ }
3337
+
3338
+ .indicator {
3339
+ transform: scale(0.8);
3340
+ }
3341
+
3342
+ :host([status='complete']) .message,
3343
+ :host([status='complete']) .indicator {
3344
+ color: var(--kemet-color-success);
3345
+ }
3346
+
3347
+ :host([status='error']) .message,
3348
+ :host([status='error']) .indicator {
3349
+ color: var(--kemet-color-error);
3350
+ }
3351
+ `,Ut]}static get properties(){return{name:{type:String},loaded:{type:Number},size:{type:Number},type:{type:String},status:{type:String,reflect:!0},percent:{type:Number},message:{type:String}}}constructor(){super(),this.loaded=0,this.size=0,this.percent=0}updated(){this.percent=this.calculatePercent()}render(){return I`
3352
+ <div class="percentage" part="percentage">
3353
+ <span>${this.percent}%</span>
3354
+ </div>
3355
+ <div>
3356
+ <h3 part="filename">${this.name}</h3>
3357
+ <span part="loaded">${Xt(this.loaded)} / ${Xt(this.size)}</span>
3358
+ ${this.message?I`<div class="message" part="message">${this.message}</div>`:null}
3359
+ </div>
3360
+ <div class="indicator" part="indicator">
3361
+ ${this.getStatusIcon()}
3362
+ </div>
3363
+ `}calculatePercent(){const t=Math.round(100*this.loaded/this.size);return t>100?100:t}getStatusIcon(){return"uploading"===this.status?I`<div class="lds-ripple"><div></div><div></div></div>`:"complete"===this.status?I`<kemet-icon icon="check-circle" size="48"></kemet-icon>`:"error"===this.status?I`<kemet-icon icon="exclamation-circle" size="48"></kemet-icon>`:null}});customElements.get("kemet-upload")||customElements.define("kemet-upload",class extends Z{static get styles(){return[r`
3364
+ :host {
3365
+ color: var(--kemet-upload-color, var(--kemet-color-white));
3366
+ display: grid;
3367
+ grid-template-columns: 1fr 1fr;
3368
+ height: var(--kemet-upload-height, 364px);
3369
+ border: var(--kemet-upload-border, 1rem solid var(--kemet-color-white));
3370
+ background-color: var(--kemet-upload-background-color, var(--kemet-color-primary));
3371
+ }
3372
+
3373
+ :host([mobile]) {
3374
+ display: block;
3375
+ height: auto;
3376
+ }
3377
+
3378
+ input {
3379
+ display: none;
3380
+ }
3381
+
3382
+ .button {
3383
+ cursor: pointer;
3384
+ font-size: 1rem;
3385
+ display: block;
3386
+ color: var(--kemet-color-white);
3387
+ padding: 0.5rem 1rem;
3388
+ border: 1px solid var(--kemet-color-white);
3389
+ background-color: transparent;
3390
+ }
3391
+
3392
+ .upload {
3393
+ display: flex;
3394
+ align-items: center;
3395
+ justify-content: center;
3396
+ margin: 1rem;
3397
+ flex-direction: column;
3398
+ border: 2px dashed var(--kemet-color-white);
3399
+ }
3400
+
3401
+ :host([over]) .upload {
3402
+ background-color: green;
3403
+ }
3404
+
3405
+ :host([mobile]) .upload {
3406
+ height: 280px;
3407
+ }
3408
+
3409
+ .files {
3410
+ display: flex;
3411
+ gap: 1rem;
3412
+ flex-direction: column;
3413
+ padding: 0 1rem;
3414
+ overflow: auto;
3415
+ background-color: var(--kemet-color-white);
3416
+ }
3417
+
3418
+ :host([mobile]) .files {
3419
+ padding: 0;
3420
+ max-height: 280px;
3421
+ }
3422
+
3423
+ .heading {
3424
+ font-size: 1.25rem;
3425
+ margin: 0 0 2rem 0;
3426
+ }
3427
+
3428
+ :host([no-drag-drop]) .heading {
3429
+ display: none;
3430
+ }
3431
+
3432
+ ::slotted(:first-child) {
3433
+ margin-top: 1rem;
3434
+ }
3435
+ `]}static get properties(){return{slug:{type:String},accept:{type:String},multiple:{type:Boolean},over:{type:Boolean,reflect:!0},heading:{type:String},mobile:{type:Boolean,reflect:!0},breakpoint:{type:String,reflect:!0},noDragDrop:{type:Boolean,reflect:!0,attribute:"no-drag-drop"},maxSize:{type:Number,attribute:"max-size"},buttonLabel:{type:String,attribute:"button-label"}}}constructor(){super(),this.slug="upload",this.breakpoint="600px",this.buttonLabel="Browse Files",this.heading="Drag & Drop Files"}firstUpdated(){this.fileInputElement=this.shadowRoot.querySelector('[type="file"]'),this.upload=this.shadowRoot.querySelector(".upload"),["dragenter","dragover","dragleave","drop"].forEach((t=>{this.upload.addEventListener(t,(t=>(t=>{t.preventDefault(),t.stopPropagation()})(t)),!1)})),["dragenter","dragover"].forEach((t=>{this.upload.addEventListener(t,(()=>{this.over=!0}),!1)})),["dragleave","drop"].forEach((t=>{this.upload.addEventListener(t,(()=>{this.over=!1}),!1)})),this.isMobile(),this.hasDragDrop(),window.addEventListener("resize",(()=>{this.isMobile()})),this.upload.addEventListener("drop",(t=>this.handleDrop(t)),!1)}render(){return I`
3436
+ <div class="upload" part="upload">
3437
+ <kemet-icon icon="cloud-arrow-up" size="128"></kemet-icon>
3438
+ <input
3439
+ type="file"
3440
+ id=${this.slug}
3441
+ ?multiple=${this.multiple}
3442
+ accept=${tt(this.accept)?this.accept:null}
3443
+ @change=${t=>this.handleChange(t)}
3444
+ />
3445
+ <h3 class="heading" part="heading">${this.heading}</h3>
3446
+ <label class="button" part="button" for=${this.slug}>${this.buttonLabel}</label>
3447
+ </div>
3448
+ <div class="files" part="files">
3449
+ <slot></slot>
3450
+ </div>
3451
+ `}handleChange(t){this.dispatchEvent(new CustomEvent("kemet-upload-change",{bubbles:!0,composed:!0,detail:{event:t,files:this.fileInputElement.files,fileElement:this.fileInputElement}}))}handleDrop(t){this.dispatchEvent(new CustomEvent("kemet-upload-change",{bubbles:!0,composed:!0,detail:{event:t,files:t?.dataTransfer.files||[],fileElement:this.fileInputElement}}))}isMobile(){const t=window.matchMedia(`(max-width: ${this.breakpoint})`);this.mobile=t.matches}hasDragDrop(){"draggable"in document.createElement("span")?this.noDragDrop=!1:this.noDragDrop=!0}});export{dt as KemetCarouselCurrent,ht as KemetCarouselFirst,ct as KemetCarouselLast,pt as KemetCarouselPrev,ut as KemetCarouselTotal,Lt as customTooltip,xt as fade,$t as fall,St as flipHorizontal,_t as flipVertical,wt as scale,Ct as sign,Et as slide,Mt as stylesKemetTabs,Ut as stylesLoaders,At as superScaled,zt as tooltip};