@devschile/chucao 1.5.3 → 1.6.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/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/{p-061ffcf3.entry.js → p-175aee94.entry.js} +2 -2
- package/dist/chucao/{p-c0c5522f.entry.js → p-85a49fd7.entry.js} +2 -2
- package/dist/chucao/p-ImsAHlk9.js +3 -0
- package/dist/chucao/p-ImsAHlk9.js.map +1 -0
- package/dist/chucao/{p-117c93d3.entry.js → p-af2c57b5.entry.js} +2 -2
- package/dist/chucao/{p-fa56821f.entry.js → p-b4520f1c.entry.js} +2 -2
- package/dist/chucao/{p-14d8a79c.entry.js → p-d75eeeea.entry.js} +2 -2
- package/dist/chucao/{p-b07c23e1.entry.js → p-dde82d7d.entry.js} +2 -2
- package/dist/chucao/{p-bb82aaf8.entry.js → p-fcc70c8d.entry.js} +2 -2
- package/dist/chucao/{p-c1edf460.entry.js → p-fe0c9320.entry.js} +2 -2
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-badge_6.cjs.entry.js +1 -1
- package/dist/cjs/ch-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ch-divider.cjs.entry.js +1 -1
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-radio.cjs.entry.js +1 -1
- package/dist/cjs/ch-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ch-textarea.cjs.entry.js +1 -1
- package/dist/cjs/chucao.cjs.js +1 -1
- package/dist/cjs/{index-D7ZSLrHc.js → index-CiYvuUBV.js} +679 -9
- package/dist/cjs/index-CiYvuUBV.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/components/ch-accordion.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-divider.js +1 -1
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-link.js +1 -1
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-x4aZoujY.js +2 -0
- package/dist/components/p-x4aZoujY.js.map +1 -0
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-badge_6.entry.js +1 -1
- package/dist/esm/ch-checkbox.entry.js +1 -1
- package/dist/esm/ch-divider.entry.js +1 -1
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-radio.entry.js +1 -1
- package/dist/esm/ch-tabs.entry.js +1 -1
- package/dist/esm/ch-textarea.entry.js +1 -1
- package/dist/esm/chucao.js +2 -2
- package/dist/esm/{index-B0AkgfgP.js → index-ImsAHlk9.js} +679 -9
- package/dist/esm/index-ImsAHlk9.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +24283 -0
- package/hydrate/index.mjs +24273 -0
- package/hydrate/package.json +12 -0
- package/package.json +7 -1
- package/dist/chucao/p-B0AkgfgP.js +0 -3
- package/dist/chucao/p-B0AkgfgP.js.map +0 -1
- package/dist/cjs/index-D7ZSLrHc.js.map +0 -1
- package/dist/components/p-W-iJXblk.js +0 -2
- package/dist/components/p-W-iJXblk.js.map +0 -1
- package/dist/esm/index-B0AkgfgP.js.map +0 -1
- /package/dist/chucao/{p-061ffcf3.entry.js.map → p-175aee94.entry.js.map} +0 -0
- /package/dist/chucao/{p-c0c5522f.entry.js.map → p-85a49fd7.entry.js.map} +0 -0
- /package/dist/chucao/{p-117c93d3.entry.js.map → p-af2c57b5.entry.js.map} +0 -0
- /package/dist/chucao/{p-fa56821f.entry.js.map → p-b4520f1c.entry.js.map} +0 -0
- /package/dist/chucao/{p-14d8a79c.entry.js.map → p-d75eeeea.entry.js.map} +0 -0
- /package/dist/chucao/{p-b07c23e1.entry.js.map → p-dde82d7d.entry.js.map} +0 -0
- /package/dist/chucao/{p-bb82aaf8.entry.js.map → p-fcc70c8d.entry.js.map} +0 -0
- /package/dist/chucao/{p-c1edf460.entry.js.map → p-fe0c9320.entry.js.map} +0 -0
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,t,H as a,c as r,h as i,d as o}from"./p-
|
|
1
|
+
import{p as e,t,H as a,c as r,h as i,d as o}from"./p-x4aZoujY.js";const s=()=>`:host{display:block}.item{background:var(--surface);border:var(--border-width) solid var(--border);border-radius:var(--radius);transition:border-color var(--duration-normal) var(--easing-default)}.item+.item{margin-top:var(--spacing-md)}.item--open{border-color:var(--border-hover)}.item-head{margin:0}.item-toggle{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-lg);width:100%;padding:var(--spacing-2xl) var(--spacing-3xl);background:transparent;border:none;color:var(--text);font-family:inherit;font-size:inherit;font-weight:var(--typography-weight-semibold);cursor:pointer}.item-toggle::after{content:'';width:var(--spacing-md);height:var(--spacing-md);flex-shrink:0;border-right:var(--border-width) solid var(--text-muted);border-bottom:var(--border-width) solid var(--text-muted);transform:rotate(45deg);transition:transform var(--duration-normal) var(--easing-default)}.item--open .item-toggle::after{transform:rotate(-135deg)}.item-toggle:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.item-toggle:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.item-panel{padding:0 var(--spacing-3xl) var(--spacing-3xl);color:var(--text-muted)}.item-panel[hidden]{display:none}`;let n=0;const d=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.chChange=r(this,"chChange")}baseId=`ch-accordion-${++n}`;items=[];value;chChange;headerId(e){return`${this.baseId}-${e}-header`}panelId(e){return`${this.baseId}-${e}-panel`}toggle=e=>{this.value=this.value===e?undefined:e;this.chChange.emit(this.value)};render(){return i(o,{key:"a0b6859c9efc45b158825f2b44aab73a5eb63f0b"},this.items.map((e=>{const t=this.value===e.value;return i("div",{key:e.value,class:{item:true,"item--open":t}},i("h3",{class:"item-head"},i("button",{type:"button",class:"item-toggle",id:this.headerId(e.value),"data-value":e.value,"aria-expanded":t?"true":"false","aria-controls":this.panelId(e.value),disabled:e.disabled,onClick:()=>this.toggle(e.value)},e.title)),i("div",{class:"item-panel",id:this.panelId(e.value),role:"region","aria-labelledby":this.headerId(e.value),hidden:!t},i("slot",{name:`panel-${e.value}`})))})))}static get style(){return s()}},[769,"ch-accordion",{items:[16],value:[1025]}]);function l(){if(typeof customElements==="undefined"){return}const e=["ch-accordion"];e.forEach((e=>{switch(e){case"ch-accordion":if(!customElements.get(t(e))){customElements.define(t(e),d)}break}}))}l();const c=d;const h=l;export{c as ChAccordion,h as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-accordion.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as a,H as e,h as t,d as r,t as s}from"./p-
|
|
1
|
+
import{p as a,H as e,h as t,d as r,t as s}from"./p-x4aZoujY.js";const o=()=>`:host{display:inline-block}.badge{display:inline-block;padding:var(--spacing-2xs) var(--spacing-lg);border-radius:var(--radius-pill);font-size:var(--typography-size-xs);font-weight:var(--typography-weight-semibold);text-transform:uppercase;letter-spacing:var(--typography-tracking-badge)}.badge--default{background:var(--color-surface-hover);color:var(--accent)}.badge--positive{background:var(--color-status-positive-background);color:var(--color-status-positive)}.badge--warning{background:var(--color-status-warning-background);color:var(--color-status-warning)}`;const c=a(class a extends e{constructor(a){super();if(a!==false){this.__registerHost()}this.__attachShadow()}variant="default";render(){return t(r,{key:"c0acd8486b8265884b3c4a2a5a68bf10098a09cd"},t("span",{key:"2ae6af3f7ac4c6967dc6eefe607b3910ba341741",class:{badge:true,[`badge--${this.variant}`]:true}},t("slot",{key:"2aab4bb7e25492dc01cb94cf055efde3897f736b"})))}static get style(){return o()}},[769,"ch-badge",{variant:[1]}]);function n(){if(typeof customElements==="undefined"){return}const a=["ch-badge"];a.forEach((a=>{switch(a){case"ch-badge":if(!customElements.get(s(a))){customElements.define(s(a),c)}break}}))}n();const i=c;const d=n;export{i as ChBadge,d as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-badge.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as a,H as r,c as t,h as e,d as o,t as n}from"./p-
|
|
1
|
+
import{p as a,H as r,c as t,h as e,d as o,t as n}from"./p-x4aZoujY.js";const i=()=>`:host{display:inline-block}.btn{display:inline-flex;align-items:center;gap:var(--spacing-sm);border:none;cursor:pointer;font-family:inherit;font-size:inherit}.btn:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.btn:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.btn--primary{background-color:var(--accent);color:var(--color-accent-text);font-weight:var(--typography-weight-bold);padding:var(--spacing-xs) var(--spacing-xl);border-radius:var(--radius-pill);transition:background-color var(--duration-normal) var(--easing-default), transform var(--duration-fast) var(--easing-default)}.btn--primary:hover{background-color:var(--accent-hover);transform:translateY(calc(-1 * var(--spacing-elevate)))}.btn--secondary{background-color:transparent;color:var(--text);font-weight:var(--typography-weight-bold);padding:var(--spacing-xs) var(--spacing-xl);border-radius:var(--radius-pill);border:var(--border-width) solid var(--border);transition:border-color var(--duration-normal) var(--easing-default), background-color var(--duration-normal) var(--easing-default), transform var(--duration-fast) var(--easing-default)}.btn--secondary:hover{border-color:var(--border-hover);background-color:var(--surface-hover);transform:translateY(calc(-1 * var(--spacing-elevate)))}`;const s=a(class a extends r{constructor(a){super();if(a!==false){this.__registerHost()}this.__attachShadow();this.chClick=t(this,"chClick")}variant="primary";disabled=false;label;chClick;handleClick=a=>{this.chClick.emit(a)};render(){return e(o,{key:"1fc74b55b6d69be97fba63f0fb2d72ffd217eafb"},e("button",{key:"af6721f9eb066f7e0cb7a23031d43eb46fbbdf9e",class:{btn:true,[`btn--${this.variant}`]:true},type:"button",disabled:this.disabled,"aria-label":this.label,onClick:this.handleClick},e("slot",{key:"2c42b74352aa7a79ac6bc231cdd828b7a62f5083"})))}static get style(){return i()}},[769,"ch-button",{variant:[1],disabled:[4],label:[1]}]);function c(){if(typeof customElements==="undefined"){return}const a=["ch-button"];a.forEach((a=>{switch(a){case"ch-button":if(!customElements.get(n(a))){customElements.define(n(a),s)}break}}))}c();const l=s;const d=c;export{l as ChButton,d as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-button.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as r,H as a,h as o,d as t,t as e}from"./p-
|
|
1
|
+
import{p as r,H as a,h as o,d as t,t as e}from"./p-x4aZoujY.js";const c=()=>`:host{display:block}::slotted(p){color:var(--text-muted)}.card{color:var(--text);background:var(--surface);border:var(--border-width) solid var(--border);border-radius:var(--radius);padding:var(--spacing-4xl) var(--spacing-5xl);backdrop-filter:blur(var(--effect-blur));position:relative;overflow:hidden;transition:border-color var(--duration-normal) var(--easing-default), transform var(--duration-fast) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:var(--border-accent-bar);background:var(--accent);opacity:0;transition:opacity var(--duration-normal) var(--easing-default)}.card:hover{border-color:var(--border-hover);transform:translateX(var(--spacing-shift));box-shadow:var(--shadow-card-hover)}.card:hover::before{opacity:1}`;const s=r(class r extends a{constructor(r){super();if(r!==false){this.__registerHost()}this.__attachShadow()}render(){return o(t,{key:"89781abc150f0078e9d36233f02d2bb29f3d2cc1"},o("div",{key:"41271ca28fd5c045a4dad746ec7e2c7264a35aac",class:"card"},o("slot",{key:"1786ea797968b94fc48de08836fc0195b0731469"})))}static get style(){return c()}},[257,"ch-card"]);function d(){if(typeof customElements==="undefined"){return}const r=["ch-card"];r.forEach((r=>{switch(r){case"ch-card":if(!customElements.get(e(r))){customElements.define(e(r),s)}break}}))}d();const n=s;const i=d;export{n as ChCard,i as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-card.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as r,c as
|
|
1
|
+
import{p as e,H as r,c as a,h as i,d as t,t as s}from"./p-x4aZoujY.js";const n=()=>`:host{display:inline-block}.control{display:inline-flex;align-items:center;gap:var(--spacing-lg);cursor:pointer}.control--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--spacing-4xl);height:var(--spacing-4xl);margin:0;flex-shrink:0;border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), background-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.input:checked{border-color:var(--accent);background:var(--accent)}.input:checked::before{content:'';width:var(--spacing-xs);height:var(--spacing-lg);border:solid var(--color-accent-text);border-width:0 var(--spacing-shift) var(--spacing-shift) 0;transform:rotate(45deg);margin-top:calc(-1 * var(--spacing-2xs))}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus-visible{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 o=0;const c=e(class e extends r{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.chChange=a(this,"chChange")}checkboxId=`ch-checkbox-${++o}`;hintId=`${this.checkboxId}-hint`;errorId=`${this.checkboxId}-error`;label;name;value="on";checked=false;disabled=false;required=false;hint;errorMessage;invalid=false;chChange;handleChange=e=>{this.checked=e.target.checked;this.chChange.emit(this.checked)};get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return i(t,{key:"746f0c29ea01a3a0c24360d964b3c0d65985f941"},i("label",{key:"9e423a2055ec4e2d77848b7c4b86cb200315a77d",class:{control:true,"control--disabled":this.disabled},htmlFor:this.checkboxId},i("input",{key:"b355914b0b02c9887f93e2a50fcebaf60b21d5bb",id:this.checkboxId,class:{input:true,"input--invalid":this.invalid},type:"checkbox",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,required:this.required,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onChange:this.handleChange}),this.label&&i("span",{key:"6f7128ccac345af5c9224c0388f960575aebc150",class:"label-text"},this.label)),this.hint&&!(this.invalid&&this.errorMessage)&&i("p",{key:"402417ceee995e578248307a24ba6f9b1955bda8",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&i("p",{key:"281930b92221157759d3652391b0cdc337a1f25d",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get style(){return n()}},[513,"ch-checkbox",{label:[1],name:[1],value:[1],checked:[1028],disabled:[4],required:[4],hint:[1],errorMessage:[1,"error-message"],invalid:[4]}]);function l(){if(typeof customElements==="undefined"){return}const e=["ch-checkbox"];e.forEach((e=>{switch(e){case"ch-checkbox":if(!customElements.get(s(e))){customElements.define(s(e),c)}break}}))}l();const d=c;const h=l;export{d as ChCheckbox,h as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-checkbox.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as i,h as t,d as r,t as d}from"./p-
|
|
1
|
+
import{p as e,H as i,h as t,d as r,t as d}from"./p-x4aZoujY.js";const s=()=>`:host{display:block}:host(.divider--vertical){display:inline-block;height:100%;align-self:stretch}.divider{margin:0;border:none;background:var(--border)}.divider--horizontal{width:100%;height:var(--border-width)}.divider--vertical{width:var(--border-width);height:100%}`;const a=e(class e extends i{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow()}orientation="horizontal";render(){return t(r,{key:"30ad155d178afd93745eb4072a2d9a8012705191",class:{"divider--vertical":this.orientation==="vertical"}},t("hr",{key:"ce239ccdebec97a2735e14ad62b81d14888881a5",class:{divider:true,[`divider--${this.orientation}`]:true},"aria-orientation":this.orientation}))}static get style(){return s()}},[513,"ch-divider",{orientation:[1]}]);function o(){if(typeof customElements==="undefined"){return}const e=["ch-divider"];e.forEach((e=>{switch(e){case"ch-divider":if(!customElements.get(d(e))){customElements.define(d(e),a)}break}}))}o();const n=a;const c=o;export{n as ChDivider,c as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-divider.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,c as i,h as r,d as a,t as s}from"./p-
|
|
1
|
+
import{p as t,H as e,c as i,h as r,d as a,t as s}from"./p-x4aZoujY.js";const n=()=>`: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)}.input{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;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.input: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 o=0;const d=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.chInput=i(this,"chInput");this.chChange=i(this,"chChange")}inputId=`ch-input-${++o}`;hintId=`${this.inputId}-hint`;errorId=`${this.inputId}-error`;label;type="text";value="";placeholder;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)};get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return r(a,{key:"82557c17d49bf048b7056853a088565a243325be"},this.label&&r("label",{key:"cc774b0001daa6c7f4e4bb8d62ea21698bd744e9",class:"label",htmlFor:this.inputId},this.label),r("input",{key:"dc30d9f798611a0a4bb577c18a2696d065a281ee",id:this.label?this.inputId:undefined,class:{input:true,"input--invalid":this.invalid},type:this.type,name:this.name,placeholder:this.placeholder,disabled:this.disabled,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)&&r("p",{key:"21b76002a309dfe167e671fd270699f8699ed6b9",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&r("p",{key:"be64956da00a76dccdbf0979f3352b263a21fb12",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get style(){return n()}},[513,"ch-input",{label:[1],type:[1],value:[1025],placeholder:[1],name:[1],disabled:[4],required:[4],hint:[1],errorMessage:[1,"error-message"],invalid:[4]}]);function h(){if(typeof customElements==="undefined"){return}const t=["ch-input"];t.forEach((t=>{switch(t){case"ch-input":if(!customElements.get(s(t))){customElements.define(s(t),d)}break}}))}h();const l=d;const c=h;export{l as ChInput,c as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-input.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,c as i,h as r,d as n,t as a}from"./p-
|
|
1
|
+
import{p as t,H as e,c as i,h as r,d as n,t as a}from"./p-x4aZoujY.js";const o=()=>`:host{display:inline}.link{color:var(--accent);font-weight:var(--typography-weight-semibold);text-decoration:var(--ch-link-text-decoration, underline);text-decoration-thickness:var(--border-width);text-underline-offset:var(--spacing-shift);border-radius:var(--radius-sm);transition:color var(--duration-normal) var(--easing-default), opacity var(--duration-normal) var(--easing-default)}.link:hover{color:var(--accent-hover)}.link:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.link--muted{color:var(--text-muted);text-decoration:none}.link--muted:hover{color:var(--text)}.link--disabled{color:var(--text-muted);text-decoration:none;opacity:var(--opacity-disabled);cursor:not-allowed}`;const s=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.chClick=i(this,"chClick")}href;target;variant="default";disabled=false;chClick;handleClick=t=>{this.chClick.emit(t)};render(){if(this.disabled){return r(n,null,r("span",{class:{link:true,[`link--${this.variant}`]:true,"link--disabled":true},part:"link","aria-disabled":"true"},r("slot",null)))}return r(n,null,r("a",{class:{link:true,[`link--${this.variant}`]:true},part:"link",href:this.href,target:this.target,rel:this.target==="_blank"?"noopener noreferrer":undefined,onClick:this.handleClick},r("slot",null)))}static get style(){return o()}},[769,"ch-link",{href:[1],target:[1],variant:[1],disabled:[4]}]);function l(){if(typeof customElements==="undefined"){return}const t=["ch-link"];t.forEach((t=>{switch(t){case"ch-link":if(!customElements.get(a(t))){customElements.define(a(t),s)}break}}))}l();const c=s;const d=l;export{c as ChLink,d as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-link.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as i,c as r,h as a,d as t,t as s}from"./p-
|
|
1
|
+
import{p as e,H as i,c as r,h as a,d as t,t as s}from"./p-x4aZoujY.js";const o=()=>`:host{display:inline-block}.group-label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.radio-group{display:flex;flex-direction:column;gap:var(--spacing-lg)}.control{display:inline-flex;align-items:center;gap:var(--spacing-lg);cursor:pointer}.control--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--spacing-4xl);height:var(--spacing-4xl);margin:0;flex-shrink:0;border:var(--border-width) solid var(--border);border-radius:50%;background:var(--surface);cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.input:checked{border-color:var(--accent)}.input:checked::before{content:'';width:var(--spacing-md);height:var(--spacing-md);border-radius:50%;background:var(--accent)}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus-visible{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 n=0;const l=e(class e extends i{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.chChange=r(this,"chChange")}groupId=`ch-radio-${++n}`;labelId=`${this.groupId}-label`;hintId=`${this.groupId}-hint`;errorId=`${this.groupId}-error`;label;options=[];value;name;disabled=false;required=false;hint;errorMessage;invalid=false;chChange;handleChange=e=>{this.value=e.target.value;this.chChange.emit(this.value)};get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){const e=this.name||`${this.groupId}-group`;return a(t,{key:"d9a24c29e5fe841d5c6fefc68bc22db1d9c4ee02"},this.label&&a("span",{key:"c8dc580a29569ca98f7e6dafce797fa6ac5f7442",class:"group-label",id:this.labelId},this.label),a("div",{key:"6b10d53fbf83286ad18b29d3238df4927b3341db",class:"radio-group",role:"radiogroup","aria-labelledby":this.label?this.labelId:undefined},this.options.map((i=>a("label",{class:{control:true,"control--disabled":this.disabled||i.disabled}},a("input",{class:{input:true,"input--invalid":this.invalid},type:"radio",name:e,value:i.value,checked:i.value===this.value,disabled:this.disabled||i.disabled,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onChange:this.handleChange}),a("span",{class:"mark"}),a("span",{class:"label-text"},i.label))))),this.hint&&!(this.invalid&&this.errorMessage)&&a("p",{key:"654315541c6b5ed2886283fae2fb72c37f91f575",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&a("p",{key:"1ed129bddbf96f3b6562552edf416293a0ba0071",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get style(){return o()}},[513,"ch-radio",{label:[1],options:[16],value:[1025],name:[1],disabled:[4],required:[4],hint:[1],errorMessage:[1,"error-message"],invalid:[4]}]);function d(){if(typeof customElements==="undefined"){return}const e=["ch-radio"];e.forEach((e=>{switch(e){case"ch-radio":if(!customElements.get(s(e))){customElements.define(s(e),l)}break}}))}d();const c=l;const h=d;export{c as ChRadio,h as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-radio.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as r,c as t,h as s,d as a,t as i}from"./p-
|
|
1
|
+
import{p as e,H as r,c as t,h as s,d as a,t as i}from"./p-x4aZoujY.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)}.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 l=e(class e extends r{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.chChange=t(this,"chChange")}selectId=`ch-select-${++d}`;hintId=`${this.selectId}-hint`;errorId=`${this.selectId}-error`;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)};get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return s(a,{key:"206697f7162cbac4e5486a937d7e44bb971b6ee4"},this.label&&s("label",{key:"664e7423e7ac1a5dd6c626f2094c0ffe63d7ea36",class:"label",htmlFor:this.selectId},this.label),s("select",{key:"d010c2ea52bf449d823d115fa835b53dfa28390a",id:this.label?this.selectId:undefined,class:{select:true,"select--invalid":this.invalid},name:this.name,disabled:this.disabled,required:this.required,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.describedBy,onChange:this.handleChange},this.placeholder&&s("option",{key:"9a28e73a3ef6742d037eaa825f1a66dfd4447ae6",value:"",disabled:true,hidden:true,selected:!this.value},this.placeholder),this.options.map((e=>s("option",{value:e.value,disabled:e.disabled,selected:e.value===this.value},e.label)))),this.hint&&!(this.invalid&&this.errorMessage)&&s("p",{key:"6d3ff7d72bc488b723a3d9cd0982f5e3d4d46c87",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&s("p",{key:"bbc4b768cb94c39b57663d27a86b886e2ff9a556",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get style(){return o()}},[513,"ch-select",{label:[1],options:[16],value:[1025],placeholder:[1],name:[1],disabled:[4],required:[4],hint:[1],errorMessage:[1,"error-message"],invalid:[4]}]);function n(){if(typeof customElements==="undefined"){return}const e=["ch-select"];e.forEach((e=>{switch(e){case"ch-select":if(!customElements.get(i(e))){customElements.define(i(e),l)}break}}))}n();const c=l;const h=n;export{c as ChSelect,h as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-select.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as a,c as t,h as r,d as i,t as s}from"./p-
|
|
1
|
+
import{p as e,H as a,c as t,h as r,d as i,t as s}from"./p-x4aZoujY.js";const c=()=>`: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)}.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 n=0;const o=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.chChange=t(this,"chChange")}switchId=`ch-switch-${++n}`;hintId=`${this.switchId}-hint`;errorId=`${this.switchId}-error`;label;name;value="on";checked=false;disabled=false;required=false;hint;errorMessage;invalid=false;chChange;handleChange=e=>{this.checked=e.target.checked;this.chChange.emit(this.checked)};get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return r(i,{key:"a2872e01803daa52a44e9ffe16e5c57ebd8f2a93"},r("label",{key:"fb94e4de3381b617a17b8aec2342ee5c72be775a",class:{control:true,"control--disabled":this.disabled},htmlFor:this.switchId},r("input",{key:"4861655716af08d93965d78d98fe09a871ab409b",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,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:"e94675c142dd85c09d1e188a80cffc6978e98369",class:"track"},r("span",{key:"9ffbd604a65b8530cb9f67c44ec81adc206acdfe",class:"thumb"})),this.label&&r("span",{key:"c8c1cf4745dd7cf9647101269b02cf3d75d8ded4",class:"label-text"},this.label)),this.hint&&!(this.invalid&&this.errorMessage)&&r("p",{key:"aa3afe7f4720766c7e0ab4cdc6baae85f68c8577",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&r("p",{key:"274e2599ccbd6d5ff6df8fad7bf9c59efcc0ffb6",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get style(){return c()}},[513,"ch-switch",{label:[1],name:[1],value:[1],checked:[1028],disabled:[4],required:[4],hint:[1],errorMessage:[1,"error-message"],invalid:[4]}]);function l(){if(typeof customElements==="undefined"){return}const e=["ch-switch"];e.forEach((e=>{switch(e){case"ch-switch":if(!customElements.get(s(e))){customElements.define(s(e),o)}break}}))}l();const d=o;const h=l;export{d as ChSwitch,h as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-switch.js.map
|
|
@@ -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-x4aZoujY.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:"76a7f50b0cfa62b3a9a97114c99ab217da83aeb3"},r("div",{key:"544691573ac6940ec8406e8377ac0ed5fd95140e",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 e,H as a,c as r,h as t,d as i,t as s}from"./p-
|
|
1
|
+
import{p as e,H as a,c as r,h as t,d as i,t as s}from"./p-x4aZoujY.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)}.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=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.chInput=r(this,"chInput");this.chChange=r(this,"chChange")}textareaId=`ch-textarea-${++n}`;hintId=`${this.textareaId}-hint`;errorId=`${this.textareaId}-error`;label;value="";placeholder;rows=d;name;disabled=false;required=false;hint;errorMessage;invalid=false;chInput;chChange;handleInput=e=>{this.value=e.target.value;this.chInput.emit(this.value)};handleChange=e=>{this.value=e.target.value;this.chChange.emit(this.value)};get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return t(i,{key:"90ce8125e93dee720379afabe1aaa5de55534581"},this.label&&t("label",{key:"6b34d5e3a2a765b1ef799952e40f8661fd747daf",class:"label",htmlFor:this.textareaId},this.label),t("textarea",{key:"096be417a6e7fee736a246ab19f894d4ba2da9c7",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,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)&&t("p",{key:"fedff430ddcfe43965696683203465c1d6e03edc",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&t("p",{key:"f4a68f2976b14eca667c6ed4b648aa8df88d548a",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get style(){return o()}},[513,"ch-textarea",{label:[1],value:[1025],placeholder:[1],rows:[2],name:[1],disabled:[4],required:[4],hint:[1],errorMessage:[1,"error-message"],invalid:[4]}]);function l(){if(typeof customElements==="undefined"){return}const e=["ch-textarea"];e.forEach((e=>{switch(e){case"ch-textarea":if(!customElements.get(s(e))){customElements.define(s(e),h)}break}}))}l();const c=h;const u=l;export{c as ChTextarea,u as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=ch-textarea.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-x4aZoujY.js";const o="#100a1c";const e="#201e40";const t="#261226";const n="rgba(32, 30, 64, 0.6)";const c="rgba(45, 212, 191, 0.08)";const m="rgba(255, 255, 255, 0.08)";const d="rgba(45, 212, 191, 0.3)";const x="#2dd4bf";const p="#5ee8d4";const i="#06210f";const l="#4ade80";const f="rgba(34, 197, 94, 0.18)";const u="#f87171";const h="rgba(248, 113, 113, 0.15)";const v="#ffffff";const w="rgba(255, 255, 255, 0.55)";const y="#85422b";const k="#b45b38";const S="#1d1d1b";const B="Fira Sans, Droid Sans, Helvetica Neue, sans-serif";const D="Inconsolata, monospace";const H="0.68rem";const N="0.85rem";const P="1rem";const j="1.25rem";const z="1.5rem";const A="400";const F="600";const G="700";const I="0.03em";const O="0.18rem";const W="0.25rem";const L="0.35rem";const R="0.5rem";const Y="0.6rem";const Z="0.8rem";const q="1rem";const C="1.25rem";const E="1.35rem";const J="1.5rem";const K="2rem";const M="2px";const Q="1px";const T="6px";const U="8px";const V="999px";const X="1px";const $="3px";const _="0 0 0 3px rgba(45, 212, 191, 0.12)";const ss="0 4px 20px rgba(45, 212, 191, 0.06)";const os="10px";const es="150ms";const ts="200ms";const ns="ease";const rs="2px";const as="2px";const cs=.5;const ms=0;const ds=100;const xs=1e3;const bs="68rem";const ps={color:{background:{base:"#100a1c",topGlow:"#201e40",bottomGlow:"#261226"},surface:{default:"rgba(32, 30, 64, 0.6)",hover:"rgba(45, 212, 191, 0.08)"},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"},easing:{default:"ease"},focus:{outlineWidth:"2px",outlineOffset:"2px"},opacity:{disabled:.5},"z-index":{base:0,dropdown:100,modal:1e3},layout:{maxWidth:"68rem"}};export{$ as borderAccentBar,X as borderWidth,x as colorAccentDefault,p as colorAccentHover,i as colorAccentText,o as colorBackgroundBase,t as colorBackgroundBottomGlow,e as colorBackgroundTopGlow,m as colorBorderDefault,d as colorBorderHover,y as colorBrandHuemulDark,k as colorBrandHuemulLight,S as colorBrandStroke,l as colorStatusPositive,f as colorStatusPositiveBackground,u as colorStatusWarning,h as colorStatusWarningBackground,n as colorSurfaceDefault,c as colorSurfaceHover,v as colorTextPrimary,w as colorTextSecondary,es as durationFast,ts as durationNormal,ns as easingDefault,os as effectBlur,as as focusOutlineOffset,rs as focusOutlineWidth,bs as layoutMaxWidth,cs as opacityDisabled,U as radiusMd,V as radiusPill,T as radiusSm,ss as shadowCardHover,_ as shadowFocusRing,q as spacing2xl,O as spacing2xs,C as spacing3xl,E as spacing4xl,J as spacing5xl,K as spacing6xl,Q as spacingElevate,Y as spacingLg,R as spacingMd,M as spacingShift,L as spacingSm,Z as spacingXl,W as spacingXs,ps as tokens,B as typographyBody,D as typographyHeading,j as typographySizeLg,P as typographySizeMd,N as typographySizeSm,z as typographySizeXl,H as typographySizeXs,I as typographyTrackingBadge,G as typographyWeightBold,A as typographyWeightRegular,F as typographyWeightSemibold,ms as zIndexBase,ds as zIndexDropdown,xs 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-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;--easing-default:ease;--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,prop:true,propChangeCallback:false,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 s="value";var i="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.p=new Promise((e=>r.v=e));e["s-p"]=[];e["s-rc"]=[]}const o=r;e.__stencil__getHostRef=()=>o;if(t.i&512&&n.prop){f(e,r)}return o};var d=(e,t)=>t in e;var p=(e,t)=>(0,console.error)(e,t);var v=new Map;var h="r";var m="o";var y="s";var g="t";var b="c";var $="s-id";var w="sty-id";var x="c-id";var S="slot-fb{display:contents}slot-fb[hidden]{display:none}";var j=typeof window!=="undefined"?window:{};var k=j.HTMLElement||class{};var O={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 M=e=>Promise.resolve(e);var I=(()=>{try{if(!j.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var N=I?(()=>!!j.document&&Object.getOwnPropertyDescriptor(j.document.adoptedStyleSheets,"length").writable)():false;var C=false;var E=[];var z=[];var A=(e,t)=>n=>{e.push(n);if(!C){C=true;if(t&&O.i&4){U(_)}else{O.raf(_)}}};var L=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){p(e)}}e.length=0};var _=()=>{L(E);{L(z);if(C=E.length>0){O.raf(_)}}};var U=e=>M().then(e);var D=A(z,true);var F=e=>{const t=new URL(e,O.h);return t.origin!==j.location.origin?t.href:t.pathname};var R=e=>O.h=e;function H(e){if(!I)return void 0;const t=new CSSStyleSheet;t.replaceSync(e);return t}var V;function P(t){var n;const r={mode:"open"};const o=this.attachShadow(r);if(V===void 0)V=(n=H(e))!=null?n:null;if(V){if(N){o.adoptedStyleSheets.push(V)}else{o.adoptedStyleSheets=[...o.adoptedStyleSheets,V]}}else if(!I){const t=document.createElement("style");t.innerHTML=e;o.prepend(t)}}var W=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 B=(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 s=Y(l,"appendChild");if(typeof r!=="undefined"){o["s-oo"]=r;const e=Y(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=>s.call(l,e)))}else{s.call(l,o)}e["s-ol"]=o;e["s-sh"]=t["s-hn"]};var T=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function q(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:W(o.childNodes);l.forEach((e=>{if(r===T(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 Y(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 J=(e,t="")=>{{return()=>{}}};function Z(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 G=new WeakMap;var K=(e,t,n)=>{let r=v.get(e);if(I&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}v.set(e,r)};var Q=(e,t,n)=>{var r,o,l;const s=ee(t);const i=v.get(s);if(!j.document){return s}e=e.nodeType===11?e:j.document;if(i){if(typeof i==="string"){e=e.head||e;let n=G.get(e);let l;if(!n){G.set(e,n=new Set)}const a=e.querySelector(`[${w}="${s}"]`);if(a){a.textContent=i}else if(!n.has(s)){l=j.document.createElement("style");l.textContent=i;const a=(r=O.m)!=null?r:Z(j.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(I){const t=(o=e.defaultView)!=null?o:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(i);if(N){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=i+t.textContent}else{e.prepend(l)}}}else{e.append(l)}}if(t.i&1){e.insertBefore(l,null)}if(t.i&4){l.textContent+=S}if(n){n.add(s)}}}else{let t=G.get(e);if(!t){G.set(e,t=new Set)}if(!t.has(s)){const n=(l=e.defaultView)!=null?l:e.ownerDocument.defaultView;let r;if(i.constructor===n.CSSStyleSheet){r=i}else{r=new n.CSSStyleSheet;for(let e=0;e<i.cssRules.length;e++){r.insertRule(i.cssRules[e].cssText,e)}}if(N){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(s);if("host"in e){const t=e.querySelector(`[${w}="${s}"]`);if(t){D((()=>t.remove()))}}}}}return s};var X=e=>{const t=e.t;const n=e.$hostElement$;const r=t.i;const o=J("attachStyles",t.$);const l=Q(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=l;n.classList.add(l+"-h")}o()};var ee=(e,t)=>"sc-"+e.$;var te=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var ne=()=>{if(!j.document){return}const e=j.document.querySelectorAll(`[${w}]`);let t=0;for(;t<e.length;t++){K(e[t].getAttribute(w),te(e[t].innerHTML),true)}};var re=e=>{e=typeof e;return e==="object"||e==="function"};var oe=(e,t,...n)=>{if(typeof e==="string"){e=vt(e)}let r=null;let o=null;let l=false;let s=false;const i=[];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"&&!re(r)){r=String(r)}if(l&&s){i[i.length-1].S+=r}else{i.push(l?le(null,r):r)}s=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=le(e,null);f.j=t;if(i.length>0){f.k=i}{f.O=o}return f};var le=(e,t)=>{const n={i:0,M:e,S:t!=null?t:null,I:null,k:null};{n.j=null}{n.O=null}return n};var se={};var ie=e=>e&&e.M===se;var ae=(e,t,n,r)=>{var o,l,s,i;const a=J("hydrateClient",t);const f=e.shadowRoot;const u=[];const d=[];const p=[];const v=f?[]:null;const h=le(t,null);h.I=e;if(j.document&&(!O.N||!O.N.size)){ce(j.document.body,O.N=new Map)}e[$]=n;e.removeAttribute($);r.C=fe(h,u,d,v,e,e,n,p);let m=0;const y=u.length;let g;for(m;m<y;m++){g=u[m];const n=g.A+"."+g.L;const r=O.N.get(n);const l=g.I;if(!f){l["s-hn"]=vt(t).toUpperCase();if(g.M==="slot"){l["s-cr"]=e["s-cr"]}}else if(((o=g.M)==null?void 0:o.toString().includes("-"))&&g.M!=="slot-fb"&&!g.I.shadowRoot){const e=c(g.I);if(e){const t=ee(e.t);const n=j.document.querySelector(`style[sty-id="${t}"]`);if(n){v.unshift(n.cloneNode(true))}}}if(g.M==="slot"){g._=g.I["s-sn"]||g.I["name"]||null;if(g.k){g.i|=2;if(!g.I.childNodes.length){g.k.forEach((e=>{g.I.appendChild(e.I)}))}}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"]){O.N.delete(n)}}const b=[];const w=p.length;let x=0;let S;let k;let M;let I;let N=0;for(x;x<w;x++){S=p[x];if(!S||!S.length)continue;M=S.length;k=0;for(k;k<M;k++){I=S[k];if(!b[I.hostId]){b[I.hostId]=O.N.get(I.hostId)}if(!b[I.hostId])continue;const e=b[I.hostId];if(e.shadowRoot&&I.node.parentElement!==e){e.insertBefore(I.node,(s=(l=S[k-1])==null?void 0:l.node)==null?void 0:s.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]}}B(I.node,I.slot,false,I.node["s-oo"]||N);if(((i=I.node.parentElement)==null?void 0:i.shadowRoot)&&I.node["getAttribute"]&&I.node.getAttribute("slot")){I.node.removeAttribute("slot")}}N=(I.node["s-oo"]||N)+1}}if(f&&!f.childNodes.length){let t=0;const n=v.length;if(n){for(t;t<n;t++){const e=v[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 fe=(e,t,n,r,o,l,s,i=[])=>{let a;let f;let c;let u;if(l.nodeType===1){a=l.getAttribute(x);if(a){f=a.split(".");if(f[0]===s||f[0]==="0"){c=ue({i:0,A:f[0],L:f[1],U:f[2],D:f[3],M:l.tagName.toLowerCase(),I:l,j:{class:l.className||""}});t.push(c);l.removeAttribute(x);if(!e.k){e.k=[]}const o=c.I.getAttribute("s-sn");if(typeof o==="string"){if(c.M==="slot-fb"){de(o,f[2],c,l,e,t,n,r,i)}c.I["s-sn"]=o;c.I.removeAttribute("s-sn")}if(c.D!==void 0){e.k[c.D]=c}e=c;if(r&&c.U==="0"){r[c.D]=c.I}}}if(l.shadowRoot){for(u=l.shadowRoot.childNodes.length-1;u>=0;u--){fe(e,t,n,r,o,l.shadowRoot.childNodes[u],s,i)}}const d=l.__childNodes||l.childNodes;for(u=d.length-1;u>=0;u--){fe(e,t,n,r,o,d[u],s,i)}}else if(l.nodeType===8){f=l.nodeValue.split(".");if(f[1]===s||f[1]==="0"){a=f[0];c=ue({A:f[1],L:f[2],U:f[3],D:f[4]||"0",I:l,j:null,k:null,O:null,_:null,M:null,S:null});if(a===g){c.I=ve(l,3);if(c.I&&c.I.nodeType===3){c.S=c.I.textContent;t.push(c);l.remove();if(s===c.A){if(!e.k){e.k=[]}e.k[c.D]=c}if(r&&c.U==="0"){r[c.D]=c.I}}}else if(a===b){c.I=ve(l,8);if(c.I&&c.I.nodeType===8){t.push(c);l.remove()}}else if(c.A===s){if(a===y){const o=l["s-sn"]=f[5]||"";de(o,f[2],c,l,e,t,n,r,i)}else if(a===h){if(r){l.remove()}}}}}else if(e&&e.M==="style"){const t=le(null,l.textContent);t.I=l;t.D="0";e.k=[t]}return e};var ce=(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++){ce(e.shadowRoot.childNodes[r],t)}}const o=e.__childNodes||e.childNodes;for(r=0;r<o.length;r++){ce(o[r],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===m){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var ue=e=>{const t={i:0,A:null,L:null,U:null,D:"0",I:null,j:null,k:null,O:null,_:null,M:null,S:null};return{...t,...e}};function de(e,t,n,r,o,l,s,i,a){r["s-sr"]=true;n._=e||null;n.M="slot";const f=(o==null?void 0:o.I)?o.I["s-id"]||o.I.getAttribute("s-id"):"";if(i&&j.document){const l=n.I=j.document.createElement(n.M);if(n._){n.I.setAttribute("name",e)}if(o.I.shadowRoot&&f&&f!==n.A){Y(o.I,"insertBefore")(l,Y(o.I,"children")[0])}else{Y(Y(r,"parentNode"),"insertBefore")(l,r)}pe(a,t,e,r,n.A);r.remove();if(n.U==="0"){i[n.D]=n.I}}else{const l=n.I;const s=f&&f!==n.A&&o.I.shadowRoot;pe(a,t,e,r,s?f:n.A);q(r);if(s){o.I.insertBefore(l,o.I.children[0])}}l.push(n);s.push(n);if(!o.k){o.k=[]}o.k[n.D]=n}var pe=(e,t,n,r,o)=>{var l,s;let i=r.nextSibling;e[t]=e[t]||[];if(!i||((l=i.nodeValue)==null?void 0:l.startsWith(y+".")))return;do{if(i&&((i["getAttribute"]&&i.getAttribute("slot")||i["s-sn"])===n||n===""&&!i["s-sn"]&&(!i["getAttribute"]||!i.getAttribute("slot"))&&(i.nodeType===8||i.nodeType===3))){i["s-sn"]=n;e[t].push({slot:r,node:i,hostId:o})}i=i==null?void 0:i.nextSibling}while(i&&!((s=i.nodeValue)==null?void 0:s.startsWith(y+".")))};var ve=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var he=class e{static fromLocalValue(t){const n=t[l];const r=s in t?t[s]: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:s}=r;return new RegExp(l,s);case"set":const i=new Set;for(const t of r){i.add(e.fromLocalValue(t))}return i;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(s)}return true}};function me(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 ye(e){if(typeof e!=="string"||!e.startsWith(i)){return e}return he.fromLocalValue(JSON.parse(me(e.slice(i.length))))}var ge=(e,t,n)=>{if(typeof e==="string"&&e.startsWith(i)){e=ye(e);return e}if(e!=null&&!re(e)){if(t&4){{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 be=e=>e;var $e=(e,t,n)=>{const r=be(e);return{emit:e=>we(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var we=(e,t,n)=>{const r=O.ce(t,n);e.dispatchEvent(r);return r};var xe=(e,t,n,r,o,l,s)=>{if(n===r){return}let i=d(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const o=je(n);let l=je(r);if((e["s-si"]||e["s-sc"])&&s){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){Pe(r,e)}}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(d(j,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(n||r){const o=t.endsWith(ke);t=t.replace(Oe,"");if(n){O.rel(e,t,n,o)}if(r){O.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 s=re(r);if((i||s&&r!==null)&&!o){try{if(!e.tagName.includes("-")){const o=r==null?"":r;if(t==="list"){i=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)===""){{e.removeAttribute(t)}}}else if((!i||l&4||o)&&!s&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var Se=/\s/;var je=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(Se)};var ke="Capture";var Oe=new RegExp(ke+"$");var Me=(e,t,n,r)=>{const o=t.I.nodeType===11&&t.I.host?t.I.host:t.I;const l=e&&e.j||{};const s=t.j||{};{for(const e of Ie(Object.keys(l))){if(!(e in s)){xe(o,e,l[e],void 0,n,t.i,r)}}}for(const e of Ie(Object.keys(s))){xe(o,e,l[e],s[e],n,t.i,r)}};function Ie(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Ne;var Ce=false;var Ee=false;var ze=[];var Ae=[];var Le=(e,t,n)=>{const r=t.k[n];let o=0;let l;let s;if(r.S!=null){l=r.I=j.document.createTextNode(r.S)}else{if(!j.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}l=r.I=j.document.createElement(r.M);{Me(null,r,Ee)}if(r.k){const t=r.M==="template"?l.content:l;for(o=0;o<r.k.length;++o){s=Le(e,r,o);if(s){t.appendChild(s)}}}}l["s-hn"]=Ne;return l};var _e=e=>{O.i|=1;const t=e.closest(Ne.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){Be(t,e,n!=null?n:null);e["s-sh"]=void 0}}}O.i&=-2};var Ue=(e,t,n,r,o,l)=>{let s=e;let i;if(s.shadowRoot&&s.tagName===Ne){s=s.shadowRoot}if(n.M==="template"){s=s.content}for(;o<=l;++o){if(r[o]){i=Le(null,n,o);if(i){r[o].I=i;Be(s,i,t)}}}};var De=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.I;Ve(t);if(e){e.remove()}}}};var Fe=(e,t,n,r,o=false)=>{let l=0;let s=0;let i=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let d=r.length-1;let p=r[0];let v=r[d];let h;let m;const y=n.M==="template"?e.content:e;while(l<=f&&s<=d){if(c==null){c=t[++l]}else if(u==null){u=t[--f]}else if(p==null){p=r[++s]}else if(v==null){v=r[--d]}else if(Re(c,p,o)){He(c,p,o);c=t[++l];p=r[++s]}else if(Re(u,v,o)){He(u,v,o);u=t[--f];v=r[--d]}else if(Re(c,v,o)){He(c,v,o);Be(y,c.I,u.I.nextSibling);c=t[++l];v=r[--d]}else if(Re(u,p,o)){He(u,p,o);Be(y,u.I,c.I);u=t[--f];p=r[++s]}else{i=-1;{for(a=l;a<=f;++a){if(t[a]&&t[a].O!==null&&t[a].O===p.O){i=a;break}}}if(i>=0){m=t[i];if(m.M!==p.M){h=Le(t&&t[s],n,i)}else{He(m,p,o);t[i]=void 0;h=m.I}p=r[++s]}else{h=Le(t&&t[s],n,s);p=r[++s]}if(h){{Be(c.I.parentNode,h,c.I)}}}}if(l>f){Ue(e,r[d+1]==null?null:r[d+1].I,n,r,s,d)}else if(s>d){De(t,l,f)}};var Re=(e,t,n=false)=>{if(e.M===t.M){if(!n){return e.O===t.O}if(n&&!e.O&&t.O){e.O=t.O}return true}return false};var He=(e,t,r=false)=>{const o=t.I=e.I;const l=e.k;const s=t.k;const i=t.M;const a=t.S;if(a==null){{if(i==="slot"&&!Ce){if(e._!==t._){t.I["s-sn"]=t._||"";_e(t.I.parentElement)}}Me(e,t,Ee,r)}if(l!==null&&s!==null){Fe(o,l,t,s,r)}else if(s!==null){if(e.S!==null){o.textContent=""}Ue(o,null,t,s,0,s.length-1)}else if(!r&&n.updatable&&l!==null){De(l,0,l.length-1)}else if(r&&n.updatable&&l!==null&&s===null){t.k=l}}else if(e.S!==a){o.data=a}};var Ve=e=>{{if(e.j&&e.j.ref){ze.push((()=>e.j.ref(null)))}e.k&&e.k.map(Ve)}};var Pe=(e,t)=>{{Ae.push((()=>e(t)))}};var We=()=>{{ze.forEach((e=>e()));ze.length=0;Ae.forEach((e=>e()));Ae.length=0}};var Be=(e,t,n,r)=>{if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};var Te=(e,t,n=false)=>{const r=e.$hostElement$;const o=e.t;const l=e.C||le(null,null);const s=ie(t);const i=s?t:oe(null,null,t);Ne=r.tagName;if(n&&i.j){for(const e of Object.keys(i.j)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){i.j[e]=r[e]}}}i.M=null;i.i|=4;e.C=i;i.I=l.I=r.shadowRoot||r;Ce=!!(o.i&1)&&!(o.i&128);He(l,i,n);We()};var qe=(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 Ye=(e,t)=>{{e.i|=16}if(e.i&4){e.i|=512;return}qe(e,e.R);const n=()=>Je(e,t);if(t){queueMicrotask((()=>{n()}));return}return D(n)};var Je=(e,t)=>{const n=e.$hostElement$;const r=J("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=tt(o,"componentWillLoad",void 0,n)}else{l=tt(o,"componentWillUpdate",void 0,n)}l=Ze(l,(()=>tt(o,"componentWillRender",void 0,n)));r();return Ze(l,(()=>Ke(e,o,t)))};var Ze=(e,t)=>Ge(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Ke=async(e,t,n)=>{var r;const o=e.$hostElement$;const l=J("update",e.t.$);const s=o["s-rc"];if(n){X(e)}const i=J("render",e.t.$);{Qe(e,t,o,n)}if(s){s.map((e=>e()));o["s-rc"]=void 0}i();l();{const t=(r=o["s-p"])!=null?r:[];const n=()=>Xe(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.i|=4;t.length=0}}};var Qe=(e,t,n,r)=>{try{t=t.render();{e.i&=-17}{e.i|=2}{{{Te(e,t,r)}}}}catch(t){p(t,e.$hostElement$)}return null};var Xe=e=>{const t=e.t.$;const n=e.$hostElement$;const r=J("postUpdate",t);const o=n;const l=e.R;tt(o,"componentDidRender",void 0,n);if(!(e.i&64)){e.i|=64;tt(o,"componentDidLoad",void 0,n);r();{e.v(n);if(!l){et()}}}else{tt(o,"componentDidUpdate",void 0,n);r()}{if(e.F){e.F();e.F=void 0}if(e.i&512){U((()=>Ye(e,false)))}e.i&=-517}};var et=e=>{var n;U((()=>we(j,"appload",{detail:{namespace:t}})));{if((n=O.N)==null?void 0:n.size){O.N.clear()}}};var tt=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){p(e,r)}}return void 0};var nt=(e,t)=>c(e).l.get(t);var rt=(e,t,n,r)=>{const o=c(e);if(!o){return}const l=e;const s=o.l.get(t);const i=o.i;const a=l;n=ge(n,r.o[t][0]);const f=Number.isNaN(s)&&Number.isNaN(n);const u=n!==s&&!f;if(u){o.l.set(t,n);if(i&2){if(a.componentShouldUpdate){const e=a.componentShouldUpdate(n,s,t);if(e===false&&!(i&16)){return}}if(!(i&16)){Ye(o,false)}}}};var ot=(e,t,r)=>{var o,l;const s=e.prototype;if(t.o||n.propChangeCallback){const r=Object.entries((o=t.o)!=null?o:{});r.map((([e,[n]])=>{if(n&31||n&32){const{get:r,set:o}=a(s,e)||{};if(r)t.o[e][0]|=2048;if(o)t.o[e][0]|=4096;{Object.defineProperty(s,e,{get(){{return r?r.apply(this):nt(this,e)}},configurable:true,enumerable:true})}Object.defineProperty(s,e,{set(r){const l=c(this);if(!l){return}if(o){const s=n&32?this[e]:l.$hostElement$[e];if(typeof s==="undefined"&&l.l.get(e)){r=l.l.get(e)}o.apply(this,[ge(r,n)]);r=n&32?this[e]:l.$hostElement$[e];rt(this,e,r,t);return}{rt(this,e,r,t);return}}})}}));{const o=new Map;s.attributeChangedCallback=function(e,l,i){O.jmp((()=>{var a;const f=o.get(e);const u=c(this);if(this.hasOwnProperty(f)&&n.lazyLoad);if(s.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==i){return}else if(f==null){const n=u==null?void 0:u.i;if(u&&n&&!(n&8)&&i!==l){const r=this;const o=r;const s=(a=t.H)==null?void 0:a[e];s==null?void 0:s.forEach((t=>{const[[r,s]]=Object.entries(t);if(o[r]!=null&&(n&128||s&1)){o[r].call(o,i,l,e)}}))}return}const d=r.find((([e])=>e===f));const p=d&&d[1][0]&4;const v=p&&i===null&&this[f]===void 0;if(p){i=i===null||i==="false"?false:true}const h=Object.getOwnPropertyDescriptor(s,f);if(!v&&i!=this[f]&&(!h.get||!!h.set)){this[f]=i}}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=t.H)!=null?l:{}),...r.filter((([e,t])=>t[0]&31)).map((([e,t])=>{const n=t[1]||e;o.set(n,e);return n}))]))}}return e};var lt=async(e,t,r,o)=>{let l;try{if((t.i&32)===0){t.i|=32;{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=ee(r);if(!v.has(t)||n.hotModuleReplacement){const n=J("registerStyles",r.$);K(t,e,!!(r.i&1));n()}}}const o=t.R;const s=()=>Ye(t,true);if(o&&o["s-rc"]){o["s-rc"].push(s)}else{s()}}catch(n){p(n,e);if(t.F){t.F();t.F=void 0}if(t.v){t.v(e)}}};var st=(e,t)=>{};var it=e=>{if((O.i&1)===0){const t=c(e);if(!t){return}const n=t.t;const r=J("connectedCallback",n.$);if(!(t.i&1)){t.i|=1;let r;{r=e.getAttribute($);if(r){if(n.i&1){const t=Q(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}ae(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"]){qe(t,t.R=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}}))}{lt(e,t,n)}}else{if(t==null?void 0:t.V);else if(t==null?void 0:t.p){t.p.then((()=>st()))}}r()}};var at=async e=>{if((O.i&1)===0){c(e)}if(G.has(e)){G.delete(e)}if(e.shadowRoot&&G.has(e.shadowRoot)){G.delete(e.shadowRoot)}};var ft=(e,t)=>{const n={i:t[0],$:t[1]};try{{n.o=t[2]}{ne()}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}this.__hasHostListenerAttached=true}it(this);if(r){r.call(this)}},disconnectedCallback(){at(this);if(o){o.call(this)}},__attachShadow(){{if(!this.shadowRoot){P.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 ot(e,n)}catch(t){p(t);return e}};var ct=e=>O.m=e;var ut=e=>Object.assign(O,e);var dt=new WeakMap;function pt(e,t){let n=dt.get(t);if(!n){const e={i:0,$:t.tagName};n={i:0,t:e,$hostElement$:t};dt.set(t,n)}Te(n,e)}function vt(e){return e}export{k as H,ct as a,ut as b,$e as c,se as d,F as g,oe as h,ft as p,pt as r,R as s,vt as t};
|
|
2
|
+
//# sourceMappingURL=p-x4aZoujY.js.map
|