tinkiet 0.10.1 → 0.11.2

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.
@@ -1,13 +1,13 @@
1
- !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("lit"),require("lit/decorators.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js"),require("lit/directives/class-map.js")):"function"==typeof define&&define.amd?define(["lit","lit/decorators.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js","lit/directives/class-map.js"],r):"object"==typeof exports?exports.tinkiet=r(require("lit"),require("lit/decorators.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js"),require("lit/directives/class-map.js")):t.tinkiet=r(t.lit,t["lit/decorators.js"],t["lit/directives/if-defined.js"],t["lit/directives/unsafe-html.js"],t["lit/directives/class-map.js"])}(this,(t,r,e,o,a)=>(()=>{"use strict";var i={125:t=>{t.exports=a},161:r=>{r.exports=t},291:t=>{t.exports=e},429:t=>{t.exports=r},968:t=>{t.exports=o}},n={};function s(t){var r=n[t];if(void 0!==r)return r.exports;var e=n[t]={exports:{}};return i[t](e,e.exports,s),e.exports}s.d=(t,r)=>{for(var e in r)s.o(r,e)&&!s.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},s.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var l={};s.r(l),s.d(l,{NotieLevel:()=>tt,TkAccordion:()=>y,TkBadge:()=>x,TkBox:()=>u,TkButton:()=>w,TkCheckbox:()=>z,TkChip:()=>j,TkDialog:()=>C,TkDrawer:()=>T,TkForm:()=>_,TkIcon:()=>q,TkIcons:()=>B,TkListItem:()=>I,TkLoading:()=>M,TkNavigationBar:()=>V,TkNavigationItem:()=>Y,TkNotie:()=>et,TkPages:()=>at,TkRadio:()=>nt,TkSelect:()=>lt,TkSlider:()=>ht,TkSwitch:()=>pt,TkTabGroup:()=>vt,TkTextarea:()=>gt,TkTextfield:()=>Z,TkTheme:()=>yt,TkTooltip:()=>xt,TkTopbar:()=>F});var c=s(161),h=s(429),d=s(291);var p=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let u=class extends c.LitElement{constructor(){super(...arguments),this.ripple=!1}static get styles(){return[c.css`
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):"function"==typeof define&&define.amd?define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js"],e):"object"==typeof exports?exports.tinkiet=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):t.tinkiet=e(t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/if-defined.js"],t["lit/directives/unsafe-html.js"])}(this,(t,e,r,o,a)=>(()=>{"use strict";var i={125:t=>{t.exports=r},161:e=>{e.exports=t},291:t=>{t.exports=o},429:t=>{t.exports=e},968:t=>{t.exports=a}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var l={};s.r(l),s.d(l,{NotieLevel:()=>It,TkAccordion:()=>m,TkBadge:()=>x,TkBox:()=>p,TkButton:()=>$,TkCheckbox:()=>_,TkChip:()=>S,TkDialog:()=>j,TkDrawer:()=>T,TkForm:()=>R,TkIcon:()=>q,TkIcons:()=>N,TkListItem:()=>M,TkLoading:()=>Tt,TkNavigationBar:()=>Rt,TkNavigationItem:()=>Pt,TkNotie:()=>Vt,TkPages:()=>Yt,TkRadio:()=>Ft,TkSelect:()=>Wt,TkSlider:()=>Gt,TkSwitch:()=>te,TkTabGroup:()=>re,TkTextarea:()=>ae,TkTextfield:()=>Nt,TkTheme:()=>ne,TkTooltip:()=>le,TkTopbar:()=>qt});var c=s(161),h=s(429);var d=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let p=class extends c.LitElement{constructor(){super(...arguments),this.ripple=!1}static get styles(){return[c.css`
2
2
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:flex;position:relative;flex-direction:column;box-sizing:border-box}:host([hidden]){display:none}.ripple{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;pointer-events:none}.ripple span{position:absolute;border-radius:50%;background-color:hsla(var(--on-primary), 0.5)}:host([align-content=start]){align-content:flex-start}:host([align-content=end]){align-content:flex-end}:host([align-content=stretch]){align-content:stretch}:host([align-content=center]){align-content:center}:host([align-content=around]){align-content:space-around}:host([align-content=between]){align-content:space-between}:host([align-items=start]){align-items:flex-start}:host([align-items=end]){align-items:flex-end}:host([align-items=stretch]){align-items:stretch}:host([align-items=center]){align-items:center}:host([align-items=baseline]){align-items:baseline}:host([align-self=start]){align-self:flex-start}:host([align-self=end]){align-self:flex-end}:host([align-self=stretch]){align-self:stretch}:host([align-self=center]){align-self:center}:host([background=primary]){background-color:hsl(var(--primary))}:host([color=primary]){color:hsl(var(--primary))}:host([background=on-primary]){background-color:hsl(var(--on-primary))}:host([color=on-primary]){color:hsl(var(--on-primary))}:host([background=secondary]){background-color:hsl(var(--secondary))}:host([color=secondary]){color:hsl(var(--secondary))}:host([background=on-secondary]){background-color:hsl(var(--on-secondary))}:host([color=on-secondary]){color:hsl(var(--on-secondary))}:host([background=tertiary]){background-color:hsl(var(--tertiary))}:host([color=tertiary]){color:hsl(var(--tertiary))}:host([background=on-tertiary]){background-color:hsl(var(--on-tertiary))}:host([color=on-tertiary]){color:hsl(var(--on-tertiary))}:host([background=neutral]){background-color:hsl(var(--neutral))}:host([color=neutral]){color:hsl(var(--neutral))}:host([background=on-neutral]){background-color:hsl(var(--on-neutral))}:host([color=on-neutral]){color:hsl(var(--on-neutral))}:host([background=neutral-variant]){background-color:hsl(var(--neutral-variant))}:host([color=neutral-variant]){color:hsl(var(--neutral-variant))}:host([background=on-neutral-variant]){background-color:hsl(var(--on-neutral-variant))}:host([color=on-neutral-variant]){color:hsl(var(--on-neutral-variant))}:host([background=error]){background-color:hsl(var(--error))}:host([color=error]){color:hsl(var(--error))}:host([background=on-error]){background-color:hsl(var(--on-error))}:host([color=on-error]){color:hsl(var(--on-error))}:host([background=primary-container]){background-color:hsl(var(--primary-container))}:host([color=primary-container]){color:hsl(var(--primary-container))}:host([background=on-primary-container]){background-color:hsl(var(--on-primary-container))}:host([color=on-primary-container]){color:hsl(var(--on-primary-container))}:host([background=secondary-container]){background-color:hsl(var(--secondary-container))}:host([color=secondary-container]){color:hsl(var(--secondary-container))}:host([background=on-secondary-container]){background-color:hsl(var(--on-secondary-container))}:host([color=on-secondary-container]){color:hsl(var(--on-secondary-container))}:host([background=tertiary-container]){background-color:hsl(var(--tertiary-container))}:host([color=tertiary-container]){color:hsl(var(--tertiary-container))}:host([background=on-tertiary-container]){background-color:hsl(var(--on-tertiary-container))}:host([color=on-tertiary-container]){color:hsl(var(--on-tertiary-container))}:host([background=neutral-container]){background-color:hsl(var(--neutral-container))}:host([color=neutral-container]){color:hsl(var(--neutral-container))}:host([background=on-neutral-container]){background-color:hsl(var(--on-neutral-container))}:host([color=on-neutral-container]){color:hsl(var(--on-neutral-container))}:host([background=neutral-variant-container]){background-color:hsl(var(--neutral-variant-container))}:host([color=neutral-variant-container]){color:hsl(var(--neutral-variant-container))}:host([background=on-neutral-variant-container]){background-color:hsl(var(--on-neutral-variant-container))}:host([color=on-neutral-variant-container]){color:hsl(var(--on-neutral-variant-container))}:host([background=error-container]){background-color:hsl(var(--error-container))}:host([color=error-container]){color:hsl(var(--error-container))}:host([background=on-error-container]){background-color:hsl(var(--on-error-container))}:host([color=on-error-container]){color:hsl(var(--on-error-container))}:host([background=primary-0]){background-color:hsl(var(--primary-0))}:host([color=primary-0]){color:hsl(var(--primary-0))}:host([background=surface]){background-color:hsl(var(--surface))}:host([color=surface]){color:hsl(var(--surface))}:host([background=on-surface]){background-color:hsl(var(--on-surface))}:host([color=on-surface]){color:hsl(var(--on-surface))}:host([background=surface-dim]){background-color:hsl(var(--surface-dim))}:host([color=surface-dim]){color:hsl(var(--surface-dim))}:host([background=surface-bright]){background-color:hsl(var(--surface-bright))}:host([color=surface-bright]){color:hsl(var(--surface-bright))}:host([background=surface-container-lowest]){background-color:hsl(var(--surface-container-lowest))}:host([color=surface-container-lowest]){color:hsl(var(--surface-container-lowest))}:host([background=surface-container-low]){background-color:hsl(var(--surface-container-low))}:host([color=surface-container-low]){color:hsl(var(--surface-container-low))}:host([background=surface-container]){background-color:hsl(var(--surface-container))}:host([color=surface-container]){color:hsl(var(--surface-container))}:host([background=surface-container-high]){background-color:hsl(var(--surface-container-high))}:host([color=surface-container-high]){color:hsl(var(--surface-container-high))}:host([background=surface-container-highest]){background-color:hsl(var(--surface-container-highest))}:host([color=surface-container-highest]){color:hsl(var(--surface-container-highest))}:host([background=surface-variant]){background-color:hsl(var(--surface-variant))}:host([color=surface-variant]){color:hsl(var(--surface-variant))}:host([background=on-surface-variant]){background-color:hsl(var(--on-surface-variant))}:host([color=on-surface-variant]){color:hsl(var(--on-surface-variant))}:host([background=outline]){background-color:hsl(var(--outline))}:host([color=outline]){color:hsl(var(--outline))}:host([background=outline-variant]){background-color:hsl(var(--outline-variant))}:host([color=outline-variant]){color:hsl(var(--outline-variant))}:host([background=inverse-surface]){background-color:hsl(var(--inverse-surface))}:host([color=inverse-surface]){color:hsl(var(--inverse-surface))}:host([background=inverse-on-surface]){background-color:hsl(var(--inverse-on-surface))}:host([color=inverse-on-surface]){color:hsl(var(--inverse-on-surface))}:host([background=background]){background-color:hsl(var(--background))}:host([color=background]){color:hsl(var(--background))}:host([background=on-background]){background-color:hsl(var(--on-background))}:host([color=on-background]){color:hsl(var(--on-background))}:host([background=shadow]){background-color:hsl(var(--shadow))}:host([color=shadow]){color:hsl(var(--shadow))}:host([background=primary-10]){background-color:hsl(var(--primary-10))}:host([color=primary-10]){color:hsl(var(--primary-10))}:host([background=primary-20]){background-color:hsl(var(--primary-20))}:host([color=primary-20]){color:hsl(var(--primary-20))}:host([background=primary-30]){background-color:hsl(var(--primary-30))}:host([color=primary-30]){color:hsl(var(--primary-30))}:host([background=primary-40]){background-color:hsl(var(--primary-40))}:host([color=primary-40]){color:hsl(var(--primary-40))}:host([background=primary-50]){background-color:hsl(var(--primary-50))}:host([color=primary-50]){color:hsl(var(--primary-50))}:host([background=primary-60]){background-color:hsl(var(--primary-60))}:host([color=primary-60]){color:hsl(var(--primary-60))}:host([background=primary-70]){background-color:hsl(var(--primary-70))}:host([color=primary-70]){color:hsl(var(--primary-70))}:host([background=primary-80]){background-color:hsl(var(--primary-80))}:host([color=primary-80]){color:hsl(var(--primary-80))}:host([background=primary-90]){background-color:hsl(var(--primary-90))}:host([color=primary-90]){color:hsl(var(--primary-90))}:host([background=primary-95]){background-color:hsl(var(--primary-95))}:host([color=primary-95]){color:hsl(var(--primary-95))}:host([background=primary-99]){background-color:hsl(var(--primary-99))}:host([color=primary-99]){color:hsl(var(--primary-99))}:host([background=primary-100]){background-color:hsl(var(--primary-100))}:host([color=primary-100]){color:hsl(var(--primary-100))}:host([background=secondary-0]){background-color:hsl(var(--secondary-0))}:host([color=secondary-0]){color:hsl(var(--secondary-0))}:host([background=secondary-10]){background-color:hsl(var(--secondary-10))}:host([color=secondary-10]){color:hsl(var(--secondary-10))}:host([background=secondary-20]){background-color:hsl(var(--secondary-20))}:host([color=secondary-20]){color:hsl(var(--secondary-20))}:host([background=secondary-30]){background-color:hsl(var(--secondary-30))}:host([color=secondary-30]){color:hsl(var(--secondary-30))}:host([background=secondary-40]){background-color:hsl(var(--secondary-40))}:host([color=secondary-40]){color:hsl(var(--secondary-40))}:host([background=secondary-50]){background-color:hsl(var(--secondary-50))}:host([color=secondary-50]){color:hsl(var(--secondary-50))}:host([background=secondary-60]){background-color:hsl(var(--secondary-60))}:host([color=secondary-60]){color:hsl(var(--secondary-60))}:host([background=secondary-70]){background-color:hsl(var(--secondary-70))}:host([color=secondary-70]){color:hsl(var(--secondary-70))}:host([background=secondary-80]){background-color:hsl(var(--secondary-80))}:host([color=secondary-80]){color:hsl(var(--secondary-80))}:host([background=secondary-90]){background-color:hsl(var(--secondary-90))}:host([color=secondary-90]){color:hsl(var(--secondary-90))}:host([background=secondary-100]){background-color:hsl(var(--secondary-100))}:host([color=secondary-100]){color:hsl(var(--secondary-100))}:host([background=tertiary-0]){background-color:hsl(var(--tertiary-0))}:host([color=tertiary-0]){color:hsl(var(--tertiary-0))}:host([background=tertiary-10]){background-color:hsl(var(--tertiary-10))}:host([color=tertiary-10]){color:hsl(var(--tertiary-10))}:host([background=tertiary-20]){background-color:hsl(var(--tertiary-20))}:host([color=tertiary-20]){color:hsl(var(--tertiary-20))}:host([background=tertiary-30]){background-color:hsl(var(--tertiary-30))}:host([color=tertiary-30]){color:hsl(var(--tertiary-30))}:host([background=tertiary-40]){background-color:hsl(var(--tertiary-40))}:host([color=tertiary-40]){color:hsl(var(--tertiary-40))}:host([background=tertiary-50]){background-color:hsl(var(--tertiary-50))}:host([color=tertiary-50]){color:hsl(var(--tertiary-50))}:host([background=tertiary-60]){background-color:hsl(var(--tertiary-60))}:host([color=tertiary-60]){color:hsl(var(--tertiary-60))}:host([background=tertiary-70]){background-color:hsl(var(--tertiary-70))}:host([color=tertiary-70]){color:hsl(var(--tertiary-70))}:host([background=tertiary-80]){background-color:hsl(var(--tertiary-80))}:host([color=tertiary-80]){color:hsl(var(--tertiary-80))}:host([background=tertiary-90]){background-color:hsl(var(--tertiary-90))}:host([color=tertiary-90]){color:hsl(var(--tertiary-90))}:host([background=tertiary-100]){background-color:hsl(var(--tertiary-100))}:host([color=tertiary-100]){color:hsl(var(--tertiary-100))}:host([background=neutral-0]){background-color:hsl(var(--neutral-0))}:host([color=neutral-0]){color:hsl(var(--neutral-0))}:host([background=neutral-10]){background-color:hsl(var(--neutral-10))}:host([color=neutral-10]){color:hsl(var(--neutral-10))}:host([background=neutral-20]){background-color:hsl(var(--neutral-20))}:host([color=neutral-20]){color:hsl(var(--neutral-20))}:host([background=neutral-30]){background-color:hsl(var(--neutral-30))}:host([color=neutral-30]){color:hsl(var(--neutral-30))}:host([background=neutral-40]){background-color:hsl(var(--neutral-40))}:host([color=neutral-40]){color:hsl(var(--neutral-40))}:host([background=neutral-50]){background-color:hsl(var(--neutral-50))}:host([color=neutral-50]){color:hsl(var(--neutral-50))}:host([background=neutral-60]){background-color:hsl(var(--neutral-60))}:host([color=neutral-60]){color:hsl(var(--neutral-60))}:host([background=neutral-70]){background-color:hsl(var(--neutral-70))}:host([color=neutral-70]){color:hsl(var(--neutral-70))}:host([background=neutral-80]){background-color:hsl(var(--neutral-80))}:host([color=neutral-80]){color:hsl(var(--neutral-80))}:host([background=neutral-90]){background-color:hsl(var(--neutral-90))}:host([color=neutral-90]){color:hsl(var(--neutral-90))}:host([background=neutral-100]){background-color:hsl(var(--neutral-100))}:host([color=neutral-100]){color:hsl(var(--neutral-100))}:host([background=error-0]){background-color:hsl(var(--error-0))}:host([color=error-0]){color:hsl(var(--error-0))}:host([background=error-10]){background-color:hsl(var(--error-10))}:host([color=error-10]){color:hsl(var(--error-10))}:host([background=error-20]){background-color:hsl(var(--error-20))}:host([color=error-20]){color:hsl(var(--error-20))}:host([background=error-30]){background-color:hsl(var(--error-30))}:host([color=error-30]){color:hsl(var(--error-30))}:host([background=error-40]){background-color:hsl(var(--error-40))}:host([color=error-40]){color:hsl(var(--error-40))}:host([background=error-50]){background-color:hsl(var(--error-50))}:host([color=error-50]){color:hsl(var(--error-50))}:host([background=error-60]){background-color:hsl(var(--error-60))}:host([color=error-60]){color:hsl(var(--error-60))}:host([background=error-70]){background-color:hsl(var(--error-70))}:host([color=error-70]){color:hsl(var(--error-70))}:host([background=error-80]){background-color:hsl(var(--error-80))}:host([color=error-80]){color:hsl(var(--error-80))}:host([background=error-90]){background-color:hsl(var(--error-90))}:host([color=error-90]){color:hsl(var(--error-90))}:host([background=error-100]){background-color:hsl(var(--error-100))}:host([color=error-100]){color:hsl(var(--error-100))}:host([direction=column]){flex-direction:column}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row-reverse}:host([direction=column-reverse]){flex-direction:column-reverse}:host([text=center]){text-align:center}:host([text=justify]){text-align:justify}:host([text=left]){text-align:left}:host([text=right]){text-align:right}:host([weight="100"]){font-weight:100}:host([weight="200"]){font-weight:200}:host([weight="300"]){font-weight:300}:host([weight="400"]){font-weight:400}:host([weight="500"]){font-weight:500}:host([weight="600"]){font-weight:600}:host([weight="700"]){font-weight:700}:host([weight="800"]){font-weight:800}:host([weight="900"]){font-weight:900}:host([weight=lighter]){font-weight:lighter}:host([weight=bold]){font-weight:bold}:host([weight=bolder]){font-weight:bolder}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row}:host([elevation="1"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15))}:host([elevation="2"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15))}:host([elevation="3"]){box-shadow:var(--box-elevation, 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15))}:host([fill=horizontal]){width:100%}:host([fill=vertical]){height:100%}:host([fill=true]){width:100%;height:100%}:host([flex=grow]){flex:1 0}:host([flex=shrink]){flex:0 1}:host([flex=true]){flex:1 1}:host([flex=false]){flex:0 0}:host([gap=xsmall]) ::slotted(*),:host([gap=xsmall][direction=column]) ::slotted(*){margin:var(--spacing-xs, 0.25rem) 0}:host([gap=xsmall][direction=row]) ::slotted(*){margin:0 var(--spacing-xs, 0.25rem)}:host([margin=xsmall]){margin:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([vmargin=xsmall]){margin-top:var(--box-margin, var(--spacing-xs, 0.25rem));margin-bottom:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([hmargin=xsmall]){margin-left:var(--box-margin, var(--spacing-xs, 0.25rem));margin-right:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([margin="xsmall auto"]){margin:var(--box-margin, var(--spacing-xs, 0.25rem)) auto}:host([margin="auto xsmall"]){margin:auto var(--box-margin, var(--spacing-xs, 0.25rem))}:host([padding=xsmall]){padding:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([vpadding=xsmall]){padding-top:var(--box-padding, var(--spacing-xs, 0.25rem));padding-bottom:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([hpadding=xsmall]){padding-left:var(--box-padding, var(--spacing-xs, 0.25rem));padding-right:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([gap=small]) ::slotted(*),:host([gap=small][direction=column]) ::slotted(*){margin:var(--spacing-s, 0.5rem) 0}:host([gap=small][direction=row]) ::slotted(*){margin:0 var(--spacing-s, 0.5rem)}:host([margin=small]){margin:var(--box-margin, var(--spacing-s, 0.5rem))}:host([vmargin=small]){margin-top:var(--box-margin, var(--spacing-s, 0.5rem));margin-bottom:var(--box-margin, var(--spacing-s, 0.5rem))}:host([hmargin=small]){margin-left:var(--box-margin, var(--spacing-s, 0.5rem));margin-right:var(--box-margin, var(--spacing-s, 0.5rem))}:host([margin="small auto"]){margin:var(--box-margin, var(--spacing-s, 0.5rem)) auto}:host([margin="auto small"]){margin:auto var(--box-margin, var(--spacing-s, 0.5rem))}:host([padding=small]){padding:var(--box-padding, var(--spacing-s, 0.5rem))}:host([vpadding=small]){padding-top:var(--box-padding, var(--spacing-s, 0.5rem));padding-bottom:var(--box-padding, var(--spacing-s, 0.5rem))}:host([hpadding=small]){padding-left:var(--box-padding, var(--spacing-s, 0.5rem));padding-right:var(--box-padding, var(--spacing-s, 0.5rem))}:host([gap=medium]) ::slotted(*),:host([gap=medium][direction=column]) ::slotted(*){margin:var(--spacing-m, 1rem) 0}:host([gap=medium][direction=row]) ::slotted(*){margin:0 var(--spacing-m, 1rem)}:host([margin=medium]){margin:var(--box-margin, var(--spacing-m, 1rem))}:host([vmargin=medium]){margin-top:var(--box-margin, var(--spacing-m, 1rem));margin-bottom:var(--box-margin, var(--spacing-m, 1rem))}:host([hmargin=medium]){margin-left:var(--box-margin, var(--spacing-m, 1rem));margin-right:var(--box-margin, var(--spacing-m, 1rem))}:host([margin="medium auto"]){margin:var(--box-margin, var(--spacing-m, 1rem)) auto}:host([margin="auto medium"]){margin:auto var(--box-margin, var(--spacing-m, 1rem))}:host([padding=medium]){padding:var(--box-padding, var(--spacing-m, 1rem))}:host([vpadding=medium]){padding-top:var(--box-padding, var(--spacing-m, 1rem));padding-bottom:var(--box-padding, var(--spacing-m, 1rem))}:host([hpadding=medium]){padding-left:var(--box-padding, var(--spacing-m, 1rem));padding-right:var(--box-padding, var(--spacing-m, 1rem))}:host([gap=large]) ::slotted(*),:host([gap=large][direction=column]) ::slotted(*){margin:var(--spacing-l, 1.25rem) 0}:host([gap=large][direction=row]) ::slotted(*){margin:0 var(--spacing-l, 1.25rem)}:host([margin=large]){margin:var(--box-margin, var(--spacing-l, 1.25rem))}:host([vmargin=large]){margin-top:var(--box-margin, var(--spacing-l, 1.25rem));margin-bottom:var(--box-margin, var(--spacing-l, 1.25rem))}:host([hmargin=large]){margin-left:var(--box-margin, var(--spacing-l, 1.25rem));margin-right:var(--box-margin, var(--spacing-l, 1.25rem))}:host([margin="large auto"]){margin:var(--box-margin, var(--spacing-l, 1.25rem)) auto}:host([margin="auto large"]){margin:auto var(--box-margin, var(--spacing-l, 1.25rem))}:host([padding=large]){padding:var(--box-padding, var(--spacing-l, 1.25rem))}:host([vpadding=large]){padding-top:var(--box-padding, var(--spacing-l, 1.25rem));padding-bottom:var(--box-padding, var(--spacing-l, 1.25rem))}:host([hpadding=large]){padding-left:var(--box-padding, var(--spacing-l, 1.25rem));padding-right:var(--box-padding, var(--spacing-l, 1.25rem))}:host([gap=xlarge]) ::slotted(*),:host([gap=xlarge][direction=column]) ::slotted(*){margin:var(--spacing-xl, 2rem) 0}:host([gap=xlarge][direction=row]) ::slotted(*){margin:0 var(--spacing-xl, 2rem)}:host([margin=xlarge]){margin:var(--box-margin, var(--spacing-xl, 2rem))}:host([vmargin=xlarge]){margin-top:var(--box-margin, var(--spacing-xl, 2rem));margin-bottom:var(--box-margin, var(--spacing-xl, 2rem))}:host([hmargin=xlarge]){margin-left:var(--box-margin, var(--spacing-xl, 2rem));margin-right:var(--box-margin, var(--spacing-xl, 2rem))}:host([margin="xlarge auto"]){margin:var(--box-margin, var(--spacing-xl, 2rem)) auto}:host([margin="auto xlarge"]){margin:auto var(--box-margin, var(--spacing-xl, 2rem))}:host([padding=xlarge]){padding:var(--box-padding, var(--spacing-xl, 2rem))}:host([vpadding=xlarge]){padding-top:var(--box-padding, var(--spacing-xl, 2rem));padding-bottom:var(--box-padding, var(--spacing-xl, 2rem))}:host([hpadding=xlarge]){padding-left:var(--box-padding, var(--spacing-xl, 2rem));padding-right:var(--box-padding, var(--spacing-xl, 2rem))}:host([font=xsmall]),:host([size=xsmall]){font-size:var(--box-font-size, var(--font-size-xs, 0.625rem))}:host([font=small]),:host([size=small]){font-size:var(--box-font-size, var(--font-size-s, 0.875rem))}:host([font=medium]),:host([size=medium]){font-size:var(--box-font-size, var(--font-size-m, 1rem))}:host([font=large]),:host([size=large]){font-size:var(--box-font-size, var(--font-size-l, 1.25rem))}:host([font=xlarge]),:host([size=xlarge]){font-size:var(--box-font-size, var(--font-size-xl, 1.5rem))}:host([font=xxlarge]),:host([size=xxlarge]){font-size:var(--box-font-size, var(--font-size-xxl, 2.25rem))}:host([justify=start]){justify-content:flex-start}:host([justify=end]){justify-content:flex-end}:host([justify=stretch]){justify-content:stretch}:host([justify=baseline]){justify-content:baseline}:host([justify=center]){justify-content:center}:host([justify=around]){justify-content:space-around}:host([justify=between]){justify-content:space-between}:host([justify=evenly]){justify-content:space-evenly}:host([overflow=auto]){overflow:auto}:host([overflow=hidden]){overflow:hidden}:host([overflow=scroll]){overflow:scroll}:host([overflow=visible]){overflow:visible}:host([radius=none]){border-radius:var(--box-border-radius, 0)}:host([radius=small]){border-radius:var(--box-border-radius, var(--border-radius-small, 0.125rem))}:host([radius=medium]){border-radius:var(--box-border-radius, var(--border-radius-medium, 0.25rem))}:host([radius=large]){border-radius:var(--box-border-radius, var(--border-radius-large, 0.5rem))}:host([radius=xlarge]){border-radius:var(--box-border-radius, var(--border-radius-x-large, 1rem))}:host([radius=circle]){border-radius:var(--box-border-radius, var(--border-radius-circle, 50%))}:host([radius=pill]){border-radius:var(--box-border-radius, var(--border-radius-pill, 9999px))}:host([max-width=xxsmall]){max-width:var(--box-max-width, var(--size-xxs, 2rem))}:host([width=xxsmall]){width:var(--box-width, var(--size-xxs, 2rem))}:host([max-height=xxsmall]){max-height:var(--box-max-height, var(--size-xxs, 2rem))}:host([height=xxsmall]){height:var(--box-height, var(--size-xxs, 2rem))}:host([max-width=xsmall]){max-width:var(--box-max-width, var(--size-xs, 4rem))}:host([width=xsmall]){width:var(--box-width, var(--size-xs, 4rem))}:host([max-height=xsmall]){max-height:var(--box-max-height, var(--size-xs, 4rem))}:host([height=xsmall]){height:var(--box-height, var(--size-xs, 4rem))}:host([max-width=small]){max-width:var(--box-max-width, var(--size-s, 8rem))}:host([width=small]){width:var(--box-width, var(--size-s, 8rem))}:host([max-height=small]){max-height:var(--box-max-height, var(--size-s, 8rem))}:host([height=small]){height:var(--box-height, var(--size-s, 8rem))}:host([max-width=medium]){max-width:var(--box-max-width, var(--size-m, 16rem))}:host([width=medium]){width:var(--box-width, var(--size-m, 16rem))}:host([max-height=medium]){max-height:var(--box-max-height, var(--size-m, 16rem))}:host([height=medium]){height:var(--box-height, var(--size-m, 16rem))}:host([max-width=large]){max-width:var(--box-max-width, var(--size-l, 32rem))}:host([width=large]){width:var(--box-width, var(--size-l, 32rem))}:host([max-height=large]){max-height:var(--box-max-height, var(--size-l, 32rem))}:host([height=large]){height:var(--box-height, var(--size-l, 32rem))}:host([max-width=xlarge]){max-width:var(--box-max-width, var(--size-xl, 48rem))}:host([width=xlarge]){width:var(--box-width, var(--size-xl, 48rem))}:host([max-height=xlarge]){max-height:var(--box-max-height, var(--size-xl, 48rem))}:host([height=xlarge]){height:var(--box-height, var(--size-xl, 48rem))}:host([max-width=xxlarge]){max-width:var(--box-max-width, var(--size-xxl, 64rem))}:host([width=xxlarge]){width:var(--box-width, var(--size-xxl, 64rem))}:host([max-height=xxlarge]){max-height:var(--box-max-height, var(--size-xxl, 64rem))}:host([height=xxlarge]){height:var(--box-height, var(--size-xxl, 64rem))}:host([wrap=true]){flex-wrap:wrap}:host([wrap=reverse]){flex-wrap:wrap-reverse}')}
3
3
  `]}render(){return c.html`
4
4
  <slot></slot>
5
- `}connectedCallback(){this.ripple&&(this.addEventListener("mousedown",this.showRipple.bind(this),{passive:!0}),this.addEventListener("mouseup",this.hideRipple.bind(this),{passive:!0})),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("mousedown",this.showRipple),this.addEventListener("mouseup",this.hideRipple),super.disconnectedCallback()}updated(t){super.updated(t)}showRipple(t){const r=t.clientX,e=t.clientY,{offsetWidth:o,offsetHeight:a}=this,i=document.createElement("span");i.classList.add("ripple","open");const n=document.createElement("span");i.appendChild(n),this.shadowRoot.appendChild(i);const s=this.getBoundingClientRect(),l=2*Math.max(o,o);n.style.width=n.style.height=l+"px",n.style.left=r-s.left-l/2+"px",n.style.top=e-s.top-l/2+"px";n.animate({transform:["scale(0)","scale(1)"]},{easing:"ease-out",fill:"both",duration:500}).onfinish=()=>{i.classList.remove("open");n.animate({opacity:["0.5","0"]},{easing:"ease-in",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{i.remove()})}}}hideRipple(t){var r;null===(r=this.shadowRoot)||void 0===r||r.querySelectorAll(".ripple:not([open])").forEach(t=>{t.querySelector("span").animate({opacity:["0.5","0"]},{easing:"ease-out",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{t.remove()})}})}};function v(t=10){return`_${Math.random().toString(36).substr(2,t)}`}p([(0,h.property)({type:Boolean})],u.prototype,"ripple",void 0),p([(0,h.property)()],u.prototype,"background",void 0),p([(0,h.property)()],u.prototype,"color",void 0),u=p([(0,h.customElement)("tk-box")],u);var b=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};class g extends u{constructor(){super(...arguments),this._id=v(),this.disabled=!1}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}}b([(0,h.property)({type:Boolean})],g.prototype,"_id",void 0),b([(0,h.property)({type:Boolean})],g.prototype,"disabled",void 0);var m=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let y=class extends g{constructor(){super(...arguments),this.checked=!1,this.rippleHeader=!1}static get styles(){return[...u.styles,c.css`
6
- ${(0,c.unsafeCSS)('\ufeff*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host .header{color:hsl(var(--on-surface));background-color:hsl(var(--surface-container-lowest));padding:16px;border:solid 2px hsl(var(--outline))}:host .header>*{margin:0 10px}:host .header{cursor:pointer}:host .header:after{transition:transform .3s;content:"▼";display:inline-block;font-size:12px}:host .header .before{width:fit-content}:host .header .header-content{flex:1}:host .content{width:95%;margin:0 auto;height:0;opacity:0;visibility:hidden;transition:all .2s}:host h3,:host h5{margin:0}:host([checked]) .header{background-color:hsl(var(--primary));color:hsl(var(--on-primary))}:host([checked]) .header:after{transform:rotate(180deg)}:host([checked]) .content{height:auto;opacity:1;visibility:visible;transition:all .3s,opacity .7s}:host([pill]) .header{border-radius:9999px}')}
7
- `]}render(){return c.html`
5
+ `}connectedCallback(){this.ripple&&(this.addEventListener("mousedown",this.showRipple.bind(this),{passive:!0}),this.addEventListener("mouseup",this.hideRipple.bind(this),{passive:!0})),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("mousedown",this.showRipple),this.addEventListener("mouseup",this.hideRipple),super.disconnectedCallback()}updated(t){super.updated(t)}showRipple(t){const e=t.clientX,r=t.clientY,{offsetWidth:o,offsetHeight:a}=this,i=document.createElement("span");i.classList.add("ripple","open");const n=document.createElement("span");i.appendChild(n),this.shadowRoot.appendChild(i);const s=this.getBoundingClientRect(),l=2*Math.max(o,o);n.style.width=n.style.height=l+"px",n.style.left=e-s.left-l/2+"px",n.style.top=r-s.top-l/2+"px";n.animate({transform:["scale(0)","scale(1)"]},{easing:"ease-out",fill:"both",duration:500}).onfinish=()=>{i.classList.remove("open");n.animate({opacity:["0.5","0"]},{easing:"ease-in",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{i.remove()})}}}hideRipple(t){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll(".ripple:not([open])").forEach(t=>{t.querySelector("span").animate({opacity:["0.5","0"]},{easing:"ease-out",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{t.remove()})}})}};function u(t=10){return`_${Math.random().toString(36).substr(2,t)}`}d([(0,h.property)({type:Boolean})],p.prototype,"ripple",void 0),d([(0,h.property)()],p.prototype,"background",void 0),d([(0,h.property)()],p.prototype,"color",void 0),p=d([(0,h.customElement)("tk-box")],p);var v=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};class b extends p{constructor(){super(...arguments),this._id=u(),this.disabled=!1}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}}v([(0,h.property)({type:Boolean})],b.prototype,"_id",void 0),v([(0,h.property)({type:Boolean})],b.prototype,"disabled",void 0);var g=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let m=class extends b{static get styles(){return[...p.styles,c.css`
6
+ ${(0,c.unsafeCSS)('\ufeff*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host .header{position:relative;overflow:hidden;color:hsl(var(--on-surface));background-color:hsl(var(--surface-container-low));padding:16px;border:1px solid hsl(var(--outline-variant));border-radius:12px;box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);gap:12px;cursor:pointer;transition:background-color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),box-shadow var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),border-color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1))}:host .header:after{transition:transform .3s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));content:"▼";display:inline-block;font-size:12px;margin-inline-start:8px}:host .header:before{content:"";position:absolute;inset:0;background:hsl(var(--on-surface));opacity:0;transition:opacity var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));pointer-events:none}:host .header .before{width:fit-content}:host .header .header-content{flex:1}:host .content{width:100%;margin:4px 0 0;padding:0 16px;opacity:0;visibility:hidden;max-height:0;overflow:hidden;transform:translateY(-8px);transition:max-height .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),opacity .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),transform .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));background:hsl(var(--surface-container-lowest));border-radius:0 0 12px 12px}:host h3,:host h5{margin:0}:host .header:hover:before{opacity:.08}:host .header:active:before{opacity:.12}:host .header:focus-visible{outline:none;border-color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15),0 0 0 3px hsl(var(--primary)/0.2)}:host([checked]) .header{background-color:hsl(var(--primary-container));color:hsl(var(--on-primary-container));border-color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15)}:host([checked]) .header:after{transform:rotate(180deg)}:host([checked]) .header:before{background:hsl(var(--on-primary-container))}:host([checked]) .content{opacity:1;visibility:visible;max-height:var(--tk-accordion-max-height, 1000px);padding:12px 16px;transform:translateY(0);transition:max-height .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),opacity .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),transform .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1))}:host([pill]) .header{border-radius:9999px}@media(prefers-reduced-motion: reduce){:host .header:after{transition:none}:host .header:before{transition:none}:host .header{transition:none}:host .content{transition:none}}')}
7
+ `]}constructor(){super(),this.checked=!1,this.rippleHeader=!1,this.handleClick=this.handleClick.bind(this)}render(){return c.html`
8
8
  <tk-box margin="small">
9
9
  <tk-box
10
- @click=${this.handleClick.bind(this)}
10
+ @click=${this.handleClick}
11
11
  ?ripple=${this.rippleHeader}
12
12
  class="header"
13
13
  direction="row"
@@ -25,23 +25,12 @@
25
25
  <slot></slot>
26
26
  </tk-box>
27
27
  </tk-box>
28
- <input
29
- id=${this.id}
30
- slot="none"
31
- style="display: none;"
32
- type="radio"
33
- ?checked="${this.checked}"
34
- ?disabled="${this.disabled}"
35
- name="${(0,d.ifDefined)(this.name)}"
36
- aria-hidden="true"
37
- tabindex="-1"
38
- />
39
- `}firstUpdated(){this.appendChild(this.$input)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-accordion[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),this.dispatchEvent(new Event("change"))}};m([(0,h.property)({attribute:!0,type:String})],y.prototype,"name",void 0),m([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],y.prototype,"checked",void 0),m([(0,h.property)({attribute:"ripple-header",type:Boolean})],y.prototype,"rippleHeader",void 0),m([(0,h.query)("input")],y.prototype,"$input",void 0),y=m([(0,h.customElement)("tk-accordion")],y);var f=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let x=class extends c.LitElement{static get styles(){return c.css`
40
- ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex}:host .badge{background-color:hsl(var(--error));font-family:"Trebuchet MS","Lucida Sans Unicode","Lucida Grande","Lucida Sans",Arial,sans-serif;color:hsl(var(--on-error));height:16px;min-width:16px;max-width:34px;border-radius:8px;padding:4px;font-size:10px;line-height:8px;text-align:center;white-space:nowrap;user-select:none;cursor:inherit}:host .badge.empty{height:6px;width:6px;min-width:6px;border-radius:100%}')}
41
- `}render(){return c.html`
28
+ `}firstUpdated(){this.$input=document.createElement("input"),this.$input.type="radio",this.$input.slot="none",this.$input.style.display="none",this.$input.setAttribute("aria-hidden","true"),this.$input.tabIndex=-1,this.syncInput(),this.appendChild(this.$input)}updated(t){super.updated(t),this.syncInput()}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-accordion[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}syncInput(){var t;this.$input&&(this.$input.id=this.id,this.$input.name=null!==(t=this.name)&&void 0!==t?t:"",this.$input.checked=this.checked,this.$input.disabled=this.disabled)}};g([(0,h.property)({attribute:!0,type:String})],m.prototype,"name",void 0),g([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],m.prototype,"checked",void 0),g([(0,h.property)({attribute:"ripple-header",type:Boolean})],m.prototype,"rippleHeader",void 0),m=g([(0,h.customElement)("tk-accordion")],m);var y=s(125);var f=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let x=class extends c.LitElement{constructor(){super(...arguments),this.label=""}static get styles(){return c.css`
29
+ ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex}:host .badge{background-color:var(--tk-badge-color, hsl(var(--error)));font-family:"Trebuchet MS","Lucida Sans Unicode","Lucida Grande","Lucida Sans",Arial,sans-serif;color:var(--tk-badge-text-color, hsl(var(--on-error)));height:16px;min-width:16px;max-width:34px;border-radius:8px;padding:4px;font-size:10px;line-height:8px;text-align:center;white-space:nowrap;user-select:none;cursor:inherit}:host .badge.empty{height:6px;width:6px;min-width:6px;border-radius:100%}')}
30
+ `}render(){const t=0===this.label.trim().length;return c.html`
42
31
  <slot></slot>
43
- <div class="badge ${this.label?"":"empty"}">${this.label}</div>
44
- `}};f([(0,h.property)()],x.prototype,"label",void 0),x=f([(0,h.customElement)("tk-badge")],x);var k=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let w=class extends u{constructor(){super(...arguments),this._id=v(),this.href=null,this.type="button",this.disabled=!1,this.fab=!1,this.ripple=!0}static get styles(){return[...u.styles,c.css`
32
+ <div class=${(0,y.classMap)({badge:!0,empty:t})}>${this.label}</div>
33
+ `}};f([(0,h.property)({type:String})],x.prototype,"label",void 0),x=f([(0,h.customElement)("tk-badge")],x);var k=s(291);var w=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let $=class extends p{constructor(){super(...arguments),this._id=u(),this.href=null,this.type="button",this.disabled=!1,this.fab=!1,this.ripple=!0}static get styles(){return[...p.styles,c.css`
45
34
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex;justify-content:center;flex-shrink:0;flex-direction:row;align-items:center;position:relative;cursor:pointer;text-align:center;text-decoration:none;vertical-align:middle;text-overflow:ellipsis;user-select:none;overflow:hidden;border-radius:20px;height:40px;width:40px;color:hsl(var(--primary))}:host tk-icon{width:24px;height:24px}:host([extended]){width:auto}:host([extended]) .content{display:flex;align-items:center;pointer-events:none;font-family:Roboto,sans-serif;line-height:20px;font-size:var(--font-size, 14px);font-weight:500;margin:0 24px}:host([extended]) .content.has-icon{margin:0 24px 0 8px}:host([extended]) tk-icon{margin-left:16px;width:18px;height:18px}:host(:hover),:host(:focus){background-color:hsla(var(--primary), 0.3);outline:none}:host([elevated]){background-color:hsl(var(--surface-container-low));color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:host([elevated]:hover),:host([elevated]:focus){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15);background-color:hsl(var(--surface-container-high));outline:none}:host([filled]){background-color:hsl(var(--primary));color:hsl(var(--on-primary))}:host([filled]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--primary), 0.6)}:host([filled]:focus){background-color:hsla(var(--primary), 0.6);outline:none}:host([tonal]){background-color:hsl(var(--secondary-container));color:hsl(var(--on-secondary-container))}:host([tonal]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--on-secondary-container), 0.3)}:host([tonal]:focus){background-color:hsla(var(--on-secondary-container), 0.3);outline:none}:host([outlined]){background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));color:hsl(var(--primary))}:host([outlined]:hover){background-color:hsla(var(--primary), 0.08);color:hsl(var(--primary))}:host([outlined]:focus){background-color:hsla(var(--primary), 0.12);border-color:hsl(var(--primary));outline:none}:host([fab]){background-color:hsl(var(--primary));display:inline-flex;justify-content:center;align-items:center;color:hsl(var(--on-primary));box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);width:56px;height:56px;padding:12px;border-radius:16px}:host([fab]) tk-icon{margin-left:0;width:24px;height:24px}:host([fab]) .content{margin:0}:host([fab][extended]){width:auto;min-width:80px}:host([fab][extended]) .content{margin:0 24px}:host([fab][extended]) .content.has-icon{margin:0 24px 0 8px}:host([fab][extended]) tk-icon{margin-left:16px}:host([fab]:hover){background-color:hsla(var(--on-primary-container), 0.3)}:host([fab]:focus){box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);background-color:hsla(var(--on-primary-container), 0.3);outline:none}:host([fab][small]){width:40px;height:40px;border-radius:12px}:host([fab][small]) tk-icon{width:24px;height:24px}:host([fab][large]){width:96px;height:96px;border-radius:28px}:host([fab][large]) tk-icon{width:36px;height:36px}:host([disabled]){pointer-events:none;cursor:not-allowed;background-color:hsla(var(--on-surface), 0.12);box-shadow:none;opacity:.5;color:hsl(var(--on-surface))}")}
46
35
  `]}render(){return c.html`
47
36
  ${this.iconPath?c.html`
@@ -53,12 +42,12 @@
53
42
  </div>
54
43
 
55
44
  ${this.href?c.html`
56
- <a tabindex="-1" hidden id="ahref" href="${this.href}" target="${(0,d.ifDefined)(this.target)}" rel="noreferrer"></a>
45
+ <a tabindex="-1" hidden id="ahref" href="${this.href}" target="${(0,k.ifDefined)(this.target)}" rel="noreferrer"></a>
57
46
  `:""}
58
- <button id=${this._id} hidden type="${(0,d.ifDefined)(this.type)}"></button>
59
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}firstUpdated(){"submit"!=this.type&&"reset"!=this.type||this.appendChild(this.$button)}handleClick(t){var r;this.href&&t.isTrusted?(t.stopPropagation(),t.preventDefault(),this.$ahref.click()):(t.isTrusted&&"submit"==this.type||"reset"==this.type)&&(null===(r=this.querySelector("button"))||void 0===r||r.click())}slotChanged(){var t;const r=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),e=null==r?void 0:r.assignedNodes({flatten:!0});e&&e.length>0?this.setAttribute("extended",""):this.removeAttribute("extended")}};k([(0,h.property)()],w.prototype,"href",void 0),k([(0,h.property)()],w.prototype,"target",void 0),k([(0,h.property)()],w.prototype,"type",void 0),k([(0,h.property)({type:Boolean})],w.prototype,"disabled",void 0),k([(0,h.property)({type:Boolean})],w.prototype,"fab",void 0),k([(0,h.property)({type:String})],w.prototype,"iconPath",void 0),k([(0,h.property)()],w.prototype,"ripple",void 0),k([(0,h.query)("#ahref")],w.prototype,"$ahref",void 0),k([(0,h.query)("button")],w.prototype,"$button",void 0),w=k([(0,h.customElement)("tk-button")],w);var $=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let z=class extends c.LitElement{constructor(){super(...arguments),this._id=v(),this.checked=!1,this.disabled=!1}render(){return c.html`
60
- <tk-box direction="row" align-items="center">
61
- <tk-box ripple tabindex="${this.disabled?-1:0}" class="state">
47
+ <button id=${this._id} hidden type="${(0,k.ifDefined)(this.type)}"></button>
48
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}firstUpdated(){"submit"!=this.type&&"reset"!=this.type||this.appendChild(this.$button)}handleClick(t){var e;this.href&&t.isTrusted?(t.stopPropagation(),t.preventDefault(),this.$ahref.click()):(t.isTrusted&&"submit"==this.type||"reset"==this.type)&&(null===(e=this.querySelector("button"))||void 0===e||e.click())}slotChanged(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),r=null==e?void 0:e.assignedNodes({flatten:!0});r&&r.length>0?this.setAttribute("extended",""):this.removeAttribute("extended")}};w([(0,h.property)()],$.prototype,"href",void 0),w([(0,h.property)()],$.prototype,"target",void 0),w([(0,h.property)()],$.prototype,"type",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"disabled",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"fab",void 0),w([(0,h.property)({type:String})],$.prototype,"iconPath",void 0),w([(0,h.property)()],$.prototype,"ripple",void 0),w([(0,h.query)("#ahref")],$.prototype,"$ahref",void 0),w([(0,h.query)("button")],$.prototype,"$button",void 0),$=w([(0,h.customElement)("tk-button")],$);var z=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let _=class extends c.LitElement{constructor(){super(),this._id=u(),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.handleClick=this.handleClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){const t={state:!0,disabled:this.disabled};return c.html`
49
+ <tk-box direction="row" align-items="center" @click=${this.handleClick}>
50
+ <tk-box ripple tabindex="${this.disabled?-1:0}" class=${(0,y.classMap)(t)} @keydown=${this.onKeyDown}>
62
51
  <div class="checkbox">
63
52
  <svg id="checkmark" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" preserveAspectRatio="none" viewBox="0 0 24 24">
64
53
  <path id="checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
@@ -68,20 +57,9 @@
68
57
  </tk-box>
69
58
  <span class="label"><slot></slot></span>
70
59
  </tk-box>
71
- <input
72
- id=${this._id}
73
- slot="none"
74
- style="display: none;"
75
- ?checked=${this.checked}
76
- type="checkbox"
77
- name="${(0,d.ifDefined)(this.name)}"
78
- value="${(0,d.ifDefined)(this.value)}"
79
- aria-hidden="true"
80
- tabindex="-1"
81
- />
82
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.onKeyDown.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.checked=!this.checked,setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}};z.styles=c.css`
60
+ `}firstUpdated(){this.$input=document.createElement("input"),this.$input.type="checkbox",this.$input.slot="none",this.$input.style.display="none",this.$input.setAttribute("aria-hidden","true"),this.$input.tabIndex=-1,this.syncInput(),this.appendChild(this.$input)}updated(){this.syncInput()}onKeyDown(t){this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.disabled||(this.checked=!this.checked,this.indeterminate&&(this.indeterminate=!1),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))))}syncInput(){var t,e;this.$input&&(this.$input.id=this._id,this.$input.name=null!==(t=this.name)&&void 0!==t?t:"",this.$input.value=null!==(e=this.value)&&void 0!==e?e:"on",this.$input.checked=this.checked,this.$input.disabled=this.disabled,this.$input.indeterminate=this.indeterminate)}};_.styles=c.css`
83
61
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex}:host .state{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:100%;outline:none;overflow:hidden}:host .checkbox{width:18px;height:18px;border:solid 2px hsl(var(--primary));transition:var(--checkbox-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), border-color var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));position:relative;display:inline-flex;align-items:center;justify-content:center;outline:none;-webkit-user-select:none;user-select:none;margin:0 5px}:host .label{user-select:none}:host([checked]) .checkbox{background-color:hsl(var(--primary))}:host([checked]:not([indeterminate])) #checkmark-path,:host([indeterminate]) #indeterminate-path{stroke-dashoffset:0}:host(:focus) #checkmark-path,:host(:hover) #checkmark-path{will-change:stroke-dashoffset}#checkmark{padding:1px}#checkmark-path,#indeterminate-path{stroke-width:5px;stroke:hsl(var(--on-primary));stroke-dasharray:30;stroke-dashoffset:30;transition:var(--checkbox-checkmark-transition, stroke-dashoffset var(--transition-duration-medium, 0.18s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)))}#checkmark-path{transition-delay:var(--checkbox-checkmark-path-delay, 50ms)}:host(:not([disabled])){cursor:pointer}:host(:focus) .state,:host(:hover) .state{background:hsla(var(--on-surface), 0.3)}:host([checked]:focus) .state,:host([checked]:hover) .state{background:hsla(var(--primary), 0.3)}:host([checked]:focus) .checked,:host([checked]:hover) .checked{background-color:hsl(var(--primary))}:host([disabled]){pointer-events:none}:host([disabled]) .checkbox{border-color:hsla(var(--on-surface), 0);background-color:hsla(var(--on-surface), 0.3)}:host([disabled]) #checkmark-path,:host([disabled]) #indeterminate-path{stroke:hsla(var(--on-surface-variant, 0.3))}:host([disabled]) .label{opacity:.6}")}
84
- `,$([(0,h.property)({attribute:!0,type:String})],z.prototype,"name",void 0),$([(0,h.property)({attribute:!0,type:String,reflect:!0})],z.prototype,"value",void 0),$([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],z.prototype,"checked",void 0),$([(0,h.property)({type:Boolean})],z.prototype,"disabled",void 0),$([(0,h.query)("input")],z.prototype,"$input",void 0),z=$([(0,h.customElement)("tk-checkbox")],z);var S=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let j=class extends c.LitElement{constructor(){super(...arguments),this.disabled=!1,this.removable=!1}onRemove(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return c.html`
62
+ `,z([(0,h.property)({attribute:!0,type:String})],_.prototype,"name",void 0),z([(0,h.property)({attribute:!0,type:String,reflect:!0})],_.prototype,"value",void 0),z([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],_.prototype,"checked",void 0),z([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],_.prototype,"disabled",void 0),z([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],_.prototype,"indeterminate",void 0),_=z([(0,h.customElement)("tk-checkbox")],_);var A=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let S=class extends c.LitElement{constructor(){super(...arguments),this.disabled=!1,this.removable=!1}onRemove(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return c.html`
85
63
  <div class="chip ${this.disabled?"disabled":""}">
86
64
 
87
65
  <!-- 3. LEADING ICON (optional) -->
@@ -102,16 +80,16 @@
102
80
  </span>
103
81
 
104
82
  </div>
105
- `}};j.styles=c.css`${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.chip{display:inline-flex;align-items:center;border-radius:16px;padding:4px 12px;background:hsl(var(--surface-container-highest));border:1px solid hsl(var(--outline-variant));font-size:14px;height:32px;gap:8px;cursor:pointer}.chip.disabled{opacity:.4;pointer-events:none}.chip .leading{display:inline-flex;align-items:center}.chip .label{white-space:nowrap}.chip .trailing{display:inline-flex;align-items:center}.chip .trailing .remove{background:none;border:none;cursor:pointer;font-size:14px;opacity:.7}.chip .trailing .remove:hover{opacity:1}")}`,S([(0,h.property)({type:Boolean})],j.prototype,"disabled",void 0),S([(0,h.property)({type:Boolean})],j.prototype,"removable",void 0),j=S([(0,h.customElement)("tk-chip")],j);var E=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let C=class extends c.LitElement{constructor(){super(...arguments),this.modal=!1,this.open=!1,this.blurOverlay=!1}render(){return c.html`
83
+ `}};S.styles=c.css`${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.chip{display:inline-flex;align-items:center;border-radius:10px;padding:3px 10px;background:hsl(var(--surface-container-highest));border:1px solid hsl(var(--outline-variant));font-size:13px;height:30px;gap:6px;line-height:1;cursor:pointer}.chip.disabled{opacity:.4;pointer-events:none}.chip .leading{display:inline-flex;align-items:center}.chip .leading slot::slotted(*){display:inline-flex;align-items:center}.chip .label{white-space:nowrap;display:inline-flex;align-items:center;line-height:1}.chip .trailing{display:inline-flex;align-items:center}.chip .trailing slot::slotted(*){display:inline-flex;align-items:center}.chip .trailing .remove{background:none;border:none;cursor:pointer;font-size:13px;line-height:1;opacity:.7}.chip .trailing .remove:hover{opacity:1}")}`,A([(0,h.property)({type:Boolean})],S.prototype,"disabled",void 0),A([(0,h.property)({type:Boolean})],S.prototype,"removable",void 0),S=A([(0,h.customElement)("tk-chip")],S);var E=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let j=class extends c.LitElement{constructor(){super(...arguments),this.modal=!1,this.open=!1,this.blurOverlay=!1}render(){return c.html`
106
84
  ${this.open?c.html`
107
85
  <div class="overlay ${this.blurOverlay?"blur":""}" @click=${()=>this.modal?null:this.hide()}></div>
108
86
  <div class="container">
109
87
  <slot></slot>
110
88
  </div>
111
89
  `:""}
112
- `}updated(t){t.has("open")&&this.open&&this.dispatchEvent(new Event("did-show")),t.has("open")&&1==t.get("open")&&!this.open&&this.dispatchEvent(new Event("did-close"))}show(){return this.open=!0,new Promise(t=>{this.resolve=t})}hide(t=null){this.open=!1,this.resolve&&this.resolve(t)}};C.styles=c.css`
90
+ `}updated(t){t.has("open")&&this.open&&this.dispatchEvent(new Event("did-show")),t.has("open")&&1==t.get("open")&&!this.open&&this.dispatchEvent(new Event("did-close"))}show(){return this.open=!0,new Promise(t=>{this.resolve=t})}hide(t=null){this.open=!1,this.resolve&&this.resolve(t)}};j.styles=c.css`
113
91
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:none;position:relative;outline:none}:host([open]){display:block;z-index:var(--dialog-z-index, 300);position:fixed;top:0;left:0;width:100%;height:100%}:host([open]) .overlay{background-color:rgba(0,0,0,.5);position:absolute;top:0;left:0;bottom:0;right:0}:host([open]) .overlay.blur{backdrop-filter:blur(2px)}:host([open]) .container{animation:fade-in .3s forwards;position:fixed;margin:0;max-width:100%;height:100%;max-height:100%;width:fit-content;will-change:transform,opacity;overflow-y:auto;overscroll-behavior:contain}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}@media(max-width: 400px){:host([open]) .container{padding:.1rem}}")}
114
- `,E([(0,h.property)({type:Boolean,attribute:!0})],C.prototype,"modal",void 0),E([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],C.prototype,"open",void 0),E([(0,h.property)({type:Boolean,attribute:"blur-overlay"})],C.prototype,"blurOverlay",void 0),C=E([(0,h.customElement)("tk-dialog")],C);var O=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let T=class extends c.LitElement{constructor(){super(...arguments),this._open=!1,this.over=!1,this.right=!1,this.swipeable=!1,this.swipeX=0,this.swipeY=0,this.isHorizontalSwipe=!1}set open(t){if(t===this._open)return;const r=this._open;this._open=t,this.requestUpdate("open",r),this._open&&this.dispatchEvent(new Event("did-show")),this._open||this.dispatchEvent(new Event("did-close"))}get open(){return this._open}render(){return c.html`
92
+ `,E([(0,h.property)({type:Boolean,attribute:!0})],j.prototype,"modal",void 0),E([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],j.prototype,"open",void 0),E([(0,h.property)({type:Boolean,attribute:"blur-overlay"})],j.prototype,"blurOverlay",void 0),j=E([(0,h.customElement)("tk-dialog")],j);var C=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let T=class extends c.LitElement{constructor(){super(...arguments),this._open=!1,this.over=!1,this.right=!1,this.swipeable=!1,this.swipeX=0,this.swipeY=0,this.isHorizontalSwipe=!1}set open(t){if(t===this._open)return;const e=this._open;this._open=t,this.requestUpdate("open",e),this._open&&this.dispatchEvent(new Event("did-show")),this._open||this.dispatchEvent(new Event("did-close"))}get open(){return this._open}render(){return c.html`
115
93
  <div class="container">
116
94
  <slot name="drawer-container"></slot>
117
95
  </div>
@@ -129,9 +107,9 @@
129
107
  <div class="drawer-swipe"></div>
130
108
  </div>
131
109
 
132
- `}updated(t){t.has("overQuery")&&this.overMediaQuery(),t.has("openQuery")&&window.matchMedia(this.openQuery).matches&&this.show(),t.has("open")&&this.swipeable&&requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")})}overMediaQuery(){this.mql&&this.mql.removeEventListener("change",this.overMediaQueryListener.bind(this)),this.mql=window.matchMedia(this.overQuery),this.mql.matches?this.setAttribute("over",""):this.removeAttribute("over"),this.mql.addEventListener("change",this.overMediaQueryListener.bind(this))}overMediaQueryListener(t){t.matches?this.setAttribute("over",""):this.removeAttribute("over")}hideIfOver(){var t;(this.overQuery&&(null===(t=this.mql)||void 0===t?void 0:t.matches)||this.over)&&(this.open=!1)}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}touchStart(t){this.swipeable&&(this.$drawer.style.transition="transform 0ms ease",this.swipeX=t.touches[0].clientX,this.swipeY=t.touches[0].clientY)}touchMove(t){if(!this.swipeable)return;const r=t.touches[0].clientX-this.swipeX,e=t.touches[0].clientY-this.swipeY;if(this.isHorizontalSwipe=Math.abs(r)>Math.abs(e),this.isHorizontalSwipe){var o,a=this.open?r>0?0:r:r<0?0:r;o=this.open?"translateX("+a+"px)":`translateX(min(calc(-100% + 10px + ${a}px), 0px)`,requestAnimationFrame(t=>{this.$drawer.style.transform=o})}}touchEnd(t){if(!this.swipeable)return;requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")});const r=t.changedTouches[0].clientX-this.swipeX;this.isHorizontalSwipe&&this.open?this.open=!(-50>r):this.isHorizontalSwipe&&!this.open&&(this.open=50<r),this.isHorizontalSwipe=!1}};T.styles=c.css`
110
+ `}updated(t){t.has("overQuery")&&this.overMediaQuery(),t.has("openQuery")&&window.matchMedia(this.openQuery).matches&&this.show(),t.has("open")&&this.swipeable&&requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")})}overMediaQuery(){this.mql&&this.mql.removeEventListener("change",this.overMediaQueryListener.bind(this)),this.mql=window.matchMedia(this.overQuery),this.mql.matches?this.setAttribute("over",""):this.removeAttribute("over"),this.mql.addEventListener("change",this.overMediaQueryListener.bind(this))}overMediaQueryListener(t){t.matches?this.setAttribute("over",""):this.removeAttribute("over")}hideIfOver(){var t;(this.overQuery&&(null===(t=this.mql)||void 0===t?void 0:t.matches)||this.over)&&(this.open=!1)}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}touchStart(t){this.swipeable&&(this.$drawer.style.transition="transform 0ms ease",this.swipeX=t.touches[0].clientX,this.swipeY=t.touches[0].clientY)}touchMove(t){if(!this.swipeable)return;const e=t.touches[0].clientX-this.swipeX,r=t.touches[0].clientY-this.swipeY;if(this.isHorizontalSwipe=Math.abs(e)>Math.abs(r),this.isHorizontalSwipe){var o,a=this.open?e>0?0:e:e<0?0:e;o=this.open?"translateX("+a+"px)":`translateX(min(calc(-100% + 10px + ${a}px), 0px)`,requestAnimationFrame(t=>{this.$drawer.style.transform=o})}}touchEnd(t){if(!this.swipeable)return;requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")});const e=t.changedTouches[0].clientX-this.swipeX;this.isHorizontalSwipe&&this.open?this.open=!(-50>e):this.isHorizontalSwipe&&!this.open&&(this.open=50<e),this.isHorizontalSwipe=!1}};T.styles=c.css`
133
111
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:block;height:100%;width:100%;position:relative;overflow:hidden;background-color:hsl(var(--surface))}.drawer{display:grid;grid-template-columns:var(--drawer-width, 256px) 10px;grid-template-rows:auto 1fr auto;grid-template-areas:"header swipe" "content swipe" "footer swipe";position:absolute;top:0;bottom:0;transform:translateX(calc(-100% + 10px));transition:transform cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-medium, 180ms);will-change:transform;touch-action:pan-y;z-index:var(--drawer-z-index, 200);background-color:hsl(var(--surface))}.drawer .drawer-header{grid-area:header}.drawer .drawer-content{grid-area:content;overflow:auto}.drawer .drawer-footer{grid-area:footer}.drawer .drawer-swipe{grid-area:swipe;background-color:rgba(0,0,0,0)}:host([right]) .drawer{right:0;transform:translateX(calc(100% + 10px))}.overlay{position:absolute;top:0;left:0;right:0;bottom:0;z-index:var(--drawer-overlay-z-index, 200);background-color:rgba(0,0,0,.5);display:none}.container{transition:padding cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-slow, 250ms);overflow:auto;height:100%}:host([open]) .drawer{transform:none}:host([open]) .container{padding-left:var(--drawer-width, 256px)}:host([open][over]) .drawer{background-color:hsl(var(--surface-container-low));box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)}:host([open][over]) .container{padding-left:0}:host([open][over]) .overlay{display:block}@media(max-width: var(--drawer-trigger-width, 400px)){:host([open]) .container{padding-left:0}:host([open]) .overlay{display:block}}')}
134
- `,O([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"open",null),O([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"over",void 0),O([(0,h.property)({type:String,attribute:"open-query"})],T.prototype,"openQuery",void 0),O([(0,h.property)({type:String,attribute:"over-query"})],T.prototype,"overQuery",void 0),O([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"right",void 0),O([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"swipeable",void 0),O([(0,h.query)("div.drawer")],T.prototype,"$drawer",void 0),O([(0,h.eventOptions)({passive:!0})],T.prototype,"touchStart",null),O([(0,h.eventOptions)({passive:!0})],T.prototype,"touchMove",null),O([(0,h.eventOptions)({passive:!0})],T.prototype,"touchEnd",null),T=O([(0,h.customElement)("tk-drawer")],T);var R=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let _=class extends c.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("submit",this.submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit",this.submit)}submit(t){t.preventDefault();const r=this.getFormDataAsObject();this.dispatchEvent(new CustomEvent("fulfill",{detail:r}))}getFormDataAsObject(){const t=this.querySelector("form"),r={};return new FormData(t).forEach((t,e)=>{var o;const a=this.querySelector(`[name=${e}]`);if("TK-SLIDER"==a.tagName&&(t=Number(t)),"TK-CHECKBOX"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),"TK-RADIO"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),e.indexOf("-")>0){const a=e.split("-");r[a[0]]=null!==(o=r[a[0]])&&void 0!==o?o:{},r[a[0]][a[1]]=t}else r[e]=t}),r}};R([(0,h.property)()],_.prototype,"value",void 0),_=R([(0,h.customElement)("tk-form")],_);var D=s(968);var L=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n},P=function(t,r,e,o){return new(e||(e=Promise))(function(a,i){function n(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var r;t.done?a(t.value):(r=t.value,r instanceof e?r:new e(function(t){t(r)})).then(n,s)}l((o=o.apply(t,r||[])).next())})};let q=class extends u{constructor(){super(...arguments),this.svg=""}static get styles(){return[...u.styles,c.css`
112
+ `,C([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"open",null),C([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"over",void 0),C([(0,h.property)({type:String,attribute:"open-query"})],T.prototype,"openQuery",void 0),C([(0,h.property)({type:String,attribute:"over-query"})],T.prototype,"overQuery",void 0),C([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"right",void 0),C([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"swipeable",void 0),C([(0,h.query)("div.drawer")],T.prototype,"$drawer",void 0),C([(0,h.eventOptions)({passive:!0})],T.prototype,"touchStart",null),C([(0,h.eventOptions)({passive:!0})],T.prototype,"touchMove",null),C([(0,h.eventOptions)({passive:!0})],T.prototype,"touchEnd",null),T=C([(0,h.customElement)("tk-drawer")],T);var O=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let R=class extends c.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("submit",this.submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit",this.submit)}submit(t){t.preventDefault();const e=this.getFormDataAsObject();this.dispatchEvent(new CustomEvent("fulfill",{detail:e}))}getFormDataAsObject(){const t=this.querySelector("form"),e={};return new FormData(t).forEach((t,r)=>{var o;const a=this.querySelector(`[name=${r}]`);if("TK-SLIDER"==a.tagName&&(t=Number(t)),"TK-CHECKBOX"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),"TK-RADIO"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),r.indexOf("-")>0){const a=r.split("-");e[a[0]]=null!==(o=e[a[0]])&&void 0!==o?o:{},e[a[0]][a[1]]=t}else e[r]=t}),e}};O([(0,h.property)()],R.prototype,"value",void 0),R=O([(0,h.customElement)("tk-form")],R);var D=s(968);var P=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n},L=function(t,e,r,o){return new(r||(r=Promise))(function(a,i){function n(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(n,s)}l((o=o.apply(t,e||[])).next())})};let q=class extends p{constructor(){super(...arguments),this.svg=""}static get styles(){return[...p.styles,c.css`
135
113
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{--color: var(--tk-icon-color, currentColor);display:inline-flex;flex-shrink:0;width:1.5em;height:1.5em}:host svg{width:100%;height:100%;display:block;fill:var(--color)}")}
136
114
  `]}render(){return c.html`
137
115
  ${this.path?c.html`
@@ -139,7 +117,7 @@
139
117
  `:c.html`
140
118
  ${(0,D.unsafeHTML)(this.svg)}
141
119
  `}
142
- `}updated(t){t.has("name")&&this.name&&this.loadIcon()}loadIcon(){return P(this,void 0,void 0,function*(){const t=this.library?document.querySelector(`tk-icons[library=${this.library}]`):document.querySelector("tk-icons");t&&(this.svg=yield fetch(t.resolve(this.name)).then(t=>t.blob().then(r=>({contentType:t.headers.get("Content-Type"),raw:r}))).then(t=>t.contentType&&/svg/.test(t.contentType)?t.raw.text():""))})}};L([(0,h.property)()],q.prototype,"name",void 0),L([(0,h.property)()],q.prototype,"library",void 0),L([(0,h.property)()],q.prototype,"path",void 0),L([(0,h.property)()],q.prototype,"svg",void 0),q=L([(0,h.customElement)("tk-icon")],q);var A=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let B=class extends c.LitElement{constructor(){super(...arguments),this.library="default"}firstUpdated(){window.document.body.appendChild(this)}};A([(0,h.property)({attribute:!1})],B.prototype,"resolve",void 0),A([(0,h.property)({reflect:!0})],B.prototype,"library",void 0),B=A([(0,h.customElement)("tk-icons")],B);var N=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let I=class extends u{static get styles(){return[...u.styles,c.css`
120
+ `}updated(t){t.has("name")&&this.name&&this.loadIcon()}loadIcon(){return L(this,void 0,void 0,function*(){const t=this.library?document.querySelector(`tk-icons[library=${this.library}]`):document.querySelector("tk-icons");t&&(this.svg=yield fetch(t.resolve(this.name)).then(t=>t.blob().then(e=>({contentType:t.headers.get("Content-Type"),raw:e}))).then(t=>t.contentType&&/svg/.test(t.contentType)?t.raw.text():""))})}};P([(0,h.property)()],q.prototype,"name",void 0),P([(0,h.property)()],q.prototype,"library",void 0),P([(0,h.property)()],q.prototype,"path",void 0),P([(0,h.property)()],q.prototype,"svg",void 0),q=P([(0,h.customElement)("tk-icon")],q);var B=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let N=class extends c.LitElement{constructor(){super(...arguments),this.library="default"}firstUpdated(){window.document.body.appendChild(this)}};B([(0,h.property)({attribute:!1})],N.prototype,"resolve",void 0),B([(0,h.property)({reflect:!0})],N.prototype,"library",void 0),N=B([(0,h.customElement)("tk-icons")],N);var H=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let M=class extends p{static get styles(){return[...p.styles,c.css`
143
121
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{height:56px;padding:0 24px 0 16px;border-radius:28px;display:flex;flex-direction:row;align-items:center;outline:none;overflow:hidden;position:relative;text-align:left;color:hsl(var(--on-surface-variant))}:host([clickable]),:host([href]){user-select:none}:host([clickable]:not([active]):not([disabled])),:host([href]:not([active]):not([disabled])){cursor:pointer}:host(:hover),:host(:focus){will-change:background,color;background-color:hsla(var(--on-surface), 0.08);color:hsl(var(--on-surface))}:host([active]){background-color:hsla(var(--secondary-container), 1);color:hsl(var(--on-secondary-container))}:host([active]:focus),:host([active]:hover){background-color:hsla(var(--secondary-container), 1);color:hsl(var(--on-secondary-container))}:host([disabled]){background:hsla(var(--surface-container-highest), 0.12);color:hsl(var(--on-surface-variant));opacity:.4;pointer-events:none}::slotted([slot=before]),::slotted([slot=after]){flex-shrink:0}::slotted([slot=before]){align-self:var(--list-item-left-align-self, center);margin:0 var(--spacing-m, 1rem) 0 0}::slotted([slot=after]){align-self:var(--list-item-left-align-self, center);margin:0 0 0 var(--spacing-m, 1rem)}#content{flex-grow:1;display:flex;flex-direction:column;max-width:100%}")}
144
122
  `]}render(){return c.html`
145
123
  <slot name="before" @click=${this.handleClick}></slot>
@@ -148,33 +126,51 @@
148
126
  </div>
149
127
  <slot name="after" @click=${this.handleClick}></slot>
150
128
  ${this.href?c.html`
151
- <a tabindex="-1" id="ahref" href="${this.href}" target=${(0,d.ifDefined)(this.target)} rel="noreferrer" aria-label=${this.ariaLabel}></a>
129
+ <a tabindex="-1" id="ahref" href="${this.href}" target=${(0,k.ifDefined)(this.target)} rel="noreferrer" aria-label=${this.ariaLabel}></a>
152
130
  `:""}
153
- `}constructor(){super(),this.href="",this.target=""}firstUpdated(){!this.ariaLabel&&this.innerText&&(this.ariaLabel=this.innerText)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onKeyDown.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(t){const r=t.target;"BUTTON"!=r.tagName&&"TK-BUTTON"!=r.tagName&&"TK-SWITCH"!=r.tagName&&"TK-CHECKBOX"!=r.tagName&&this.href&&t.isTrusted&&(t.stopPropagation(),t.preventDefault(),this.$ahref.click())}};N([(0,h.property)({attribute:!0})],I.prototype,"href",void 0),N([(0,h.property)({attribute:!0})],I.prototype,"target",void 0),N([(0,h.property)({attribute:"aria-label"})],I.prototype,"ariaLabel",void 0),N([(0,h.query)("#ahref")],I.prototype,"$ahref",void 0),I=N([(0,h.customElement)("tk-list-item")],I);var H=s(125);var K=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let M=class extends u{constructor(){super(...arguments),this.circle=!1,this.indeterminate=!1,this.percent=0}static get styles(){return[...u.styles,c.css`
154
- ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{--color: hsl(var(--primary));--background-color: var(--tk-loading-background-color, hsl(var(--surface-dim)))}:host([secondary]){--color: hsl(var(--secondary))}:host([error]){--color: hsl(var(--error))}.circle{display:inline-flex;animation:rotator 3s linear infinite;transform-origin:center;width:56px;height:56px}.circle .path{stroke-dasharray:265;stroke-dashoffset:0;transform-origin:center;stroke:var(--color);animation:dash 3s ease-in-out infinite}@keyframes rotator{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dashoffset:265}50%{stroke-dashoffset:65;transform:rotate(90deg)}100%{stroke-dashoffset:265;transform:rotate(360deg)}}:host([small]) .circle{width:20px;height:20px}:host([small]) .line{height:2px}:host([large]) .circle{width:96px;height:96px}:host([large]) .line{height:14px}.line{position:relative;background-color:var(--background-color);overflow:hidden;height:6px}.line .progress{background-color:var(--color);height:100%}.line .indeterminate{background-color:var(--color)}.line .indeterminate:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.line .indeterminate:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation-delay:1.15s}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}')}
155
- `]}render(){return c.html`
131
+ `}constructor(){super(),this.href="",this.target=""}firstUpdated(){!this.ariaLabel&&this.innerText&&(this.ariaLabel=this.innerText)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onKeyDown.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(t){const e=t.target;"BUTTON"!=e.tagName&&"TK-BUTTON"!=e.tagName&&"TK-SWITCH"!=e.tagName&&"TK-CHECKBOX"!=e.tagName&&this.href&&t.isTrusted&&(t.stopPropagation(),t.preventDefault(),this.$ahref.click())}};H([(0,h.property)({attribute:!0})],M.prototype,"href",void 0),H([(0,h.property)({attribute:!0})],M.prototype,"target",void 0),H([(0,h.property)({attribute:"aria-label"})],M.prototype,"ariaLabel",void 0),H([(0,h.query)("#ahref")],M.prototype,"$ahref",void 0),M=H([(0,h.customElement)("tk-list-item")],M);const I=globalThis,U=I.trustedTypes,V=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",Y=`lit$${Math.random().toFixed(9).slice(2)}$`,X="?"+Y,F=`<${X}>`,Q=document,W=()=>Q.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,J=t=>G(t)||"function"==typeof t?.[Symbol.iterator],tt="[ \t\n\f\r]",et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,ot=/>/g,at=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,nt=/"/g,st=/^(?:script|style|textarea|title)$/i,lt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ct=(lt(1),lt(2),lt(3),Symbol.for("lit-noChange")),ht=Symbol.for("lit-nothing"),dt=new WeakMap,pt=Q.createTreeWalker(Q,129);function ut(t,e){if(!G(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==V?V.createHTML(e):e}const vt=(t,e)=>{const r=t.length-1,o=[];let a,i=2===e?"<svg>":3===e?"<math>":"",n=et;for(let e=0;e<r;e++){const r=t[e];let s,l,c=-1,h=0;for(;h<r.length&&(n.lastIndex=h,l=n.exec(r),null!==l);)h=n.lastIndex,n===et?"!--"===l[1]?n=rt:void 0!==l[1]?n=ot:void 0!==l[2]?(st.test(l[2])&&(a=RegExp("</"+l[2],"g")),n=at):void 0!==l[3]&&(n=at):n===at?">"===l[0]?(n=a??et,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?at:'"'===l[3]?nt:it):n===nt||n===it?n=at:n===rt||n===ot?n=et:(n=at,a=void 0);const d=n===at&&t[e+1].startsWith("/>")?" ":"";i+=n===et?r+F:c>=0?(o.push(s),r.slice(0,c)+K+r.slice(c)+Y+d):r+Y+(-2===c?e:d)}return[ut(t,i+(t[r]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class bt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,i=0;const n=t.length-1,s=this.parts,[l,c]=vt(t,e);if(this.el=bt.createElement(l,r),pt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=pt.nextNode())&&s.length<n;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(K)){const e=c[i++],r=o.getAttribute(t).split(Y),n=/([.?@])?(.*)/.exec(e);s.push({type:1,index:a,name:n[2],strings:r,ctor:"."===n[1]?xt:"?"===n[1]?kt:"@"===n[1]?wt:ft}),o.removeAttribute(t)}else t.startsWith(Y)&&(s.push({type:6,index:a}),o.removeAttribute(t));if(st.test(o.tagName)){const t=o.textContent.split(Y),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],W()),pt.nextNode(),s.push({type:2,index:++a});o.append(t[e],W())}}}else if(8===o.nodeType)if(o.data===X)s.push({type:2,index:a});else{let t=-1;for(;-1!==(t=o.data.indexOf(Y,t+1));)s.push({type:7,index:a}),t+=Y.length-1}a++}}static createElement(t,e){const r=Q.createElement("template");return r.innerHTML=t,r}}function gt(t,e,r=t,o){if(e===ct)return e;let a=void 0!==o?r._$Co?.[o]:r._$Cl;const i=Z(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),void 0===i?a=void 0:(a=new i(t),a._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=a:r._$Cl=a),void 0!==a&&(e=gt(t,a._$AS(t,e.values),a,o)),e}class mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??Q).importNode(e,!0);pt.currentNode=o;let a=pt.nextNode(),i=0,n=0,s=r[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new yt(a,a.nextSibling,this,t):1===s.type?e=new s.ctor(a,s.name,s.strings,this,t):6===s.type&&(e=new $t(a,this,t)),this._$AV.push(e),s=r[++n]}i!==s?.index&&(a=pt.nextNode(),i++)}return pt.currentNode=Q,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class yt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}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=gt(this,t,e),Z(t)?t===ht||null==t||""===t?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==ct&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):J(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ht&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.T(Q.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=bt.createElement(ut(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new mt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=dt.get(t.strings);return void 0===e&&dt.set(t.strings,e=new bt(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const a of t)o===e.length?e.push(r=new yt(this.O(W()),this.O(W()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ht}_$AI(t,e=this,r,o){const a=this.strings;let i=!1;if(void 0===a)t=gt(this,t,e,0),i=!Z(t)||t!==this._$AH&&t!==ct,i&&(this._$AH=t);else{const o=t;let n,s;for(t=a[0],n=0;n<a.length-1;n++)s=gt(this,o[r+n],e,n),s===ct&&(s=this._$AH[n]),i||=!Z(s)||s!==this._$AH[n],s===ht?t=ht:t!==ht&&(t+=(s??"")+a[n+1]),this._$AH[n]=s}i&&!o&&this.j(t)}j(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xt extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ht?void 0:t}}class kt extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}}class wt extends ft{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){if((t=gt(this,t,e,0)??ht)===ct)return;const r=this._$AH,o=t===ht&&r!==ht||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==ht&&(r===ht||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class $t{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){gt(this,t)}}const zt=I.litHtmlPolyfillSupport;zt?.(bt,yt),(I.litHtmlVersions??=[]).push("3.3.1");const _t=1;class At{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const St="important",Et=" !"+St,jt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends At{constructor(t){if(super(t),t.type!==_t||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const o=t[r];return null==o?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?r.removeProperty(t):r[t]=null);for(const t in e){const o=e[t];if(null!=o){this.ft.add(t);const e="string"==typeof o&&o.endsWith(Et);t.includes("-")||e?r.setProperty(t,e?o.slice(0,-11):o,e?St:""):r[t]=o}}return ct}});var Ct=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Tt=class extends p{constructor(){super(...arguments),this.circle=!1,this.indeterminate=!1,this.percent=0}static get styles(){return[...p.styles,c.css`
132
+ ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{--color: hsl(var(--primary));--background-color: var(--tk-loading-background-color, hsl(var(--surface-dim)))}:host([secondary]){--color: hsl(var(--secondary))}:host([error]){--color: hsl(var(--error))}.circle{display:inline-flex;animation:rotator 3s linear infinite;transform-origin:center;width:56px;height:56px}.circle .track{stroke:var(--background-color);opacity:.4}.circle .path{stroke-dasharray:265;stroke-dashoffset:0;transform-origin:center;stroke:var(--color);animation:dash 3s ease-in-out infinite}@keyframes rotator{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dashoffset:265}50%{stroke-dashoffset:65;transform:rotate(90deg)}100%{stroke-dashoffset:265;transform:rotate(360deg)}}:host([small]) .circle{width:20px;height:20px}:host([small]) .line{height:2px}:host([large]) .circle{width:96px;height:96px}:host([large]) .line{height:14px}.line{position:relative;background-color:var(--background-color);overflow:hidden;height:6px}.line .progress{background-color:var(--color);height:100%;position:relative;width:100%}.line .indeterminate{background-color:rgba(0,0,0,0);position:absolute;top:0;left:0;right:0;bottom:0}.line .indeterminate:before{content:"";position:absolute;background-color:var(--color);top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.line .indeterminate:after{content:"";position:absolute;background-color:var(--color);top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation-delay:1.15s}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}')}
133
+ `]}render(){const t=this.normalizePercent(this.percent),e=2*Math.PI*40,r=e*(1-t/100),o=this.circle&&!this.indeterminate&&this.hasAttribute("percent"),a=this.indeterminate?void 0:t,i=o?jt({animation:"none"}):c.nothing,n=o?jt({animation:"none",strokeDasharray:`${e}`,strokeDashoffset:`${r}`}):c.nothing;return c.html`
156
134
  ${this.circle?c.html`
157
- <svg class="circle" viewBox="0 0 100 100">
135
+ <svg
136
+ class="circle"
137
+ viewBox="0 0 100 100"
138
+ role="progressbar"
139
+ aria-valuemin="0"
140
+ aria-valuemax="100"
141
+ aria-valuenow=${(0,k.ifDefined)(a)}
142
+ style=${i}
143
+ >
144
+ <circle class="track" fill="none" stroke-width="1em" cx="50" cy="50" r="40"></circle>
158
145
  <circle
159
- class=${(0,H.classMap)({indeterminate:this.indeterminate,path:!0})}
146
+ class=${(0,y.classMap)({indeterminate:this.indeterminate,path:!0})}
160
147
  fill="none"
161
148
  stroke-width="1em"
162
149
  stroke-linecap="butt"
163
150
  cx="50"
164
151
  cy="50"
165
152
  r="40"
153
+ style=${n}
166
154
  ></circle>
167
155
  </svg>
168
- `:c.html`
169
- <div class="line">
170
- <div class=${(0,H.classMap)({progress:!0,indeterminate:this.indeterminate})} style="${`width:${this.percent}%;`}"></div>
156
+ `:c.html`
157
+ <div
158
+ class="line"
159
+ role="progressbar"
160
+ aria-valuemin="0"
161
+ aria-valuemax="100"
162
+ aria-valuenow=${(0,k.ifDefined)(a)}
163
+ >
164
+ <div class=${(0,y.classMap)({progress:!0,indeterminate:this.indeterminate})} style=${jt(this.indeterminate?{width:"100%"}:{width:`${t}%`})}>
165
+ ${this.indeterminate?c.html`<span class="visually-hidden">Loading</span>`:c.nothing}
166
+ </div>
171
167
  </div>
172
- `}
173
- `}};K([(0,h.property)({attribute:!0,type:Boolean})],M.prototype,"circle",void 0),K([(0,h.property)({attribute:!0,type:Boolean})],M.prototype,"indeterminate",void 0),K([(0,h.property)({attribute:!0,type:Number})],M.prototype,"percent",void 0),M=K([(0,h.customElement)("tk-loading")],M);var U=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let V=class extends c.LitElement{render(){return c.html`
168
+ `}
169
+ `}normalizePercent(t){return Number.isFinite(t)?Math.min(100,Math.max(0,t)):0}};Ct([(0,h.property)({attribute:!0,type:Boolean})],Tt.prototype,"circle",void 0),Ct([(0,h.property)({attribute:!0,type:Boolean})],Tt.prototype,"indeterminate",void 0),Ct([(0,h.property)({attribute:!0,type:Number})],Tt.prototype,"percent",void 0),Tt=Ct([(0,h.customElement)("tk-loading")],Tt);var Ot=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Rt=class extends c.LitElement{render(){return c.html`
174
170
  <slot></slot>
175
- `}};V.styles=c.css`
171
+ `}};Rt.styles=c.css`
176
172
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host slot{display:flex;justify-content:space-between}")}
177
- `,V=U([(0,h.customElement)("tk-navigation-bar")],V);var X=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let Y=class extends c.LitElement{constructor(){super(...arguments),this.label="",this.iconPath="",this.activeIconPath="",this.active=!1}render(){return c.html`
173
+ `,Rt=Ot([(0,h.customElement)("tk-navigation-bar")],Rt);var Dt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Pt=class extends c.LitElement{constructor(){super(...arguments),this.label="",this.iconPath="",this.activeIconPath="",this.active=!1}render(){return c.html`
178
174
  <tk-box align-items="center">
179
175
  <tk-box ripple overflow="hidden" tabindex="0" class="indicator">
180
176
  <tk-icon path=${this.active&&this.activeIconPath?this.activeIconPath:this.iconPath}></tk-icon>
@@ -186,9 +182,9 @@
186
182
  <span class="label">${this.label}</span>
187
183
  `:""}
188
184
  </tk-box>
189
- `}};Y.styles=c.css`
185
+ `}};Pt.styles=c.css`
190
186
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{cursor:pointer}:host .indicator{position:relative;height:32px;width:64px;border-radius:16px;margin-bottom:4px;display:flex;justify-content:center;align-items:center;outline:none}:host .indicator tk-icon{width:24px;height:24px}:host .indicator .badge{display:flex;position:absolute;top:4px;left:35px}:host .label{font-size:12px;line-height:16px;margin-top:4px;font-weight:500}:host([active]){color:hsl(var(--on-secondary-container))}:host([active]) .indicator{background-color:hsl(var(--secondary-container))}:host(:hover){color:hsl(var(--on-surface-variant))}:host(:hover) .indicator{background-color:hsla(var(--on-surface-variant), 0.08)}:host(:focus){color:hsl(var(--on-surface-variant))}:host(:focus) .indicator{background-color:hsla(var(--on-surface-variant), 0.12)}:host([active]:hover){color:hsl(var(--on-surface))}:host([active]:hover) .indicator{background-color:hsla(var(--on-surface), 0.08)}:host([active]:focus){color:hsl(var(--on-surface))}:host([active]:focus) .indicator{background-color:hsl(var(--on-surface), 0.12)}")}
191
- `,X([(0,h.property)()],Y.prototype,"label",void 0),X([(0,h.property)()],Y.prototype,"iconPath",void 0),X([(0,h.property)()],Y.prototype,"activeIconPath",void 0),X([(0,h.property)({type:Boolean})],Y.prototype,"active",void 0),Y=X([(0,h.customElement)("tk-navigation-item")],Y);var Q=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let F=class extends u{static get styles(){return[...u.styles,c.css`
187
+ `,Dt([(0,h.property)()],Pt.prototype,"label",void 0),Dt([(0,h.property)()],Pt.prototype,"iconPath",void 0),Dt([(0,h.property)()],Pt.prototype,"activeIconPath",void 0),Dt([(0,h.property)({type:Boolean})],Pt.prototype,"active",void 0),Pt=Dt([(0,h.customElement)("tk-navigation-item")],Pt);var Lt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let qt=class extends p{static get styles(){return[...p.styles,c.css`
192
188
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{color:hsl(var(--primary));background:hsl(var(--on-primary));justify-content:space-between;align-items:center;flex-direction:row}:host([fixed]){position:fixed;top:0;left:0;right:0;z-index:var(--navbar-z-index, 100)}#left,#right,#title,::slotted([slot=left]),::slotted([slot=right]),::slotted([slot=title]){display:flex;align-items:center;height:100%}#title,::slotted([slot=title]){margin:var(--nav-title-margin, 0 0 0 var(--spacing-l, 1.25rem))}")}
193
189
  `]}render(){return c.html`
194
190
  <div id="left">
@@ -198,7 +194,7 @@
198
194
  <div id="right">
199
195
  <slot name="right"></slot>
200
196
  </div>
201
- `}};F=Q([(0,h.customElement)("tk-topbar")],F);var G=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let Z=class extends c.LitElement{constructor(){super(...arguments),this._id=v(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$input?(this.$input.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$input?this.$input.value:this.initialValue||""}render(){return c.html`
197
+ `}};qt=Lt([(0,h.customElement)("tk-topbar")],qt);var Bt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Nt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$input?(this.$input.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$input?this.$input.value:this.initialValue||""}render(){return c.html`
202
198
  <div id="container">
203
199
  <slot id="before" name="before"></slot>
204
200
  <div id="wrapper">
@@ -212,42 +208,42 @@
212
208
  ?required="${this.required}"
213
209
  ?disabled="${this.disabled}"
214
210
  ?readonly="${this.readonly}"
215
- autocomplete="${(0,d.ifDefined)(this.autocomplete)}"
216
- autocapitalize="${(0,d.ifDefined)(this.autocapitalize)}"
217
- aria-label="${(0,d.ifDefined)(this.label)}"
218
- type="${(0,d.ifDefined)(this.type)}"
219
- name="${(0,d.ifDefined)(this.name)}"
220
- list="${(0,d.ifDefined)(this.list)}"
221
- pattern="${(0,d.ifDefined)(this.pattern)}"
222
- minlength="${(0,d.ifDefined)(this.minLength)}"
223
- maxlength="${(0,d.ifDefined)(this.maxLength)}"
224
- min="${(0,d.ifDefined)(this.min)}"
225
- max="${(0,d.ifDefined)(this.max)}"
211
+ autocomplete="${(0,k.ifDefined)(this.autocomplete)}"
212
+ autocapitalize="${(0,k.ifDefined)(this.autocapitalize)}"
213
+ aria-label="${(0,k.ifDefined)(this.label)}"
214
+ type="${(0,k.ifDefined)(this.type)}"
215
+ name="${(0,k.ifDefined)(this.name)}"
216
+ list="${(0,k.ifDefined)(this.list)}"
217
+ pattern="${(0,k.ifDefined)(this.pattern)}"
218
+ minlength="${(0,k.ifDefined)(this.minLength)}"
219
+ maxlength="${(0,k.ifDefined)(this.maxLength)}"
220
+ min="${(0,k.ifDefined)(this.min)}"
221
+ max="${(0,k.ifDefined)(this.max)}"
226
222
  tabindex="${this.disabled?-1:0}"
227
223
  />
228
224
  </div>
229
225
  <slot id="after" name="after"></slot>
230
226
  </div>
231
- `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$input=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"),this.appendChild(this.$input),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$input.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$input.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid","")}focus(){this.$input.focus()}};Z.styles=c.css`
227
+ `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$input=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"),this.appendChild(this.$input),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$input.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$input.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid","")}focus(){this.$input.focus()}};Nt.styles=c.css`
232
228
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}")}
233
- `,G([(0,h.property)({type:String})],Z.prototype,"value",null),G([(0,h.property)({attribute:!0,type:String})],Z.prototype,"name",void 0),G([(0,h.property)({type:String})],Z.prototype,"list",void 0),G([(0,h.property)({type:String})],Z.prototype,"type",void 0),G([(0,h.property)({type:Boolean})],Z.prototype,"required",void 0),G([(0,h.property)({type:Boolean,reflect:!0})],Z.prototype,"disabled",void 0),G([(0,h.property)({type:Boolean})],Z.prototype,"readonly",void 0),G([(0,h.property)({type:String})],Z.prototype,"autocomplete",void 0),G([(0,h.property)({type:String})],Z.prototype,"autocapitalize",void 0),G([(0,h.property)({type:String})],Z.prototype,"pattern",void 0),G([(0,h.state)()],Z.prototype,"initialValue",void 0),G([(0,h.property)({type:String})],Z.prototype,"label",void 0),G([(0,h.property)({type:Number})],Z.prototype,"min",void 0),G([(0,h.property)({type:Number})],Z.prototype,"max",void 0),G([(0,h.property)({type:Number})],Z.prototype,"minLength",void 0),G([(0,h.property)({type:Number})],Z.prototype,"maxLength",void 0),G([(0,h.eventOptions)({passive:!0})],Z.prototype,"handleChange",null),Z=G([(0,h.customElement)("tk-textfield")],Z);var W,J,tt,rt=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};!function(t){t.show="show",t.force="force",t.confirm="confirm",t.input="input"}(J||(J={})),function(t){t.success="success",t.warning="warning",t.error="error",t.info="info",t.neutral="neutral"}(tt||(tt={}));let et=W=class extends u{static get styles(){return[...u.styles,c.css`
229
+ `,Bt([(0,h.property)({type:String})],Nt.prototype,"value",null),Bt([(0,h.property)({attribute:!0,type:String})],Nt.prototype,"name",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"list",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"type",void 0),Bt([(0,h.property)({type:Boolean})],Nt.prototype,"required",void 0),Bt([(0,h.property)({type:Boolean,reflect:!0})],Nt.prototype,"disabled",void 0),Bt([(0,h.property)({type:Boolean})],Nt.prototype,"readonly",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"autocomplete",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"autocapitalize",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"pattern",void 0),Bt([(0,h.state)()],Nt.prototype,"initialValue",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"label",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"min",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"max",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"minLength",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"maxLength",void 0),Bt([(0,h.eventOptions)({passive:!0})],Nt.prototype,"handleChange",null),Nt=Bt([(0,h.customElement)("tk-textfield")],Nt);var Ht,Mt,It,Ut=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};!function(t){t.show="show",t.force="force",t.confirm="confirm",t.input="input"}(Mt||(Mt={})),function(t){t.success="success",t.warning="warning",t.error="error",t.info="info",t.neutral="neutral"}(It||(It={}));let Vt=Ht=class extends p{static get styles(){return[...p.styles,c.css`
234
230
  ${(0,c.unsafeCSS)(":host{font-size:1.6rem;display:none;position:fixed;bottom:0;left:0;right:0;top:0;margin:0;z-index:var(--notie-z-index, 400)}:host .overlay{background-color:rgba(0,0,0,.5019607843);position:fixed;top:0;right:0;left:0;bottom:0}:host .container{position:fixed;right:0;left:0;bottom:0;height:fit-content;background-color:hsl(var(--primary));box-shadow:10px 10px 10px 10px var(--shadow);z-index:calc(var(--notie-z-index, 400) + 1);transform:translateY(100%);transition:all 150ms ease-in;color:hsl(var(--on-primary));text-align:center}:host .container.info{color:#fff;background-color:#4d82d6}:host .container.error{color:#fff;background-color:#e1715b}:host .container.warning{color:#fff;background-color:#d6a14d}:host .container.success{color:#fff;background-color:#57bf57}:host .text{padding:.5em}:host .input{--input-font-size: vars.$font-size-widescreen;background-color:var(--background, white);color:var(--foreground, black);text-align:center}:host .button{cursor:pointer;padding:.5em}:host .button.confirm,:host .button.force{background-color:#57bf57;color:#fff}:host .button.cancel{color:var(--on-error, white);background-color:var(--error, #e1715b)}@media screen and (max-width: 900px){:host{font-size:1.4rem}}:host([position=top]) .container{position:fixed;top:0;bottom:inherit;transform:translateY(-100%)}:host([open]) .container{transform:translateY(0)}")}
235
231
  `]}render(){return c.html`
236
- <div class="overlay" @click=${()=>this.type==J.force?null:this.hide(!1)}></div>
232
+ <div class="overlay" @click=${()=>this.type==Mt.force?null:this.hide(!1)}></div>
237
233
  <tk-box class="container ${this.level}">
238
234
  ${this.text?c.html`
239
- <tk-box class="text" @click="${()=>this.type==J.show?this.hide(!0):null}">${this.text}</tk-box>
235
+ <tk-box class="text" @click="${()=>this.type==Mt.show?this.hide(!0):null}">${this.text}</tk-box>
240
236
  `:""}
241
237
  ${this.template?c.html`
242
- <tk-box class="template" @click="${()=>this.type==J.show?this.hide(!0):null}">${this.template}</tk-box>
238
+ <tk-box class="template" @click="${()=>this.type==Mt.show?this.hide(!0):null}">${this.template}</tk-box>
243
239
  `:""}
244
- ${this.type==J.force?c.html`
240
+ ${this.type==Mt.force?c.html`
245
241
  <tk-box @click="${()=>this.hide(!0)}" class="button force">${this.buttonText}</tk-box>
246
242
  `:""}
247
- ${this.type==J.input?c.html`
243
+ ${this.type==Mt.input?c.html`
248
244
  <tk-textfield type=${this.inputType} class="input"></tk-textfield>
249
245
  `:""}
250
- ${this.type==J.confirm||this.type==J.input?c.html`
246
+ ${this.type==Mt.confirm||this.type==Mt.input?c.html`
251
247
  <tk-box direction="row">
252
248
  <tk-box justify="center" align-items="center" flex="grow" @click="${()=>this.hide(!0)}" class="button confirm">
253
249
  ${this.confirmText}
@@ -258,11 +254,11 @@
258
254
  </tk-box>
259
255
  `:""}
260
256
  </tk-box>
261
- `}show(){return new Promise(t=>{this.resolve=t,this.style.setProperty("display","flex"),setTimeout(()=>this.open=!0),this.dispatchEvent(new Event("did-show")),setTimeout(()=>{this.$input&&this.$input.focus()},100),this.type==J.show&&setTimeout(()=>this.hide(!1),this.delay)})}hide(t){t&&this.type===J.input&&(t=this.$input.value),t||this.type!==J.input||(t=null),this.$input&&(this.$input.value=""),this.$container.addEventListener("transitionend",()=>{this.dispatchEvent(new Event("did-hide")),this.resolve(t),this.persistent||this.remove()},{once:!0}),this.open=!1}constructor(t=""){super(),this.persistent=!0,this.open=!1,this.position="bottom",this.type=J.show,this.level=tt.info,this.delay=3e3,this.animationDelay=300,this.inputType="text",this.buttonText="OK",this.confirmText="OK",this.cancelText="CANCEL",this.text=t}static show(t){return this.getNotie(t,J.show).show()}static force(t){const r=this.getNotie(t,J.force);return t.buttonText&&(r.buttonText=t.buttonText),r.show()}static confirm(t){const r=this.getNotie(t,J.confirm);return t.confirmText&&(r.confirmText=t.confirmText),t.cancelText&&(r.cancelText=t.cancelText),r.show()}static input(t){const r=this.getNotie(t,J.input);return t.inputType&&(r.inputType=t.inputType),t.password&&(r.inputType="password"),t.confirmText&&(r.confirmText=t.confirmText),t.cancelText&&(r.cancelText=t.cancelText),r.show()}static getNotie(t,r){var e,o;const a=new W(t.text);return a.persistent=!1,a.type=r,a.delay=null!==(e=t.delay)&&void 0!==e?e:999999999,t.level&&(a.level=t.level),t.template&&(a.template=t.template),t.position&&(a.position=t.position),t.background&&a.$container&&a.$container.setAttribute("background-color",t.background),t.color&&a.$container&&a.$container.setAttribute("color",t.color),t.container?null===(o=t.container.shadowRoot)||void 0===o||o.appendChild(a):window.document.body.appendChild(a),t.zIndex&&a.style.setProperty("z-index",t.zIndex.toString()),a}};rt([(0,h.state)()],et.prototype,"persistent",void 0),rt([(0,h.property)({type:Boolean,reflect:!0})],et.prototype,"open",void 0),rt([(0,h.property)({reflect:!0})],et.prototype,"position",void 0),rt([(0,h.state)()],et.prototype,"type",void 0),rt([(0,h.property)({type:String})],et.prototype,"level",void 0),rt([(0,h.property)({type:Number})],et.prototype,"delay",void 0),rt([(0,h.property)()],et.prototype,"text",void 0),rt([(0,h.property)()],et.prototype,"inputType",void 0),rt([(0,h.property)()],et.prototype,"buttonText",void 0),rt([(0,h.property)()],et.prototype,"confirmText",void 0),rt([(0,h.property)()],et.prototype,"cancelText",void 0),rt([(0,h.property)({type:Object})],et.prototype,"template",void 0),rt([(0,h.query)("tk-textfield")],et.prototype,"$input",void 0),rt([(0,h.query)(".container")],et.prototype,"$container",void 0),et=W=rt([(0,h.customElement)("tk-notie")],et);var ot=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let at=class extends c.LitElement{constructor(){super(...arguments),this._page="",this.selected="",this.handleScroll=!1,this.scrollHistory={}}set page(t){let r=this._page;if(this._page=t,r&&this.handleScroll){if(this.querySelector(`[page=${r}]`)){const t=document.scrollingElement||document.documentElement;this.scrollHistory[r]=t.scrollTop}}this.requestUpdate("page",r)}get page(){return this._page}render(){return c.html`
257
+ `}show(){return new Promise(t=>{this.resolve=t,this.style.setProperty("display","flex"),setTimeout(()=>this.open=!0),this.dispatchEvent(new Event("did-show")),setTimeout(()=>{this.$input&&this.$input.focus()},100),this.type==Mt.show&&setTimeout(()=>this.hide(!1),this.delay)})}hide(t){t&&this.type===Mt.input&&(t=this.$input.value),t||this.type!==Mt.input||(t=null),this.$input&&(this.$input.value=""),this.$container.addEventListener("transitionend",()=>{this.dispatchEvent(new Event("did-hide")),this.resolve(t),this.persistent||this.remove()},{once:!0}),this.open=!1}constructor(t=""){super(),this.persistent=!0,this.open=!1,this.position="bottom",this.type=Mt.show,this.level=It.info,this.delay=3e3,this.animationDelay=300,this.inputType="text",this.buttonText="OK",this.confirmText="OK",this.cancelText="CANCEL",this.text=t}static show(t){return this.getNotie(t,Mt.show).show()}static force(t){const e=this.getNotie(t,Mt.force);return t.buttonText&&(e.buttonText=t.buttonText),e.show()}static confirm(t){const e=this.getNotie(t,Mt.confirm);return t.confirmText&&(e.confirmText=t.confirmText),t.cancelText&&(e.cancelText=t.cancelText),e.show()}static input(t){const e=this.getNotie(t,Mt.input);return t.inputType&&(e.inputType=t.inputType),t.password&&(e.inputType="password"),t.confirmText&&(e.confirmText=t.confirmText),t.cancelText&&(e.cancelText=t.cancelText),e.show()}static getNotie(t,e){var r,o;const a=new Ht(t.text);return a.persistent=!1,a.type=e,a.delay=null!==(r=t.delay)&&void 0!==r?r:999999999,t.level&&(a.level=t.level),t.template&&(a.template=t.template),t.position&&(a.position=t.position),t.background&&a.$container&&a.$container.setAttribute("background-color",t.background),t.color&&a.$container&&a.$container.setAttribute("color",t.color),t.container?null===(o=t.container.shadowRoot)||void 0===o||o.appendChild(a):window.document.body.appendChild(a),t.zIndex&&a.style.setProperty("z-index",t.zIndex.toString()),a}};Ut([(0,h.state)()],Vt.prototype,"persistent",void 0),Ut([(0,h.property)({type:Boolean,reflect:!0})],Vt.prototype,"open",void 0),Ut([(0,h.property)({reflect:!0})],Vt.prototype,"position",void 0),Ut([(0,h.state)()],Vt.prototype,"type",void 0),Ut([(0,h.property)({type:String})],Vt.prototype,"level",void 0),Ut([(0,h.property)({type:Number})],Vt.prototype,"delay",void 0),Ut([(0,h.property)()],Vt.prototype,"text",void 0),Ut([(0,h.property)()],Vt.prototype,"inputType",void 0),Ut([(0,h.property)()],Vt.prototype,"buttonText",void 0),Ut([(0,h.property)()],Vt.prototype,"confirmText",void 0),Ut([(0,h.property)()],Vt.prototype,"cancelText",void 0),Ut([(0,h.property)({type:Object})],Vt.prototype,"template",void 0),Ut([(0,h.query)("tk-textfield")],Vt.prototype,"$input",void 0),Ut([(0,h.query)(".container")],Vt.prototype,"$container",void 0),Vt=Ht=Ut([(0,h.customElement)("tk-notie")],Vt);var Kt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Yt=class extends c.LitElement{constructor(){super(...arguments),this._page="",this.selected="",this.handleScroll=!1,this.scrollHistory={}}set page(t){const e=this._page;if(e!==t){if(this._page=t,e&&this.handleScroll){if(this.querySelector(`[page=${e}]`)){const t=document.scrollingElement||document.documentElement;this.scrollHistory[e]=t.scrollTop}}this.requestUpdate("page",e)}}get page(){return this._page}firstUpdated(){var t,e;if(!this.page){const r=null!==(t=this.querySelector("[page]"))&&void 0!==t?t:this.querySelector(":scope > *");r&&(this.page=null!==(e=r.getAttribute("page"))&&void 0!==e?e:"default")}this.updatePages()}render(){return c.html`
262
258
  <slot></slot>
263
- `}updated(t){t.has("page")&&this.querySelectorAll(":scope > *").forEach(t=>{var r;const e=null!==(r=t.getAttribute("page"))&&void 0!==r?r:"default",o=document.scrollingElement||document.documentElement;e==this.page?(t.removeAttribute("hidden"),""!=this.selected&&t.setAttribute(this.selected,""),this.handleScroll&&!t.hasAttribute("no-scroll")&&(o.scrollTop=this.scrollHistory[e]?this.scrollHistory[e]:0)):(t.setAttribute("hidden",""),""!=this.selected&&t.removeAttribute(this.selected))})}};at.styles=c.css`
264
- ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}")}
265
- `,ot([(0,h.property)({attribute:"page",type:String})],at.prototype,"page",null),ot([(0,h.property)({attribute:!0,type:String})],at.prototype,"selected",void 0),ot([(0,h.property)({attribute:"handle-scroll",type:Boolean})],at.prototype,"handleScroll",void 0),at=ot([(0,h.customElement)("tk-pages")],at);var it=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let nt=class extends c.LitElement{constructor(){super(...arguments),this._id=v(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1}render(){return c.html`
259
+ `}updated(t){t.has("page")&&this.updatePages()}updatePages(){const t=document.scrollingElement||document.documentElement;this.querySelectorAll(":scope > *").forEach(e=>{var r,o;const a=null!==(r=e.getAttribute("page"))&&void 0!==r?r:"default";a===this.page?(e.removeAttribute("hidden"),this.selected&&e.setAttribute(this.selected,""),this.handleScroll&&!e.hasAttribute("no-scroll")&&(t.scrollTop=null!==(o=this.scrollHistory[a])&&void 0!==o?o:0)):(e.setAttribute("hidden",""),this.selected&&e.removeAttribute(this.selected))})}};Yt.styles=c.css`
260
+ ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host ::slotted([hidden]){display:none !important}")}
261
+ `,Kt([(0,h.property)({attribute:"page",type:String,reflect:!0})],Yt.prototype,"page",null),Kt([(0,h.property)({attribute:!0,type:String})],Yt.prototype,"selected",void 0),Kt([(0,h.property)({attribute:"handle-scroll",type:Boolean})],Yt.prototype,"handleScroll",void 0),Yt=Kt([(0,h.customElement)("tk-pages")],Yt);var Xt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Ft=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1}render(){return c.html`
266
262
  <tk-box direction="row" align-items="center">
267
263
  <tk-box ripple tabindex="${this.disabled?-1:0}" class="state">
268
264
  <div class="radio">
@@ -281,13 +277,13 @@
281
277
  ?required="${this.required}"
282
278
  ?disabled="${this.disabled}"
283
279
  ?readonly="${this.readonly}"
284
- value="${(0,d.ifDefined)(this.value)}"
285
- name="${(0,d.ifDefined)(this.name)}"
280
+ value="${(0,k.ifDefined)(this.value)}"
281
+ name="${(0,k.ifDefined)(this.name)}"
286
282
  tabindex="-1"
287
283
  />
288
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.onKeyDown.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}onKeyDown(t){this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.disabled||(this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))))}};nt.styles=c.css`
284
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.onKeyDown.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}onKeyDown(t){this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.disabled||(this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))))}};Ft.styles=c.css`
289
285
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex;cursor:pointer}:host .state{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:100%;overflow:hidden;outline:none}:host .radio{width:20px;height:20px;border:solid 2px hsl(var(--on-surface-variant));border-radius:100%;transition:var(--radio-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), border-color var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));position:relative;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}:host #dot{background:hsl(var(--primary));width:10px;height:10px;border-radius:100%;transition:var(--radio-dot-transition, transform var(--transition-duration-medium, 0.18s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transform:scale(0)}:host .label{user-select:none}:host([checked]) .radio{border-color:hsl(var(--primary))}:host([checked]) #dot{transform:scale(1)}:host(:focus) .state,:host(:hover) .state{background:hsla(var(--on-surface), 0.3)}:host([checked]:focus) .state,:host([checked]:hover) .state{background:hsla(var(--primary), 0.3)}:host([disabled]){pointer-events:none;opacity:.5}:host([disabled]) .radio{border:solid 2px hsl(var(--on-surface-variant))}:host([disabled]) #dot{background:hsl(var(--on-surface-variant))}:host([disabled]) .label{opacity:.6}")}
290
- `,it([(0,h.property)({attribute:!0,type:String})],nt.prototype,"name",void 0),it([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],nt.prototype,"checked",void 0),it([(0,h.property)({type:Boolean})],nt.prototype,"required",void 0),it([(0,h.property)({type:Boolean})],nt.prototype,"disabled",void 0),it([(0,h.property)({type:Boolean})],nt.prototype,"readonly",void 0),it([(0,h.property)({type:String,reflect:!0})],nt.prototype,"value",void 0),it([(0,h.query)("input")],nt.prototype,"$input",void 0),nt=it([(0,h.customElement)("tk-radio")],nt);var st=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let lt=class extends c.LitElement{constructor(){super(...arguments),this._id=v(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$select?(this.$select.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$select?this.$select.value:this.initialValue||""}render(){return c.html`
286
+ `,Xt([(0,h.property)({attribute:!0,type:String})],Ft.prototype,"name",void 0),Xt([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],Ft.prototype,"checked",void 0),Xt([(0,h.property)({type:Boolean})],Ft.prototype,"required",void 0),Xt([(0,h.property)({type:Boolean})],Ft.prototype,"disabled",void 0),Xt([(0,h.property)({type:Boolean})],Ft.prototype,"readonly",void 0),Xt([(0,h.property)({type:String,reflect:!0})],Ft.prototype,"value",void 0),Xt([(0,h.query)("input")],Ft.prototype,"$input",void 0),Ft=Xt([(0,h.customElement)("tk-radio")],Ft);var Qt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Wt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$select?(this.$select.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$select?this.$select.value:this.initialValue||""}render(){return c.html`
291
287
  <div id="container">
292
288
  <slot id="before" name="before"></slot>
293
289
  <div id="wrapper">
@@ -303,8 +299,8 @@
303
299
  ?required="${this.required}"
304
300
  ?disabled="${this.disabled}"
305
301
  ?readonly="${this.readonly}"
306
- name="${(0,d.ifDefined)(this.name)}"
307
- autocomplete="${(0,d.ifDefined)(this.autocomplete)}"
302
+ name="${(0,k.ifDefined)(this.name)}"
303
+ autocomplete="${(0,k.ifDefined)(this.autocomplete)}"
308
304
  tabindex="${this.disabled?-1:0}"
309
305
  ></select>
310
306
  <svg id="arrow" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 25" preserveAspectRatio="none">
@@ -313,9 +309,9 @@
313
309
  </div>
314
310
  <slot id="after" name="after"></slot>
315
311
  </div>
316
- `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$select=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("select"),this.appendChild(this.$select);this.querySelectorAll("option").forEach(t=>this.$select.appendChild(t)),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$select.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$select.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid",""),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}};lt.styles=c.css`
312
+ `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$select=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("select"),this.appendChild(this.$select);this.querySelectorAll("option").forEach(t=>this.$select.appendChild(t)),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$select.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$select.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid",""),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}};Wt.styles=c.css`
317
313
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}#arrow{fill:var(--_input-state-color);z-index:-1;height:8px;position:absolute;top:50%;right:0;transform:translate(-100%, -50%)}::slotted(option){display:none}:host(:not([dirty])) ::slotted(select){opacity:0}")}
318
- `,st([(0,h.property)({type:String})],lt.prototype,"value",null),st([(0,h.property)({attribute:!0,type:String})],lt.prototype,"name",void 0),st([(0,h.property)({type:String})],lt.prototype,"list",void 0),st([(0,h.property)({type:String})],lt.prototype,"type",void 0),st([(0,h.property)({type:Boolean})],lt.prototype,"required",void 0),st([(0,h.property)({type:Boolean})],lt.prototype,"disabled",void 0),st([(0,h.property)({type:Boolean})],lt.prototype,"readonly",void 0),st([(0,h.property)({type:String})],lt.prototype,"autocomplete",void 0),st([(0,h.property)({type:String})],lt.prototype,"pattern",void 0),st([(0,h.state)()],lt.prototype,"initialValue",void 0),st([(0,h.property)({type:String})],lt.prototype,"label",void 0),st([(0,h.property)({type:Number})],lt.prototype,"min",void 0),st([(0,h.property)({type:Number})],lt.prototype,"max",void 0),st([(0,h.property)({type:Number})],lt.prototype,"minLength",void 0),st([(0,h.property)({type:Number})],lt.prototype,"maxLength",void 0),st([(0,h.eventOptions)({passive:!0})],lt.prototype,"handleChange",null),lt=st([(0,h.customElement)("tk-select")],lt);var ct=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let ht=class extends c.LitElement{constructor(){super(...arguments),this._id=v(),this.required=!1,this.disabled=!1,this.readonly=!1,this.thumbLabel=!1,this.thumbLabelPersist=!1,this.min=0,this.value=this.min,this.max=100}render(){return c.html`
314
+ `,Qt([(0,h.property)({type:String})],Wt.prototype,"value",null),Qt([(0,h.property)({attribute:!0,type:String})],Wt.prototype,"name",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"list",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"type",void 0),Qt([(0,h.property)({type:Boolean})],Wt.prototype,"required",void 0),Qt([(0,h.property)({type:Boolean})],Wt.prototype,"disabled",void 0),Qt([(0,h.property)({type:Boolean})],Wt.prototype,"readonly",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"autocomplete",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"pattern",void 0),Qt([(0,h.state)()],Wt.prototype,"initialValue",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"label",void 0),Qt([(0,h.property)({type:Number})],Wt.prototype,"min",void 0),Qt([(0,h.property)({type:Number})],Wt.prototype,"max",void 0),Qt([(0,h.property)({type:Number})],Wt.prototype,"minLength",void 0),Qt([(0,h.property)({type:Number})],Wt.prototype,"maxLength",void 0),Qt([(0,h.eventOptions)({passive:!0})],Wt.prototype,"handleChange",null),Wt=Qt([(0,h.customElement)("tk-select")],Wt);var Zt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Gt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.required=!1,this.disabled=!1,this.readonly=!1,this.thumbLabel=!1,this.thumbLabelPersist=!1,this.min=0,this.value=this.min,this.max=100}render(){return c.html`
319
315
  <div id="container">
320
316
  <slot id="before" name="before"></slot>
321
317
  <div id="wrapper">
@@ -329,12 +325,12 @@
329
325
  ?required="${this.required}"
330
326
  ?disabled="${this.disabled}"
331
327
  ?readonly="${this.readonly}"
332
- aria-label="${(0,d.ifDefined)(this.label)}"
333
- name="${(0,d.ifDefined)(this.name)}"
334
- autocomplete="${(0,d.ifDefined)(this.autocomplete)}"
335
- min="${(0,d.ifDefined)(this.min)}"
336
- max="${(0,d.ifDefined)(this.max)}"
337
- step="${(0,d.ifDefined)(this.step)}"
328
+ aria-label="${(0,k.ifDefined)(this.label)}"
329
+ name="${(0,k.ifDefined)(this.name)}"
330
+ autocomplete="${(0,k.ifDefined)(this.autocomplete)}"
331
+ min="${(0,k.ifDefined)(this.min)}"
332
+ max="${(0,k.ifDefined)(this.max)}"
333
+ step="${(0,k.ifDefined)(this.step)}"
338
334
  tabindex="0"
339
335
  />
340
336
  ${this.thumbLabel||this.thumbLabelPersist?c.html`
@@ -351,15 +347,15 @@
351
347
  ?required="${this.required}"
352
348
  ?disabled="${this.disabled}"
353
349
  ?readonly="${this.readonly}"
354
- aria-label="${(0,d.ifDefined)(this.label)}"
355
- name="${(0,d.ifDefined)(this.name)}"
350
+ aria-label="${(0,k.ifDefined)(this.label)}"
351
+ name="${(0,k.ifDefined)(this.name)}"
356
352
  />
357
353
  </div>
358
354
  <slot id="after" name="after"></slot>
359
355
  </div>
360
- `}handleChange(t){t.target.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid",""),this.value=t.target.value.toString(),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}firstUpdated(){this.appendChild(this.$input),this.setAttribute("dirty","")}updated(){requestAnimationFrame(()=>{this.style.setProperty("--_perc",((Number(this.value)-this.min)/(this.max-this.min)).toString())})}};ht.styles=c.css`
356
+ `}handleChange(t){t.target.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid",""),this.value=t.target.value.toString(),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}firstUpdated(){this.appendChild(this.$input),this.setAttribute("dirty","")}updated(){requestAnimationFrame(()=>{this.style.setProperty("--_perc",((Number(this.value)-this.min)/(this.max-this.min)).toString())})}};Gt.styles=c.css`
361
357
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host{--_perc: 0;--_slider-track-bg: var(--slider-bg, hsl(var(--shadow)));--_slider-track-bg-active: var(--slider-bg-active, hsl(var(--primary)));--_slider-thumb-bg: var(--slider-thumb-bg, hsl(var(--on-primary)));--_slider-thumb-border: var(--slider-thumb-bg, hsl(var(--primary)))}:host([disabled]){--_slider-track-bg: var(--slider-bg-disabled, hsl(var(--shadow)));--_slider-track-bg-active: var(--slider-bg-active-disabled, hsl(var(--shadow)));--_slider-thumb-bg: var(--slider-thumb-bg-disabled, hsl(var(--shadow)));--_slider-thumb-border: var(--slider-thumb-bg, hsl(var(--shadow)))}:host([thumblabel]) #container,:host([thumblabel-persist]) #container{padding-top:33px}#container{overflow:visible;border:none}#slider{height:var(--slider-height, 0.3125rem);background:linear-gradient(90deg, var(--_slider-track-bg-active) 0, var(--_slider-track-bg-active) calc(var(--_perc) * 100%), var(--_slider-track-bg) calc(var(--_perc) * 100%), var(--_slider-track-bg));cursor:grab;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;box-sizing:border-box;margin:0;border-radius:0;top:calc(var(--slider-height, 0.3125rem)*-1/2)}#slider,#thumb-container{width:100%;position:relative}#thumb-label{--_thumb-label-transform-y: 0.625rem;left:calc(var(--_perc)*100% - var(--slider-thumb-size, 1.2rem)*var(--_perc));transform:translate(calc(-50% + var(--slider-thumb-size, 1.2rem) / 2), var(--_thumb-label-transform-y));width:var(--slider-thumb-label-size, 1.875rem);height:var(--slider-thumb-label-size, 1.875rem);border-radius:var(--slider-thumb-label-border-radius, 100%);color:var(--slider-thumb-label-color, hsl(var(--on-primary)));-webkit-text-fill-color:var(--slider-thumb-label-color, hsl(var(--on-primary)));font-size:var(--slider-thumb-label-font-size, 0.75rem);transition:var(--slider-thumb-label-transition, opacity var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));opacity:0;display:flex;align-items:center;justify-content:center;pointer-events:none;text-overflow:ellipsis;bottom:calc(100% + var(--slider-thumb-size, 0.75rem) + var(--slider-height, 0.3125rem) + var(--slider-thumb-space, 0.75rem))}#thumb-label,#thumb-label:before{background:var(--slider-thumb-label-bg, hsl(var(--primary)));position:absolute}#thumb-label:before{content:"";border-radius:0 50% 50% 50%;transform:rotate(225deg);width:100%;left:0;top:0;height:100%;z-index:-1}:host([thumblabel-persist]) #thumb-label,#slider:focus+#thumb-container #thumb-label,:host:focus #thumb-label{--_thumb-label-transform-y: 0;opacity:1}#slider::-webkit-slider-thumb{background:var(--_slider-thumb-bg);width:var(--slider-thumb-size, 1.2rem);height:var(--slider-thumb-size, 1.2rem);border-radius:var(--slider-thumb-border-radius, 100%);border:solid 4px var(--_slider-thumb-border);-webkit-transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));box-shadow:0 0 0 0 var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412));-webkit-appearance:none;appearance:none;cursor:grab;position:relative}#slider::-moz-range-thumb{background:var(--_slider-thumb-bg);width:var(--slider-thumb-size, 1.2rem);height:var(--slider-thumb-size, 1.2rem);border-radius:var(--slider-thumb-border-radius, 100%);border:solid 4px var(--_slider-thumb-border);-moz-transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));box-shadow:0 0 0 0 var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412));-moz-appearance:none;appearance:none;border:none;cursor:grab;position:relative}#slider:focus::-webkit-slider-thumb{transform:var(--slider-thumb-transform-focus, scale(1.2));box-shadow:0 0 0 var(--slider-thumb-focus-ring-size, 0.75rem) var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412))}#slider:focus::-moz-range-thumb{transform:var(--slider-thumb-transform-focus, scale(1.2));box-shadow:0 0 0 var(--slider-thumb-focus-ring-size, 0.75rem) var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412))}')}
362
- `,ct([(0,h.property)({attribute:!0,type:String})],ht.prototype,"name",void 0),ct([(0,h.property)({type:String})],ht.prototype,"list",void 0),ct([(0,h.property)({type:Boolean})],ht.prototype,"required",void 0),ct([(0,h.property)({type:Boolean})],ht.prototype,"disabled",void 0),ct([(0,h.property)({type:Boolean})],ht.prototype,"readonly",void 0),ct([(0,h.property)({type:String})],ht.prototype,"autocomplete",void 0),ct([(0,h.property)({type:Boolean,attribute:"thumblabel"})],ht.prototype,"thumbLabel",void 0),ct([(0,h.property)({type:Boolean,attribute:"thumblabel-persist"})],ht.prototype,"thumbLabelPersist",void 0),ct([(0,h.property)({type:String})],ht.prototype,"label",void 0),ct([(0,h.property)({type:Number})],ht.prototype,"min",void 0),ct([(0,h.property)({type:Number,reflect:!0})],ht.prototype,"value",void 0),ct([(0,h.property)({type:Number})],ht.prototype,"max",void 0),ct([(0,h.property)({type:Number})],ht.prototype,"step",void 0),ct([(0,h.query)("#slider")],ht.prototype,"$slider",void 0),ct([(0,h.query)(".hidden-input")],ht.prototype,"$input",void 0),ht=ct([(0,h.customElement)("tk-slider")],ht);var dt=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let pt=class extends c.LitElement{constructor(){super(...arguments),this._id=v(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1}render(){return c.html`
358
+ `,Zt([(0,h.property)({attribute:!0,type:String})],Gt.prototype,"name",void 0),Zt([(0,h.property)({type:String})],Gt.prototype,"list",void 0),Zt([(0,h.property)({type:Boolean})],Gt.prototype,"required",void 0),Zt([(0,h.property)({type:Boolean})],Gt.prototype,"disabled",void 0),Zt([(0,h.property)({type:Boolean})],Gt.prototype,"readonly",void 0),Zt([(0,h.property)({type:String})],Gt.prototype,"autocomplete",void 0),Zt([(0,h.property)({type:Boolean,attribute:"thumblabel"})],Gt.prototype,"thumbLabel",void 0),Zt([(0,h.property)({type:Boolean,attribute:"thumblabel-persist"})],Gt.prototype,"thumbLabelPersist",void 0),Zt([(0,h.property)({type:String})],Gt.prototype,"label",void 0),Zt([(0,h.property)({type:Number})],Gt.prototype,"min",void 0),Zt([(0,h.property)({type:Number,reflect:!0})],Gt.prototype,"value",void 0),Zt([(0,h.property)({type:Number})],Gt.prototype,"max",void 0),Zt([(0,h.property)({type:Number})],Gt.prototype,"step",void 0),Zt([(0,h.query)("#slider")],Gt.prototype,"$slider",void 0),Zt([(0,h.query)(".hidden-input")],Gt.prototype,"$input",void 0),Gt=Zt([(0,h.customElement)("tk-slider")],Gt);var Jt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let te=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1}render(){return c.html`
363
359
  <tk-box direction="row" align-items="center">
364
360
  <span class="switch">
365
361
  <tk-box ripple tabindex="${this.disabled?-1:0}" class="state">
@@ -377,21 +373,21 @@
377
373
  ?required="${this.required}"
378
374
  ?disabled="${this.disabled}"
379
375
  ?readonly="${this.readonly}"
380
- value="${(0,d.ifDefined)(this.value)}"
381
- name="${(0,d.ifDefined)(this.name)}"
376
+ value="${(0,k.ifDefined)(this.value)}"
377
+ name="${(0,k.ifDefined)(this.name)}"
382
378
  aria-hidden="true"
383
379
  tabindex="-1"
384
380
  />
385
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.onKeyDown.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}};pt.styles=c.css`
381
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.onKeyDown.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}};te.styles=c.css`
386
382
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host .switch{background:hsl(var(--surface-container-highest));border:solid 2px hsl(var(--outline));width:52px;height:32px;border-radius:9999px;transition:var(--switch-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));display:inline-flex;flex-shrink:0;align-items:center;position:relative;-webkit-user-select:none;user-select:none;will-change:background-color}:host .switch .state{width:40px;height:40px;border-radius:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;outline:none;margin-left:-5px;transition:var(--switch-knob-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));will-change:background-color,transform}:host .switch .state #knob{width:16px;height:16px;border-radius:100%;background:hsl(var(--outline));position:absolute;will-change:background-color}:host .label{margin-left:10px}:host(:not([disabled])){cursor:pointer}:host([checked]) .switch{background:hsl(var(--primary));border:none}:host([checked]) .switch .state{transform:translateX(18px)}:host([checked]) .switch .state #knob{width:24px;height:24px;background:hsl(var(--on-primary))}:host(:focus) .switch .state,:host(:hover) .switch .state{background:hsla(var(--surface-container-highest), 0.8)}:host([checked]:focus) .switch .state,:host([checked]:hover) .switch .state{background:hsla(var(--primary), 0.3)}:host([disabled]){pointer-events:none}:host([disabled]) .switch{background:hsla(var(--surface-container-highest), 0.12);border-color:hsla(var(--on-surface), 0.12)}:host([disabled]) .switch .state #knob{background:hsla(var(--on-surface), 0.38)}:host([disabled]) .label{opacity:.6}:host([disabled][checked]) .switch{background:hsla(var(--on-surface), 0.12);border:none}:host([disabled][checked]) .switch .state #knob{background:hsla(var(--surface), 1)}")}
387
- `,dt([(0,h.property)({attribute:!0,type:String})],pt.prototype,"name",void 0),dt([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],pt.prototype,"checked",void 0),dt([(0,h.property)({type:Boolean})],pt.prototype,"required",void 0),dt([(0,h.property)({type:Boolean})],pt.prototype,"disabled",void 0),dt([(0,h.property)({type:Boolean})],pt.prototype,"readonly",void 0),dt([(0,h.property)({type:String,reflect:!0})],pt.prototype,"value",void 0),dt([(0,h.query)("input")],pt.prototype,"$input",void 0),pt=dt([(0,h.customElement)("tk-switch")],pt);var ut=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let vt=class extends c.LitElement{render(){return c.html`
383
+ `,Jt([(0,h.property)({attribute:!0,type:String})],te.prototype,"name",void 0),Jt([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],te.prototype,"checked",void 0),Jt([(0,h.property)({type:Boolean})],te.prototype,"required",void 0),Jt([(0,h.property)({type:Boolean})],te.prototype,"disabled",void 0),Jt([(0,h.property)({type:Boolean})],te.prototype,"readonly",void 0),Jt([(0,h.property)({type:String,reflect:!0})],te.prototype,"value",void 0),Jt([(0,h.query)("input")],te.prototype,"$input",void 0),te=Jt([(0,h.customElement)("tk-switch")],te);var ee=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let re=class extends c.LitElement{render(){return c.html`
388
384
  <div class="tabs">
389
385
  <slot @click=${t=>this.clickOnTab(t.target)} @slotchange=${()=>this.updateUnderline()}></slot>
390
386
  </div>
391
387
  <div class="underline"></div>
392
- `}constructor(){super(),this.secondary=!1,this.observe="",this.selected=""}firstUpdated(){if(IntersectionObserver){new IntersectionObserver(this.updateUnderline.bind(this)).observe(this)}else this.updateUnderline.bind(this)}updated(t){var r,e;t.has("selected")&&""!==this.selected&&(this.querySelectorAll("*").forEach(t=>t.removeAttribute("selected")),null===(r=this.querySelector(`[tab="${this.selected}"]`))||void 0===r||r.setAttribute("selected","")),t.has("observe")&&(null===(e=this.querySelector(`[tab="${this.selected}"]`))||void 0===e||e.focus(),this.updateUnderline())}clickOnTab(t){this.querySelectorAll("*").forEach(t=>t.removeAttribute("selected")),t.setAttribute("selected",""),this.updateUnderline(),this.dispatchEvent(new CustomEvent("change",{detail:t.getAttribute("tab"),composed:!0,bubbles:!0}))}updateUnderline(){const t=this.querySelector("[selected]");t&&setTimeout(()=>{this.$underline.style.width=t.clientWidth+"px",this.$underline.style.transform=`translateX(${t.offsetLeft}px)`})}};vt.styles=c.css`
388
+ `}constructor(){super(),this.secondary=!1,this.observe="",this.selected=""}firstUpdated(){if(IntersectionObserver){new IntersectionObserver(this.updateUnderline.bind(this)).observe(this)}else this.updateUnderline.bind(this)}updated(t){var e,r;t.has("selected")&&""!==this.selected&&(this.querySelectorAll("*").forEach(t=>t.removeAttribute("selected")),null===(e=this.querySelector(`[tab="${this.selected}"]`))||void 0===e||e.setAttribute("selected","")),t.has("observe")&&(null===(r=this.querySelector(`[tab="${this.selected}"]`))||void 0===r||r.focus(),this.updateUnderline())}clickOnTab(t){this.querySelectorAll("*").forEach(t=>t.removeAttribute("selected")),t.setAttribute("selected",""),this.updateUnderline(),this.dispatchEvent(new CustomEvent("change",{detail:t.getAttribute("tab"),composed:!0,bubbles:!0}))}updateUnderline(){const t=this.querySelector("[selected]");t&&setTimeout(()=>{this.$underline.style.width=t.clientWidth+"px",this.$underline.style.transform=`translateX(${t.offsetLeft}px)`})}};re.styles=c.css`
393
389
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-block;position:relative;overflow-x:hidden}:host([overflow]){overflow-x:auto}.tabs{display:flex}:host(:not([circle])) .tabs{border-bottom:solid 2px hsl(var(--primary-container))}.underline{will-change:transform;margin-top:-2px;background-color:hsl(var(--primary));height:2px;transition:transform ease 200ms;width:0}.circle{background-color:hsl(var(--primary));height:8px;width:8px;border-radius:var(--border-radius-circle, 50%);transition:transform ease 300ms}")}
394
- `,ut([(0,h.property)({attribute:!0,type:Boolean})],vt.prototype,"secondary",void 0),ut([(0,h.property)({attribute:!0,type:String})],vt.prototype,"observe",void 0),ut([(0,h.property)({attribute:!0,type:String})],vt.prototype,"selected",void 0),ut([(0,h.query)(".underline")],vt.prototype,"$underline",void 0),ut([(0,h.query)(".circle")],vt.prototype,"$circle",void 0),vt=ut([(0,h.customElement)("tk-tab-group")],vt);var bt=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let gt=class extends c.LitElement{constructor(){super(...arguments),this._id=v(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1,this.rows=1}set value(t){this.$input?(this.$input.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$input?this.$input.value:this.initialValue||""}render(){return c.html`
390
+ `,ee([(0,h.property)({attribute:!0,type:Boolean})],re.prototype,"secondary",void 0),ee([(0,h.property)({attribute:!0,type:String})],re.prototype,"observe",void 0),ee([(0,h.property)({attribute:!0,type:String})],re.prototype,"selected",void 0),ee([(0,h.query)(".underline")],re.prototype,"$underline",void 0),ee([(0,h.query)(".circle")],re.prototype,"$circle",void 0),re=ee([(0,h.customElement)("tk-tab-group")],re);var oe=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let ae=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1,this.rows=1}set value(t){this.$input?(this.$input.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$input?this.$input.value:this.initialValue||""}render(){return c.html`
395
391
  <div id="container">
396
392
  <slot id="before" name="before"></slot>
397
393
  <div id="wrapper">
@@ -405,26 +401,26 @@
405
401
  ?required="${this.required}"
406
402
  ?disabled="${this.disabled}"
407
403
  ?readonly="${this.readonly}"
408
- aria-label="${(0,d.ifDefined)(this.label)}"
409
- name="${(0,d.ifDefined)(this.name)}"
410
- pattern="${(0,d.ifDefined)(this.pattern)}"
411
- autocomplete="${(0,d.ifDefined)(this.autocomplete)}"
412
- autocapitalize="${(0,d.ifDefined)(this.autocapitalize)}"
413
- minlength="${(0,d.ifDefined)(this.minLength)}"
414
- maxlength="${(0,d.ifDefined)(this.maxLength)}"
404
+ aria-label="${(0,k.ifDefined)(this.label)}"
405
+ name="${(0,k.ifDefined)(this.name)}"
406
+ pattern="${(0,k.ifDefined)(this.pattern)}"
407
+ autocomplete="${(0,k.ifDefined)(this.autocomplete)}"
408
+ autocapitalize="${(0,k.ifDefined)(this.autocapitalize)}"
409
+ minlength="${(0,k.ifDefined)(this.minLength)}"
410
+ maxlength="${(0,k.ifDefined)(this.maxLength)}"
415
411
  rows="${this.rows}"
416
412
  tabindex="${this.disabled?-1:0}"
417
413
  ></textarea>
418
414
  </div>
419
415
  <slot id="after" name="after"></slot>
420
416
  </div>
421
- `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$input=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("textarea"),this.appendChild(this.$input),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$input.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$input.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid","")}focus(){this.$input.focus()}};gt.styles=c.css`
417
+ `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$input=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("textarea"),this.appendChild(this.$input),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$input.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$input.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid","")}focus(){this.$input.focus()}};ae.styles=c.css`
422
418
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host #container{height:auto;min-height:56px}#wrapper ::slotted(textarea){height:var(--textarea-height, var(--_textarea-height));min-height:var(--textarea-min-height, var(--textarea-height, var(--_textarea-height)));max-height:var(--textarea-max-height);resize:var(--textarea-resize, none);font-family:inherit}:host(:focus) ::slotted(textarea),:host(:hover) ::slotted(textarea){will-change:height}")}
423
- `,bt([(0,h.property)({type:String})],gt.prototype,"value",null),bt([(0,h.property)({attribute:!0,type:String})],gt.prototype,"name",void 0),bt([(0,h.property)({type:String})],gt.prototype,"list",void 0),bt([(0,h.property)({type:String})],gt.prototype,"type",void 0),bt([(0,h.property)({type:Boolean})],gt.prototype,"required",void 0),bt([(0,h.property)({type:Boolean,reflect:!0})],gt.prototype,"disabled",void 0),bt([(0,h.property)({type:Boolean})],gt.prototype,"readonly",void 0),bt([(0,h.property)({type:String})],gt.prototype,"autocomplete",void 0),bt([(0,h.property)({type:String})],gt.prototype,"autocapitalize",void 0),bt([(0,h.property)({type:String})],gt.prototype,"pattern",void 0),bt([(0,h.state)()],gt.prototype,"initialValue",void 0),bt([(0,h.property)({type:String})],gt.prototype,"label",void 0),bt([(0,h.property)({type:Number})],gt.prototype,"minLength",void 0),bt([(0,h.property)({type:Number})],gt.prototype,"maxLength",void 0),bt([(0,h.property)({type:Number})],gt.prototype,"rows",void 0),bt([(0,h.eventOptions)({passive:!0})],gt.prototype,"handleChange",null),gt=bt([(0,h.customElement)("tk-textarea")],gt);var mt=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let yt=class extends c.LitElement{constructor(){super(...arguments),this.primary="#62519f",this.secondary="#625B71",this.tertiary="#7D5260",this.error="#B3261E",this.neutral="#5E5F5C",this.neutralVariant="#5c6057",this.forceBody=!1,this.inverted=!1}render(){return c.html`
419
+ `,oe([(0,h.property)({type:String})],ae.prototype,"value",null),oe([(0,h.property)({attribute:!0,type:String})],ae.prototype,"name",void 0),oe([(0,h.property)({type:String})],ae.prototype,"list",void 0),oe([(0,h.property)({type:String})],ae.prototype,"type",void 0),oe([(0,h.property)({type:Boolean})],ae.prototype,"required",void 0),oe([(0,h.property)({type:Boolean,reflect:!0})],ae.prototype,"disabled",void 0),oe([(0,h.property)({type:Boolean})],ae.prototype,"readonly",void 0),oe([(0,h.property)({type:String})],ae.prototype,"autocomplete",void 0),oe([(0,h.property)({type:String})],ae.prototype,"autocapitalize",void 0),oe([(0,h.property)({type:String})],ae.prototype,"pattern",void 0),oe([(0,h.state)()],ae.prototype,"initialValue",void 0),oe([(0,h.property)({type:String})],ae.prototype,"label",void 0),oe([(0,h.property)({type:Number})],ae.prototype,"minLength",void 0),oe([(0,h.property)({type:Number})],ae.prototype,"maxLength",void 0),oe([(0,h.property)({type:Number})],ae.prototype,"rows",void 0),oe([(0,h.eventOptions)({passive:!0})],ae.prototype,"handleChange",null),ae=oe([(0,h.customElement)("tk-textarea")],ae);var ie=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let ne=class extends c.LitElement{constructor(){super(...arguments),this.primary="#62519f",this.secondary="#625B71",this.tertiary="#7D5260",this.error="#B3261E",this.neutral="#5E5F5C",this.neutralVariant="#5c6057",this.forceBody=!1,this.inverted=!1}render(){return c.html`
424
420
  <slot></slot>
425
- `}firstUpdated(t){this.setThemeColor()}hexToHSL(t){const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(null==r)return["0","0%","0%"];const[,e,o,a]=r,i=parseInt(e,16)/255,n=parseInt(o,16)/255,s=parseInt(a,16)/255,l=Math.max(i,n,s),c=Math.min(i,n,s);let h=0,d=0,p=(l+c)/2;if(l!=c){const t=l-c;switch(d=p>.5?t/(2-l-c):t/(l+c),l){case i:h=(n-s)/t+(n<s?6:0);break;case n:h=(s-i)/t+2;break;case s:h=(i-n)/t+4}h/=6}return[(360*h).toString(),(100*d).toString()+"%",(100*p).toString()+"%"]}setThemeColor(){this.primary_hsl=this.hexToHSL(this.primary),this.secondary_hsl=this.hexToHSL(this.secondary),this.tertiary_hsl=this.hexToHSL(this.tertiary),this.error_hsl=this.hexToHSL(this.error),this.neutral_hsl=this.hexToHSL(this.neutral),this.neutral_variant_hsl=this.hexToHSL(this.neutralVariant);const t=document.createElement("style");t.innerHTML=`\n\t\t\t:root {\n\t\t\t\t--primary-h: ${this.primary_hsl[0]};\n\t\t\t\t--primary-s: ${this.primary_hsl[1]};\n\t\t\t\t--primary-l: ${this.primary_hsl[2]};\n\t\t\t\t--secondary-h: ${this.secondary_hsl[0]};\n\t\t\t\t--secondary-s: ${this.secondary_hsl[1]};\n\t\t\t\t--secondary-l: ${this.secondary_hsl[2]};\n\t\t\t\t--tertiary-h: ${this.tertiary_hsl[0]};\n\t\t\t\t--tertiary-s: ${this.tertiary_hsl[1]};\n\t\t\t\t--tertiary-l: ${this.tertiary_hsl[2]};\n\t\t\t\t--error-h: ${this.error_hsl[0]};\n\t\t\t\t--error-s: ${this.error_hsl[1]};\n\t\t\t\t--error-l: ${this.error_hsl[2]};\n\t\t\t\t--neutral-h: ${this.neutral_hsl[0]};\n\t\t\t\t--neutral-s: ${this.neutral_hsl[1]};\n\t\t\t\t--neutral-l: ${this.neutral_hsl[2]};\n\t\t\t\t--neutral-variant-h: ${this.neutral_variant_hsl[0]};\n\t\t\t\t--neutral-variant-s: ${this.neutral_variant_hsl[1]};\n\t\t\t\t--neutral-variant-l: ${this.neutral_variant_hsl[2]};\n\t\t\t}\n\t\t`,document.body.appendChild(t)}};yt.styles=c.css`
421
+ `}firstUpdated(t){this.setThemeColor()}hexToHSL(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(null==e)return["0","0%","0%"];const[,r,o,a]=e,i=parseInt(r,16)/255,n=parseInt(o,16)/255,s=parseInt(a,16)/255,l=Math.max(i,n,s),c=Math.min(i,n,s);let h=0,d=0,p=(l+c)/2;if(l!=c){const t=l-c;switch(d=p>.5?t/(2-l-c):t/(l+c),l){case i:h=(n-s)/t+(n<s?6:0);break;case n:h=(s-i)/t+2;break;case s:h=(i-n)/t+4}h/=6}return[(360*h).toString(),(100*d).toString()+"%",(100*p).toString()+"%"]}setThemeColor(){this.primary_hsl=this.hexToHSL(this.primary),this.secondary_hsl=this.hexToHSL(this.secondary),this.tertiary_hsl=this.hexToHSL(this.tertiary),this.error_hsl=this.hexToHSL(this.error),this.neutral_hsl=this.hexToHSL(this.neutral),this.neutral_variant_hsl=this.hexToHSL(this.neutralVariant);const t=document.createElement("style");t.innerHTML=`\n\t\t\t:root {\n\t\t\t\t--primary-h: ${this.primary_hsl[0]};\n\t\t\t\t--primary-s: ${this.primary_hsl[1]};\n\t\t\t\t--primary-l: ${this.primary_hsl[2]};\n\t\t\t\t--secondary-h: ${this.secondary_hsl[0]};\n\t\t\t\t--secondary-s: ${this.secondary_hsl[1]};\n\t\t\t\t--secondary-l: ${this.secondary_hsl[2]};\n\t\t\t\t--tertiary-h: ${this.tertiary_hsl[0]};\n\t\t\t\t--tertiary-s: ${this.tertiary_hsl[1]};\n\t\t\t\t--tertiary-l: ${this.tertiary_hsl[2]};\n\t\t\t\t--error-h: ${this.error_hsl[0]};\n\t\t\t\t--error-s: ${this.error_hsl[1]};\n\t\t\t\t--error-l: ${this.error_hsl[2]};\n\t\t\t\t--neutral-h: ${this.neutral_hsl[0]};\n\t\t\t\t--neutral-s: ${this.neutral_hsl[1]};\n\t\t\t\t--neutral-l: ${this.neutral_hsl[2]};\n\t\t\t\t--neutral-variant-h: ${this.neutral_variant_hsl[0]};\n\t\t\t\t--neutral-variant-s: ${this.neutral_variant_hsl[1]};\n\t\t\t\t--neutral-variant-l: ${this.neutral_variant_hsl[2]};\n\t\t\t}\n\t\t`,document.body.appendChild(t)}};ne.styles=c.css`
426
422
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{font-family:var(--font-family, Roboto, sans-serif);font-size:var(--font-size, 1rem);--primary-0: var(--primary-h), var(--primary-s), 0%;--primary-10: var(--primary-h), var(--primary-s), calc(var(--primary-l) - (var(--primary-l)) / 30 * 20);--primary-20: var(--primary-h), var(--primary-s), calc(var(--primary-l) - (var(--primary-l)) / 30 * 10);--primary-30: var(--primary-h), var(--primary-s), calc(var(--primary-l) - (var(--primary-l)) / 30 * 5);--primary-40: var(--primary-h), var(--primary-s), calc(var(--primary-l));--primary-50: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 5);--primary-60: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 10);--primary-70: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 20);--primary-80: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 30);--primary-90: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 40);--primary-95: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 50);--primary-99: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 55);--primary-100: var(--primary-h), var(--primary-s), 100%;--secondary-0: var(--secondary-h), var(--secondary-s), 0%;--secondary-10: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) - (var(--secondary-l)) / 30 * 20);--secondary-20: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) - (var(--secondary-l)) / 30 * 10);--secondary-30: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) - (var(--secondary-l)) / 30 * 5);--secondary-40: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l));--secondary-50: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 5);--secondary-60: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 10);--secondary-70: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 20);--secondary-80: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 30);--secondary-90: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 40);--secondary-95: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 50);--secondary-99: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 55);--secondary-100: var(--secondary-h), var(--secondary-s), 100%;--tertiary-0: var(--tertiary-h), var(--tertiary-s), 0%;--tertiary-10: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) - (var(--tertiary-l)) / 30 * 20);--tertiary-20: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) - (var(--tertiary-l)) / 30 * 10);--tertiary-30: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) - (var(--tertiary-l)) / 30 * 5);--tertiary-40: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l));--tertiary-50: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 5);--tertiary-60: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 10);--tertiary-70: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 20);--tertiary-80: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 30);--tertiary-90: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 40);--tertiary-95: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 50);--tertiary-99: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 55);--tertiary-100: var(--tertiary-h), var(--tertiary-s), 100%;--error-0: var(--error-h), var(--error-s), 0%;--error-10: var(--error-h), var(--error-s), calc(var(--error-l) - (var(--error-l)) / 30 * 20);--error-20: var(--error-h), var(--error-s), calc(var(--error-l) - (var(--error-l)) / 30 * 10);--error-30: var(--error-h), var(--error-s), calc(var(--error-l) - (var(--error-l)) / 30 * 5);--error-40: var(--error-h), var(--error-s), calc(var(--error-l));--error-50: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 5);--error-60: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 10);--error-70: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 20);--error-80: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 30);--error-90: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 40);--error-95: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 50);--error-99: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 55);--error-100: var(--error-h), var(--error-s), 100%;--neutral-0: var(--neutral-h), var(--neutral-s), 0%;--neutral-4: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 26);--neutral-6: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 24);--neutral-10: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 20);--neutral-12: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l)- (var(--neutral-l)) / 30 * 18);--neutral-17: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 13);--neutral-22: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 8);--neutral-24: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 6);--neutral-40: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l));--neutral-87: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 30);--neutral-90: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 34);--neutral-92: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 38);--neutral-94: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 42);--neutral-96: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 46);--neutral-98: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 54);--neutral-100: var(--neutral-h), var(--neutral-s), 100%;--neutral-variant-0: var(--neutral-variant-h), var(--neutral-variant-s), 0%;--neutral-variant-30: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) - (var(--neutral-variant-l)) / 30 * 10);--neutral-variant-50: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) + ((100% - var(--neutral-variant-l)) / 60) * 5);--neutral-variant-60: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) + ((100% - var(--neutral-variant-l)) / 60) * 10);--neutral-variant-80: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) + ((100% - var(--neutral-variant-l)) / 60) * 30);--primary: var(--primary-40);--secondary: var(--secondary-40);--tertiary: var(--tertiary-40);--error: var(--error-40);--on-primary: var(--primary-100);--on-secondary: var(--secondary-100);--on-tertiary: var(--tertiary-100);--on-error: var(--error-100);--primary-container: var(--primary-90);--secondary-container: var(--secondary-90);--tertiary-container: var(--tertiary-90);--error-container: var(--error-90);--on-primary-container: var(--primary-10);--on-secondary-container: var(--secondary-10);--on-tertiary-container: var(--tertiary-10);--on-error-container: var(--error-10);--surface: var(--neutral-98);--surface-dim: var(--neutral-87);--surface-bright: var(--neutral-98);--surface-container-lowest: var(--neutral-100);--surface-container-low: var(--neutral-96);--surface-container: var(--neutral-94);--surface-container-high: var(--neutral-92);--surface-container-highest: var(--neutral-90);--surface-variant: var(--neutral-variant-90);--on-surface: var(--neutral-10);--on-surface-variant: var(--neutral-variant-30);--inverse-surface: var(--neutral-20);--inverse-on-surface: var(--neutral-95);--background: var(--neutral-98);--on-background: var(--neutral-10);--outline: var(--neutral-variant-50);--outline-variant: var(--neutral-variant-80);--inverse-surface: var(--neutral-20);--inverse-on-surface: var(--neutral-95);--inverse-primary: var(--primary-80);--shadow: var(--neutral-0);--scrim: var(--neutral-0);color:hsl(var(--on-background))}:host([inverted]){--primary: var(--primary-80);--secondary: var(--secondary-80);--tertiary: var(--tertiary-80);--error: var(--error-80);--on-primary: var(--primary-20);--on-secondary: var(--secondary-20);--on-tertiary: var(--tertiary-20);--on-error: var(--error-20);--primary-container: var(--primary-30);--secondary-container: var(--secondary-30);--tertiary-container: var(--tertiary-30);--error-container: var(--error-30);--on-primary-container: var(--primary-90);--on-secondary-container: var(--secondary-90);--on-tertiary-container: var(--tertiary-90);--on-error-container: var(--error-90);--surface: var(--neutral-6);--surface-dim: var(--neutral-6);--surface-bright: var(--neutral-24);--surface-container-lowest: var(--neutral-4);--surface-container-low: var(--neutral-10);--surface-container: var(--neutral-12);--surface-container-high: var(--neutral-17);--surface-container-highest: var(--neutral-22);--surface-variant: var(--neutral-variant-30);--on-surface: var(--neutral-90);--on-surface-variant: var(--neutral-variant-80);--inverse-surface: var(--neutral-90);--inverse-on-surface: var(--neutral-20);--background: var(--neutral-6);--on-background: var(--neutral-90);--outline: var(--neutral-variant-60);--outline-variant: var(--neutral-variant-30);--inverse-surface: var(--neutral-90);--inverse-on-surface: var(--neutral-20);--inverse-primary: var(--primary-40);--shadow: var(--neutral-0);--scrim: var(--neutral-0)}")}
427
- `,mt([(0,h.property)()],yt.prototype,"primary",void 0),mt([(0,h.property)()],yt.prototype,"secondary",void 0),mt([(0,h.property)()],yt.prototype,"tertiary",void 0),mt([(0,h.property)()],yt.prototype,"error",void 0),mt([(0,h.property)()],yt.prototype,"neutral",void 0),mt([(0,h.property)()],yt.prototype,"neutralVariant",void 0),mt([(0,h.property)({type:Boolean,attribute:"force-body",reflect:!0})],yt.prototype,"forceBody",void 0),mt([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],yt.prototype,"inverted",void 0),mt([(0,h.state)()],yt.prototype,"primary_hsl",void 0),mt([(0,h.state)()],yt.prototype,"secondary_hsl",void 0),mt([(0,h.state)()],yt.prototype,"tertiary_hsl",void 0),mt([(0,h.state)()],yt.prototype,"error_hsl",void 0),mt([(0,h.state)()],yt.prototype,"neutral_hsl",void 0),mt([(0,h.state)()],yt.prototype,"neutral_variant_hsl",void 0),yt=mt([(0,h.customElement)("tk-theme")],yt);var ft=function(t,r,e,o){var a,i=arguments.length,n=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(r,e,n):a(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};let xt=class extends c.LitElement{constructor(){super(...arguments),this.position="top"}render(){return c.html`
423
+ `,ie([(0,h.property)()],ne.prototype,"primary",void 0),ie([(0,h.property)()],ne.prototype,"secondary",void 0),ie([(0,h.property)()],ne.prototype,"tertiary",void 0),ie([(0,h.property)()],ne.prototype,"error",void 0),ie([(0,h.property)()],ne.prototype,"neutral",void 0),ie([(0,h.property)()],ne.prototype,"neutralVariant",void 0),ie([(0,h.property)({type:Boolean,attribute:"force-body",reflect:!0})],ne.prototype,"forceBody",void 0),ie([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],ne.prototype,"inverted",void 0),ie([(0,h.state)()],ne.prototype,"primary_hsl",void 0),ie([(0,h.state)()],ne.prototype,"secondary_hsl",void 0),ie([(0,h.state)()],ne.prototype,"tertiary_hsl",void 0),ie([(0,h.state)()],ne.prototype,"error_hsl",void 0),ie([(0,h.state)()],ne.prototype,"neutral_hsl",void 0),ie([(0,h.state)()],ne.prototype,"neutral_variant_hsl",void 0),ne=ie([(0,h.customElement)("tk-theme")],ne);var se=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let le=class extends c.LitElement{constructor(){super(...arguments),this.position="top"}render(){return c.html`
428
424
  <div class="container">
429
425
  <slot></slot>
430
426
  <div class="tooltip ${this.position}">
@@ -432,6 +428,6 @@
432
428
  </div>
433
429
  </div>
434
430
 
435
- `}};return xt.styles=c.css`
431
+ `}};return le.styles=c.css`
436
432
  ${(0,c.unsafeCSS)('.container{position:relative;display:inline-block}.container .tooltip{visibility:hidden;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:.4em;position:absolute;z-index:var(--notie-z-index, 400);opacity:0;transition:opacity .3s}.container .tooltip.top{top:0;right:50%;transform:translateX(50%) translateY(calc(-100% - 5px))}.container .tooltip.top::after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.container .tooltip.right{right:0;top:50%;transform:translateX(calc(100% + 5px)) translateY(-50%)}.container .tooltip.right::after{content:"";position:absolute;top:50%;right:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:rgba(0,0,0,0) #555 rgba(0,0,0,0) rgba(0,0,0,0)}.container .tooltip.bottom{bottom:0;right:50%;transform:translateX(50%) translateY(calc(100% + 5px))}.container .tooltip.bottom::after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #555 rgba(0,0,0,0)}.container .tooltip.left{left:0;top:50%;transform:translateX(calc(-100% - 5px)) translateY(-50%)}.container .tooltip.left::after{content:"";position:absolute;top:50%;left:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #555}.container:hover .tooltip{visibility:visible;opacity:1}')}
437
- `,ft([(0,h.property)({attribute:!0,type:String})],xt.prototype,"position",void 0),xt=ft([(0,h.customElement)("tk-tooltip")],xt),l})());
433
+ `,se([(0,h.property)({attribute:!0,type:String})],le.prototype,"position",void 0),le=se([(0,h.customElement)("tk-tooltip")],le),l})());