kemet-ui 1.0.0 → 1.2.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.
Files changed (77) hide show
  1. package/custom-elements.json +1605 -225
  2. package/dist/components/{kemet-accordion-panel.js → kemet-accordion/kemet-accordion-panel.js} +0 -0
  3. package/dist/components/{kemet-accordion.js → kemet-accordion/kemet-accordion.js} +0 -0
  4. package/dist/components/{kemet-badge.js → kemet-badge/kemet-badge.js} +0 -0
  5. package/dist/components/{kemet-button.js → kemet-button/kemet-button.js} +0 -0
  6. package/dist/components/kemet-carousel/kemet-carousel-current.js +36 -0
  7. package/dist/components/kemet-carousel/kemet-carousel-first.js +47 -0
  8. package/dist/components/kemet-carousel/kemet-carousel-last.js +47 -0
  9. package/dist/components/kemet-carousel/kemet-carousel-link.js +59 -0
  10. package/dist/components/kemet-carousel/kemet-carousel-next.js +47 -0
  11. package/dist/components/kemet-carousel/kemet-carousel-prev.js +47 -0
  12. package/dist/components/kemet-carousel/kemet-carousel-slide.js +51 -0
  13. package/dist/components/kemet-carousel/kemet-carousel-total.js +36 -0
  14. package/dist/components/kemet-carousel/kemet-carousel.js +492 -0
  15. package/dist/components/{kemet-checkbox.js → kemet-checkbox/kemet-checkbox.js} +0 -0
  16. package/dist/components/{kemet-combo.js → kemet-combo/kemet-combo.js} +0 -0
  17. package/dist/components/{kemet-count.js → kemet-count/kemet-count.js} +0 -0
  18. package/dist/components/{kemet-draggable.js → kemet-draggable/kemet-draggable.js} +0 -0
  19. package/dist/components/{kemet-drawer.js → kemet-drawer/kemet-drawer.js} +0 -0
  20. package/dist/components/{kemet-drawer.styles.js → kemet-drawer/kemet-drawer.styles.js} +0 -0
  21. package/dist/components/kemet-fab/kemet-fab.js +209 -0
  22. package/dist/components/{kemet-field.js → kemet-field/kemet-field.js} +0 -0
  23. package/dist/components/{kemet-flipcard-trigger.js → kemet-flipcard/kemet-flipcard-trigger.js} +0 -0
  24. package/dist/components/{kemet-flipcard.js → kemet-flipcard/kemet-flipcard.js} +0 -0
  25. package/dist/components/{kemet-icon.js → kemet-icon/kemet-icon.js} +0 -0
  26. package/dist/components/{kemet-input.js → kemet-input/kemet-input.js} +15 -4
  27. package/dist/components/{kemet-modal-close.js → kemet-modal/kemet-modal-close.js} +0 -0
  28. package/dist/components/{kemet-modal.js → kemet-modal/kemet-modal.js} +0 -0
  29. package/dist/components/{kemet-modal.styles.js → kemet-modal/kemet-modal.styles.js} +0 -0
  30. package/dist/components/kemet-password/kemet-password.js +278 -0
  31. package/dist/components/{kemet-popover-close.js → kemet-popover/kemet-popover-close.js} +0 -0
  32. package/dist/components/{kemet-popover.effects.styles.js → kemet-popover/kemet-popover.effects.styles.js} +0 -0
  33. package/dist/components/{kemet-popover.js → kemet-popover/kemet-popover.js} +0 -0
  34. package/dist/components/{kemet-popover.tooltip.styles.js → kemet-popover/kemet-popover.tooltip.styles.js} +0 -0
  35. package/dist/components/{kemet-radio.js → kemet-radio/kemet-radio.js} +0 -0
  36. package/dist/components/{kemet-radios.js → kemet-radio/kemet-radios.js} +0 -0
  37. package/dist/components/{kemet-rotator.js → kemet-rotator/kemet-rotator.js} +0 -0
  38. package/dist/components/{kemet-scroll-link.js → kemet-scroll-link/kemet-scroll-link.js} +0 -0
  39. package/dist/components/{kemet-scroll-nav.js → kemet-scroll-nav/kemet-scroll-nav.js} +0 -0
  40. package/dist/components/{kemet-scroll-snap-paginator.js → kemet-scroll-snap/kemet-scroll-snap-paginator.js} +0 -0
  41. package/dist/components/{kemet-scroll-snap-slide.js → kemet-scroll-snap/kemet-scroll-snap-slide.js} +0 -0
  42. package/dist/components/{kemet-scroll-snap.js → kemet-scroll-snap/kemet-scroll-snap.js} +0 -0
  43. package/dist/components/{kemet-option.js → kemet-select/kemet-option.js} +0 -0
  44. package/dist/components/{kemet-select.js → kemet-select/kemet-select.js} +0 -0
  45. package/dist/components/{kemet-svg.js → kemet-svgs/kemet-svg.js} +0 -0
  46. package/dist/components/{kemet-svgs.js → kemet-svgs/kemet-svgs.js} +0 -0
  47. package/dist/components/{kemet-tab-panel.js → kemet-tabs/kemet-tab-panel.js} +0 -0
  48. package/dist/components/{kemet-tab.js → kemet-tabs/kemet-tab.js} +0 -0
  49. package/dist/components/{kemet-tabs.js → kemet-tabs/kemet-tabs.js} +0 -0
  50. package/dist/components/{kemet-tabs.styles.js → kemet-tabs/kemet-tabs.styles.js} +0 -0
  51. package/dist/components/{kemet-textarea.js → kemet-textarea/kemet-textarea.js} +0 -0
  52. package/dist/components/{kemet-toggle.js → kemet-toggle/kemet-toggle.js} +0 -0
  53. package/dist/components/kemet-tracker/kemet-tracker-step.js +239 -0
  54. package/dist/components/kemet-tracker/kemet-tracker.js +76 -0
  55. package/dist/kemet-components.cjs +1809 -140
  56. package/dist/kemet-components.js +1805 -141
  57. package/dist/kemet-components.min.js +574 -87
  58. package/dist/styles/components/_config.scss +4 -0
  59. package/dist/styles/{scss/components → components}/accordion.scss +0 -0
  60. package/dist/styles/{scss/components → components}/drawer.scss +2 -2
  61. package/dist/styles/{scss/components → components}/modal.scss +0 -0
  62. package/dist/styles/{scss/components → components}/scrollsnap.scss +0 -0
  63. package/dist/styles/{scss/core → core}/_config.scss +22 -22
  64. package/dist/styles/{scss/core → core}/_helpers.scss +7 -3
  65. package/dist/styles/{scss/core → core}/attributes.scss +0 -0
  66. package/dist/styles/{scss/core → core}/base.scss +0 -0
  67. package/dist/styles/{scss/core → core}/layout.scss +0 -0
  68. package/dist/styles/kemet.components.css +1 -80
  69. package/dist/styles/kemet.components.css.map +1 -1
  70. package/dist/styles/{scss/kemet.components.scss → kemet.components.scss} +0 -1
  71. package/dist/styles/kemet.core.css +1 -1
  72. package/dist/styles/kemet.core.css.map +1 -1
  73. package/dist/styles/{scss/kemet.core.scss → kemet.core.scss} +0 -0
  74. package/dist/utilities/controllers/forms.js +123 -0
  75. package/package.json +5 -3
  76. package/dist/styles/scss/components/_config.scss +0 -4
  77. package/dist/styles/scss/components/carousel.scss +0 -64
@@ -8,19 +8,19 @@ 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,h=l?l.emptyScript:"",c=window.reactiveElementPolyfillSupport,d={toAttribute(t,e){switch(e){case Boolean:t=t?h: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:d,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:d.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:d.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),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){}}
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==c||c({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),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,A=/>/g,C=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,z=/'/g,B=/"/g,L=/^(?: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,U=w.createTreeWalker(w,129,null,!1),D=(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,h=-1,c=0;for(;c<s.length&&(n.lastIndex=c,l=n.exec(s),null!==l);)c=n.lastIndex,n===S?"!--"===l[1]?n=_:void 0!==l[1]?n=A:void 0!==l[2]?(L.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=C):void 0!==l[3]&&(n=C):n===C?">"===l[0]?(n=null!=o?o:S,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?C:'"'===l[3]?B:z):n===B||n===z?n=C:n===_||n===A?n=S:(n=C,o=void 0);const d=n===C&&t[e+1].startsWith("/>")?" ":"";r+=n===S?s+y:h>=0?(i.push(a),s.slice(0,h)+"$lit$"+s.slice(h)+b+d):s+b+(-2===h?(i.push(void 0),e):d)}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 X{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=D(t,e);if(this.el=X.createElement(l,s),U.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=U.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=h[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]?M:"?"===e[1]?V:"@"===e[1]?F:Y})}else a.push({type:6,index:o})}for(const e of t)i.removeAttribute(e)}if(L.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()),U.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 q(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 h=$(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(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=q(t,l._$AS(t,e.values),l,i)),e}class R{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);U.currentNode=o;let r=U.nextNode(),n=0,a=0,l=i[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new H(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new K(r,this,t)),this.v.push(e),l=i[++a]}n!==(null==l?void 0:l.index)&&(r=U.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 H{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=q(this,t,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 E(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&&$(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=X.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 R(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 X(t)),e}S(t){E(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 H(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 Y{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=q(this,t,e,0),r=!$(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=q(this,i[s+n],e,n),a===I&&(a=this._$AH[n]),r||(r=!$(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 M extends Y{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===O?void 0:t}}const N=g?g.emptyScript:"";class V extends Y{constructor(){super(...arguments),this.type=4}C(t){t&&t!==O?this.element.setAttribute(this.name,N):this.element.removeAttribute(this.name)}}class F extends Y{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=q(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 K{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){q(this,t)}}const j=window.litHtmlPolyfillSupport;
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;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- var Z,W;null==j||j(X,H),(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 H(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===(Z=globalThis.litElementHydrateSupport)||void 0===Z||Z.call(globalThis,{LitElement:G});const J=globalThis.litElementPolyfillSupport;null==J||J({LitElement:G}),(null!==(W=globalThis.litElementVersions)&&void 0!==W?W: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,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`
24
24
  :host {
25
25
  display: inline-flex;
26
26
  align-items: center;
@@ -76,7 +76,44 @@ var Z,W;null==j||j(X,H),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
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}))}});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.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 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`
80
117
  :host {
81
118
  cursor: pointer;
82
119
  display: inline-flex;
@@ -157,60 +194,194 @@ var Z,W;null==j||j(X,H),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:glo
157
194
  <slot></slot>
158
195
  <slot name="right"></slot>
159
196
  </button>
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 G{static get styles(){return[r`
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`
161
198
  :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);
199
+ display: inline-block;
200
+ }
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`
202
+ :host {
203
+ cursor: pointer;
168
204
  }
169
205
 
170
- :host([status='primary']) {
171
- background-color: var(--kemet-color-primary);
206
+ :host([disabled]) {
207
+ cursor: not-allowed;
208
+ }
209
+ `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return P`
210
+ <span tabindex="0" @keyup=${()=>this.first()} @click=${()=>this.first()}>
211
+ <slot></slot>
212
+ </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`
214
+ :host {
215
+ cursor: pointer;
172
216
  }
173
217
 
174
- :host([status='success']) {
175
- background-color: var(--kemet-color-success);
218
+ :host([disabled]) {
219
+ cursor: not-allowed;
220
+ }
221
+ `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return P`
222
+ <span tabindex="0" @keyup=${()=>this.last()} @click=${()=>this.last()}>
223
+ <slot></slot>
224
+ </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`
226
+ :host([selected]) {
227
+ color: var(--kemet-carousel-link-selected-color, var(--kemet-color-primary));
176
228
  }
177
229
 
178
- :host([status='standard']) {
179
- background-color: var(--kemet-color-gray6);
230
+ :host(:not([selected])) {
231
+ cursor: pointer;
180
232
  }
181
233
 
182
- :host([status='warning']) {
183
- background-color: var(--kemet-color-warning);
234
+ :host([disabled]) {
235
+ cursor: not-allowed;
236
+ }
237
+ `]}render(){return P`
238
+ <span tabindex="0" @keyup=${()=>this.changed()} @click=${()=>this.changed()}>
239
+ <slot></slot>
240
+ </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`
242
+ :host {
243
+ cursor: pointer;
184
244
  }
185
245
 
186
- :host([status='error']) {
187
- background-color: var(--kemet-color-error);
246
+ :host([disabled]) {
247
+ cursor: not-allowed;
248
+ }
249
+ `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return P`
250
+ <span tabindex="0" @keyup=${()=>this.next()} @click=${()=>this.next()}>
251
+ <slot></slot>
252
+ </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`
254
+ :host {
255
+ cursor: pointer;
188
256
  }
189
257
 
190
- :host([circle]) {
191
- border-radius: 50%;
258
+ :host([disabled]) {
259
+ cursor: not-allowed;
260
+ }
261
+ `]}static get properties(){return{disabled:{type:Boolean,reflect:!0}}}render(){return P`
262
+ <span tabindex="0" @keyup=${()=>this.prev()} @click=${()=>this.prev()}>
263
+ <slot></slot>
264
+ </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`
266
+ :host,
267
+ :host *,
268
+ :host *::before,
269
+ *::after {
270
+ box-sizing: border-box;
192
271
  }
193
272
 
194
- :host([pill]) {
195
- border-radius: 99rem;
273
+ :host {
274
+ flex: 0 0 auto;
196
275
  }
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 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`)}});
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`
277
+ <slot></slot>
278
+ `}});class ot extends G{static get styles(){return[r`
279
+ :host {
280
+ display: inline-block;
281
+ }
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`
283
+ :host,
284
+ *,
285
+ *::before,
286
+ *::after {
287
+ box-sizing: border-box;
288
+ }
289
+
290
+ :host {
291
+ position: relative;
292
+ display: grid;
293
+ grid-template-columns: minmax(0, 1fr);
294
+ align-items: center;
295
+ width: var(--kemet-carousel-width, 100%);
296
+ height: var(--kemet-carousel-height, auto);
297
+ overflow: visible;
298
+ }
299
+
300
+ :host([arrows]) {
301
+ grid-template-columns: auto minmax(0, 1fr) auto;
302
+ }
303
+
304
+ .toolbar {
305
+ display: flex;
306
+ gap: var(--kemet-carousel-toolbar-gap, 1rem);
307
+ align-items: center;
308
+ justify-content: var(--kemet-carousel-toolbar-justify-content, center);
309
+ line-height: 1;
310
+ padding: var(--kemet-carousel-toolbar-padding, 1rem);
311
+ }
312
+
313
+ :host([inner]) .toolbar {
314
+ width: var(--kemet-carousel-toolbar-inner-width, 100%);
315
+ position: absolute;
316
+ bottom: var(--kemet-carousel-toolbar-inner-bottom, 0);
317
+ top: var(--kemet-carousel-toolbar-inner-top, auto);
318
+ color: var(--kemet-carousel-toolbar-inner-color, var(--kemet-color-white));
319
+ background-color: var(--kemet-carousel-toolbar-inner-background-color, rgba(0, 0, 0, 0.4));
320
+ }
321
+
322
+ .slides {
323
+ overflow: hidden;
324
+ position: relative;
325
+ padding: 1rem 0;
326
+ border: var(--kemet-carousel-slides-border, 1px solid var(--kemet-color-gray1));
327
+ }
328
+
329
+ .slider {
330
+ display: flex;
331
+ flex-wrap: nowrap;
332
+ transition: transform var(--kemet-carousel-transition-speed, 300ms) ease;
333
+ }
334
+
335
+ ::slotted([slot='next']),
336
+ ::slotted([slot='prev']) {
337
+ opacity: var(--kemet-carousel-arrows-opacity, 0.25);
338
+ transition: opacity var(--kemet-carousel-arrows-transition-speed, 300ms) ease-in-out;
339
+ }
340
+
341
+ :host(:hover) ::slotted([slot='next']),
342
+ :host(:hover) ::slotted([slot='prev']) {
343
+ opacity: var(--kemet-carousel-arrows-opacity-hover, 1);
344
+ }
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`
346
+ <slot name="prev" @slotchange=${this.handleArrows}></slot>
347
+ <div class="container" part="container">
348
+ <section
349
+ class="slides"
350
+ part="slides"
351
+ @mousedown=${this.swipeStart}
352
+ @mouseup=${this.swipeEnd}
353
+ @touchstart=${this.swipeStart}
354
+ @touchend=${this.swipeEnd}
355
+ @mouseleave=${this.swipeLeave}
356
+ >
357
+ <div class="slider" part="slider" style="width:${this.sliderWidth}; transform:translateX(${this.sliderTranslateX});">
358
+ <slot name="slides" @slotchange="${this.handleSlotChange}"></slot>
359
+ </div>
360
+ </section>
361
+ ${this.makeToolbar()}
362
+ </div>
363
+ <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`
365
+ <section class="toolbar" part="toolbar">
366
+ <slot name="toolbar"></slot>
367
+ </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}});
198
369
  /**
199
370
  * @license
200
371
  * Copyright 2018 Google LLC
201
372
  * SPDX-License-Identifier: BSD-3-Clause
202
373
  */
203
- const tt=t=>null!=t?t:O
374
+ const rt=t=>null!=t?t:O
204
375
  /**
205
376
  * @license
206
377
  * Copyright 2017 Google LLC
207
378
  * 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)}}
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)}}
209
380
  /**
210
381
  * @license
211
382
  * Copyright 2020 Google LLC
212
383
  * 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===I||e===O)return e;const s=t.element,i=t.name;if(t.type===it){if(e===s[i])return I}else if(t.type===ot){if(!!e===s.hasAttribute(i))return I}else if(t.type===et&&s.getAttribute(i)===e+"")return I;return((t,e=at)=>{t._$AH=e;
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;
214
385
  /**
215
386
  * @license
216
387
  * Copyright 2020 Google LLC
@@ -299,10 +470,10 @@ const tt=t=>null!=t?t:O
299
470
  <label part="label">
300
471
  <input
301
472
  type="checkbox"
302
- name=${tt(this.name)}
473
+ name=${rt(this.name)}
303
474
  .value=${this.value}
304
- .indeterminate=${lt(this.indeterminate)}
305
- .checked=${lt(this.checked)}
475
+ .indeterminate=${mt(this.indeterminate)}
476
+ .checked=${mt(this.checked)}
306
477
  .disabled=${this.disabled}
307
478
  .required=${this.required}
308
479
  aria-checked=${this.checked?"true":"false"}
@@ -423,7 +594,7 @@ const tt=t=>null!=t?t:O
423
594
  <div id="draggable" @mousedown=${t=>this.startDrag(t)} style="top:${this.top}; left:${this.left}">
424
595
  <slot></slot>
425
596
  </div>
426
- `}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 ht=`${document.documentElement.scrollHeight}px`,ct=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 ut=`${document.documentElement.scrollHeight}px`,ft=r`
427
598
  *,
428
599
  *::before,
429
600
  *::after {
@@ -520,7 +691,7 @@ const tt=t=>null!=t?t:O
520
691
  color: var(--kemet-drawer-color, #fafafa);
521
692
  background: var(--kemet-drawer-background-color, #202020);
522
693
  }
523
- `,dt=r`
694
+ `,gt=r`
524
695
  /* slide */
525
696
  :host([effect='slide']) .off-canvas__nav {
526
697
  visibility: visible;
@@ -557,7 +728,7 @@ const tt=t=>null!=t?t:O
557
728
  :host([effect='slide'][side='bottom']) .off-canvas__nav {
558
729
  width: 100vw;
559
730
  height: var(--kemet-drawer-height, 100vh);
560
- transform: translate3d(0, ${o(ht)}, 0);
731
+ transform: translate3d(0, ${o(ut)}, 0);
561
732
  }
562
733
 
563
734
  :host([effect='slide'][side='bottom'][opened]) .off-canvas__nav {
@@ -611,7 +782,7 @@ const tt=t=>null!=t?t:O
611
782
  :host([effect='reveal'][side='bottom']) .off-canvas__nav {
612
783
  width: 100vw;
613
784
  height: var(--kemet-drawer-height, 100vh);
614
- transform: translate3d(0, ${o(ht)}, 0);
785
+ transform: translate3d(0, ${o(ut)}, 0);
615
786
  }
616
787
 
617
788
  :host([effect='reveal'][side='bottom'][opened]) .off-canvas__nav {
@@ -670,7 +841,7 @@ const tt=t=>null!=t?t:O
670
841
  :host([effect='push'][side='bottom']) .off-canvas__nav {
671
842
  width: 100vw;
672
843
  height: var(--kemet-drawer-height, 100vh);
673
- transform: translate3d(0, ${o(ht)}, 0);
844
+ transform: translate3d(0, ${o(ut)}, 0);
674
845
  }
675
846
 
676
847
  :host([effect='push'][side='bottom'][opened]) .off-canvas__nav {
@@ -726,13 +897,13 @@ const tt=t=>null!=t?t:O
726
897
  :host([effect='scale'][side='bottom']) .off-canvas__nav {
727
898
  width: 100vw;
728
899
  height: var(--kemet-drawer-height, 100vh);
729
- transform: translate3d(0, ${o(ht)}, 0);
900
+ transform: translate3d(0, ${o(ut)}, 0);
730
901
  }
731
902
 
732
903
  :host([effect='scale'][side='bottom'][opened]) .off-canvas__nav {
733
904
  transform: translate3d(0, calc(100vh - var(--kemet-drawer-height, 100vh)), 0);
734
905
  }
735
- `;customElements.get("kemet-drawer")||customElements.define("kemet-drawer",class extends G{static get styles(){return[ct,dt]}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 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`
736
907
  <section class="off-canvas" part="container">
737
908
  <nav class="off-canvas__nav" part="drawer" title="Drawer">
738
909
  <slot name="navigation"></slot>
@@ -745,7 +916,108 @@ const tt=t=>null!=t?t:O
745
916
  </main>
746
917
  </div>
747
918
  </section>
748
- `}});customElements.get("kemet-field")||customElements.define("kemet-field",class extends G{static get styles(){return[r`
919
+ `}});customElements.get("kemet-fab")||customElements.define("kemet-fab",class extends G{static get styles(){return[r`
920
+ :host {
921
+ --kemet-fab-size: 50px;
922
+
923
+ display: inline-block;
924
+ position: relative;
925
+ }
926
+
927
+ button {
928
+ color: var(--kemet-fab-color, var(--kemet-color-white));
929
+ font-size: inherit;
930
+ display: inline-flex;
931
+ padding: 0;
932
+ position: relative;
933
+ min-height: var(--kemet-fab-size);
934
+ min-width: var(--kemet-fab-size);
935
+ max-width: var(--kemet-fab-size);
936
+ align-items: center;
937
+ justify-content: flex-start;
938
+ transition: all 0.4s ease;
939
+ border: none;
940
+ background-color: var(--kemet-fab-background-color, var(--kemet-color-primary));
941
+ }
942
+
943
+ :host([outlined]) button {
944
+ color: var(--kemet-fab-outlined-color, var(--kemet-color-primary));
945
+ border: var(--kemet-fab-outlined-border, 1px solid var(--kemet-color-primary));
946
+ background-color: transparent;
947
+ }
948
+
949
+ :host([pill]) button {
950
+ border-radius: var(--kemet-fab-pill-radius, 10rem);
951
+ }
952
+
953
+ button::before {
954
+ content: '';
955
+ position: absolute;
956
+ top: 0;
957
+ left: 0;
958
+ right: 0;
959
+ bottom: 0;
960
+ z-index: -1;
961
+ width: 100%;
962
+ height: 100%;
963
+ transition: background-color 0.3s ease-in-out;
964
+ background-color: var(--kemet-fab-background-color, var(--kemet-color-primary));
965
+ }
966
+
967
+ :host([pill]) button::before {
968
+ border-radius: var(--kemet-fab-pill-radius, 10rem);
969
+ }
970
+
971
+ :host([outlined]) button::before {
972
+ border: var(--kemet-fab-outline-border, 1px solid var(--kemet-color-primary));
973
+ background-color: transparent;
974
+ }
975
+
976
+ :host([expanded]) button {
977
+ max-width: 99rem;
978
+ padding: 0 1.35rem 0 0.25rem;
979
+ }
980
+
981
+ :host([disabled]) button {
982
+ opacity: 0.5;
983
+ cursor: not-allowed;
984
+ }
985
+
986
+ .icon {
987
+ width: var(--kemet-fab-size);
988
+ height: var(--kemet-fab-size);
989
+ display: flex;
990
+ flex: 0 0 auto;
991
+ align-items: center;
992
+ justify-content: center;
993
+ }
994
+
995
+ .text {
996
+ color: var(--kemet-fab-color, var(--kemet-color-white));
997
+ z-index: 1;
998
+ white-space: nowrap;
999
+ pointer-events: none;
1000
+ opacity: 0;
1001
+ transition: opacity 0.2s ease-in-out;
1002
+ }
1003
+
1004
+ :host([outlined]) .text {
1005
+ color: var(--kemet-fab-outlined-color, var(--kemet-color-primary));
1006
+ }
1007
+
1008
+ :host([expanded]) .text {
1009
+ opacity: 1;
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`
1012
+ <button class="button" part="button" ?disabled=${this.disabled} aria-disabled=${this.disabled?"true":"false"}>
1013
+ <span class="icon" part="icon">
1014
+ <slot name="icon"></slot>
1015
+ </span>
1016
+ <span class="text" part="text">
1017
+ <slot></slot>
1018
+ </span>
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`
749
1021
  *,
750
1022
  *::before,
751
1023
  *::after {
@@ -1023,32 +1295,32 @@ const tt=t=>null!=t?t:O
1023
1295
  :host([status='success']) kemet-icon {
1024
1296
  color: var(--kemet-color-success);
1025
1297
  }
1026
- `]}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}}}constructor(){super(),this.name="input",this.type="text",this.value="",this.status="standard",this.iconSize=20,this.validateOnBlur=!1,this.isPasswordVisible=!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"}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 P`
1027
1299
  <div>
1028
1300
  ${this.makeIconLeft()}
1029
1301
  <input
1030
1302
  part="input"
1031
1303
  id=${this.slug}
1032
1304
  name=${this.name}
1033
- placeholder=${tt(this.placeholder)}
1034
- minlength=${tt(this.minlength)}
1035
- maxlength=${tt(this.maxlength)}
1036
- min=${tt(this.min)}
1037
- max=${tt(this.max)}
1038
- step=${tt(this.step)}
1039
- autocomplete=${tt(this.autocomplete)}
1040
- aria-autocomplete=${tt(this.ariaAutoComplete)}
1041
- aria-controls=${tt(this.ariaControls)}
1042
- aria-activedescendant=${tt(this.ariaActiveDescendant)}
1043
- pattern=${tt(this.pattern)}
1044
- inputmode=${tt(this.inputmode)}
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)}
1045
1317
  aria-invalid=${this.invalid?"true":"false"}
1046
1318
  ?autofocus=${this.autofocus}
1047
1319
  ?disabled=${this.disabled}
1048
1320
  ?readonly=${this.readonly}
1049
1321
  ?required=${this.required}
1050
1322
  .type="${"password"===this.type&&this.isPasswordVisible?"text":this.type}"
1051
- .value=${lt(this.value)}
1323
+ .value=${mt(this.value)}
1052
1324
  @change=${this.handleChange}
1053
1325
  @input=${this.handleInput}
1054
1326
  @invalid=${this.handleInvalid}
@@ -1067,7 +1339,7 @@ const tt=t=>null!=t?t:O
1067
1339
  class="eye right"
1068
1340
  icon="${this.setPasswordIcon()}"
1069
1341
  @click=${()=>this.togglePasswordVisibility()}
1070
- ></kemet-icon>`:null}setPasswordIcon(){return this.isPasswordVisible?"eye":"eye-slash"}handleFocus(){this.hasFocus=!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.hasFocus=!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(t){this.inputType=t.inputType,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 G{static get styles(){return[r`
1071
1343
  :host {
1072
1344
  position: absolute;
1073
1345
  top: -0.5rem;
@@ -1078,7 +1350,7 @@ const tt=t=>null!=t?t:O
1078
1350
  }
1079
1351
  `]}render(){return P`
1080
1352
  <slot @keyup=${()=>this.close()} @click=${()=>this.close()}></slot>
1081
- `}close(){this.dispatchEvent(new CustomEvent("kemet-modal-close-pressed",{bubbles:!0,composed:!0,detail:this}))}});const pt=r`
1353
+ `}close(){this.dispatchEvent(new CustomEvent("kemet-modal-close-pressed",{bubbles:!0,composed:!0,detail:this}))}});const vt=r`
1082
1354
  *,
1083
1355
  *::before,
1084
1356
  *::after {
@@ -1132,7 +1404,7 @@ const tt=t=>null!=t?t:O
1132
1404
  opacity: 1;
1133
1405
  visibility: visible;
1134
1406
  }
1135
- `,mt=r`
1407
+ `,bt=r`
1136
1408
  /* fadein-scaleup */
1137
1409
  :host([effect="fadein-scaleup"]) .content {
1138
1410
  transform: scale(0.7);
@@ -1340,12 +1612,104 @@ const tt=t=>null!=t?t:O
1340
1612
  transform: translateZ(0px) translateX(0%) rotateY(0deg);
1341
1613
  opacity: 1;
1342
1614
  }
1343
- `;customElements.get("kemet-modal")||customElements.define("kemet-modal",class extends G{static get styles(){return[pt,mt]}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 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`
1344
1616
  <div class="content" part="content">
1345
1617
  <slot></slot>
1346
1618
  </div>
1347
1619
  <div class="overlay" part="overlay"></div>
1348
- `}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()))}});const ut=13,ft=32;window.customElements.define("kemet-popover-close",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 G{static get styles(){return[r`
1621
+ :host {
1622
+ color: inherit;
1623
+ display: none;
1624
+ }
1625
+
1626
+ :host([show]) {
1627
+ display: block;
1628
+ }
1629
+
1630
+ p {
1631
+ margin: 1.6rem 0;
1632
+ }
1633
+
1634
+ .status {
1635
+ display: grid;
1636
+ align-items: center;
1637
+ grid-template-columns: 1fr auto;
1638
+ line-height: 1;
1639
+ margin-top: 0.8rem;
1640
+ }
1641
+
1642
+ .status > span {
1643
+ text-transform: capitalize;
1644
+ }
1645
+
1646
+ .status--weak,
1647
+ .status--better {
1648
+ color: var(--kemet-color-error);
1649
+ }
1650
+
1651
+ .status--strong {
1652
+ color: var(--kemet-color-success);
1653
+ }
1654
+
1655
+ .indicator {
1656
+ display: flex;
1657
+ gap: 0.4rem;
1658
+ margin: 0;
1659
+ list-style: none;
1660
+ }
1661
+
1662
+ .indicator li {
1663
+ width: 1.6rem;
1664
+ height: 0.2rem;
1665
+ background-color: var(--fds-color--gray2);
1666
+ }
1667
+
1668
+ .status--weak .indicator li:nth-child(1) {
1669
+ background-color: var(--kemet-color-error);
1670
+ }
1671
+
1672
+ .status--better .indicator li:nth-child(1),
1673
+ .status--better .indicator li:nth-child(2) {
1674
+ background-color: var(--kemet-color-error);
1675
+ }
1676
+
1677
+ .status--strong .indicator li {
1678
+ background-color: var(--kemet-color-success);
1679
+ }
1680
+
1681
+ .rules {
1682
+ color: var(--kemet-color-primary);
1683
+ list-style: none;
1684
+ font-size: 90%;
1685
+ padding-left: 2rem;
1686
+ }
1687
+
1688
+ .rules li {
1689
+ position: relative;
1690
+ }
1691
+
1692
+ .rules kemet-icon {
1693
+ color: var(--kemet-color-success);
1694
+ position: absolute;
1695
+ left: -2.4rem;
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`
1698
+ <div role="alert" aria-live="assertive">
1699
+ <div class="status status--${this.strength}" part="status">
1700
+ <span>${this.strength}</span>
1701
+ <ul class="indicator" part="indicator">
1702
+ <li></li>
1703
+ <li></li>
1704
+ <li></li>
1705
+ </ul>
1706
+ </div>
1707
+ <p class="message" part="message">${this.message}</p>
1708
+ <ul class="rules" part="rules">
1709
+ ${this.makeRules()}
1710
+ </ul>
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`
1349
1713
  button {
1350
1714
  font: inherit;
1351
1715
  color: inherit;
@@ -1357,7 +1721,7 @@ const tt=t=>null!=t?t:O
1357
1721
  <button @click=${()=>this.close()} @keyup=${t=>this.handleKeyboard(t)}>
1358
1722
  <slot></slot>
1359
1723
  </button>
1360
- `}close(){this.dispatchEvent(new CustomEvent("kemet-popover-close-btn",{bubbles:!0,composed:!0,detail:this}))}handleKeyboard(t){t.preventDefault(),t.keyCode!==ft&&t.keyCode!==ut||this.close()}});const gt=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 wt=r`
1361
1725
  :host([effect="fade"]) #content {
1362
1726
  opacity: 0;
1363
1727
  transition: all var(--kemet-popover-transition-speed, 0.3s);
@@ -1366,7 +1730,7 @@ const tt=t=>null!=t?t:O
1366
1730
  :host([effect="fade"][opened]) #content {
1367
1731
  opacity: 1;
1368
1732
  }
1369
- `,vt=r`
1733
+ `,xt=r`
1370
1734
  :host([effect="scale"]) #content {
1371
1735
  opacity: 0;
1372
1736
  transition: all var(--kemet-popover-transition-speed, 0.3s);
@@ -1395,7 +1759,7 @@ const tt=t=>null!=t?t:O
1395
1759
  :host([effect="scale"][position="right"][opened]) #content {
1396
1760
  transform: translateY(-50%) scale(1);
1397
1761
  }
1398
- `,bt=r`
1762
+ `,Et=r`
1399
1763
  :host([effect="slide"]) #content {
1400
1764
  opacity: 0;
1401
1765
  transition: all var(--kemet-popover-transition-speed, 0.3s) cubic-bezier(0.25, 0.5, 0.5, 0.9);
@@ -1436,7 +1800,7 @@ const tt=t=>null!=t?t:O
1436
1800
  :host([effect="slide"][position="left"][opened]) #content {
1437
1801
  transform: translateY(-50%) translateX(0);
1438
1802
  }
1439
- `,kt=r`
1803
+ `,$t=r`
1440
1804
  :host([effect="fall"]) {
1441
1805
  perspective: 1300px;
1442
1806
  }
@@ -1482,7 +1846,7 @@ const tt=t=>null!=t?t:O
1482
1846
  :host([effect="fall"][position="left"][opened]) #content {
1483
1847
  transform: translateY(-50%) translateZ(0px) rotateX(0deg);
1484
1848
  }
1485
- `,yt=r`
1849
+ `,St=r`
1486
1850
  :host([effect="flip-horizontal"]) {
1487
1851
  perspective: 1300px;
1488
1852
  }
@@ -1528,7 +1892,7 @@ const tt=t=>null!=t?t:O
1528
1892
  :host([effect="flip-horizontal"][position="left"][opened]) #content {
1529
1893
  transform: translateY(-50%) rotateY(0deg);
1530
1894
  }
1531
- `,wt=r`
1895
+ `,_t=r`
1532
1896
  :host([effect="flip-vertical"]) {
1533
1897
  perspective: 1300px;
1534
1898
  }
@@ -1574,7 +1938,7 @@ const tt=t=>null!=t?t:O
1574
1938
  :host([effect="flip-vertical"][position="left"][opened]) #content {
1575
1939
  transform: translateY(-50%) rotateX(0deg);
1576
1940
  }
1577
- `,xt=r`
1941
+ `,Ct=r`
1578
1942
  :host([effect="sign"]) {
1579
1943
  perspective: 1300px;
1580
1944
  }
@@ -1624,7 +1988,7 @@ const tt=t=>null!=t?t:O
1624
1988
  :host([effect="sign"][position="left"][opened]) #content {
1625
1989
  transform: translateY(-50%) rotateY(0deg);
1626
1990
  }
1627
- `,$t=r`
1991
+ `,At=r`
1628
1992
  :host([effect="super-scaled"]) #content {
1629
1993
  opacity: 0;
1630
1994
  transition: all var(--kemet-popover-transition-speed, 0.3s);
@@ -1653,7 +2017,7 @@ const tt=t=>null!=t?t:O
1653
2017
  :host([effect="super-scaled"][position="right"][opened]) #content {
1654
2018
  transform: translateY(-50%) scale(1);
1655
2019
  }
1656
- `,Et=r`
2020
+ `,zt=r`
1657
2021
  #tooltip {
1658
2022
  display: flex;
1659
2023
  position: absolute;
@@ -1708,7 +2072,7 @@ const tt=t=>null!=t?t:O
1708
2072
  transform: rotate(270deg);
1709
2073
  right: 8px;
1710
2074
  }
1711
- `,St=r`
2075
+ `,Lt=r`
1712
2076
  #custom-tooltip {
1713
2077
  display: flex;
1714
2078
  position: absolute;
@@ -1744,7 +2108,7 @@ const tt=t=>null!=t?t:O
1744
2108
  ::slotted([slot="custom-tooltip"]) {
1745
2109
  display: flex;
1746
2110
  }
1747
- `,_t=13,At=32,Ct=27;customElements.get("kemet-popover")||customElements.define("kemet-popover",class extends G{static get styles(){return[r`
2111
+ `,Bt=13,Pt=32,It=27;customElements.get("kemet-popover")||customElements.define("kemet-popover",class extends G{static get styles(){return[r`
1748
2112
  :host {
1749
2113
  display: inline-block;
1750
2114
  position: relative;
@@ -1829,7 +2193,7 @@ const tt=t=>null!=t?t:O
1829
2193
  height: 100%;
1830
2194
  min-height: 100vh;
1831
2195
  }
1832
- `,Et,St,gt,vt,bt,kt,yt,wt,xt,$t]}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,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`
1833
2197
  <div
1834
2198
  id="trigger"
1835
2199
  part="trigger"
@@ -1847,7 +2211,7 @@ const tt=t=>null!=t?t:O
1847
2211
  </div>
1848
2212
  </div>
1849
2213
  ${this.makeOverlay()}
1850
- `}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===Ct&&this.close(),t.keyCode!==_t&&t.keyCode!==At||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===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`
1851
2215
  <div id="custom-tooltip" part="custom-tooltip">
1852
2216
  <slot name="custom-tooltip"></slot>
1853
2217
  </div>
@@ -1922,9 +2286,9 @@ const tt=t=>null!=t?t:O
1922
2286
  <label part="label">
1923
2287
  <input
1924
2288
  type="radio"
1925
- name=${tt(this.name)}
2289
+ name=${rt(this.name)}
1926
2290
  .value=${this.value}
1927
- .checked=${lt(this.checked)}
2291
+ .checked=${mt(this.checked)}
1928
2292
  .disabled=${this.disabled}
1929
2293
  @blur=${()=>this.handleBlur()}
1930
2294
  @focus=${()=>this.handleFocus()}
@@ -1985,7 +2349,7 @@ const tt=t=>null!=t?t:O
1985
2349
  * Copyright 2017 Google LLC
1986
2350
  * SPDX-License-Identifier: BSD-3-Clause
1987
2351
  */
1988
- class zt extends nt{constructor(t){if(super(t),this.it=O,t.type!==st)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:[]}}}zt.directiveName="unsafeHTML",zt.resultType=1;const Bt=rt(zt);customElements.get("kemet-rotator")||customElements.define("kemet-rotator",class extends G{static get styles(){return r`
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`
1989
2353
  :host {
1990
2354
  display: flex;
1991
2355
  }
@@ -2060,7 +2424,7 @@ class zt extends nt{constructor(t){if(super(t),this.it=O,t.type!==st)throw Error
2060
2424
  </span>
2061
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`
2062
2426
  <span class="rotator__slide ${s} ${i}">
2063
- ${Bt(t)}
2427
+ ${Tt(t)}
2064
2428
  </span>
2065
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`
2066
2430
  :host {
@@ -2348,7 +2712,7 @@ class zt extends nt{constructor(t){if(super(t),this.it=O,t.type!==st)throw Error
2348
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`
2349
2713
  <slot></slot>
2350
2714
  ${this.makeCloseable()}
2351
- `}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 Lt=r`
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`
2352
2716
  :host {
2353
2717
  --kemet-tabs-ink-size: 6px;
2354
2718
  --kemet-tabs-ink-radius: 6px;
@@ -2545,7 +2909,7 @@ class zt extends nt{constructor(t){if(super(t),this.it=O,t.type!==st)throw Error
2545
2909
  top: auto;
2546
2910
  bottom: 1rem;
2547
2911
  }
2548
- `;customElements.get("kemet-tabs")||customElements.define("kemet-tabs",class extends G{static get styles(){return[Lt]}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`
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`
2549
2913
  ${this.makeLeftArrow()}
2550
2914
  ${this.makeRightArrow()}
2551
2915
  <div id="links" part="links">
@@ -2630,18 +2994,18 @@ class zt extends nt{constructor(t){if(super(t),this.it=O,t.type!==st)throw Error
2630
2994
  part="textarea"
2631
2995
  id=${this.slug}
2632
2996
  name=${this.name}
2633
- .value=${lt(this.value)}
2997
+ .value=${mt(this.value)}
2634
2998
  ?disabled=${this.disabled}
2635
2999
  ?readonly=${this.readonly}
2636
3000
  ?required=${this.required}
2637
- placeholder=${tt(this.placeholder)}
2638
- rows=${tt(this.rows)}
2639
- minlength=${tt(this.minlength)}
2640
- maxlength=${tt(this.maxlength)}
2641
- autocorrect=${tt(this.autocorrect)}
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)}
2642
3006
  ?autofocus=${this.autofocus}
2643
- spellcheck=${tt(this.spellcheck)}
2644
- inputmode=${tt(this.inputmode)}
3007
+ spellcheck=${rt(this.spellcheck)}
3008
+ inputmode=${rt(this.inputmode)}
2645
3009
  @change=${this.handleChange}
2646
3010
  @input=${this.handleInput}
2647
3011
  @focus=${this.handleFocus}
@@ -2749,4 +3113,127 @@ class zt extends nt{constructor(t){if(super(t),this.it=O,t.type!==st)throw Error
2749
3113
  ${this.makeCheckedOption()}
2750
3114
  <span part="text">${this.label}</span>
2751
3115
  </label>
2752
- `}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}});export{St as customTooltip,gt as fade,kt as fall,yt as flipHorizontal,wt as flipVertical,vt as scale,xt as sign,bt as slide,Lt as stylesKemetTabs,$t as superScaled,Et as tooltip};
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`
3117
+ :host {
3118
+ --kemet-tracker-step-dot-size: 50px;
3119
+ --kemet-tracker-step-dot-size-mobile: 25px;
3120
+ --kemet-tracker-step-dot-gap: 4px;
3121
+ --kemet-tracker-step-standard-line-weight: 1px;
3122
+ --kemet-tracker-step-completed-line-weight: 3px;
3123
+ --kemet-tracker-step-dot-transition: all 300ms ease-in-out;
3124
+
3125
+ position: relative;
3126
+ width: 100%;
3127
+ text-align: center;
3128
+ }
3129
+
3130
+ .dot {
3131
+ font-size: var(--kemet-tracker-step-dot-font-size, 90%);
3132
+ color: var(--kemet-tracker-step-dot-color, var(--kemet-color-primary));
3133
+ display: flex;
3134
+ align-items: center;
3135
+ justify-content: center;
3136
+ margin: 0 auto;
3137
+ position: relative;
3138
+ z-index: 1;
3139
+ width: var(--kemet-tracker-step-dot-size);
3140
+ height: var(--kemet-tracker-step-dot-size);
3141
+ border-radius: 100%;
3142
+ transition: var(--kemet-tracker-step-dot-transition);
3143
+ background-color: var(--kemet-tracker-step-dot-background-color, var(--kemet-color-white));
3144
+ }
3145
+
3146
+ .dot::after {
3147
+ content: "";
3148
+ width: unset;
3149
+ height: unset;
3150
+ position: absolute;
3151
+ top: var(--kemet-tracker-step-dot-gap);
3152
+ left: var(--kemet-tracker-step-dot-gap);
3153
+ right: var(--kemet-tracker-step-dot-gap);
3154
+ bottom: var(--kemet-tracker-step-dot-gap);
3155
+ z-index: -1;
3156
+ border-radius: 100%;
3157
+ transition: var(--kemet-tracker-step-dot-transition);
3158
+ border: var(--kemet-tracker-step-dot-border, 1px solid var(--kemet-color-primary));
3159
+ background-color: var(--kemet-tracker-step-dot-fill-color, transparent);
3160
+ }
3161
+
3162
+ :host([completed]) .dot {
3163
+ color: var(--kemet-tracker-step-completed-color, var(--kemet-color-white));
3164
+ }
3165
+
3166
+ :host([completed]) .dot::after {
3167
+ border: 0;
3168
+ background-color: var(--kemet-tracker-step-completed-fill-color, var(--kemet-color-success));
3169
+ }
3170
+
3171
+ :host([current]) .dot.animate {
3172
+ color: var(--kemet-tracker-step-current-color, var(--kemet-color-white));
3173
+ }
3174
+
3175
+ :host([current]) .dot.animate::after {
3176
+ border: 0;
3177
+ background-color: var(--kemet-tracker-step-current-fill-color, var(--kemet-color-primary));
3178
+ }
3179
+
3180
+ :host([mobile]) .dot {
3181
+ width: var(--kemet-tracker-step-dot-size-mobile);
3182
+ height: var(--kemet-tracker-step-dot-size-mobile);
3183
+ }
3184
+
3185
+ .line {
3186
+ display: block;
3187
+ position: absolute;
3188
+ left: 50%;
3189
+ right: 0;
3190
+ bottom: 0;
3191
+ width: 100%;
3192
+
3193
+ /* standard */
3194
+ top: calc((var(--kemet-tracker-step-dot-size) - var(--kemet-tracker-step-standard-line-weight)) / 2);
3195
+ height: var(--kemet-tracker-step-standard-line-weight);
3196
+ background-color: var(--kemet-tracker-step-line-color, var(--kemet-color-primary));
3197
+ }
3198
+
3199
+ .line.completed {
3200
+ width: 100%;
3201
+ transform: scaleX(0);
3202
+ transform-origin: left center;
3203
+ top: calc((var(--kemet-tracker-step-dot-size) - var(--kemet-tracker-step-completed-line-weight)) / 2);
3204
+ height: var(--kemet-tracker-step-completed-line-weight);
3205
+ background-color: var(--kemet-tracker-step-completed-line-color, var(--kemet-color-primary));
3206
+ animation-name: grow;
3207
+ animation-delay: 1s;
3208
+ animation-duration: 600ms;
3209
+ animation-fill-mode: forwards;
3210
+ }
3211
+
3212
+ :host([mobile]) .line {
3213
+ top: calc((var(--kemet-tracker-step-dot-size-mobile) - var(--kemet-tracker-step-standard-line-weight)) / 2);
3214
+ }
3215
+
3216
+ :host([mobile]) .line.completed {
3217
+ top: calc((var(--kemet-tracker-step-dot-size-mobile) - var(--kemet-tracker-step-completed-line-weight)) / 2);
3218
+ }
3219
+
3220
+ @keyframes grow {
3221
+ from { transform: scaleX(0); }
3222
+ to { transform: scaleX(1); }
3223
+ }
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`
3225
+ ${this.makeLine()}
3226
+ ${this.makeCompletedLine()}
3227
+ <div class="dot" part="dot">${this.makeDotContent()}</div>
3228
+ ${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`
3230
+ <span>${this.step}/${this.tracker?.total}</span>
3231
+ `:P`
3232
+ <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`
3234
+ :host {
3235
+ display: flex;
3236
+ justify-content: center;
3237
+ align-items: flex-start;
3238
+ }
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};