@devschile/chucao 1.8.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/chucao.esm.js.map +1 -1
- package/dist/chucao/{p-e8fe65bb.entry.js → p-04dbcfa0.entry.js} +2 -2
- package/dist/chucao/p-11083711.entry.js +2 -0
- package/dist/chucao/p-11083711.entry.js.map +1 -0
- package/dist/chucao/{p-cfb6db53.entry.js → p-121fbfc8.entry.js} +2 -2
- package/dist/chucao/p-1b1e56cd.entry.js +2 -0
- package/dist/chucao/p-1b1e56cd.entry.js.map +1 -0
- package/dist/chucao/{p-df73f786.entry.js → p-2ab4a6a8.entry.js} +2 -2
- package/dist/chucao/p-4bc8e098.entry.js +2 -0
- package/dist/chucao/p-4bc8e098.entry.js.map +1 -0
- package/dist/chucao/p-5fe8bfff.entry.js +2 -0
- package/dist/chucao/p-5fe8bfff.entry.js.map +1 -0
- package/dist/chucao/p-9bb81a65.entry.js +2 -0
- package/dist/chucao/p-9bb81a65.entry.js.map +1 -0
- package/dist/chucao/p-DWC12BJ-.js +3 -0
- package/dist/chucao/p-DWC12BJ-.js.map +1 -0
- package/dist/chucao/{p-2d7e81b2.entry.js → p-a955eebf.entry.js} +2 -2
- package/dist/chucao/{p-cbb2b478.entry.js → p-d5a9e340.entry.js} +2 -2
- package/dist/chucao/{p-1cc7042e.entry.js → p-ff5f5c1f.entry.js} +2 -2
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +186 -9
- package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-checkbox.cjs.entry.js +62 -3
- package/dist/cjs/ch-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-divider.cjs.entry.js +1 -1
- package/dist/cjs/ch-emoji.cjs.entry.js +104 -0
- package/dist/cjs/ch-emoji.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +2 -2
- package/dist/cjs/ch-radio.cjs.entry.js +62 -3
- package/dist/cjs/ch-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ch-textarea.cjs.entry.js +62 -3
- package/dist/cjs/ch-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/chucao.cjs.js +3 -3
- package/dist/cjs/chucao.cjs.js.map +1 -1
- package/dist/cjs/{index-DMeDkSQU.js → index-C9cpLteP.js} +71 -12
- package/dist/cjs/index-C9cpLteP.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.css +10 -0
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +64 -4
- package/dist/collection/components/ch-checkbox/ch-checkbox.js.map +1 -1
- package/dist/collection/components/ch-emoji/ch-emoji.css +33 -0
- package/dist/collection/components/ch-emoji/ch-emoji.js +151 -0
- package/dist/collection/components/ch-emoji/ch-emoji.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.css +11 -0
- package/dist/collection/components/ch-input/ch-input.js +64 -4
- package/dist/collection/components/ch-input/ch-input.js.map +1 -1
- package/dist/collection/components/ch-modal/ch-modal.js +1 -1
- package/dist/collection/components/ch-radio/ch-radio.css +10 -0
- package/dist/collection/components/ch-radio/ch-radio.js +64 -4
- package/dist/collection/components/ch-radio/ch-radio.js.map +1 -1
- package/dist/collection/components/ch-select/ch-select.css +11 -0
- package/dist/collection/components/ch-select/ch-select.js +64 -4
- package/dist/collection/components/ch-select/ch-select.js.map +1 -1
- package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
- package/dist/collection/components/ch-switch/ch-switch.css +10 -0
- package/dist/collection/components/ch-switch/ch-switch.js +64 -4
- package/dist/collection/components/ch-switch/ch-switch.js.map +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.css +11 -0
- package/dist/collection/components/ch-textarea/ch-textarea.js +64 -4
- package/dist/collection/components/ch-textarea/ch-textarea.js.map +1 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
- package/dist/components/ch-accordion.js +1 -1
- package/dist/components/ch-alert.js +1 -1
- package/dist/components/ch-badge.js +1 -1
- package/dist/components/ch-button.js +1 -1
- package/dist/components/ch-card.js +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-checkbox.js.map +1 -1
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-emoji.d.ts +11 -0
- package/dist/components/ch-emoji.js +2 -0
- package/dist/components/ch-emoji.js.map +1 -0
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-input.js.map +1 -1
- package/dist/components/ch-link.js +1 -1
- package/dist/components/ch-modal.js +1 -1
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-radio.js.map +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-select.js.map +1 -1
- package/dist/components/ch-spinner.js +1 -1
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-switch.js.map +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/ch-textarea.js.map +1 -1
- package/dist/components/ch-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BhAZrOxf.js +2 -0
- package/dist/components/p-BhAZrOxf.js.map +1 -0
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +186 -9
- package/dist/esm/ch-alert_8.entry.js.map +1 -1
- package/dist/esm/ch-checkbox.entry.js +62 -3
- package/dist/esm/ch-checkbox.entry.js.map +1 -1
- package/dist/esm/ch-divider.entry.js +1 -1
- package/dist/esm/ch-emoji.entry.js +102 -0
- package/dist/esm/ch-emoji.entry.js.map +1 -0
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +2 -2
- package/dist/esm/ch-radio.entry.js +62 -3
- package/dist/esm/ch-radio.entry.js.map +1 -1
- package/dist/esm/ch-tabs.entry.js +2 -2
- package/dist/esm/ch-textarea.entry.js +62 -3
- package/dist/esm/ch-textarea.entry.js.map +1 -1
- package/dist/esm/ch-tooltip.entry.js +2 -2
- package/dist/esm/chucao.js +4 -4
- package/dist/esm/chucao.js.map +1 -1
- package/dist/esm/{index-Bvah_WQV.js → index-DWC12BJ-.js} +71 -12
- package/dist/esm/index-DWC12BJ-.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-checkbox/ch-checkbox.d.ts +9 -0
- package/dist/types/components/ch-emoji/ch-emoji.d.ts +32 -0
- package/dist/types/components/ch-input/ch-input.d.ts +9 -0
- package/dist/types/components/ch-radio/ch-radio.d.ts +9 -0
- package/dist/types/components/ch-select/ch-select.d.ts +9 -0
- package/dist/types/components/ch-switch/ch-switch.d.ts +9 -0
- package/dist/types/components/ch-textarea/ch-textarea.d.ts +9 -0
- package/dist/types/components.d.ts +96 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist-react/components.d.ts +3 -0
- package/dist-react/components.js +9 -0
- package/dist-react/components.ts +12 -0
- package/dist-vue/index.d.ts +1 -0
- package/dist-vue/index.js +6 -0
- package/dist-vue/index.ts +8 -0
- package/hydrate/index.js +555 -63
- package/hydrate/index.mjs +555 -63
- package/loader/index.d.ts +1 -1
- package/package.json +5 -1
- package/dist/chucao/p-13ab5f9a.entry.js +0 -2
- package/dist/chucao/p-13ab5f9a.entry.js.map +0 -1
- package/dist/chucao/p-23c5220b.entry.js +0 -2
- package/dist/chucao/p-23c5220b.entry.js.map +0 -1
- package/dist/chucao/p-421cda05.entry.js +0 -2
- package/dist/chucao/p-421cda05.entry.js.map +0 -1
- package/dist/chucao/p-Bvah_WQV.js +0 -3
- package/dist/chucao/p-Bvah_WQV.js.map +0 -1
- package/dist/chucao/p-c16b18b7.entry.js +0 -2
- package/dist/chucao/p-c16b18b7.entry.js.map +0 -1
- package/dist/cjs/index-DMeDkSQU.js.map +0 -1
- package/dist/components/p-hyy-cLgi.js +0 -2
- package/dist/components/p-hyy-cLgi.js.map +0 -1
- package/dist/esm/index-Bvah_WQV.js.map +0 -1
- /package/dist/chucao/{p-e8fe65bb.entry.js.map → p-04dbcfa0.entry.js.map} +0 -0
- /package/dist/chucao/{p-cfb6db53.entry.js.map → p-121fbfc8.entry.js.map} +0 -0
- /package/dist/chucao/{p-df73f786.entry.js.map → p-2ab4a6a8.entry.js.map} +0 -0
- /package/dist/chucao/{p-2d7e81b2.entry.js.map → p-a955eebf.entry.js.map} +0 -0
- /package/dist/chucao/{p-cbb2b478.entry.js.map → p-d5a9e340.entry.js.map} +0 -0
- /package/dist/chucao/{p-1cc7042e.entry.js.map → p-ff5f5c1f.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as
|
|
1
|
+
import{p as e,H as t,c as s,h as r,d as i,t as a}from"./p-BhAZrOxf.js";const o=()=>`:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.select{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.select:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.select--invalid{border-color:var(--color-status-warning)}.select--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .select,:host(:user-invalid) .select{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .select:focus,:host(:user-invalid) .select:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.select:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.select option{background:var(--bg);color:var(--text)}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;let d=0;const n=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.chChange=s(this,"chChange");this.internals=this.attachInternals()}selectId=`ch-select-${++d}`;hintId=`${this.selectId}-hint`;errorId=`${this.selectId}-error`;initialValue;internals;formDisabled=false;get host(){return this}label;options=[];value;placeholder;name;disabled=false;required=false;hint;errorMessage;invalid=false;chChange;handleChange=e=>{this.value=e.target.value;this.chChange.emit(this.value)};syncForm(){const e=this.internals;if(typeof e?.setFormValue!=="function"){return}e.setFormValue(this.value??"");const t={};let s;if(this.required&&!this.value){t.valueMissing=true}if(this.invalid&&this.errorMessage){t.customError=true}s=this.errorMessage??(t.valueMissing?"Please fill out this field.":undefined);e.setValidity(t,s)}componentDidLoad(){this.initialValue=this.value;this.syncForm();this.host.addEventListener("change",this.markTouched);this.host.addEventListener("focusout",this.markTouched);this.host.addEventListener("invalid",this.markTouched)}markTouched=()=>{this.host.setAttribute("data-touched","")};formResetCallback(){this.value=this.initialValue}formDisabledCallback(e){this.formDisabled=e}get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return r(i,{key:"ffca23504c723f60f7430e6db2e1fa00db1fd4d8"},this.label&&r("label",{key:"697998ec67f01f3ca2849b1fb2aa88790d98010b",class:"label",htmlFor:this.selectId},this.label),r("select",{key:"f344d240f38dd123bdfd2d34cd15fbc7b5ae0a2c",id:this.label?this.selectId:undefined,class:{select:true,"select--invalid":this.invalid},name:this.name,disabled:this.disabled||this.formDisabled,required:this.required,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onChange:this.handleChange},this.placeholder&&r("option",{key:"34200e96dad92ed55632f0430abde5bc34cf6e6a",value:"",disabled:true,hidden:true,selected:!this.value},this.placeholder),this.options.map((e=>r("option",{value:e.value,disabled:e.disabled,selected:e.value===this.value},e.label)))),this.hint&&!(this.invalid&&this.errorMessage)&&r("p",{key:"55690dbf57cad7c974d0bf1b8eedb733ddc5b571",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&r("p",{key:"7d4598b112d21ebc96ac04bca553f63dd5825996",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get formAssociated(){return true}static get watchers(){return{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}}static get style(){return o()}},[577,"ch-select",{label:[1],options:[16],value:[1025],placeholder:[1],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},undefined,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]);function c(){if(typeof customElements==="undefined"){return}const e=["ch-select"];e.forEach((e=>{switch(e){case"ch-select":if(!customElements.get(a(e))){customElements.define(a(e),n)}break}}))}c();const l=n;const h=c;export{l as ChSelect,h as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["chSelectCss","selectIds","ChSelect","__stencil_proxyCustomElement","HTMLElement","selectId","hintId","this","errorId","label","options","value","placeholder","name","disabled","required","hint","errorMessage","invalid","chChange","handleChange","ev","target","emit","
|
|
1
|
+
{"version":3,"names":["chSelectCss","selectIds","ChSelect","__stencil_proxyCustomElement","HTMLElement","selectId","hintId","this","errorId","initialValue","internals","formDisabled","label","options","value","placeholder","name","disabled","required","hint","errorMessage","invalid","chChange","handleChange","ev","target","emit","syncForm","setFormValue","flags","message","valueMissing","customError","undefined","setValidity","componentDidLoad","host","addEventListener","markTouched","setAttribute","formResetCallback","formDisabledCallback","isDisabled","describedBy","render","h","Host","key","class","htmlFor","id","select","onChange","hidden","selected","map","option","role"],"sources":["src/components/ch-select/ch-select.css?tag=ch-select&encapsulation=shadow","src/components/ch-select/ch-select.tsx"],"sourcesContent":[":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: var(--spacing-sm);\n font-size: var(--typography-size-sm);\n font-weight: var(--typography-weight-semibold);\n color: var(--text);\n}\n\n.select {\n box-sizing: border-box;\n width: 100%;\n padding: var(--spacing-xl) var(--spacing-3xl);\n border-radius: var(--radius);\n border: var(--border-width) solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(var(--effect-blur));\n font-family: inherit;\n font-size: inherit;\n cursor: pointer;\n transition:\n border-color var(--duration-normal) var(--easing-default),\n box-shadow var(--duration-normal) var(--easing-default);\n}\n\n.select:focus {\n border-color: var(--accent);\n box-shadow: var(--shadow-focus-ring);\n outline: none;\n}\n\n.select--invalid {\n border-color: var(--color-status-warning);\n}\n\n.select--invalid:focus {\n border-color: var(--color-status-warning);\n box-shadow: 0 0 0 3px var(--color-status-warning-background);\n}\n\n:host([data-touched]:invalid) .select,\n:host(:user-invalid) .select {\n border-color: var(--color-status-warning);\n}\n\n:host([data-touched]:invalid) .select:focus,\n:host(:user-invalid) .select:focus {\n border-color: var(--color-status-warning);\n box-shadow: 0 0 0 3px var(--color-status-warning-background);\n}\n\n.select:disabled {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n}\n\n.select option {\n background: var(--bg);\n color: var(--text);\n}\n\n.hint,\n.error {\n margin: var(--spacing-sm) 0 0;\n font-size: var(--typography-size-sm);\n color: var(--text-muted);\n}\n\n.error {\n color: var(--color-status-warning);\n}\n","import { AttachInternals, Component, Element, Event, type EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\n\nexport interface ChSelectOption {\n label: string;\n value: string;\n disabled?: boolean;\n}\n\nlet selectIds = 0;\n\n@Component({\n tag: 'ch-select',\n styleUrl: 'ch-select.css',\n shadow: true,\n formAssociated: true,\n})\nexport class ChSelect {\n private readonly selectId = `ch-select-${++selectIds}`;\n private readonly hintId = `${this.selectId}-hint`;\n private readonly errorId = `${this.selectId}-error`;\n private initialValue: string | undefined;\n\n @AttachInternals() internals!: ElementInternals;\n @State() formDisabled = false;\n @Element() private host!: HTMLElement;\n\n /**\n * Visible label rendered above the select and associated with it via\n * `for`/`id`, so assistive technology announces the select's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The list of options rendered inside the select.\n */\n @Prop() options: ChSelectOption[] = [];\n\n /**\n * The value of the selected option.\n */\n @Prop({ mutable: true }) value?: string;\n\n /**\n * Placeholder shown as a disabled, hidden first option when no value is selected.\n */\n @Prop() placeholder?: string;\n\n /**\n * The name of the select, submitted with form data.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * Whether the select is disabled.\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Whether a value is required.\n */\n @Prop({ reflect: true }) required = false;\n\n /**\n * Helper text rendered below the select, associated via `aria-describedby`.\n * Replaced by `errorMessage` when the select is invalid.\n */\n @Prop() hint?: string;\n\n /**\n * Error message rendered below the select when it is invalid.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Whether the select is in an invalid state; toggles `aria-invalid` and error styling.\n */\n @Prop() invalid = false;\n\n /**\n * Emitted when the selected option changes, with the new value.\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLSelectElement).value;\n this.chChange.emit(this.value);\n };\n\n @Watch('value')\n @Watch('required')\n @Watch('invalid')\n @Watch('errorMessage')\n protected syncForm(): void {\n const internals = this.internals;\n if (typeof internals?.setFormValue !== 'function') {\n return;\n }\n internals.setFormValue(this.value ?? '');\n const flags: ValidityStateFlags = {};\n let message: string | undefined;\n if (this.required && !this.value) {\n flags.valueMissing = true;\n }\n if (this.invalid && this.errorMessage) {\n flags.customError = true;\n }\n message = this.errorMessage ?? (flags.valueMissing ? 'Please fill out this field.' : undefined);\n internals.setValidity(flags, message);\n }\n\n componentDidLoad() {\n this.initialValue = this.value;\n this.syncForm();\n this.host.addEventListener('change', this.markTouched);\n this.host.addEventListener('focusout', this.markTouched);\n this.host.addEventListener('invalid', this.markTouched);\n }\n\n private markTouched = (): void => {\n this.host.setAttribute('data-touched', '');\n };\n\n formResetCallback(): void {\n this.value = this.initialValue;\n }\n\n formDisabledCallback(isDisabled: boolean): void {\n this.formDisabled = isDisabled;\n }\n\n private get describedBy(): string | undefined {\n if (this.invalid && this.errorMessage) {\n return this.errorId;\n }\n if (this.hint) {\n return this.hintId;\n }\n return undefined;\n }\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.selectId}>\n {this.label}\n </label>\n )}\n <select\n id={this.label ? this.selectId : undefined}\n class={{ 'select': true, 'select--invalid': this.invalid }}\n name={this.name}\n disabled={this.disabled || this.formDisabled}\n required={this.required}\n aria-invalid={this.invalid ? 'true' : undefined}\n aria-describedby={this.describedBy}\n onChange={this.handleChange}\n >\n {this.placeholder && (\n <option value=\"\" disabled hidden selected={!this.value}>\n {this.placeholder}\n </option>\n )}\n {this.options.map(option => (\n <option value={option.value} disabled={option.disabled} selected={option.value === this.value}>\n {option.label}\n </option>\n ))}\n </select>\n {this.hint && !(this.invalid && this.errorMessage) && (\n <p class=\"hint\" id={this.hintId}>\n {this.hint}\n </p>\n )}\n {this.invalid && this.errorMessage && (\n <p class=\"error\" id={this.errorId} role=\"alert\">\n {this.errorMessage}\n </p>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"uEAAA,MAAMA,EAAc,IAAM,w6CCQ1B,IAAIC,EAAY,E,MAQHC,EAAQC,EAAA,MAAAD,UAAAE,E,wJACFC,SAAW,eAAeJ,IAC1BK,OAAS,GAAGC,KAAKF,gBACjBG,QAAU,GAAGD,KAAKF,iBAC3BI,aAEWC,UACVC,aAAe,M,uBAOhBC,MAKAC,QAA4B,GAKXC,MAKjBC,YAKiBC,KAKAC,SAAW,MAKXC,SAAW,MAM5BC,KAKAC,aAKAC,QAAU,MAKTC,SAEDC,aAAgBC,IACtBjB,KAAKO,MAASU,EAAGC,OAA6BX,MAC9CP,KAAKe,SAASI,KAAKnB,KAAKO,MAAM,EAOtB,QAAAa,GACR,MAAMjB,EAAYH,KAAKG,UACvB,UAAWA,GAAWkB,eAAiB,WAAY,CACjD,M,CAEFlB,EAAUkB,aAAarB,KAAKO,OAAS,IACrC,MAAMe,EAA4B,GAClC,IAAIC,EACJ,GAAIvB,KAAKW,WAAaX,KAAKO,MAAO,CAChCe,EAAME,aAAe,I,CAEvB,GAAIxB,KAAKc,SAAWd,KAAKa,aAAc,CACrCS,EAAMG,YAAc,I,CAEtBF,EAAUvB,KAAKa,eAAiBS,EAAME,aAAe,8BAAgCE,WACrFvB,EAAUwB,YAAYL,EAAOC,E,CAG/B,gBAAAK,GACE5B,KAAKE,aAAeF,KAAKO,MACzBP,KAAKoB,WACLpB,KAAK6B,KAAKC,iBAAiB,SAAU9B,KAAK+B,aAC1C/B,KAAK6B,KAAKC,iBAAiB,WAAY9B,KAAK+B,aAC5C/B,KAAK6B,KAAKC,iBAAiB,UAAW9B,KAAK+B,Y,CAGrCA,YAAc,KACpB/B,KAAK6B,KAAKG,aAAa,eAAgB,GAAG,EAG5C,iBAAAC,GACEjC,KAAKO,MAAQP,KAAKE,Y,CAGpB,oBAAAgC,CAAqBC,GACnBnC,KAAKI,aAAe+B,C,CAGtB,eAAYC,GACV,GAAIpC,KAAKc,SAAWd,KAAKa,aAAc,CACrC,OAAOb,KAAKC,O,CAEd,GAAID,KAAKY,KAAM,CACb,OAAOZ,KAAKD,M,CAEd,OAAO2B,S,CAGT,MAAAW,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACFxC,KAAKK,OACJiC,EAAA,SAAAE,IAAA,2CAAOC,MAAM,QAAQC,QAAS1C,KAAKF,UAChCE,KAAKK,OAGViC,EAAA,UAAAE,IAAA,2CACEG,GAAI3C,KAAKK,MAAQL,KAAKF,SAAW4B,UACjCe,MAAO,CAAEG,OAAU,KAAM,kBAAmB5C,KAAKc,SACjDL,KAAMT,KAAKS,KACXC,SAAUV,KAAKU,UAAYV,KAAKI,aAChCO,SAAUX,KAAKW,SAAQ,eACTX,KAAKc,QAAU,OAASY,UAAS,mBAC7B1B,KAAKoC,YACvBS,SAAU7C,KAAKgB,cAEdhB,KAAKQ,aACJ8B,EAAA,UAAAE,IAAA,2CAAQjC,MAAM,GAAGG,SAAQ,KAACoC,OAAM,KAACC,UAAW/C,KAAKO,OAC9CP,KAAKQ,aAGTR,KAAKM,QAAQ0C,KAAIC,GAChBX,EAAA,UAAQ/B,MAAO0C,EAAO1C,MAAOG,SAAUuC,EAAOvC,SAAUqC,SAAUE,EAAO1C,QAAUP,KAAKO,OACrF0C,EAAO5C,UAIbL,KAAKY,QAAUZ,KAAKc,SAAWd,KAAKa,eACnCyB,EAAA,KAAAE,IAAA,2CAAGC,MAAM,OAAOE,GAAI3C,KAAKD,QACtBC,KAAKY,MAGTZ,KAAKc,SAAWd,KAAKa,cACpByB,EAAA,KAAAE,IAAA,2CAAGC,MAAM,QAAQE,GAAI3C,KAAKC,QAASiD,KAAK,SACrClD,KAAKa,c","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as n,h as r,d as s,t as i}from"./p-
|
|
1
|
+
import{p as e,H as n,h as r,d as s,t as i}from"./p-BhAZrOxf.js";const t=()=>`:host{display:inline-block;vertical-align:middle}.spinner{display:block;box-sizing:border-box;width:1em;height:1em;border:0.125em solid currentColor;border-top-color:transparent;border-radius:50%;animation:ch-spinner-rotate var(--duration-spin) var(--easing-linear) infinite}.spinner--sm{font-size:var(--typography-size-sm)}.spinner--md{font-size:var(--typography-size-lg)}.spinner--lg{font-size:var(--typography-size-xl)}@keyframes ch-spinner-rotate{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.spinner{animation-duration:calc(var(--duration-spin) * 4)}}`;const a=e(class e extends n{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow()}size="md";label;render(){const e=Boolean(this.label);return r(s,{key:"9182eecf066be099714a870fa601f744362e697d"},r("span",{key:"d67f2572ab80facadd4d49043a892b16816b4fef",class:{spinner:true,[`spinner--${this.size}`]:true},role:e?"status":undefined,"aria-label":e?this.label:undefined,"aria-hidden":e?undefined:"true"}))}static get style(){return t()}},[513,"ch-spinner",{size:[1],label:[1]}]);function o(){if(typeof customElements==="undefined"){return}const e=["ch-spinner"];e.forEach((e=>{switch(e){case"ch-spinner":if(!customElements.get(i(e))){customElements.define(i(e),a)}break}}))}o();const d=a;const c=o;export{d as ChSpinner,c as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-spinner.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as t,H as e,c as i,h as r,d as s,t as a}from"./p-BhAZrOxf.js";const o=()=>`:host{display:inline-block}.control{position:relative;display:inline-flex;align-items:center;gap:var(--spacing-lg);cursor:pointer}.control--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.input:focus-visible~.track{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.track{position:relative;box-sizing:border-box;width:var(--spacing-6xl);height:var(--spacing-5xl);flex-shrink:0;border:var(--border-width) solid var(--border);border-radius:var(--radius-pill);background:var(--surface);transition:border-color var(--duration-normal) var(--easing-default), background-color var(--duration-normal) var(--easing-default)}.thumb{position:absolute;top:50%;left:var(--spacing-2xs);width:var(--spacing-2xl);height:var(--spacing-2xl);border-radius:50%;background:var(--text-muted);transform:translateY(-50%);transition:left var(--duration-normal) var(--easing-default), background-color var(--duration-normal) var(--easing-default)}.input:checked~.track{border-color:var(--accent);background:var(--accent)}.input:checked~.track .thumb{left:calc(100% - var(--spacing-2xl) - var(--spacing-2xs));background:var(--color-accent-text)}.input--invalid~.track{border-color:var(--color-status-warning)}.input--invalid:focus-visible~.track{outline-color:var(--color-status-warning)}:host([data-touched]:invalid) .track,:host(:user-invalid) .track{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus-visible~.track,:host(:user-invalid) .input:focus-visible~.track{outline-color:var(--color-status-warning)}.label-text{color:var(--text)}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;let c=0;const n=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.chChange=i(this,"chChange");this.internals=this.attachInternals()}switchId=`ch-switch-${++c}`;hintId=`${this.switchId}-hint`;errorId=`${this.switchId}-error`;initialChecked=false;internals;formDisabled=false;get host(){return this}label;name;value="on";checked=false;disabled=false;required=false;hint;errorMessage;invalid=false;chChange;handleChange=t=>{this.checked=t.target.checked;this.chChange.emit(this.checked)};syncForm(){const t=this.internals;if(typeof t?.setFormValue!=="function"){return}t.setFormValue(this.checked?this.value:null);const e={};let i;if(this.required&&!this.checked){e.valueMissing=true}if(this.invalid&&this.errorMessage){e.customError=true}i=this.errorMessage??(e.valueMissing?"Please fill out this field.":undefined);t.setValidity(e,i)}componentDidLoad(){this.initialChecked=this.checked;this.syncForm();this.host.addEventListener("change",this.markTouched);this.host.addEventListener("focusout",this.markTouched);this.host.addEventListener("invalid",this.markTouched)}markTouched=()=>{this.host.setAttribute("data-touched","")};formResetCallback(){this.checked=this.initialChecked}formDisabledCallback(t){this.formDisabled=t}get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return r(s,{key:"c1a98e9b04710ed014a8c18d6591fee427df0033"},r("label",{key:"4b14ec7d7709090235b0e9b74a45d4c76dd52f25",class:{control:true,"control--disabled":this.disabled||this.formDisabled},htmlFor:this.switchId},r("input",{key:"4f2c9472b3bf34db582a94e307cc8b47b5dfcd38",id:this.switchId,class:{input:true,"input--invalid":this.invalid},type:"checkbox",role:"switch",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled||this.formDisabled,required:this.required,"aria-checked":this.checked?"true":"false","aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onChange:this.handleChange}),r("span",{key:"6b2c20c6242178bba39f105a535bb12fc5198cd0",class:"track"},r("span",{key:"4ae0e675ce335417b867f6b688ec5545769b2d2c",class:"thumb"})),this.label&&r("span",{key:"d5383fac3349441104c0926a6c88078b85bda05c",class:"label-text"},this.label)),this.hint&&!(this.invalid&&this.errorMessage)&&r("p",{key:"41ed07a95f8d627fb4ed8c903b6ba5ee39baa6a5",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&r("p",{key:"71cf8526dec44e2099235e3bc744db2aa53d70f0",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get formAssociated(){return true}static get watchers(){return{checked:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}}static get style(){return o()}},[577,"ch-switch",{label:[1],name:[513],value:[1],checked:[1028],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},undefined,{checked:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]);function l(){if(typeof customElements==="undefined"){return}const t=["ch-switch"];t.forEach((t=>{switch(t){case"ch-switch":if(!customElements.get(a(t))){customElements.define(a(t),n)}break}}))}l();const d=n;const h=l;export{d as ChSwitch,h as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-switch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["chSwitchCss","switchIds","ChSwitch","__stencil_proxyCustomElement","HTMLElement","switchId","hintId","this","errorId","label","name","value","checked","disabled","required","hint","errorMessage","invalid","chChange","handleChange","ev","target","emit","
|
|
1
|
+
{"version":3,"names":["chSwitchCss","switchIds","ChSwitch","__stencil_proxyCustomElement","HTMLElement","switchId","hintId","this","errorId","initialChecked","internals","formDisabled","label","name","value","checked","disabled","required","hint","errorMessage","invalid","chChange","handleChange","ev","target","emit","syncForm","setFormValue","flags","message","valueMissing","customError","undefined","setValidity","componentDidLoad","host","addEventListener","markTouched","setAttribute","formResetCallback","formDisabledCallback","isDisabled","describedBy","render","h","Host","key","class","control","htmlFor","id","input","type","role","onChange"],"sources":["src/components/ch-switch/ch-switch.css?tag=ch-switch&encapsulation=shadow","src/components/ch-switch/ch-switch.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-lg);\n cursor: pointer;\n}\n\n.control--disabled {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n}\n\n.input {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n opacity: 0;\n cursor: pointer;\n}\n\n.input:focus-visible ~ .track {\n outline: var(--focus-outline-width) solid var(--accent);\n outline-offset: var(--focus-outline-offset);\n}\n\n.track {\n position: relative;\n box-sizing: border-box;\n width: var(--spacing-6xl);\n height: var(--spacing-5xl);\n flex-shrink: 0;\n border: var(--border-width) solid var(--border);\n border-radius: var(--radius-pill);\n background: var(--surface);\n transition:\n border-color var(--duration-normal) var(--easing-default),\n background-color var(--duration-normal) var(--easing-default);\n}\n\n.thumb {\n position: absolute;\n top: 50%;\n left: var(--spacing-2xs);\n width: var(--spacing-2xl);\n height: var(--spacing-2xl);\n border-radius: 50%;\n background: var(--text-muted);\n transform: translateY(-50%);\n transition:\n left var(--duration-normal) var(--easing-default),\n background-color var(--duration-normal) var(--easing-default);\n}\n\n.input:checked ~ .track {\n border-color: var(--accent);\n background: var(--accent);\n}\n\n.input:checked ~ .track .thumb {\n left: calc(100% - var(--spacing-2xl) - var(--spacing-2xs));\n background: var(--color-accent-text);\n}\n\n.input--invalid ~ .track {\n border-color: var(--color-status-warning);\n}\n\n.input--invalid:focus-visible ~ .track {\n outline-color: var(--color-status-warning);\n}\n\n:host([data-touched]:invalid) .track,\n:host(:user-invalid) .track {\n border-color: var(--color-status-warning);\n}\n\n:host([data-touched]:invalid) .input:focus-visible ~ .track,\n:host(:user-invalid) .input:focus-visible ~ .track {\n outline-color: var(--color-status-warning);\n}\n\n.label-text {\n color: var(--text);\n}\n\n.hint,\n.error {\n margin: var(--spacing-sm) 0 0;\n font-size: var(--typography-size-sm);\n color: var(--text-muted);\n}\n\n.error {\n color: var(--color-status-warning);\n}\n","import { AttachInternals, Component, Element, Event, type EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\n\nlet switchIds = 0;\n\n@Component({\n tag: 'ch-switch',\n styleUrl: 'ch-switch.css',\n shadow: true,\n formAssociated: true,\n})\nexport class ChSwitch {\n private readonly switchId = `ch-switch-${++switchIds}`;\n private readonly hintId = `${this.switchId}-hint`;\n private readonly errorId = `${this.switchId}-error`;\n private initialChecked = false;\n\n @AttachInternals() internals!: ElementInternals;\n @State() formDisabled = false;\n @Element() private host!: HTMLElement;\n\n /**\n * Visible label rendered next to the switch, associated with it via\n * `for`/`id`, so assistive technology announces the switch's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The name of the switch, submitted with form data.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The value of the switch, submitted with form data.\n */\n @Prop() value = 'on';\n\n /**\n * Whether the switch is on.\n */\n @Prop({ mutable: true }) checked = false;\n\n /**\n * Whether the switch is disabled.\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Whether the switch is required.\n */\n @Prop({ reflect: true }) required = false;\n\n /**\n * Helper text rendered below the switch, associated via `aria-describedby`.\n * Replaced by `errorMessage` when the switch is invalid.\n */\n @Prop() hint?: string;\n\n /**\n * Error message rendered below the switch when it is invalid.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Whether the switch is in an invalid state; toggles `aria-invalid` and error styling.\n */\n @Prop() invalid = false;\n\n /**\n * Emitted when the switch is toggled, with the new on/off state.\n */\n @Event() chChange: EventEmitter<boolean>;\n\n private handleChange = (ev: Event) => {\n this.checked = (ev.target as HTMLInputElement).checked;\n this.chChange.emit(this.checked);\n };\n\n @Watch('checked')\n @Watch('required')\n @Watch('invalid')\n @Watch('errorMessage')\n protected syncForm(): void {\n const internals = this.internals;\n if (typeof internals?.setFormValue !== 'function') {\n return;\n }\n internals.setFormValue(this.checked ? this.value : null);\n const flags: ValidityStateFlags = {};\n let message: string | undefined;\n if (this.required && !this.checked) {\n flags.valueMissing = true;\n }\n if (this.invalid && this.errorMessage) {\n flags.customError = true;\n }\n message = this.errorMessage ?? (flags.valueMissing ? 'Please fill out this field.' : undefined);\n internals.setValidity(flags, message);\n }\n\n componentDidLoad() {\n this.initialChecked = this.checked;\n this.syncForm();\n this.host.addEventListener('change', this.markTouched);\n this.host.addEventListener('focusout', this.markTouched);\n this.host.addEventListener('invalid', this.markTouched);\n }\n\n private markTouched = (): void => {\n this.host.setAttribute('data-touched', '');\n };\n\n formResetCallback(): void {\n this.checked = this.initialChecked;\n }\n\n formDisabledCallback(isDisabled: boolean): void {\n this.formDisabled = isDisabled;\n }\n\n private get describedBy(): string | undefined {\n if (this.invalid && this.errorMessage) {\n return this.errorId;\n }\n if (this.hint) {\n return this.hintId;\n }\n return undefined;\n }\n\n render() {\n return (\n <Host>\n <label class={{ 'control': true, 'control--disabled': this.disabled || this.formDisabled }} htmlFor={this.switchId}>\n <input\n id={this.switchId}\n class={{ 'input': true, 'input--invalid': this.invalid }}\n type=\"checkbox\"\n role=\"switch\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n disabled={this.disabled || this.formDisabled}\n required={this.required}\n aria-checked={this.checked ? 'true' : 'false'}\n aria-invalid={this.invalid ? 'true' : undefined}\n aria-describedby={this.describedBy}\n onChange={this.handleChange}\n />\n <span class=\"track\">\n <span class=\"thumb\"></span>\n </span>\n {this.label && <span class=\"label-text\">{this.label}</span>}\n </label>\n {this.hint && !(this.invalid && this.errorMessage) && (\n <p class=\"hint\" id={this.hintId}>\n {this.hint}\n </p>\n )}\n {this.invalid && this.errorMessage && (\n <p class=\"error\" id={this.errorId} role=\"alert\">\n {this.errorMessage}\n </p>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"uEAAA,MAAMA,EAAc,IAAM,2zDCE1B,IAAIC,EAAY,E,MAQHC,EAAQC,EAAA,MAAAD,UAAAE,E,wJACFC,SAAW,eAAeJ,IAC1BK,OAAS,GAAGC,KAAKF,gBACjBG,QAAU,GAAGD,KAAKF,iBAC3BI,eAAiB,MAENC,UACVC,aAAe,M,uBAOhBC,MAKiBC,KAKjBC,MAAQ,KAKSC,QAAU,MAKVC,SAAW,MAKXC,SAAW,MAM5BC,KAKAC,aAKAC,QAAU,MAKTC,SAEDC,aAAgBC,IACtBhB,KAAKQ,QAAWQ,EAAGC,OAA4BT,QAC/CR,KAAKc,SAASI,KAAKlB,KAAKQ,QAAQ,EAOxB,QAAAW,GACR,MAAMhB,EAAYH,KAAKG,UACvB,UAAWA,GAAWiB,eAAiB,WAAY,CACjD,M,CAEFjB,EAAUiB,aAAapB,KAAKQ,QAAUR,KAAKO,MAAQ,MACnD,MAAMc,EAA4B,GAClC,IAAIC,EACJ,GAAItB,KAAKU,WAAaV,KAAKQ,QAAS,CAClCa,EAAME,aAAe,I,CAEvB,GAAIvB,KAAKa,SAAWb,KAAKY,aAAc,CACrCS,EAAMG,YAAc,I,CAEtBF,EAAUtB,KAAKY,eAAiBS,EAAME,aAAe,8BAAgCE,WACrFtB,EAAUuB,YAAYL,EAAOC,E,CAG/B,gBAAAK,GACE3B,KAAKE,eAAiBF,KAAKQ,QAC3BR,KAAKmB,WACLnB,KAAK4B,KAAKC,iBAAiB,SAAU7B,KAAK8B,aAC1C9B,KAAK4B,KAAKC,iBAAiB,WAAY7B,KAAK8B,aAC5C9B,KAAK4B,KAAKC,iBAAiB,UAAW7B,KAAK8B,Y,CAGrCA,YAAc,KACpB9B,KAAK4B,KAAKG,aAAa,eAAgB,GAAG,EAG5C,iBAAAC,GACEhC,KAAKQ,QAAUR,KAAKE,c,CAGtB,oBAAA+B,CAAqBC,GACnBlC,KAAKI,aAAe8B,C,CAGtB,eAAYC,GACV,GAAInC,KAAKa,SAAWb,KAAKY,aAAc,CACrC,OAAOZ,KAAKC,O,CAEd,GAAID,KAAKW,KAAM,CACb,OAAOX,KAAKD,M,CAEd,OAAO0B,S,CAGT,MAAAW,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,SAAAE,IAAA,2CAAOC,MAAO,CAAEC,QAAW,KAAM,oBAAqBzC,KAAKS,UAAYT,KAAKI,cAAgBsC,QAAS1C,KAAKF,UACxGuC,EAAA,SAAAE,IAAA,2CACEI,GAAI3C,KAAKF,SACT0C,MAAO,CAAEI,MAAS,KAAM,iBAAkB5C,KAAKa,SAC/CgC,KAAK,WACLC,KAAK,SACLxC,KAAMN,KAAKM,KACXC,MAAOP,KAAKO,MACZC,QAASR,KAAKQ,QACdC,SAAUT,KAAKS,UAAYT,KAAKI,aAChCM,SAAUV,KAAKU,SAAQ,eACTV,KAAKQ,QAAU,OAAS,QAAO,eAC/BR,KAAKa,QAAU,OAASY,UAAS,mBAC7BzB,KAAKmC,YACvBY,SAAU/C,KAAKe,eAEjBsB,EAAA,QAAAE,IAAA,2CAAMC,MAAM,SACVH,EAAA,QAAAE,IAAA,2CAAMC,MAAM,WAEbxC,KAAKK,OAASgC,EAAA,QAAAE,IAAA,2CAAMC,MAAM,cAAcxC,KAAKK,QAE/CL,KAAKW,QAAUX,KAAKa,SAAWb,KAAKY,eACnCyB,EAAA,KAAAE,IAAA,2CAAGC,MAAM,OAAOG,GAAI3C,KAAKD,QACtBC,KAAKW,MAGTX,KAAKa,SAAWb,KAAKY,cACpByB,EAAA,KAAAE,IAAA,2CAAGC,MAAM,QAAQG,GAAI3C,KAAKC,QAAS6C,KAAK,SACrC9C,KAAKY,c","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as a,c as e,h as r,d as i,t as s}from"./p-
|
|
1
|
+
import{p as t,H as a,c as e,h as r,d as i,t as s}from"./p-BhAZrOxf.js";const o=()=>`:host{display:block}.tablist{display:flex;gap:var(--spacing-2xl);border-bottom:var(--border-width) solid var(--border)}.tab{appearance:none;position:relative;background:transparent;border:none;padding:var(--spacing-md) 0 var(--spacing-xl);margin-bottom:calc(-1 * var(--border-width));color:var(--text-muted);font-family:inherit;font-size:inherit;font-weight:var(--typography-weight-semibold);cursor:pointer;transition:color var(--duration-normal) var(--easing-default), border-color var(--duration-normal) var(--easing-default)}.tab::after{content:'';position:absolute;left:0;right:0;bottom:0;height:var(--border-accent-bar);background:var(--accent);opacity:0;transition:opacity var(--duration-normal) var(--easing-default)}.tab:hover{color:var(--text)}.tab:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.tab--active{color:var(--text)}.tab--active::after{opacity:1}.tab--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.tabpanel{padding-top:var(--spacing-2xl);color:var(--text)}.tabpanel[hidden]{display:none}`;const n=0;const l=-1;const c=1;const d=-1;let b=0;const h=t(class t extends a{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.chChange=e(this,"chChange")}baseId=`ch-tabs-${++b}`;tablistEl;tabs=[];value;label;chChange;tabId(t){return`${this.baseId}-${t}`}panelId(t){return`${this.baseId}-${t}-panel`}get activeValue(){if(this.value&&this.tabs.some((t=>!t.disabled&&t.value===this.value))){return this.value}return this.tabs.find((t=>!t.disabled))?.value}select=t=>{this.value=t;this.chChange.emit(this.value)};focusTab(t){this.tablistEl?.querySelectorAll('[role="tab"]').forEach((a=>{if(a.dataset.value===t){a.focus()}}))}handleKeyDown=t=>{const a=this.tabs.filter((t=>!t.disabled));if(!a.length){return}const e=this.targetFor(t.key,a);if(!e){return}t.preventDefault();this.select(e);this.focusTab(e)};targetFor(t,a){const e=a.findIndex((t=>t.value===this.activeValue));if(t==="ArrowRight"){return a[(e+c)%a.length]?.value}if(t==="ArrowLeft"){return a[(e+d+a.length)%a.length]?.value}if(t==="Home"){return a[n]?.value}if(t==="End"){return a[a.length+l]?.value}return undefined}render(){const t=this.activeValue;return r(i,{key:"7c6b34c34e73f034eb03473ad9941eade91317c3"},r("div",{key:"601bae37f4fb3e5e0d07fb7a91968171b0bd18a3",class:"tablist",role:"tablist","aria-label":this.label,onKeyDown:this.handleKeyDown,ref:t=>this.tablistEl=t},this.tabs.map((a=>{const e=a.value===t;return r("button",{key:a.value,type:"button",class:{tab:true,"tab--active":e,"tab--disabled":Boolean(a.disabled)},role:"tab",id:this.tabId(a.value),"data-value":a.value,"aria-selected":e?"true":"false","aria-controls":this.panelId(a.value),tabIndex:e?n:l,disabled:a.disabled,onClick:()=>this.select(a.value)},a.label)}))),this.tabs.map((a=>r("div",{key:`${a.value}-panel`,class:"tabpanel",id:this.panelId(a.value),role:"tabpanel","aria-labelledby":this.tabId(a.value),tabIndex:n,hidden:a.value!==t},r("slot",{name:`panel-${a.value}`})))))}static get style(){return o()}},[769,"ch-tabs",{tabs:[16],value:[1025],label:[1]}]);function u(){if(typeof customElements==="undefined"){return}const t=["ch-tabs"];t.forEach((t=>{switch(t){case"ch-tabs":if(!customElements.get(s(t))){customElements.define(s(t),h)}break}}))}u();const f=h;const p=u;export{f as ChTabs,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-tabs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as t,H as e,c as r,h as a,d as s,t as i}from"./p-BhAZrOxf.js";const o=()=>`:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.textarea{box-sizing:border-box;width:100%;min-height:var(--spacing-6xl);padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;line-height:var(--spacing-5xl);resize:vertical;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.textarea::placeholder{color:var(--text-muted)}.textarea:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.textarea--invalid{border-color:var(--color-status-warning)}.textarea--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .textarea,:host(:user-invalid) .textarea{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .textarea:focus,:host(:user-invalid) .textarea:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.textarea:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;let n=0;const d=4;const h=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.chInput=r(this,"chInput");this.chChange=r(this,"chChange");this.internals=this.attachInternals()}textareaId=`ch-textarea-${++n}`;hintId=`${this.textareaId}-hint`;errorId=`${this.textareaId}-error`;initialValue="";internals;formDisabled=false;get host(){return this}label;value="";placeholder;rows=d;name;disabled=false;required=false;hint;errorMessage;invalid=false;chInput;chChange;handleInput=t=>{this.value=t.target.value;this.chInput.emit(this.value)};handleChange=t=>{this.value=t.target.value;this.chChange.emit(this.value)};syncForm(){const t=this.internals;if(typeof t?.setFormValue!=="function"){return}t.setFormValue(this.value);const e={};let r;if(this.required&&this.value===""){e.valueMissing=true}if(this.invalid&&this.errorMessage){e.customError=true}r=this.errorMessage??(e.valueMissing?"Please fill out this field.":undefined);t.setValidity(e,r)}componentDidLoad(){this.initialValue=this.value;this.syncForm();this.host.addEventListener("change",this.markTouched);this.host.addEventListener("focusout",this.markTouched);this.host.addEventListener("invalid",this.markTouched)}markTouched=()=>{this.host.setAttribute("data-touched","")};formResetCallback(){this.value=this.initialValue}formDisabledCallback(t){this.formDisabled=t}get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return a(s,{key:"6e738612514b114571c1edfad0fb85e2228653a8"},this.label&&a("label",{key:"3b58b49a02dd532430cfd9096c326288a5120d6d",class:"label",htmlFor:this.textareaId},this.label),a("textarea",{key:"0922df038ea6ce6d1567ffe8d02c5b65534bec7a",id:this.label?this.textareaId:undefined,class:{textarea:true,"textarea--invalid":this.invalid},rows:this.rows,name:this.name,placeholder:this.placeholder,disabled:this.disabled||this.formDisabled,required:this.required,value:this.value,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onInput:this.handleInput,onChange:this.handleChange}),this.hint&&!(this.invalid&&this.errorMessage)&&a("p",{key:"6d3518345b9afaad782741a854053ed2b32e31db",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&a("p",{key:"8a26edd5a1ef3647133813003fb1a53b1a5f99d6",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get formAssociated(){return true}static get watchers(){return{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}}static get style(){return o()}},[577,"ch-textarea",{label:[1],value:[1025],placeholder:[1],rows:[2],name:[513],disabled:[516],required:[516],hint:[1],errorMessage:[1,"error-message"],invalid:[4],formDisabled:[32]},undefined,{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}]);function l(){if(typeof customElements==="undefined"){return}const t=["ch-textarea"];t.forEach((t=>{switch(t){case"ch-textarea":if(!customElements.get(i(t))){customElements.define(i(t),h)}break}}))}l();const c=h;const u=l;export{c as ChTextarea,u as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-textarea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["chTextareaCss","textareaIds","DEFAULT_ROWS","ChTextarea","__stencil_proxyCustomElement","HTMLElement","textareaId","hintId","this","errorId","label","value","placeholder","rows","name","disabled","required","hint","errorMessage","invalid","chInput","chChange","handleInput","ev","target","emit","handleChange","
|
|
1
|
+
{"version":3,"names":["chTextareaCss","textareaIds","DEFAULT_ROWS","ChTextarea","__stencil_proxyCustomElement","HTMLElement","textareaId","hintId","this","errorId","initialValue","internals","formDisabled","label","value","placeholder","rows","name","disabled","required","hint","errorMessage","invalid","chInput","chChange","handleInput","ev","target","emit","handleChange","syncForm","setFormValue","flags","message","valueMissing","customError","undefined","setValidity","componentDidLoad","host","addEventListener","markTouched","setAttribute","formResetCallback","formDisabledCallback","isDisabled","describedBy","render","h","Host","key","class","htmlFor","id","textarea","onInput","onChange","role"],"sources":["src/components/ch-textarea/ch-textarea.css?tag=ch-textarea&encapsulation=shadow","src/components/ch-textarea/ch-textarea.tsx"],"sourcesContent":[":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: var(--spacing-sm);\n font-size: var(--typography-size-sm);\n font-weight: var(--typography-weight-semibold);\n color: var(--text);\n}\n\n.textarea {\n box-sizing: border-box;\n width: 100%;\n min-height: var(--spacing-6xl);\n padding: var(--spacing-xl) var(--spacing-3xl);\n border-radius: var(--radius);\n border: var(--border-width) solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(var(--effect-blur));\n font-family: inherit;\n font-size: inherit;\n line-height: var(--spacing-5xl);\n resize: vertical;\n transition:\n border-color var(--duration-normal) var(--easing-default),\n box-shadow var(--duration-normal) var(--easing-default);\n}\n\n.textarea::placeholder {\n color: var(--text-muted);\n}\n\n.textarea:focus {\n border-color: var(--accent);\n box-shadow: var(--shadow-focus-ring);\n outline: none;\n}\n\n.textarea--invalid {\n border-color: var(--color-status-warning);\n}\n\n.textarea--invalid:focus {\n border-color: var(--color-status-warning);\n box-shadow: 0 0 0 3px var(--color-status-warning-background);\n}\n\n:host([data-touched]:invalid) .textarea,\n:host(:user-invalid) .textarea {\n border-color: var(--color-status-warning);\n}\n\n:host([data-touched]:invalid) .textarea:focus,\n:host(:user-invalid) .textarea:focus {\n border-color: var(--color-status-warning);\n box-shadow: 0 0 0 3px var(--color-status-warning-background);\n}\n\n.textarea:disabled {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n}\n\n.hint,\n.error {\n margin: var(--spacing-sm) 0 0;\n font-size: var(--typography-size-sm);\n color: var(--text-muted);\n}\n\n.error {\n color: var(--color-status-warning);\n}\n","import { AttachInternals, Component, Element, Event, type EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\n\nlet textareaIds = 0;\n\nconst DEFAULT_ROWS = 4;\n\n@Component({\n tag: 'ch-textarea',\n styleUrl: 'ch-textarea.css',\n shadow: true,\n formAssociated: true,\n})\nexport class ChTextarea {\n private readonly textareaId = `ch-textarea-${++textareaIds}`;\n private readonly hintId = `${this.textareaId}-hint`;\n private readonly errorId = `${this.textareaId}-error`;\n private initialValue = '';\n\n @AttachInternals() internals!: ElementInternals;\n @State() formDisabled = false;\n @Element() private host!: HTMLElement;\n\n /**\n * Visible label rendered above the textarea and associated with it via\n * `for`/`id`, so assistive technology announces the textarea's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The value of the textarea.\n */\n @Prop({ mutable: true }) value = '';\n\n /**\n * Placeholder text shown when the textarea is empty.\n */\n @Prop() placeholder?: string;\n\n /**\n * The number of visible rows of the textarea.\n */\n @Prop() rows = DEFAULT_ROWS;\n\n /**\n * The name of the textarea, submitted with form data.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * Whether the textarea is disabled.\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Whether the textarea is required.\n */\n @Prop({ reflect: true }) required = false;\n\n /**\n * Helper text rendered below the textarea, associated via `aria-describedby`.\n * Replaced by `errorMessage` when the textarea is invalid.\n */\n @Prop() hint?: string;\n\n /**\n * Error message rendered below the textarea when it is invalid.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Whether the textarea is in an invalid state; toggles `aria-invalid` and error styling.\n */\n @Prop() invalid = false;\n\n /**\n * Emitted on every keystroke, with the current textarea value.\n */\n @Event() chInput: EventEmitter<string>;\n\n /**\n * Emitted when the textarea value is committed (on native `change`).\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleInput = (ev: InputEvent) => {\n this.value = (ev.target as HTMLTextAreaElement).value;\n this.chInput.emit(this.value);\n };\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLTextAreaElement).value;\n this.chChange.emit(this.value);\n };\n\n @Watch('value')\n @Watch('required')\n @Watch('invalid')\n @Watch('errorMessage')\n protected syncForm(): void {\n const internals = this.internals;\n if (typeof internals?.setFormValue !== 'function') {\n return;\n }\n internals.setFormValue(this.value);\n const flags: ValidityStateFlags = {};\n let message: string | undefined;\n if (this.required && this.value === '') {\n flags.valueMissing = true;\n }\n if (this.invalid && this.errorMessage) {\n flags.customError = true;\n }\n message = this.errorMessage ?? (flags.valueMissing ? 'Please fill out this field.' : undefined);\n internals.setValidity(flags, message);\n }\n\n componentDidLoad() {\n this.initialValue = this.value;\n this.syncForm();\n this.host.addEventListener('change', this.markTouched);\n this.host.addEventListener('focusout', this.markTouched);\n this.host.addEventListener('invalid', this.markTouched);\n }\n\n private markTouched = (): void => {\n this.host.setAttribute('data-touched', '');\n };\n\n formResetCallback(): void {\n this.value = this.initialValue;\n }\n\n formDisabledCallback(isDisabled: boolean): void {\n this.formDisabled = isDisabled;\n }\n\n private get describedBy(): string | undefined {\n if (this.invalid && this.errorMessage) {\n return this.errorId;\n }\n if (this.hint) {\n return this.hintId;\n }\n return undefined;\n }\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.textareaId}>\n {this.label}\n </label>\n )}\n <textarea\n id={this.label ? this.textareaId : undefined}\n class={{ 'textarea': true, 'textarea--invalid': this.invalid }}\n rows={this.rows}\n name={this.name}\n placeholder={this.placeholder}\n disabled={this.disabled || this.formDisabled}\n required={this.required}\n value={this.value}\n aria-invalid={this.invalid ? 'true' : undefined}\n aria-describedby={this.describedBy}\n onInput={this.handleInput}\n onChange={this.handleChange}\n ></textarea>\n {this.hint && !(this.invalid && this.errorMessage) && (\n <p class=\"hint\" id={this.hintId}>\n {this.hint}\n </p>\n )}\n {this.invalid && this.errorMessage && (\n <p class=\"error\" id={this.errorId} role=\"alert\">\n {this.errorMessage}\n </p>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"uEAAA,MAAMA,EAAgB,IAAM,i/CCE5B,IAAIC,EAAc,EAElB,MAAMC,EAAe,E,MAQRC,EAAUC,EAAA,MAAAD,UAAAE,E,uLACJC,WAAa,iBAAiBL,IAC9BM,OAAS,GAAGC,KAAKF,kBACjBG,QAAU,GAAGD,KAAKF,mBAC3BI,aAAe,GAEJC,UACVC,aAAe,M,uBAOhBC,MAKiBC,MAAQ,GAKzBC,YAKAC,KAAOd,EAKUe,KAKAC,SAAW,MAKXC,SAAW,MAM5BC,KAKAC,aAKAC,QAAU,MAKTC,QAKAC,SAEDC,YAAeC,IACrBlB,KAAKM,MAASY,EAAGC,OAA+Bb,MAChDN,KAAKe,QAAQK,KAAKpB,KAAKM,MAAM,EAGvBe,aAAgBH,IACtBlB,KAAKM,MAASY,EAAGC,OAA+Bb,MAChDN,KAAKgB,SAASI,KAAKpB,KAAKM,MAAM,EAOtB,QAAAgB,GACR,MAAMnB,EAAYH,KAAKG,UACvB,UAAWA,GAAWoB,eAAiB,WAAY,CACjD,M,CAEFpB,EAAUoB,aAAavB,KAAKM,OAC5B,MAAMkB,EAA4B,GAClC,IAAIC,EACJ,GAAIzB,KAAKW,UAAYX,KAAKM,QAAU,GAAI,CACtCkB,EAAME,aAAe,I,CAEvB,GAAI1B,KAAKc,SAAWd,KAAKa,aAAc,CACrCW,EAAMG,YAAc,I,CAEtBF,EAAUzB,KAAKa,eAAiBW,EAAME,aAAe,8BAAgCE,WACrFzB,EAAU0B,YAAYL,EAAOC,E,CAG/B,gBAAAK,GACE9B,KAAKE,aAAeF,KAAKM,MACzBN,KAAKsB,WACLtB,KAAK+B,KAAKC,iBAAiB,SAAUhC,KAAKiC,aAC1CjC,KAAK+B,KAAKC,iBAAiB,WAAYhC,KAAKiC,aAC5CjC,KAAK+B,KAAKC,iBAAiB,UAAWhC,KAAKiC,Y,CAGrCA,YAAc,KACpBjC,KAAK+B,KAAKG,aAAa,eAAgB,GAAG,EAG5C,iBAAAC,GACEnC,KAAKM,MAAQN,KAAKE,Y,CAGpB,oBAAAkC,CAAqBC,GACnBrC,KAAKI,aAAeiC,C,CAGtB,eAAYC,GACV,GAAItC,KAAKc,SAAWd,KAAKa,aAAc,CACrC,OAAOb,KAAKC,O,CAEd,GAAID,KAAKY,KAAM,CACb,OAAOZ,KAAKD,M,CAEd,OAAO6B,S,CAGT,MAAAW,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACF1C,KAAKK,OACJmC,EAAA,SAAAE,IAAA,2CAAOC,MAAM,QAAQC,QAAS5C,KAAKF,YAChCE,KAAKK,OAGVmC,EAAA,YAAAE,IAAA,2CACEG,GAAI7C,KAAKK,MAAQL,KAAKF,WAAa8B,UACnCe,MAAO,CAAEG,SAAY,KAAM,oBAAqB9C,KAAKc,SACrDN,KAAMR,KAAKQ,KACXC,KAAMT,KAAKS,KACXF,YAAaP,KAAKO,YAClBG,SAAUV,KAAKU,UAAYV,KAAKI,aAChCO,SAAUX,KAAKW,SACfL,MAAON,KAAKM,MAAK,eACHN,KAAKc,QAAU,OAASc,UAAS,mBAC7B5B,KAAKsC,YACvBS,QAAS/C,KAAKiB,YACd+B,SAAUhD,KAAKqB,eAEhBrB,KAAKY,QAAUZ,KAAKc,SAAWd,KAAKa,eACnC2B,EAAA,KAAAE,IAAA,2CAAGC,MAAM,OAAOE,GAAI7C,KAAKD,QACtBC,KAAKY,MAGTZ,KAAKc,SAAWd,KAAKa,cACpB2B,EAAA,KAAAE,IAAA,2CAAGC,MAAM,QAAQE,GAAI7C,KAAKC,QAASgD,KAAK,SACrCjD,KAAKa,c","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,h as s,d as
|
|
1
|
+
import{p as e,H as t,h as s,d as a,t as o}from"./p-BhAZrOxf.js";const i=()=>`:host{display:inline-block}.anchor{position:relative;display:inline-flex}.bubble{position:absolute;z-index:var(--z-index-dropdown);width:max-content;max-width:16rem;padding:var(--spacing-md) var(--spacing-2xl);border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-sm);line-height:1.4;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--easing-default), visibility var(--duration-fast) var(--easing-default)}.bubble--visible{opacity:1;visibility:visible}.bubble::before{content:'';position:absolute}.bubble--top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:var(--spacing-md)}.bubble--top::before{top:100%;left:0;right:0;height:var(--spacing-md)}.bubble--bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:var(--spacing-md)}.bubble--bottom::before{bottom:100%;left:0;right:0;height:var(--spacing-md)}.bubble--left{right:100%;top:50%;transform:translateY(-50%);margin-right:var(--spacing-md)}.bubble--left::before{left:100%;top:0;bottom:0;width:var(--spacing-md)}.bubble--right{left:100%;top:50%;transform:translateY(-50%);margin-left:var(--spacing-md)}.bubble--right::before{right:100%;top:0;bottom:0;width:var(--spacing-md)}@media (prefers-reduced-motion: reduce){.bubble{transition:none}}`;let r=0;const n=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow()}get el(){return this}fallbackId=`ch-tooltip-${++r}`;placement="top";hovered=false;focused=false;dismissed=false;get visible(){return(this.hovered||this.focused)&&!this.dismissed}componentDidLoad(){this.associate()}handleMouseEnter(){this.hovered=true;this.dismissed=false}handleMouseLeave(){this.hovered=false}handleFocusIn(){this.focused=true;this.dismissed=false}handleFocusOut(){this.focused=false}handleKeyDown(e){if(e.key==="Escape"&&this.visible){this.dismissed=true}}slotted(e){return Array.from(this.el.children).find((t=>t.getAttribute("slot")===e))}associate=()=>{const e=this.slotted("trigger");const t=this.slotted("content");if(!e||!t){return}if(!t.id){t.id=this.fallbackId}t.setAttribute("role","tooltip");e.setAttribute("aria-describedby",t.id)};render(){return s(a,{key:"cebea73595fe515f952e60c72c42e92888e57133"},s("span",{key:"c2eadb27d9d89b19d821ae1da93dcb7125d07bb0",class:"anchor"},s("slot",{key:"9eccdd49e741ffaed3d7d95c54697666e6e13cf0",name:"trigger",onSlotchange:this.associate}),s("span",{key:"0842bbc4061da0be353e58bc897548e75c730e43",class:{bubble:true,[`bubble--${this.placement}`]:true,"bubble--visible":this.visible}},s("slot",{key:"43812aac1e6e2853057e6d34f484906a17b16a5a",name:"content",onSlotchange:this.associate}))))}static get style(){return i()}},[769,"ch-tooltip",{placement:[1],hovered:[32],focused:[32],dismissed:[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]);function l(){if(typeof customElements==="undefined"){return}const e=["ch-tooltip"];e.forEach((e=>{switch(e){case"ch-tooltip":if(!customElements.get(o(e))){customElements.define(o(e),n)}break}}))}l();const b=n;const d=l;export{b as ChTooltip,d as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-tooltip.js.map
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-BhAZrOxf.js";const e="#100a1c";const o="#201e40";const t="#261226";const n="rgba(32, 30, 64, 0.6)";const c="rgba(45, 212, 191, 0.08)";const m="rgba(0, 0, 0, 0.6)";const d="rgba(255, 255, 255, 0.08)";const p="rgba(45, 212, 191, 0.3)";const x="#2dd4bf";const i="#5ee8d4";const l="#06210f";const f="#4ade80";const u="rgba(34, 197, 94, 0.18)";const h="#f87171";const v="rgba(248, 113, 113, 0.15)";const w="#ffffff";const y="rgba(255, 255, 255, 0.55)";const k="#85422b";const B="#b45b38";const S="#1d1d1b";const A="Fira Sans, Droid Sans, Helvetica Neue, sans-serif";const D="Inconsolata, monospace";const H="0.68rem";const N="0.85rem";const O="1rem";const P="1.25rem";const z="1.5rem";const F="400";const G="600";const I="700";const W="0.03em";const j="0.18rem";const L="0.25rem";const R="0.35rem";const Z="0.5rem";const q="0.6rem";const C="0.8rem";const E="1rem";const J="1.25rem";const K="1.35rem";const M="1.5rem";const Q="2rem";const T="2px";const U="1px";const V="6px";const X="8px";const Y="999px";const $="1px";const _="3px";const ss="0 0 0 3px rgba(45, 212, 191, 0.12)";const es="0 4px 20px rgba(45, 212, 191, 0.06)";const os="10px";const ts="150ms";const ns="200ms";const rs="800ms";const as="ease";const cs="linear";const ms="2px";const ds="2px";const bs=.5;const ps=0;const xs=100;const is=1e3;const ls="68rem";const gs={color:{background:{base:"#100a1c",topGlow:"#201e40",bottomGlow:"#261226"},surface:{default:"rgba(32, 30, 64, 0.6)",hover:"rgba(45, 212, 191, 0.08)"},scrim:{default:"rgba(0, 0, 0, 0.6)"},border:{default:"rgba(255, 255, 255, 0.08)",hover:"rgba(45, 212, 191, 0.3)"},accent:{default:"#2dd4bf",hover:"#5ee8d4",text:"#06210f"},status:{positive:"#4ade80",positiveBackground:"rgba(34, 197, 94, 0.18)",warning:"#f87171",warningBackground:"rgba(248, 113, 113, 0.15)"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.55)"},brand:{huemulDark:"#85422b",huemulLight:"#b45b38",stroke:"#1d1d1b"}},typography:{body:"Fira Sans, Droid Sans, Helvetica Neue, sans-serif",heading:"Inconsolata, monospace",size:{xs:"0.68rem",sm:"0.85rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"},weight:{regular:"400",semibold:"600",bold:"700"},tracking:{badge:"0.03em"}},spacing:{"2xs":"0.18rem",xs:"0.25rem",sm:"0.35rem",md:"0.5rem",lg:"0.6rem",xl:"0.8rem","2xl":"1rem","3xl":"1.25rem","4xl":"1.35rem","5xl":"1.5rem","6xl":"2rem",shift:"2px",elevate:"1px"},radius:{sm:"6px",md:"8px",pill:"999px"},border:{width:"1px",accentBar:"3px"},shadow:{focusRing:"0 0 0 3px rgba(45, 212, 191, 0.12)",cardHover:"0 4px 20px rgba(45, 212, 191, 0.06)"},effect:{blur:"10px"},duration:{fast:"150ms",normal:"200ms",spin:"800ms"},easing:{default:"ease",linear:"linear"},focus:{outlineWidth:"2px",outlineOffset:"2px"},opacity:{disabled:.5},"z-index":{base:0,dropdown:100,modal:1e3},layout:{maxWidth:"68rem"}};export{_ as borderAccentBar,$ as borderWidth,x as colorAccentDefault,i as colorAccentHover,l as colorAccentText,e as colorBackgroundBase,t as colorBackgroundBottomGlow,o as colorBackgroundTopGlow,d as colorBorderDefault,p as colorBorderHover,k as colorBrandHuemulDark,B as colorBrandHuemulLight,S as colorBrandStroke,m as colorScrimDefault,f as colorStatusPositive,u as colorStatusPositiveBackground,h as colorStatusWarning,v as colorStatusWarningBackground,n as colorSurfaceDefault,c as colorSurfaceHover,w as colorTextPrimary,y as colorTextSecondary,ts as durationFast,ns as durationNormal,rs as durationSpin,as as easingDefault,cs as easingLinear,os as effectBlur,ds as focusOutlineOffset,ms as focusOutlineWidth,ls as layoutMaxWidth,bs as opacityDisabled,X as radiusMd,Y as radiusPill,V as radiusSm,es as shadowCardHover,ss as shadowFocusRing,E as spacing2xl,j as spacing2xs,J as spacing3xl,K as spacing4xl,M as spacing5xl,Q as spacing6xl,U as spacingElevate,q as spacingLg,Z as spacingMd,T as spacingShift,R as spacingSm,C as spacingXl,L as spacingXs,gs as tokens,A as typographyBody,D as typographyHeading,P as typographySizeLg,O as typographySizeMd,N as typographySizeSm,z as typographySizeXl,H as typographySizeXs,W as typographyTrackingBadge,I as typographyWeightBold,F as typographyWeightRegular,G as typographyWeightSemibold,ps as zIndexBase,xs as zIndexDropdown,is as zIndexModal};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=":root{--color-background-base:#100a1c;--color-background-top-glow:#201e40;--color-background-bottom-glow:#261226;--color-surface-default:rgba(32, 30, 64, 0.6);--color-surface-hover:rgba(45, 212, 191, 0.08);--color-scrim-default:rgba(0, 0, 0, 0.6);--color-border-default:rgba(255, 255, 255, 0.08);--color-border-hover:rgba(45, 212, 191, 0.3);--color-accent-default:#2dd4bf;--color-accent-hover:#5ee8d4;--color-accent-text:#06210f;--color-status-positive:#4ade80;--color-status-positive-background:rgba(34, 197, 94, 0.18);--color-status-warning:#f87171;--color-status-warning-background:rgba(248, 113, 113, 0.15);--color-text-primary:#ffffff;--color-text-secondary:rgba(255, 255, 255, 0.55);--color-brand-huemul-dark:#85422b;--color-brand-huemul-light:#b45b38;--color-brand-stroke:#1d1d1b;--typography-body:Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--typography-heading:Inconsolata, monospace;--typography-size-xs:0.68rem;--typography-size-sm:0.85rem;--typography-size-md:1rem;--typography-size-lg:1.25rem;--typography-size-xl:1.5rem;--typography-weight-regular:400;--typography-weight-semibold:600;--typography-weight-bold:700;--typography-tracking-badge:0.03em;--spacing-2xs:0.18rem;--spacing-xs:0.25rem;--spacing-sm:0.35rem;--spacing-md:0.5rem;--spacing-lg:0.6rem;--spacing-xl:0.8rem;--spacing-2xl:1rem;--spacing-3xl:1.25rem;--spacing-4xl:1.35rem;--spacing-5xl:1.5rem;--spacing-6xl:2rem;--spacing-shift:2px;--spacing-elevate:1px;--radius-sm:6px;--radius-md:8px;--radius-pill:999px;--border-width:1px;--border-accent-bar:3px;--shadow-focus-ring:0 0 0 3px rgba(45, 212, 191, 0.12);--shadow-card-hover:0 4px 20px rgba(45, 212, 191, 0.06);--effect-blur:10px;--duration-fast:150ms;--duration-normal:200ms;--duration-spin:800ms;--easing-default:ease;--easing-linear:linear;--focus-outline-width:2px;--focus-outline-offset:2px;--opacity-disabled:0.5;--z-index-base:0;--z-index-dropdown:100;--z-index-modal:1000;--layout-max-width:68rem}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-400-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-600-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-700-normal.woff2') format('woff2')}@font-face{font-family:'Inconsolata';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/inconsolata-latin-400-normal.woff2') format('woff2')}:root{--bg:var(--color-background-base);--bg-gradient:radial-gradient(50% 30% ellipse at center top, var(--color-background-top-glow) 0%, rgba(0, 0, 0, 0) 100%),\n radial-gradient(60% 50% ellipse at center bottom, var(--color-background-bottom-glow) 0%, var(--color-background-base) 100%);--surface:var(--color-surface-default);--surface-hover:var(--color-surface-hover);--border:var(--color-border-default);--border-hover:var(--color-border-hover);--text:var(--color-text-primary);--text-muted:var(--color-text-secondary);--accent:var(--color-accent-default);--accent-hover:var(--color-accent-hover);--font-body:var(--typography-body);--font-heading:var(--typography-heading);--radius:var(--radius-sm)}body{font-family:var(--font-body)}.ch-container{width:100%;max-width:var(--layout-max-width);margin-inline:auto}.ch-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.ch-flex{display:flex}.ch-flex-col{display:flex;flex-direction:column}.ch-items-center{align-items:center}.ch-justify-center{justify-content:center}.ch-justify-between{justify-content:space-between}.ch-gap-sm{gap:var(--spacing-md)}.ch-gap-md{gap:var(--spacing-2xl)}.ch-text-center{text-align:center}.ch-text-primary{color:var(--text)}.ch-text-muted{color:var(--text-muted)}.ch-text-accent{color:var(--accent)}.ch-heading{font-family:var(--font-heading)}";const t="chucao";const n={hotModuleReplacement:false,lazyLoad:false,state:true,updatable:true};var r=(e=>{e["Undefined"]="undefined";e["Null"]="null";e["String"]="string";e["Number"]="number";e["SpecialNumber"]="number";e["Boolean"]="boolean";e["BigInt"]="bigint";return e})(r||{});var o=(e=>{e["Array"]="array";e["Date"]="date";e["Map"]="map";e["Object"]="object";e["RegularExpression"]="regexp";e["Set"]="set";e["Channel"]="channel";e["Symbol"]="symbol";return e})(o||{});var l="type";var i="value";var s="serialized:";function a(e,t,n){const r=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(e&&e!==r){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}return void 0}var f=(e,t)=>{var n;const r=t.t;const o=Object.entries((n=r.o)!=null?n:{});o.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const o=a(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(o){Object.defineProperty(e,n,{get(){return o.get.call(this)},set(e){o.set.call(this,e)},configurable:true,enumerable:true})}if(t.l.has(n)){e[n]=t.l.get(n)}else if(r!==void 0){e[n]=r}}}))};var c=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var u=(e,t)=>{const r={i:0,$hostElement$:e,t,l:new Map,u:new Map};{r.v=new Promise((e=>r.p=e));e["s-p"]=[];e["s-rc"]=[]}const o=r;e.__stencil__getHostRef=()=>o;if(t.i&512&&n.state){f(e,r)}return o};var d=(e,t)=>t in e;var v=(e,t)=>(0,console.error)(e,t);var p=new Map;var h="r";var y="o";var m="s";var g="t";var b="c";var $="s-id";var w="sty-id";var x="c-id";var j="slot-fb{display:contents}slot-fb[hidden]{display:none}";var S=1e3;var k=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var O=typeof window!=="undefined"?window:{};var I=O.HTMLElement||class{};var M={i:0,h:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var C=(()=>{var e;let t=false;try{(e=O.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var N=e=>Promise.resolve(e);var E=(()=>{try{if(!O.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var z=E?(()=>!!O.document&&Object.getOwnPropertyDescriptor(O.document.adoptedStyleSheets,"length").writable)():false;var A=false;var L=[];var _=[];var D=()=>{var e;return((e=O.document)==null?void 0:e.hidden)?H(F):M.raf(F)};var R=(e,t)=>n=>{e.push(n);if(!A){A=true;if(t&&M.i&4){H(F)}else{D()}}};var U=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){v(e)}}e.length=0};var F=()=>{U(L);{U(_);if(A=L.length>0){D()}}};var H=e=>N().then(e);var V=R(_,true);var P=e=>{const t=new URL(e,M.h);return t.origin!==O.location.origin?t.href:t.pathname};var W=e=>M.h=e;function T(e){if(!E)return void 0;const t=new CSSStyleSheet;t.replaceSync(e);return t}var B;function q(t){var n;const r={mode:"open"};const o=this.attachShadow(r);if(B===void 0)B=(n=T(e))!=null?n:null;if(B){if(z){o.adoptedStyleSheets.push(B)}else{o.adoptedStyleSheets=[...o.adoptedStyleSheets,B]}}else if(!E){const t=document.createElement("style");t.innerHTML=e;o.prepend(t)}}var Y=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};var J=(e,t,n,r)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const o=document.createTextNode("");o["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const l=t["s-cr"].parentNode;const i=K(l,"appendChild");if(typeof r!=="undefined"){o["s-oo"]=r;const e=K(l,"childNodes");const t=[o];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>i.call(l,e)))}else{i.call(l,o)}e["s-ol"]=o;e["s-sh"]=t["s-hn"]};var Z=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function G(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const o=this["s-cr"].parentElement;const l=o.__childNodes?o.childNodes:Y(o.childNodes);l.forEach((e=>{if(r===Z(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function K(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var Q=(e,t="")=>{{return()=>{}}};function X(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var ee=new WeakMap;var te=(e,t,n)=>{let r=p.get(e);if(E&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}p.set(e,r)};var ne=(e,t,n)=>{var r,o,l;const i=oe(t);const s=p.get(i);if(!O.document){return i}e=e.nodeType===11?e:O.document;if(s){if(typeof s==="string"){e=e.head||e;let n=ee.get(e);let l;if(!n){ee.set(e,n=new Set)}const a=e.querySelector(`[${w}="${i}"]`);if(a){a.textContent=s}else if(!n.has(i)){l=O.document.createElement("style");l.textContent=s;const a=(r=M.m)!=null?r:X(O.document);if(a!=null){l.setAttribute("nonce",a)}if(!(t.i&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(E){const t=(o=e.defaultView)!=null?o:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(s);if(z){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=s+t.textContent}else{e.prepend(l)}}}else{e.append(l)}}if(t.i&1){e.insertBefore(l,null)}if(t.i&4){l.textContent+=j}if(n){n.add(i)}}}else{let t=ee.get(e);if(!t){ee.set(e,t=new Set)}if(!t.has(i)){const n=(l=e.defaultView)!=null?l:e.ownerDocument.defaultView;let r;if(s.constructor===n.CSSStyleSheet){r=s}else{r=new n.CSSStyleSheet;for(let e=0;e<s.cssRules.length;e++){r.insertRule(s.cssRules[e].cssText,e)}}if(z){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(i);if("host"in e){const t=e.querySelector(`[${w}="${i}"]`);if(t){V((()=>t.remove()))}}}}}return i};var re=e=>{const t=e.t;const n=e.$hostElement$;const r=t.i;const o=Q("attachStyles",t.$);const l=ne(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=l;n.classList.add(l+"-h")}o()};var oe=(e,t)=>"sc-"+e.$;var le=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var ie=()=>{if(!O.document){return}const e=O.document.querySelectorAll(`[${w}]`);let t=0;for(;t<e.length;t++){te(e[t].getAttribute(w),le(e[t].innerHTML),true)}};var se=e=>{e=typeof e;return e==="object"||e==="function"};var ae=(e,t,...n)=>{if(typeof e==="string"){e=Ot(e)}let r=null;let o=null;let l=false;let i=false;const s=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(l=typeof e!=="function"&&!se(r)){r=String(r)}else if(typeof e!=="function"&&r.i===void 0){{v("Invalid vNode child")}continue}if(l&&i){s[s.length-1].j+=r}else{s.push(l?fe(null,r):r)}i=l}}};a(n);if(t){if(t.key){o=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const f=fe(e,null);f.S=t;if(s.length>0){f.k=s}{f.O=o}return f};var fe=(e,t)=>{const n={i:0,I:e,j:t!=null?t:null,M:null,k:null};{n.S=null}{n.O=null}return n};var ce={};var ue=e=>e&&e.I===ce;var de=(e,t,n,r)=>{var o,l,i,s;const a=Q("hydrateClient",t);const f=e.shadowRoot;const u=[];const d=[];const v=[];const p=f?[]:null;const h=fe(t,null);h.M=e;if(O.document&&(!M.C||!M.C.size)){pe(O.document.body,M.C=new Map)}e[$]=n;e.removeAttribute($);r.N=ve(h,u,d,p,e,e,n,v);let y=0;const m=u.length;let g;for(y;y<m;y++){g=u[y];const n=g.A+"."+g.L;const r=M.C.get(n);const l=g.M;if(!f){l["s-hn"]=Ot(t).toUpperCase();if(g.I==="slot"){l["s-cr"]=e["s-cr"]}}else if(((o=g.I)==null?void 0:o.toString().includes("-"))&&g.I!=="slot-fb"&&!g.M.shadowRoot){const e=c(g.M);if(e){const t=oe(e.t);const n=O.document.querySelector(`style[sty-id="${t}"]`);if(n){p.unshift(n.cloneNode(true))}}}if(g.I==="slot"){g._=g.M["s-sn"]||g.M["name"]||null;if(g.k){g.i|=2;if(!g.M.childNodes.length){g.k.forEach((e=>{g.M.appendChild(e.M)}))}}else{g.i|=1}}if(r&&r.isConnected){if(r.parentElement.shadowRoot&&r["s-en"]===""){r.parentNode.insertBefore(l,r.nextSibling)}r.parentNode.removeChild(r);if(!f){l["s-oo"]=parseInt(g.L)}}if(r&&!r["s-id"]){M.C.delete(n)}}const b=[];const w=v.length;let x=0;let j;let S;let k;let I;let C=0;for(x;x<w;x++){j=v[x];if(!j||!j.length)continue;k=j.length;S=0;for(S;S<k;S++){I=j[S];if(!b[I.hostId]){b[I.hostId]=M.C.get(I.hostId)}if(!b[I.hostId])continue;const e=b[I.hostId];if(e.shadowRoot&&I.node.parentElement!==e){e.insertBefore(I.node,(i=(l=j[S-1])==null?void 0:l.node)==null?void 0:i.nextSibling)}if(!e.shadowRoot||!f){if(!I.slot["s-cr"]){I.slot["s-cr"]=e["s-cr"];if(!I.slot["s-cr"]&&e.shadowRoot){I.slot["s-cr"]=e}else{I.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}}J(I.node,I.slot,false,I.node["s-oo"]||C);if(((s=I.node.parentElement)==null?void 0:s.shadowRoot)&&I.node["getAttribute"]&&I.node.getAttribute("slot")){I.node.removeAttribute("slot")}}C=(I.node["s-oo"]||C)+1}}if(f&&!f.childNodes.length){let t=0;const n=p.length;if(n){for(t;t<n;t++){const e=p[t];if(e){f.appendChild(e)}}Array.from(e.childNodes).forEach((e=>{if(typeof e["s-en"]!=="string"&&typeof e["s-sn"]!=="string"){if(e.nodeType===1&&e.slot&&e.hidden){e.removeAttribute("hidden")}else if(e.nodeType===8&&!e.nodeValue){e.parentNode.removeChild(e)}}}))}}r.$hostElement$=e;a()};var ve=(e,t,n,r,o,l,i,s=[])=>{let a;let f;let c;let u;if(l.nodeType===1){a=l.getAttribute(x);if(a){f=a.split(".");if(f[0]===i||f[0]==="0"){c=he({i:0,A:f[0],L:f[1],D:f[2],R:f[3],I:l.tagName.toLowerCase(),M:l,S:{class:l.className||""}});t.push(c);l.removeAttribute(x);if(!e.k){e.k=[]}const o=c.M.getAttribute("s-sn");if(typeof o==="string"){if(c.I==="slot-fb"){ye(o,f[2],c,l,e,t,n,r,s)}c.M["s-sn"]=o;c.M.removeAttribute("s-sn")}if(c.R!==void 0){e.k[c.R]=c}e=c;if(r&&c.D==="0"){r[c.R]=c.M}}}if(l.shadowRoot){for(u=l.shadowRoot.childNodes.length-1;u>=0;u--){ve(e,t,n,r,o,l.shadowRoot.childNodes[u],i,s)}}const d=l.__childNodes||l.childNodes;for(u=d.length-1;u>=0;u--){ve(e,t,n,r,o,d[u],i,s)}}else if(l.nodeType===8){f=l.nodeValue.split(".");if(f[1]===i||f[1]==="0"){a=f[0];c=he({A:f[1],L:f[2],D:f[3],R:f[4]||"0",M:l,S:null,k:null,O:null,_:null,I:null,j:null});if(a===g){c.M=ge(l,3);if(c.M&&c.M.nodeType===3){c.j=c.M.textContent;t.push(c);l.remove();if(i===c.A){if(!e.k){e.k=[]}e.k[c.R]=c}if(r&&c.D==="0"){r[c.R]=c.M}}}else if(a===b){c.M=ge(l,8);if(c.M&&c.M.nodeType===8){t.push(c);l.remove()}}else if(c.A===i){if(a===m){const o=l["s-sn"]=f[5]||"";ye(o,f[2],c,l,e,t,n,r,s)}else if(a===h){if(r){l.remove()}}}}}else if(e&&e.I==="style"){const t=fe(null,l.textContent);t.M=l;t.R="0";e.k=[t]}return e};var pe=(e,t)=>{if(e.nodeType===1){const n=e[$]||e.getAttribute($);if(n){t.set(n,e)}let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){pe(e.shadowRoot.childNodes[r],t)}}const o=e.__childNodes||e.childNodes;for(r=0;r<o.length;r++){pe(o[r],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===y){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var he=e=>{const t={i:0,A:null,L:null,D:null,R:"0",M:null,S:null,k:null,O:null,_:null,I:null,j:null};return{...t,...e}};function ye(e,t,n,r,o,l,i,s,a){r["s-sr"]=true;n._=e||null;n.I="slot";const f=(o==null?void 0:o.M)?o.M["s-id"]||o.M.getAttribute("s-id"):"";if(s&&O.document){const l=n.M=O.document.createElement(n.I);if(n._){n.M.setAttribute("name",e)}if(o.M.shadowRoot&&f&&f!==n.A){K(o.M,"insertBefore")(l,K(o.M,"children")[0])}else{K(K(r,"parentNode"),"insertBefore")(l,r)}me(a,t,e,r,n.A);r.remove();if(n.D==="0"){s[n.R]=n.M}}else{const l=n.M;const i=f&&f!==n.A&&o.M.shadowRoot;me(a,t,e,r,i?f:n.A);G(r);if(i){o.M.insertBefore(l,o.M.children[0])}}l.push(n);i.push(n);if(!o.k){o.k=[]}o.k[n.R]=n}var me=(e,t,n,r,o)=>{var l,i;let s=r.nextSibling;e[t]=e[t]||[];if(!s||((l=s.nodeValue)==null?void 0:l.startsWith(m+".")))return;do{if(s&&((s["getAttribute"]&&s.getAttribute("slot")||s["s-sn"])===n||n===""&&!s["s-sn"]&&(!s["getAttribute"]||!s.getAttribute("slot"))&&(s.nodeType===8||s.nodeType===3))){s["s-sn"]=n;e[t].push({slot:r,node:s,hostId:o})}s=s==null?void 0:s.nextSibling}while(s&&!((i=s.nodeValue)==null?void 0:i.startsWith(m+".")))};var ge=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var be=e=>{if(!e)return void 0;const t=Object.keys(e);if(t.length===0)return void 0;let n=false;for(const r of t){if(n)break;for(const t of e[r]){if(typeof t==="string"){n=true;break}}}if(!n)return e;const r={};for(const n of t){r[n]=e[n].map((e=>typeof e==="string"?{[e]:0}:e))}return r};var $e=class e{static fromLocalValue(t){const n=t[l];const r=i in t?t[i]:void 0;switch(n){case"string":return r;case"boolean":return r;case"bigint":return BigInt(r);case"undefined":return void 0;case"null":return null;case"number":if(r==="NaN")return NaN;if(r==="-0")return-0;if(r==="Infinity")return Infinity;if(r==="-Infinity")return-Infinity;return r;case"array":return r.map((t=>e.fromLocalValue(t)));case"date":return new Date(r);case"map":const t=new Map;for(const[n,o]of r){const r=typeof n==="object"&&n!==null?e.fromLocalValue(n):n;const l=e.fromLocalValue(o);t.set(r,l)}return t;case"object":const o={};for(const[t,n]of r){o[t]=e.fromLocalValue(n)}return o;case"regexp":const{pattern:l,flags:i}=r;return new RegExp(l,i);case"set":const s=new Set;for(const t of r){s.add(e.fromLocalValue(t))}return s;case"symbol":return Symbol(r);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>e.fromLocalValue(t)))}static isLocalValueObject(e){if(typeof e!=="object"||e===null){return false}if(!e.hasOwnProperty(l)){return false}const t=e[l];const n=Object.values({...r,...o}).includes(t);if(!n){return false}if(t!=="null"&&t!=="undefined"){return e.hasOwnProperty(i)}return true}};function we(e){const t=atob(e);const n=new Uint8Array(t.length);for(let e=0;e<t.length;e++){n[e]=t.charCodeAt(e)}return(new TextDecoder).decode(n)}function xe(e){if(typeof e!=="string"||!e.startsWith(s)){return e}return $e.fromLocalValue(JSON.parse(we(e.slice(s.length))))}var je=(e,t,n)=>{if(typeof e==="string"&&e.startsWith(s)){e=xe(e);return e}if(e!=null&&!se(e)){if(t&4){if(n&&typeof e==="string"){return e===""||!!e}else{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Se=e=>e;var ke=(e,t,n)=>{const r=Se(e);return{emit:e=>Oe(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var Oe=(e,t,n)=>{const r=M.ce(t,n);e.dispatchEvent(r);return r};var Ie=(e,t,n,r,o,l,i)=>{if(n===r){return}let s=d(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const o=Ee(n);let l=Ee(r);if((e["s-si"]||e["s-sc"])&&i){const n=e["s-sc"]||e["s-si"];l.push(n);o.forEach((e=>{if(e.startsWith(n))l.push(e)}));l=[...new Set(l)].filter((e=>e));t.add(...l)}else{t.remove(...o.filter((e=>e&&!l.includes(e))));t.add(...l.filter((e=>e&&!o.includes(e))))}}else if(t==="key");else if(t==="ref"){if(r){Ze(r,e)}}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(d(O,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(n||r){const o=t.endsWith(ze);t=t.replace(Ae,"");if(n){M.rel(e,t,n,o)}if(r){M.ael(e,t,r,o)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let o;{const t=c(e);if(t&&t.t&&t.t.o){const e=t.t.o[n];if(e&&e[1]){o=e[1]}}}if(!o){o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(r==null||r===false){if(r!==false||e.getAttribute(o)===""){e.removeAttribute(o)}}else{e.setAttribute(o,r===true?"":r)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch(e){}return}else{const i=se(r);if((s||i&&r!==null)&&!o){try{if(!e.tagName.includes("-")){const o=r==null?"":r;if(t==="list"){s=false}else if(n==null||e[t]!==o){if(typeof e.__lookupSetter__(t)==="function"){e[t]=o}else{e.setAttribute(t,o)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""||l&4&&!Ce(t)){{e.removeAttribute(t)}}}else if((!s||l&4||o)&&!i&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var Me=new Set(["draggable","contenteditable","spellcheck"]);var Ce=e=>Me.has(e)||e.startsWith("aria-");var Ne=/\s/;var Ee=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(Ne)};var ze="Capture";var Ae=new RegExp(ze+"$");var Le=(e,t,n,r)=>{const o=t.M.nodeType===11&&t.M.host?t.M.host:t.M;const l=e&&e.S||{};const i=t.S||{};{for(const e of _e(Object.keys(l))){if(!(e in i)){Ie(o,e,l[e],void 0,n,t.i,r)}}}for(const e of _e(Object.keys(i))){Ie(o,e,l[e],i[e],n,t.i,r)}};function _e(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var De;var Re=false;var Ue=false;var Fe=[];var He=[];var Ve=(e,t,n)=>{const r=t.k[n];let o=0;let l;let i;if(r.j!=null){l=r.M=O.document.createTextNode(r.j)}else{if(!O.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}l=r.M=O.document.createElement(r.I);{Le(null,r,Ue)}if(r.k){const t=r.I==="template"?l.content:l;for(o=0;o<r.k.length;++o){i=Ve(e,r,o);if(i){t.appendChild(i)}}}}l["s-hn"]=De;return l};var Pe=e=>{M.i|=1;const t=e.closest(De.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){Ke(t,e,n!=null?n:null);e["s-sh"]=void 0}}}M.i&=-2};var We=(e,t,n,r,o,l)=>{let i=e;let s;if(i.shadowRoot&&i.tagName===De){i=i.shadowRoot}if(n.I==="template"){i=i.content}for(;o<=l;++o){if(r[o]){s=Ve(null,n,o);if(s){r[o].M=s;Ke(i,s,t)}}}};var Te=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.M;Je(t);if(e){e.remove()}}}};var Be=(e,t,n,r,o=false)=>{let l=0;let i=0;let s=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let d=r.length-1;let v=r[0];let p=r[d];let h;let y;const m=n.I==="template"?e.content:e;while(l<=f&&i<=d){if(c==null){c=t[++l]}else if(u==null){u=t[--f]}else if(v==null){v=r[++i]}else if(p==null){p=r[--d]}else if(qe(c,v,o)){Ye(c,v,o);c=t[++l];v=r[++i]}else if(qe(u,p,o)){Ye(u,p,o);u=t[--f];p=r[--d]}else if(qe(c,p,o)){Ye(c,p,o);Ke(m,c.M,u.M.nextSibling);c=t[++l];p=r[--d]}else if(qe(u,v,o)){Ye(u,v,o);Ke(m,u.M,c.M);u=t[--f];v=r[++i]}else{s=-1;{for(a=l;a<=f;++a){if(t[a]&&t[a].O!==null&&t[a].O===v.O){s=a;break}}}if(s>=0){y=t[s];if(y.I!==v.I){h=Ve(t&&t[i],n,s)}else{Ye(y,v,o);t[s]=void 0;h=y.M}v=r[++i]}else{h=Ve(t&&t[i],n,i);v=r[++i]}if(h){{Ke(c.M.parentNode,h,c.M)}}}}if(l>f){We(e,r[d+1]==null?null:r[d+1].M,n,r,i,d)}else if(i>d){Te(t,l,f)}};var qe=(e,t,n=false)=>{if(e.I===t.I){if(!n){return e.O===t.O}if(n&&!e.O&&t.O){e.O=t.O}return true}return false};var Ye=(e,t,r=false)=>{const o=t.M=e.M;const l=e.k;const i=t.k;const s=t.I;const a=t.j;if(a==null){{if(s==="slot"&&!Re){if(e._!==t._){t.M["s-sn"]=t._||"";Pe(t.M.parentElement)}}Le(e,t,Ue,r)}if(l!==null&&i!==null){Be(o,l,t,i,r)}else if(i!==null){if(e.j!==null){o.textContent=""}We(o,null,t,i,0,i.length-1)}else if(!r&&n.updatable&&l!==null){Te(l,0,l.length-1)}else if(r&&n.updatable&&l!==null&&i===null){t.k=l}}else if(e.j!==a){o.data=a}};var Je=e=>{{if(e.S&&e.S.ref){Fe.push((()=>e.S.ref(null)))}e.k&&e.k.map(Je)}};var Ze=(e,t)=>{{He.push((()=>e(t)))}};var Ge=()=>{{Fe.forEach((e=>e()));Fe.length=0;He.forEach((e=>e()));He.length=0}};var Ke=(e,t,n,r)=>{{return e==null?void 0:e.insertBefore(t,n)}};var Qe=(e,t,n=false)=>{const r=e.$hostElement$;const o=e.t;const l=e.N||fe(null,null);const i=ue(t);const s=i?t:ae(null,null,t);De=r.tagName;if(o.U){s.S=s.S||{};o.U.forEach((([e,t])=>{{s.S[t]=r[e]}}))}if(n&&s.S){for(const e of Object.keys(s.S)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){s.S[e]=r[e]}}}s.I=null;s.i|=4;e.N=s;s.M=l.M=r.shadowRoot||r;Re=!!(o.i&1)&&!(o.i&128);Ye(l,s,n);Ge()};var Xe=(e,t)=>{if(t&&!e.F&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.F=()=>{t["s-p"].splice(n-1,1);r()})))}};var et=(e,t)=>{{e.i|=16}if(e.i&4){e.i|=512;return}Xe(e,e.H);const n=()=>tt(e,t);if(t){queueMicrotask((()=>{n()}));return}return V(n)};var tt=(e,t)=>{const n=e.$hostElement$;const r=Q("scheduleUpdate",e.t.$);const o=n;if(!o){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let l;if(t){l=at(o,"componentWillLoad",void 0,n)}else{l=at(o,"componentWillUpdate",void 0,n)}l=nt(l,(()=>at(o,"componentWillRender",void 0,n)));r();return nt(l,(()=>ot(e,o,t)))};var nt=(e,t)=>rt(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var rt=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var ot=async(e,t,n)=>{var r;const o=e.$hostElement$;const l=Q("update",e.t.$);const i=o["s-rc"];if(n){re(e)}const s=Q("render",e.t.$);{lt(e,t,o,n)}if(i){i.map((e=>e()));o["s-rc"]=void 0}s();l();{const t=(r=o["s-p"])!=null?r:[];const n=()=>it(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.i|=4;t.length=0}}};var lt=(e,t,n,r)=>{try{t=t.render();{e.i&=-17}{e.i|=2}{{{Qe(e,t,r)}}}}catch(t){v(t,e.$hostElement$)}return null};var it=e=>{const t=e.t.$;const n=e.$hostElement$;const r=Q("postUpdate",t);const o=n;const l=e.H;at(o,"componentDidRender",void 0,n);if(!(e.i&64)){e.i|=64;at(o,"componentDidLoad",void 0,n);r();{e.p(n);if(!l){st()}}}else{at(o,"componentDidUpdate",void 0,n);r()}{if(e.F){e.F();e.F=void 0}if(e.i&512){H((()=>et(e,false)))}e.i&=-517}};var st=e=>{var n;H((()=>Oe(O,"appload",{detail:{namespace:t}})));{if((n=M.C)==null?void 0:n.size){M.C.clear()}}};var at=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){v(e,r)}}return void 0};var ft=(e,t)=>c(e).l.get(t);var ct=(e,t,n,r)=>{const o=c(e);if(!o){return}const l=e;const i=o.l.get(t);const s=o.i;const a=l;n=je(n,r.o[t][0],!!(r.i&64));const f=Number.isNaN(i)&&Number.isNaN(n);const u=n!==i&&!f;if(u){o.l.set(t,n);if(r.V){const e=r.V[t];if(e){e.map((e=>{try{const[[r,l]]=Object.entries(e);if(s&128||l&1){if(!a){o.P.push((()=>{o.W[r](n,i,t)}))}else{a[r](n,i,t)}}}catch(e){v(e,l)}}))}}if(s&2){if(a.componentShouldUpdate){const e=a.componentShouldUpdate(n,i,t);if(e===false&&!(s&16)){return}}if(!(s&16)){et(o,false)}}}};var ut=e=>e==null||e===false?null:e===true?"":String(e);var dt=(e,t,r)=>{var o,l;const i=e.prototype;if(t.i&64&&r&1){k.forEach((e=>{const t=i[e];Object.defineProperty(i,e,{value(...n){var r;const o=c(this);const l=this;if(!l){(r=o==null?void 0:o.v)==null?void 0:r.then((t=>{const r=t[e];typeof r==="function"&&r.call(t,...n)}))}else{const e=t;typeof e==="function"&&e.call(l,...n)}}})}))}{{if(e.watchers&&!t.V){t.V=be(e.watchers)}if(e.deserializers&&!t.T){t.T=e.deserializers}if(e.serializers&&!t.B){t.B=e.serializers}}const r=Object.entries((o=t.o)!=null?o:{});r.map((([e,[n]])=>{if(n&31||n&32){const{get:r,set:o}=a(i,e)||{};if(r)t.o[e][0]|=2048;if(o)t.o[e][0]|=4096;{Object.defineProperty(i,e,{get(){{return r?r.apply(this):ft(this,e)}},configurable:true,enumerable:true})}Object.defineProperty(i,e,{set(r){const l=c(this);if(!l){return}if(o){const i=n&32?this[e]:l.$hostElement$[e];if(typeof i==="undefined"&&l.l.get(e)){r=l.l.get(e)}o.apply(this,[je(r,n,!!(t.i&64))]);r=n&32?this[e]:l.$hostElement$[e];ct(this,e,r,t);return}{ct(this,e,r,t);return}}})}}));{const o=new Map;i.attributeChangedCallback=function(e,l,s){M.jmp((()=>{var a;const f=o.get(e);const u=c(this);if(this.hasOwnProperty(f)&&n.lazyLoad);if(i.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==s){return}else if(f==null){const n=u==null?void 0:u.i;if(u&&n&&!(n&8)&&s!==l){const r=this;const o=r;const i=(a=t.V)==null?void 0:a[e];i==null?void 0:i.forEach((t=>{const[[r,i]]=Object.entries(t);if(o[r]!=null&&(n&128||i&1)){o[r].call(o,s,l,e)}}))}return}const d=r.find((([e])=>e===f));const v=d?d[1][0]:0;const p=v&4;if(v&512&&v&8&&!se(this[f])&&ut(this[f])===s){return}const h=p&&s===null&&this[f]===void 0;if(p){s=s===null||s==="false"?false:true}const y=Object.getOwnPropertyDescriptor(i,f);if(!h&&s!=this[f]&&(!y.get||!!y.set)){this[f]=s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=t.V)!=null?l:{}),...r.filter((([e,t])=>t[0]&31)).map((([e,n])=>{var r;const l=n[1]||e;o.set(l,e);if(n[0]&512){(r=t.U)==null?void 0:r.push([e,l])}return l}))]))}}return e};var vt=async(e,t,r,o)=>{let l;try{if((t.i&32)===0){t.i|=32;t.i&=-1025;{l=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.i|=128))}if(l&&l.style){let e;if(typeof l.style==="string"){e=l.style}const t=oe(r);if(!p.has(t)||n.hotModuleReplacement){const n=Q("registerStyles",r.$);te(t,e,!!(r.i&1));n()}}}const o=t.H;const i=()=>et(t,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}}catch(n){v(n,e);if(t.F){t.F();t.F=void 0}if(t.p&&!(t.i&1024)){t.p(e)}}};var pt=(e,t)=>{};var ht=e=>{if((M.i&1)===0){const t=c(e);if(!t){return}const n=t.t;const r=Q("connectedCallback",n.$);if(!(t.i&1)){t.i|=1;let r;{r=e.getAttribute($);if(r){if(n.i&1){const t=ne(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}de(e,n.$,r,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Xe(t,t.H=n);break}}}if(n.o){Object.entries(n.o).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{vt(e,t,n)}}else{gt(e,t,n.q);if(t==null?void 0:t.W);else if(t.i&1024){setTimeout((()=>vt(e,t,n)),S)}else if(t==null?void 0:t.v){t.v.then((()=>pt()))}}r()}};var yt=async e=>{if((M.i&1)===0){const t=c(e);{if(t==null?void 0:t.Y){t.Y.map((e=>e()));t.Y=void 0}}}if(ee.has(e)){ee.delete(e)}if(e.shadowRoot&&ee.has(e.shadowRoot)){ee.delete(e.shadowRoot)}};var mt=(e,t)=>{const n={i:t[0],$:t[1]};try{{n.o=t[2]}{n.q=t[3]}{n.V=be(e.V);n.T=e.T;n.B=e.B}{n.U=[]}{ie()}const r=e.prototype.connectedCallback;const o=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__hasHostListenerAttached:false,__registerHost(){u(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const e=c(this);if(!e){return}gt(this,e,n.q);this.__hasHostListenerAttached=true}ht(this);if(r){r.call(this)}},disconnectedCallback(){yt(this);if(o){o.call(this)}},__attachShadow(){{if(!this.shadowRoot){q.call(this,n)}else{if(this.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${n.$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}});Object.defineProperty(e,"is",{value:n.$,configurable:true});return dt(e,n,1|2)}catch(t){v(t);return e}};var gt=(e,t,n,r)=>{if(n&&O.document){n.map((([n,r,o])=>{const l=$t(O.document,e,n);const i=bt(t,o);const s=wt(n);M.ael(l,r,i,s);(t.Y=t.Y||[]).push((()=>M.rel(l,r,i,s)))}))}};var bt=(e,t)=>n=>{try{{e.$hostElement$[t](n)}}catch(t){v(t,e.$hostElement$)}};var $t=(e,t,n)=>{if(n&4){return e}return t};var wt=e=>C?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var xt=e=>M.m=e;var jt=e=>Object.assign(M,e);var St=new WeakMap;function kt(e,t){let n=St.get(t);if(!n){const e={i:0,$:t.tagName};n={i:0,t:e,$hostElement$:t};St.set(t,n)}Qe(n,e)}function Ot(e){return e}export{I as H,xt as a,jt as b,ke as c,ce as d,P as g,ae as h,mt as p,kt as r,W as s,Ot as t};
|
|
2
|
+
//# sourceMappingURL=p-BhAZrOxf.js.map
|