@db-ux/wc-core-components 3.0.2 → 3.0.3
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/cjs/db-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +1 -1
- package/dist/cjs/db-header.cjs.entry.js +1 -1
- package/dist/cjs/db-icon.cjs.entry.js +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation.cjs.entry.js +1 -1
- package/dist/cjs/db-notification.cjs.entry.js +1 -1
- package/dist/cjs/db-page.cjs.entry.js +1 -1
- package/dist/cjs/db-popover.cjs.entry.js +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +1 -1
- package/dist/cjs/db-section.cjs.entry.js +1 -1
- package/dist/cjs/db-select.cjs.entry.js +1 -1
- package/dist/cjs/db-stack.cjs.entry.js +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +1 -1
- package/dist/cjs/db-tabs.cjs.entry.js +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +1 -1
- package/dist/cjs/db-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/db-ux.cjs.js.map +1 -1
- package/dist/cjs/{index-9urL1KCD.js → index-B1qpUQFv.js} +9 -3
- package/dist/cjs/index-B1qpUQFv.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/db-ux.esm.js.map +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-ce895e0c.entry.js → p-0d5e870e.entry.js} +2 -2
- package/dist/db-ux/{p-bd7d1646.entry.js → p-0ef9fc89.entry.js} +2 -2
- package/dist/db-ux/{p-8b41c30e.entry.js → p-16a6eaed.entry.js} +2 -2
- package/dist/db-ux/{p-d7168627.entry.js → p-170bf977.entry.js} +2 -2
- package/dist/db-ux/{p-ec957247.entry.js → p-1bee4c62.entry.js} +2 -2
- package/dist/db-ux/{p-d6aeabf0.entry.js → p-1c8cdaaa.entry.js} +2 -2
- package/dist/db-ux/{p-340bb722.entry.js → p-311d42e0.entry.js} +2 -2
- package/dist/db-ux/{p-e6e7719e.entry.js → p-385420ca.entry.js} +2 -2
- package/dist/db-ux/{p-84dd974f.entry.js → p-3b15ac93.entry.js} +2 -2
- package/dist/db-ux/{p-5c6da0f3.entry.js → p-4393b3e2.entry.js} +2 -2
- package/dist/db-ux/{p-e9c323af.entry.js → p-44d0892a.entry.js} +2 -2
- package/dist/db-ux/{p-6e35a260.entry.js → p-477977d7.entry.js} +2 -2
- package/dist/db-ux/{p-209cf793.entry.js → p-55c136d7.entry.js} +2 -2
- package/dist/db-ux/{p-a3541c03.entry.js → p-5986e72d.entry.js} +2 -2
- package/dist/db-ux/{p-5b45664d.entry.js → p-5e0d0c60.entry.js} +2 -2
- package/dist/db-ux/{p-9d0996e9.entry.js → p-5f42dd22.entry.js} +2 -2
- package/dist/db-ux/{p-c5ff3d3f.entry.js → p-692f3dab.entry.js} +2 -2
- package/dist/db-ux/{p-c8cdde8c.entry.js → p-75e23407.entry.js} +2 -2
- package/dist/db-ux/{p-16f1fa7c.entry.js → p-7e77b6ca.entry.js} +2 -2
- package/dist/db-ux/{p-f03f7076.entry.js → p-91e20437.entry.js} +2 -2
- package/dist/db-ux/{p-3d7eb768.entry.js → p-ae79ac56.entry.js} +2 -2
- package/dist/db-ux/{p-58007675.entry.js → p-aff65fd3.entry.js} +2 -2
- package/dist/db-ux/{p-a2b55626.entry.js → p-b9bd42d1.entry.js} +2 -2
- package/dist/db-ux/{p-51de401e.entry.js → p-ba2aab6a.entry.js} +2 -2
- package/dist/db-ux/{p-02fcd4a8.entry.js → p-c10f9185.entry.js} +2 -2
- package/dist/db-ux/{p-d4e3d1db.entry.js → p-c669da75.entry.js} +2 -2
- package/dist/db-ux/{p-c8bdd952.entry.js → p-cbb632eb.entry.js} +2 -2
- package/dist/db-ux/{p-971a16c3.entry.js → p-dd3a4cc9.entry.js} +2 -2
- package/dist/db-ux/{p-72330d25.entry.js → p-f27c123a.entry.js} +2 -2
- package/dist/db-ux/{p-fdf5578d.entry.js → p-f81d1ae7.entry.js} +2 -2
- package/dist/db-ux/p-uOzX56mL.js +3 -0
- package/dist/db-ux/p-uOzX56mL.js.map +1 -0
- package/dist/esm/db-accordion-item.entry.js +1 -1
- package/dist/esm/db-accordion.entry.js +1 -1
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +1 -1
- package/dist/esm/db-card.entry.js +1 -1
- package/dist/esm/db-checkbox.entry.js +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +1 -1
- package/dist/esm/db-custom-select-form-field.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +1 -1
- package/dist/esm/db-divider.entry.js +1 -1
- package/dist/esm/db-drawer.entry.js +1 -1
- package/dist/esm/db-header.entry.js +1 -1
- package/dist/esm/db-icon.entry.js +1 -1
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +1 -1
- package/dist/esm/db-navigation-item.entry.js +1 -1
- package/dist/esm/db-navigation.entry.js +1 -1
- package/dist/esm/db-notification.entry.js +1 -1
- package/dist/esm/db-page.entry.js +1 -1
- package/dist/esm/db-popover.entry.js +1 -1
- package/dist/esm/db-radio.entry.js +1 -1
- package/dist/esm/db-section.entry.js +1 -1
- package/dist/esm/db-select.entry.js +1 -1
- package/dist/esm/db-stack.entry.js +1 -1
- package/dist/esm/db-switch.entry.js +1 -1
- package/dist/esm/db-tab-item_3.entry.js +1 -1
- package/dist/esm/db-tabs.entry.js +1 -1
- package/dist/esm/db-textarea.entry.js +1 -1
- package/dist/esm/db-tooltip.entry.js +1 -1
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/db-ux.js.map +1 -1
- package/dist/esm/{index-CNzNv7KB.js → index-uOzX56mL.js} +9 -3
- package/dist/esm/index-uOzX56mL.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/package.json +4 -4
- package/dist/cjs/index-9urL1KCD.js.map +0 -1
- package/dist/db-ux/p-CNzNv7KB.js +0 -3
- package/dist/db-ux/p-CNzNv7KB.js.map +0 -1
- package/dist/esm/index-CNzNv7KB.js.map +0 -1
- /package/dist/db-ux/{p-ce895e0c.entry.js.map → p-0d5e870e.entry.js.map} +0 -0
- /package/dist/db-ux/{p-bd7d1646.entry.js.map → p-0ef9fc89.entry.js.map} +0 -0
- /package/dist/db-ux/{p-8b41c30e.entry.js.map → p-16a6eaed.entry.js.map} +0 -0
- /package/dist/db-ux/{p-d7168627.entry.js.map → p-170bf977.entry.js.map} +0 -0
- /package/dist/db-ux/{p-ec957247.entry.js.map → p-1bee4c62.entry.js.map} +0 -0
- /package/dist/db-ux/{p-d6aeabf0.entry.js.map → p-1c8cdaaa.entry.js.map} +0 -0
- /package/dist/db-ux/{p-340bb722.entry.js.map → p-311d42e0.entry.js.map} +0 -0
- /package/dist/db-ux/{p-e6e7719e.entry.js.map → p-385420ca.entry.js.map} +0 -0
- /package/dist/db-ux/{p-84dd974f.entry.js.map → p-3b15ac93.entry.js.map} +0 -0
- /package/dist/db-ux/{p-5c6da0f3.entry.js.map → p-4393b3e2.entry.js.map} +0 -0
- /package/dist/db-ux/{p-e9c323af.entry.js.map → p-44d0892a.entry.js.map} +0 -0
- /package/dist/db-ux/{p-6e35a260.entry.js.map → p-477977d7.entry.js.map} +0 -0
- /package/dist/db-ux/{p-209cf793.entry.js.map → p-55c136d7.entry.js.map} +0 -0
- /package/dist/db-ux/{p-a3541c03.entry.js.map → p-5986e72d.entry.js.map} +0 -0
- /package/dist/db-ux/{p-5b45664d.entry.js.map → p-5e0d0c60.entry.js.map} +0 -0
- /package/dist/db-ux/{p-9d0996e9.entry.js.map → p-5f42dd22.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c5ff3d3f.entry.js.map → p-692f3dab.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c8cdde8c.entry.js.map → p-75e23407.entry.js.map} +0 -0
- /package/dist/db-ux/{p-16f1fa7c.entry.js.map → p-7e77b6ca.entry.js.map} +0 -0
- /package/dist/db-ux/{p-f03f7076.entry.js.map → p-91e20437.entry.js.map} +0 -0
- /package/dist/db-ux/{p-3d7eb768.entry.js.map → p-ae79ac56.entry.js.map} +0 -0
- /package/dist/db-ux/{p-58007675.entry.js.map → p-aff65fd3.entry.js.map} +0 -0
- /package/dist/db-ux/{p-a2b55626.entry.js.map → p-b9bd42d1.entry.js.map} +0 -0
- /package/dist/db-ux/{p-51de401e.entry.js.map → p-ba2aab6a.entry.js.map} +0 -0
- /package/dist/db-ux/{p-02fcd4a8.entry.js.map → p-c10f9185.entry.js.map} +0 -0
- /package/dist/db-ux/{p-d4e3d1db.entry.js.map → p-c669da75.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c8bdd952.entry.js.map → p-cbb632eb.entry.js.map} +0 -0
- /package/dist/db-ux/{p-971a16c3.entry.js.map → p-dd3a4cc9.entry.js.map} +0 -0
- /package/dist/db-ux/{p-72330d25.entry.js.map → p-f27c123a.entry.js.map} +0 -0
- /package/dist/db-ux/{p-fdf5578d.entry.js.map → p-f81d1ae7.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as s}from"./p-uOzX56mL.js";import{l as h,g as a,h as e,f as d,k as l,b as n,r,a as o}from"./p-DC9V_oNU.js";import{h as c,d as u,s as f,u as b,e as v,b as m,j as p,c as y}from"./p-YECpAE3G.js";const w=class{constructor(s){i(this,s);this.input=t(this,"input");this.change=t(this,"change");this.blur=t(this,"blur");this.focus=t(this,"focus");this._id=undefined;this._messageId=undefined;this._validMessageId=undefined;this._invalidMessageId=undefined;this._invalidMessage=undefined;this._descByIds=undefined;this._value="";this._voiceOverFallback=""}hasValidState(){var i;return!!((i=this.validMessage)!==null&&i!==void 0?i:this.validation==="valid")}handleValidation(){var i,t,s,a;if(!((i=this._ref)===null||i===void 0?void 0:i.validity.valid)||this.validation==="invalid"){this._descByIds=this._invalidMessageId;this._invalidMessage=this.invalidMessage||((t=this._ref)===null||t===void 0?void 0:t.validationMessage)||h;if(c()){this._voiceOverFallback=this._invalidMessage;u((()=>this._voiceOverFallback=""),1e3)}}else if(this.hasValidState()&&((s=this._ref)===null||s===void 0?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength)){this._descByIds=this._validMessageId;if(c()){this._voiceOverFallback=(a=this.validMessage)!==null&&a!==void 0?a:l;u((()=>this._voiceOverFallback=""),1e3)}}else if(f(this.message,this.showMessage)){this._descByIds=this._messageId}else{this._descByIds=undefined}}handleInput(i){if(this.input){this.input.emit(i)}this.handleValidation()}handleChange(i){if(this.change){this.change.emit(i)}this.handleValidation()}handleBlur(i){if(this.blur){this.blur.emit(i)}}handleFocus(i){if(this.focus){this.focus.emit(i)}}enableAttributePassing(i,t){const s=i===null||i===void 0?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const a=t.item(h);if(a&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){i.setAttribute(a.name,a.value);s.removeAttribute(a.name)}if(a&&a.name==="class"){const t=a.value.includes("hydrated");const h=a.value.replace("hydrated","").trim();const e=i.getAttribute("class");i.setAttribute(a.name,`${e?`${e} `:""}${h}`);if(t){s.setAttribute("class","hydrated")}else{s.removeAttribute(a.name)}}}}}watch0Fn(){var i;this._invalidMessage=this.invalidMessage||((i=this._ref)===null||i===void 0?void 0:i.validationMessage)||h}watch0(){this.watch0Fn()}watch1Fn(){if(this._id){const i=this._id+d;this._messageId=i;this._validMessageId=this._id+a;this._invalidMessageId=this._id+e;if(f(this.message,this.showMessage)){this._descByIds=i}this.handleValidation()}}watch1(){this.watch1Fn()}watch2Fn(){this._value=this.value}watch2(){this.watch2Fn()}componentDidLoad(){var i;this.enableAttributePassing(this._ref,"db-textarea");const t=(i=this.id)!==null&&i!==void 0?i:`textarea-${b()}`;this._id=t;this._messageId=t+d;this._validMessageId=t+a;this._invalidMessageId=t+e;this._invalidMessage=this.invalidMessage||h;this.watch0Fn();this.watch1Fn();this.watch2Fn()}render(){var i,t,h,a,e;return s("div",{key:"bb263569669e5cd6e3756cc85b3123839c11619b",class:y("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":p(this.showRequiredAsterisk),"data-hide-label":p(this.showLabel)},s("label",{key:"1a055a4b09653c850f52b6eb35d68fbff6c49646",htmlFor:this._id},(i=this.label)!==null&&i!==void 0?i:o),s("textarea",{key:"99a17e3705b0470adb832b617b8772aebff91e1b","aria-invalid":this.validation==="invalid","data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":p((t=this.showResizer)!==null&&t!==void 0?t:true),disabled:m(this.disabled,"disabled"),required:m(this.required,"required"),readOnly:m(this.readOnly,"readOnly")||m(this.readonly,"readonly"),form:this.form,maxLength:v(this.maxLength,this.maxlength),minLength:v(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:(h=this.value)!==null&&h!==void 0?h:this._value,"aria-describedby":(a=this.ariaDescribedBy)!==null&&a!==void 0?a:this._descByIds,placeholder:(e=this.placeholder)!==null&&e!==void 0?e:n,rows:v(this.rows,r),cols:v(this.cols)}),f(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||l):null,s("db-infotext",{key:"c18508018f0d445a629f716e633278610f1c975d",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"cddc433e7eae983b9047bdb01380f8f801ac40c2","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{_ref:["watch0"],invalidMessage:["watch0"],_id:["watch1"],value:["watch2"]}}};export{w as db_textarea};
|
|
2
|
+
//# sourceMappingURL=p-5986e72d.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as s}from"./p-uOzX56mL.js";import{g as a,c as i}from"./p-YECpAE3G.js";const o=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=t===null||t===void 0?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let i=0;i<s.length;i++){const o=s.item(i);if(o&&(o.name.startsWith("data-")||o.name.startsWith("aria-"))){t.setAttribute(o.name,o.value);a.removeAttribute(o.name)}if(o&&o.name==="class"){const s=o.value.includes("hydrated");const i=o.value.replace("hydrated","").trim();const n=t.getAttribute("class");t.setAttribute(o.name,`${n?`${n} `:""}${i}`);if(s){a.setAttribute("class","hydrated")}else{a.removeAttribute(o.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-infotext")}render(){var t;return s("span",{key:"c126d11d979284931006fa76b2a6a49e396f394c",class:i("db-infotext",this.className),ref:t=>{this._ref=t},id:this.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-show-icon-leading":a((t=this.showIcon)!==null&&t!==void 0?t:true)},this.text?this.text:s("slot",null))}};export{o as db_infotext};
|
|
2
|
+
//# sourceMappingURL=p-5e0d0c60.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as a}from"./p-uOzX56mL.js";import{g as s,c as d}from"./p-YECpAE3G.js";const i=class{constructor(a){t(this,a)}enableAttributePassing(t,a){const s=t===null||t===void 0?void 0:t.closest(a);if(t&&s){const a=s.attributes;for(let d=0;d<a.length;d++){const i=a.item(d);if(i&&(i.name.startsWith("data-")||i.name.startsWith("aria-"))){t.setAttribute(i.name,i.value);s.removeAttribute(i.name)}if(i&&i.name==="class"){const a=i.value.includes("hydrated");const d=i.value.replace("hydrated","").trim();const c=t.getAttribute("class");t.setAttribute(i.name,`${c?`${c} `:""}${d}`);if(a){s.setAttribute("class","hydrated")}else{s.removeAttribute(i.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-stack")}render(){return a("div",{key:"d199c5cdabd2916e3afa32c33d0fe1dd9c99da8e",class:d("db-stack",this.className),ref:t=>{this._ref=t},id:this.id,"data-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":s(this.wrap)},a("slot",{key:"a0d56c424e03273b2cc51bfe0fa5df285ecd13e9"}))}};export{i as db_stack};
|
|
2
|
+
//# sourceMappingURL=p-5f42dd22.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,c as t,h as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,c as t,h as a}from"./p-uOzX56mL.js";import{c as i}from"./p-YECpAE3G.js";const c=class{constructor(a){s(this,a);this.click=t(this,"click")}handleClick(s){if(this.click){this.click.emit(s)}}enableAttributePassing(s,t){const a=s===null||s===void 0?void 0:s.closest(t);if(s&&a){const t=a.attributes;for(let i=0;i<t.length;i++){const c=t.item(i);if(c&&(c.name.startsWith("data-")||c.name.startsWith("aria-"))){s.setAttribute(c.name,c.value);a.removeAttribute(c.name)}if(c&&c.name==="class"){const t=c.value.includes("hydrated");const i=c.value.replace("hydrated","").trim();const e=s.getAttribute("class");s.setAttribute(c.name,`${e?`${e} `:""}${i}`);if(t){a.setAttribute("class","hydrated")}else{a.removeAttribute(c.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-card")}render(){return a("div",{key:"823ca29890a1a4f29f4ff4f7bb1829e77314546b",class:i("db-card",this.className),ref:s=>{this._ref=s},id:this.id,"data-behavior":this.behavior,"data-elevation-level":this.elevationLevel,"data-spacing":this.spacing,onClick:s=>this.handleClick(s)},a("slot",{key:"532b03614fa83513efc8f97b6a9a7faceff62039"}))}};export{c as db_card};
|
|
2
|
+
//# sourceMappingURL=p-692f3dab.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as t}from"./p-uOzX56mL.js";import{c as e}from"./p-YECpAE3G.js";const a=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const e=s===null||s===void 0?void 0:s.closest(t);if(s&&e){const t=e.attributes;for(let a=0;a<t.length;a++){const o=t.item(a);if(o&&(o.name.startsWith("data-")||o.name.startsWith("aria-"))){s.setAttribute(o.name,o.value);e.removeAttribute(o.name)}if(o&&o.name==="class"){const t=o.value.includes("hydrated");const a=o.value.replace("hydrated","").trim();const c=s.getAttribute("class");s.setAttribute(o.name,`${c?`${c} `:""}${a}`);if(t){e.setAttribute("class","hydrated")}else{e.removeAttribute(o.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-form-field")}render(){return t("summary",{key:"22a05256e65e56208335b9a5c840e75988a57182",class:e("db-custom-select-form-field",this.className),ref:s=>{this._ref=s},id:this.id},t("slot",{key:"3c6c62df9bf0d2a73e37a9ad69d3a46daa672984"}))}};export{a as db_custom_select_form_field};
|
|
2
|
+
//# sourceMappingURL=p-75e23407.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as i}from"./p-uOzX56mL.js";import{D as s}from"./p-DC9V_oNU.js";import{u as h,c as a}from"./p-YECpAE3G.js";const e=class{constructor(i){t(this,i);this._id=s;this._name="";this.initialized=false;this._initOpenIndexDone=false}convertItems(){try{if(typeof this.items==="string"){return JSON.parse(this.items)}return this.items}catch(t){console.error(t)}return[]}enableAttributePassing(t,i){const s=t===null||t===void 0?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let h=0;h<i.length;h++){const a=i.item(h);if(a&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);s.removeAttribute(a.name)}if(a&&a.name==="class"){const i=a.value.includes("hydrated");const h=a.value.replace("hydrated","").trim();const e=t.getAttribute("class");t.setAttribute(a.name,`${e?`${e} `:""}${h}`);if(i){s.setAttribute("class","hydrated")}else{s.removeAttribute(a.name)}}}}}watch0Fn(){if(this.initialized){if(this.behavior==="single"){if(this.name){if(this._name!==this.name){this._name=this.name}}else{if(this._name!==this._id&&this._id){this._name=this._id}}}else{this._name=""}}}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._ref){const i=this._ref.getElementsByTagName("details");if(i){for(const s of Array.from(i)){if(this._name===""){s.removeAttribute("name")}else{s.name=(t=this._name)!==null&&t!==void 0?t:""}}}}}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref&&this._initOpenIndexDone){if(this.initOpenIndex&&this.initOpenIndex.length>0){const t=this._ref.getElementsByTagName("details");if(t){const i=this.behavior==="single"&&this.initOpenIndex.length>1?[this.initOpenIndex[0]]:this.initOpenIndex;Array.from(t).forEach(((t,s)=>{if(i===null||i===void 0?void 0:i.includes(s)){t.open=true}}))}}this._initOpenIndexDone=false}}watch2(){this.watch2Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-accordion");this._id=this.id||"accordion-"+h();this.initialized=true;this._initOpenIndexDone=true;this.watch0Fn();this.watch1Fn();this.watch2Fn()}render(){var t;return i("ul",{key:"91f6c44d0b30b23d247af72e0eefd7629db29a36",class:a("db-accordion",this.className),ref:t=>{this._ref=t},id:this._id,"data-variant":this.variant},!this.items?i("slot",null):null,this.items?(t=this.convertItems())===null||t===void 0?void 0:t.map(((t,s)=>i("db-accordion-item",{key:`accordion-item-${s}`,headlinePlain:t.headlinePlain,disabled:t.disabled,text:t.text}))):null)}static get watchers(){return{initialized:["watch0"],name:["watch0"],behavior:["watch0"],_id:["watch0"],_ref:["watch1","watch2"],_name:["watch1"],_initOpenIndexDone:["watch2"],initOpenIndex:["watch2"]}}};export{e as db_accordion};
|
|
2
|
+
//# sourceMappingURL=p-7e77b6ca.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-uOzX56mL.js";import{g as a,b as e,c,u as d}from"./p-YECpAE3G.js";import{D as h}from"./p-DC9V_oNU.js";const n=class{constructor(i){t(this,i);this.change=s(this,"change");this._selected=false;this._name=undefined;this.initialized=false}handleNameAttribute(){if(this._ref){const t=this._ref.setAttribute;this._ref.setAttribute=(s,i)=>{t.call(this._ref,s,i);if(s==="name"){this._name=i}}}}handleChange(t){var s;t.stopPropagation();if(this.change){this.change.emit(t)}const i=(s=t.target)===null||s===void 0?void 0:s["checked"];this._selected=a(i)}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const c=t.getAttribute("class");t.setAttribute(e.name,`${c?`${c} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}watch0Fn(){if(this.initialized&&this._ref){if(this.active){this._ref.click()}this.initialized=false}}watch0(){this.watch0Fn()}watch1Fn(){if(this.name){this._name=this.name}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tab-item");this.initialized=true;this.watch0Fn();this.watch1Fn()}render(){var t,s;return i("li",{key:"8e75b4c0074a2ba6c2714c61496d48d23b34d4f2",class:c("db-tab-item",this.className),role:"none"},i("label",{key:"f34a91270dd1888b0f5432cb8de754ba94a1f990",htmlFor:this.id,"data-icon":(t=this.iconLeading)!==null&&t!==void 0?t:this.icon,"data-icon-trailing":this.iconTrailing,"data-show-icon":a((s=this.showIconLeading)!==null&&s!==void 0?s:this.showIcon),"data-show-icon-trailing":a(this.showIconTrailing),"data-no-text":a(this.noText)},i("input",{key:"d93dbacfce405d658f611d5e11ce09ac17633c43",type:"radio",role:"tab",disabled:e(this.disabled,"disabled"),"aria-selected":this._selected,checked:e(this.checked,"checked"),ref:t=>{this._ref=t},name:this._name,id:this.id,onInput:t=>this.handleChange(t)}),this.label?this.label:null,i("slot",{key:"81b98f7461da602f12818eda38320ebbf11af356"})))}static get watchers(){return{_ref:["watch0"],initialized:["watch0"],name:["watch1"]}}};const o=class{constructor(s){t(this,s);this._id=h}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const c=t.getAttribute("class");t.setAttribute(e.name,`${c?`${c} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tab-list");this._id=this.id||"tab-list-"+d()}render(){return i("div",{key:"02b9078d6c1c0042ec10ebf5fa65053fc48389f9",class:c("db-tab-list",this.className),ref:t=>{this._ref=t},id:this._id},i("ul",{key:"8d94235b080746b9994c38efbaf185f3827fa9f5",role:"tablist"},i("slot",{key:"b82859106140c049c0d5b196f563ea9a3002d122"})))}};const l=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const c=t.getAttribute("class");t.setAttribute(e.name,`${c?`${c} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tab-panel")}render(){return i("section",{key:"e9690268e2b088cc1944d3214ac99e42c618de9c",class:c("db-tab-panel",this.className),role:"tabpanel",ref:t=>{this._ref=t},id:this.id},this.content?this.content:null,i("slot",{key:"d8b816054f67f043081c9e4f827903f557b9378f"}))}};export{n as db_tab_item,o as db_tab_list,l as db_tab_panel};
|
|
2
|
+
//# sourceMappingURL=p-91e20437.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as a,c as e,h as d}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as a,c as e,h as d}from"./p-uOzX56mL.js";import{p as c}from"./p-DC9V_oNU.js";import{a as s,b as t,c as i}from"./p-YECpAE3G.js";import{i as r}from"./p-sP2NlPcu.js";import"./p-G-TursYV.js";const n=class{constructor(d){a(this,d);this.toggle=e(this,"toggle");this.initialized=false;this.forcedToMobile=false}handleToggle(a){if(a&&a.stopPropagation){a.stopPropagation()}const e=!t(this.drawerOpen,"drawerOpen");if(this.toggle){this.toggle.emit(e)}}handleNavigationItemClick(a){if(r(a)){this.handleToggle()}}enableAttributePassing(a,e){const d=a===null||a===void 0?void 0:a.closest(e);if(a&&d){const e=d.attributes;for(let c=0;c<e.length;c++){const s=e.item(c);if(s&&(s.name.startsWith("data-")||s.name.startsWith("aria-"))){a.setAttribute(s.name,s.value);d.removeAttribute(s.name)}if(s&&s.name==="class"){const e=s.value.includes("hydrated");const c=s.value.replace("hydrated","").trim();const t=a.getAttribute("class");a.setAttribute(s.name,`${t?`${t} `:""}${c}`);if(e){d.setAttribute("class","hydrated")}else{d.removeAttribute(s.name)}}}}}watch0Fn(){if(this.initialized&&this._ref&&this.forceMobile){s(this._ref,{key:"data-force-mobile",value:"true"});this.forcedToMobile=true}}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-header");this.initialized=true;this.watch0Fn()}render(){var a;return d("header",{key:"f4c9884becf742012f64300f7c63fc6d4463fc53",class:i("db-header",this.className),ref:a=>{this._ref=a},id:this.id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},d("db-drawer",{key:"1e7041fce0b49d91634f9150de2728fb3ea570ae",class:"db-header-drawer",spacing:"small",rounded:true,open:t(this.drawerOpen),onClose:()=>this.handleToggle()},d("div",{key:"9cf3ece5244d1210276de64d74916077323a03c1",class:"db-header-drawer-navigation"},d("div",{key:"4b3aa0923761a654d6095e862b5d1beddae86d80",class:"db-header-navigation",onClick:a=>this.handleNavigationItemClick(a)},d("slot",{key:"a4f4a03a8cb99eb51aa6b865900ce5087099eddf"})),d("div",{key:"3d45857231f8637705c827d7c261cc33ab14f966",class:"db-header-meta-navigation"},d("slot",{key:"8820a4e7f3e41d92ffabee8787e68cff52ae9ffe",name:"metaNavigation"}))),d("div",{key:"a2419d7e6cf2ac44e303b3ecbce0e2879064ce92",class:"db-header-secondary-action"},d("slot",{key:"be3960fbaf78ae49ba370e78be80069c21272b90",name:"secondaryAction"}))),d("div",{key:"5d34773d05e83f70b8c4b94320ccacfa724c607d",class:"db-header-meta-navigation"},d("slot",{key:"59173edd33c4cb1198d01ff226a9b00510066a23",name:"metaNavigation"})),d("div",{key:"295063c335c63c27caa205577aa8d1c9fba8f707",class:"db-header-navigation-bar"},d("div",{key:"89bba742b816ae4de7964a6818552cb539b338fc",class:"db-header-brand-container"},d("slot",{key:"98f16df9f68541c7fddc25fd823d6a6c2c038186",name:"brand"})),d("div",{key:"7e6279f4528c98b3e33fe9e948f24e098806aba1",class:"db-header-navigation-container"},d("div",{key:"9194a52e1270ae50b648498587262354e2cbb074",class:"db-header-navigation"},d("slot",{key:"5c5b769528a870c273f6b278f2426818b87fca34"})),d("div",{key:"fdd0b74ffd36b12cca136b66ffb851332384e7f5",class:"db-header-primary-action"},d("slot",{key:"9785dea0204a3029a31962e661861c26ca9ba490",name:"primaryAction"}))),d("div",{key:"3da686773c71442497aed65236b22ce19d42cf5a",class:"db-header-action-container"},d("div",{key:"08d4fcda3c5e3d757fa090fc7a4170884f653340",class:"db-header-burger-menu-container"},d("db-button",{key:"066d1359f239663f6c92d9206ec6112ab93a7326",icon:"menu",variant:"ghost",noText:true,onClick:()=>this.handleToggle()},(a=this.burgerMenuLabel)!==null&&a!==void 0?a:c)),d("div",{key:"43ed5e88925dd99ff83241a626e3a4204101304f",class:"db-header-secondary-action"},d("slot",{key:"c74a72a5babc2ab9c667d2a898955be5ce919a9b",name:"secondaryAction"})))))}static get watchers(){return{initialized:["watch0"],_ref:["watch0"]}}};export{n as db_header};
|
|
2
|
+
//# sourceMappingURL=p-ae79ac56.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as t}from"./p-uOzX56mL.js";import{q as a}from"./p-DC9V_oNU.js";import{g as i,c as o}from"./p-YECpAE3G.js";const d=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const a=s===null||s===void 0?void 0:s.closest(t);if(s&&a){const t=a.attributes;for(let i=0;i<t.length;i++){const o=t.item(i);if(o&&(o.name.startsWith("data-")||o.name.startsWith("aria-"))){s.setAttribute(o.name,o.value);a.removeAttribute(o.name)}if(o&&o.name==="class"){const t=o.value.includes("hydrated");const i=o.value.replace("hydrated","").trim();const d=s.getAttribute("class");s.setAttribute(o.name,`${d?`${d} `:""}${i}`);if(t){a.setAttribute("class","hydrated")}else{a.removeAttribute(o.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-brand")}render(){var s;return t("div",{key:"9014cc8dfb318b456ae6115abe7217a1d1cca73b",class:o("db-brand",this.className),ref:s=>{this._ref=s},"data-icon":this.hideLogo?"none":(s=this.icon)!==null&&s!==void 0?s:a,"data-show-icon":i(this.showIcon),id:this.id},this.text?this.text:t("slot",null))}};export{d as db_brand};
|
|
2
|
+
//# sourceMappingURL=p-aff65fd3.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as s}from"./p-uOzX56mL.js";import{u as h,b as a,j as e,c as d}from"./p-YECpAE3G.js";const r=class{constructor(s){t(this,s);this.change=i(this,"change");this.blur=i(this,"blur");this.focus=i(this,"focus");this.initialized=false;this._id=undefined}handleChange(t){if(this.change){this.change.emit(t)}}handleBlur(t){if(this.blur){this.blur.emit(t)}}handleFocus(t){if(this.focus){this.focus.emit(t)}}enableAttributePassing(t,i){const s=t===null||t===void 0?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let h=0;h<i.length;h++){const a=i.item(h);if(a&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);s.removeAttribute(a.name)}if(a&&a.name==="class"){const i=a.value.includes("hydrated");const h=a.value.replace("hydrated","").trim();const e=t.getAttribute("class");t.setAttribute(a.name,`${e?`${e} `:""}${h}`);if(i){s.setAttribute("class","hydrated")}else{s.removeAttribute(a.name)}}}}}watch0Fn(){if(this.checked&&this.initialized&&this._ref){this._ref.checked=true}}watch0(){this.watch0Fn()}componentDidLoad(){var t;this.enableAttributePassing(this._ref,"db-radio");this.initialized=true;this._id=(t=this.id)!==null&&t!==void 0?t:`radio-${h()}`;this.watch0Fn()}render(){return s("label",{key:"48ef890634115e003796b0721e66c1eedf07e8b2",class:d("db-radio",this.className),"data-size":this.size,"data-hide-label":e(this.showLabel),"data-hide-asterisk":e(this.showRequiredAsterisk),htmlFor:this._id},s("input",{key:"93ef1731fc978cb7ceac5fe555f3383224f18b64",type:"radio","aria-invalid":this.validation==="invalid","data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:a(this.checked,"checked"),disabled:a(this.disabled,"disabled"),value:this.value,required:a(this.required,"required"),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t)}),this.label?this.label:s("slot",null))}static get watchers(){return{initialized:["watch0"],_ref:["watch0"],checked:["watch0"]}}};export{r as db_radio};
|
|
2
|
+
//# sourceMappingURL=p-b9bd42d1.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as s}from"./p-uOzX56mL.js";import{g as i,c as a}from"./p-YECpAE3G.js";const e=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const r=t.getAttribute("class");t.setAttribute(e.name,`${r?`${r} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-link")}render(){var t;return s("a",{key:"c76a9caf23e3efc45794fd4ef5b55ee7d228f500",class:a("db-link",this.className),ref:t=>{this._ref=t},id:this.id,href:this.href,target:this.target,rel:this.rel,role:this.role,hrefLang:this.hreflang,"aria-disabled":i(this.disabled),tabIndex:this.disabled?-1:0,"data-size":this.size,"data-show-icon-trailing":i((t=this.showIcon)!==null&&t!==void 0?t:true),"data-variant":this.variant,"data-content":this.content||"internal","data-wrap":i(this.wrap)},this.text?this.text:s("slot",null))}};export{e as db_link};
|
|
2
|
+
//# sourceMappingURL=p-ba2aab6a.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as t}from"./p-uOzX56mL.js";import{c as i}from"./p-YECpAE3G.js";const a=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const i=s===null||s===void 0?void 0:s.closest(t);if(s&&i){const t=i.attributes;for(let a=0;a<t.length;a++){const d=t.item(a);if(d&&(d.name.startsWith("data-")||d.name.startsWith("aria-"))){s.setAttribute(d.name,d.value);i.removeAttribute(d.name)}if(d&&d.name==="class"){const t=d.value.includes("hydrated");const a=d.value.replace("hydrated","").trim();const r=s.getAttribute("class");s.setAttribute(d.name,`${r?`${r} `:""}${a}`);if(t){i.setAttribute("class","hydrated")}else{i.removeAttribute(d.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-divider")}render(){return t("div",{key:"0e9bf54bcd77ec1c324eb6300162bbf8c67b8c16",class:i("db-divider",this.className),ref:s=>{this._ref=s},id:this.id,"data-margin":this.margin,"data-variant":this.variant,"data-emphasis":this.emphasis,"data-width":this.width})}};export{a as db_divider};
|
|
2
|
+
//# sourceMappingURL=p-c10f9185.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as i}from"./p-uOzX56mL.js";import{D as s}from"./p-DC9V_oNU.js";import{d as e,u as a,g as o,c as h}from"./p-YECpAE3G.js";import{D as d}from"./p-BwSmFFdU.js";import{b as n}from"./p-G-TursYV.js";const l=class{constructor(i){t(this,i);this._id=s;this.initialized=false;this._documentScrollListenerCallbackId=undefined;this._observer=undefined}handleClick(t){t.stopPropagation()}handleEscape(t){if((!t||t.key==="Escape")&&this._ref&&getComputedStyle(this._ref).visibility==="visible"){this.getParent().blur()}}getParent(){let t=this._ref.parentElement;if(t&&t.localName.includes("tooltip")){t=t.parentElement}return t}handleAutoPlacement(t){if(!t)return;if(this._ref){e((()=>{var i;n(this._ref,t,(i=this.placement)!==null&&i!==void 0?i:"bottom")}),1)}}handleDocumentScroll(t,i){var s,e;if(((s=t===null||t===void 0?void 0:t.target)===null||s===void 0?void 0:s.contains)&&((e=t===null||t===void 0?void 0:t.target)===null||e===void 0?void 0:e.contains(this._ref))){this.handleAutoPlacement(i)}}handleLeave(){var t;if(this._documentScrollListenerCallbackId){(new d).removeCallback(this._documentScrollListenerCallbackId)}(t=this._observer)===null||t===void 0?void 0:t.unobserve(this.getParent())}handleEnter(t){var i;this._documentScrollListenerCallbackId=(new d).addCallback((i=>this.handleDocumentScroll(i,t)));this.handleAutoPlacement(t);(i=this._observer)===null||i===void 0?void 0:i.observe(this.getParent())}enableAttributePassing(t,i){const s=t===null||t===void 0?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);s.removeAttribute(a.name)}if(a&&a.name==="class"){const i=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const o=t.getAttribute("class");t.setAttribute(a.name,`${o?`${o} `:""}${e}`);if(i){s.setAttribute("class","hydrated")}else{s.removeAttribute(a.name)}}}}}watch0Fn(){if(this._ref&&this.initialized&&this._id){const t=this.getParent();if(t){["mouseenter","focusin"].forEach((i=>{t.addEventListener(i,(()=>this.handleEnter(t)))}));t.addEventListener("keydown",(t=>this.handleEscape(t)));["mouseleave","focusout"].forEach((i=>{t.addEventListener(i,(()=>this.handleLeave()))}));t.dataset["hasTooltip"]="true";if(this.variant==="label"){t.setAttribute("aria-labelledby",this._id)}else{t.setAttribute("aria-describedby",this._id)}}if(typeof window!=="undefined"&&"IntersectionObserver"in window){this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getParent()));if(i&&!i.isIntersecting){this.handleEscape(false)}}))}this.initialized=false}}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tooltip");this._id=this.id||"tooltip-"+a();this.initialized=true;this.watch0Fn()}render(){var t,s;return i("i",{key:"52251be6619b67fd037abcd6f3c0e6ad273e4e2d",class:h("db-tooltip",this.className),role:"tooltip","aria-hidden":"true","data-gap":"true",ref:t=>{this._ref=t},id:this._id,"data-emphasis":this.emphasis,"data-animation":o((t=this.animation)!==null&&t!==void 0?t:true),"data-delay":this.delay,"data-width":this.width,"data-show-arrow":o((s=this.showArrow)!==null&&s!==void 0?s:true),"data-placement":this.placement,onClick:t=>this.handleClick(t)},i("slot",{key:"3b71f1756c1fd865bf5e116e50c51dd095a9cec0"}))}static get watchers(){return{_ref:["watch0"],initialized:["watch0"]}}};export{l as db_tooltip};
|
|
2
|
+
//# sourceMappingURL=p-c669da75.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as t}from"./p-uOzX56mL.js";import{D as i}from"./p-DC9V_oNU.js";import{u as a,c as o}from"./p-YECpAE3G.js";const c=class{constructor(t){s(this,t);this._id=i}enableAttributePassing(s,t){const i=s===null||s===void 0?void 0:s.closest(t);if(s&&i){const t=i.attributes;for(let a=0;a<t.length;a++){const o=t.item(a);if(o&&(o.name.startsWith("data-")||o.name.startsWith("aria-"))){s.setAttribute(o.name,o.value);i.removeAttribute(o.name)}if(o&&o.name==="class"){const t=o.value.includes("hydrated");const a=o.value.replace("hydrated","").trim();const c=s.getAttribute("class");s.setAttribute(o.name,`${c?`${c} `:""}${a}`);if(t){i.setAttribute("class","hydrated")}else{i.removeAttribute(o.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-section");this._id=this.id||"section-"+a()}render(){return t("section",{key:"7210f6168a1ae571fc3aa9722d2c753acde1f3f8",class:o("db-section",this.className),ref:s=>{this._ref=s},id:this._id,"data-spacing":this.spacing||"medium","data-width":this.width},t("slot",{key:"c8b8778fd1d599dff56b532654a786fb5062b6bf"}))}};export{c as db_section};
|
|
2
|
+
//# sourceMappingURL=p-cbb632eb.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-uOzX56mL.js";import{s as a}from"./p-DC9V_oNU.js";import{m as e,d,g as h,c}from"./p-YECpAE3G.js";const r=class{constructor(i){t(this,i);this.close=s(this,"close");this.initialized=false}handleClose(t,s){var i;if(!t)return;if(e(t)){if(t.key==="Escape"){t.preventDefault();if(this.close){this.close.emit(t)}}}else{if(s){t.stopPropagation();if(this.close){this.close.emit(t)}}if(((i=t.target)===null||i===void 0?void 0:i.nodeName)==="DIALOG"&&t.type==="click"&&this.backdrop!=="none"){if(this.close){this.close.emit(t)}}}}handleDialogOpen(){if(this._ref){const t=Boolean(this.open);if(t&&!this._ref.open){if(this.dialogContainerRef){this.dialogContainerRef.hidden=false}if(this.position==="absolute"||this.backdrop==="none"||this.variant==="inside"){this._ref.show()}else{this._ref.showModal()}}if(!t&&this._ref.open){if(this.dialogContainerRef){this.dialogContainerRef.hidden=true}d((()=>{var t;if(this.dialogContainerRef){this.dialogContainerRef.hidden=false}(t=this._ref)===null||t===void 0?void 0:t.close()}),401)}}}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const d=t.getAttribute("class");t.setAttribute(e.name,`${d?`${d} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}watch0Fn(){this.handleDialogOpen()}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref&&this.initialized&&this.position==="absolute"){const t=this._ref;const s=t.parentElement;if(s){s.style.position="relative"}}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-drawer");this.handleDialogOpen();this.initialized=true;this.watch0Fn();this.watch1Fn()}render(){var t;return i("dialog",{key:"bde9fb000bc000b3371ab4e7333ec0b7e802a1d5",class:"db-drawer",id:this.id,ref:t=>{this._ref=t},onClick:t=>this.handleClose(t),onKeyDown:t=>this.handleClose(t),"data-position":this.position,"data-backdrop":this.backdrop,"data-direction":this.direction,"data-variant":this.variant},i("article",{key:"62fb34f827d93c6a52e6dc79fb0970879b07dd72",class:c("db-drawer-container",this.className),ref:t=>{this.dialogContainerRef=t},"data-spacing":this.spacing,"data-width":this.width,"data-direction":this.direction,"data-rounded":h(this.rounded)},i("header",{key:"81567140972ebb1f244c46227f688f017b2d74da",class:"db-drawer-header"},i("div",{key:"14fe9424f88dd71bedc5b670edf7d776639ad65f",class:"db-drawer-header-text"},i("slot",{key:"e8f703b2d8c81c9e64996f6c8214ae004484698c",name:"drawerHeader"})),i("db-button",{key:"7f18727c2550a75ed735d11b8983b9b6bca0f1d4",class:"button-close-drawer",icon:"cross",variant:"ghost",id:this.closeButtonId,noText:true,onClick:t=>this.handleClose(t,true)},(t=this.closeButtonText)!==null&&t!==void 0?t:a)),i("div",{key:"e2b7f182c9f321f5477ee4669451e10935cae010",class:"db-drawer-content"},i("slot",{key:"23bb4b8cf2c617757379637fab20361b6d4943f2"}))))}static get watchers(){return{open:["watch0"],_ref:["watch1"],initialized:["watch1"],position:["watch1"]}}};export{r as db_drawer};
|
|
2
|
+
//# sourceMappingURL=p-dd3a4cc9.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,F as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as s,F as a}from"./p-uOzX56mL.js";import{u as o,c as n}from"./p-YECpAE3G.js";const h=class{constructor(s){t(this,s);this.indexChange=i(this,"indexChange");this.tabSelect=i(this,"tabSelect");this._id="tabs-"+o();this._name="";this.initialized=false;this.showScrollLeft=false;this.showScrollRight=false;this.scrollContainer=null}convertTabs(){try{if(typeof this.tabs==="string"){return JSON.parse(this.tabs)}return this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const i=t.scrollWidth>t.clientWidth;this.showScrollLeft=i&&t.scrollLeft>1;this.showScrollRight=i&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var i;let s=Number(this.arrowScrollDistance)||100;if(t){s*=-1}(i=this.scrollContainer)===null||i===void 0?void 0:i.scrollBy({top:0,left:s,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const i=t.querySelector('[role="tablist"]');if(i){i.setAttribute("aria-orientation",this.orientation||"horizontal");if(this.behavior==="arrows"){this.scrollContainer=i;this.evaluateScrollButtons(i);i.addEventListener("scroll",(()=>{this.evaluateScrollButtons(i)}))}}}}}initTabs(t){if(this._ref){const i=Array.from(this._ref.getElementsByClassName("db-tab-item"));const s=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const a of i){const o=i.indexOf(a);const n=a.querySelector("label");const h=a.querySelector("input");if(h&&n){if(!h.id){const t=`${this._name}-tab-${o}`;n.setAttribute("for",t);h.id=t;h.setAttribute("name",this._name);if(s.length>o){h.setAttribute("aria-controls",`${this._name}-tab-panel-${o}`)}}if(t){const t=!this.initialSelectedMode||this.initialSelectedMode==="auto";const i=this.initialSelectedIndex==null&&o===0||Number(this.initialSelectedIndex)===o;if(t&&i){h.click()}}}}for(const t of s){if(t.id)continue;const i=s.indexOf(t);t.id=`${this._name}-tab-panel-${i}`;t.setAttribute("aria-labelledby",`${this._name}-tab-${i}`)}}}handleChange(t){var i;t.stopPropagation();if(t.target){const s=t.target;const a=s.parentElement;if(a&&a.parentElement&&((i=a.parentElement)===null||i===void 0?void 0:i.nodeName)==="LI"){const i=a.parentElement.parentElement;if(i){const s=i.parentElement;if(s){const a=Array.from(s.childNodes).indexOf(i);if(this.indexChange){this.indexChange.emit(a)}if(this.tabSelect){this.tabSelect.emit(t)}}}}}}enableAttributePassing(t,i){const s=t===null||t===void 0?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const o=i.item(a);if(o&&(o.name.startsWith("data-")||o.name.startsWith("aria-"))){t.setAttribute(o.name,o.value);s.removeAttribute(o.name)}if(o&&o.name==="class"){const i=o.value.includes("hydrated");const a=o.value.replace("hydrated","").trim();const n=t.getAttribute("class");t.setAttribute(o.name,`${n?`${n} `:""}${a}`);if(i){s.setAttribute("class","hydrated")}else{s.removeAttribute(o.name)}}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList();this.initTabs(true);const t=this._ref.querySelector(".db-tab-list");if(t){const i=new MutationObserver((t=>{t.forEach((t=>{if(t.removedNodes.length||t.addedNodes.length){this.initTabList();this.initTabs()}}))}));i.observe(t,{childList:true,subtree:true})}this.initialized=false}}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tabs");this._id=this.id||this._id;this._name=`tabs-${this.name||o()}`;this.initialized=true;this.watch0Fn()}render(){var t,i,o,h;return s("div",{key:"f2927c65e3e2199780a8d5a8f5adc04dc48241e1",class:n("db-tabs",this.className),ref:t=>{this._ref=t},id:this._id,"data-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":(t=this.alignment)!==null&&t!==void 0?t:"start","data-width":(i=this.width)!==null&&i!==void 0?i:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?s("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:true,onClick:()=>this.scroll(true)},"Scroll left"):null,this.tabs?s(a,null,s("db-tab-list",null,(o=this.convertTabs())===null||o===void 0?void 0:o.map(((t,i)=>s("db-tab-item",{key:this.name+"tab-item"+i,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),(h=this.convertTabs())===null||h===void 0?void 0:h.map(((t,i)=>s("db-tab-panel",{key:this.name+"tab-panel"+i,content:t.content},t.children)))):null,this.showScrollRight?s("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:true,onClick:()=>this.scroll()},"Scroll right"):null,s("slot",{key:"e34a5daca2d4be08527f000f1c9f9d8d405d16dd"}))}static get watchers(){return{_ref:["watch0"],initialized:["watch0"]}}};export{h as db_tabs};
|
|
2
|
+
//# sourceMappingURL=p-f27c123a.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as i}from"./p-uOzX56mL.js";import{d as s,g as e,c as a}from"./p-YECpAE3G.js";import{D as o}from"./p-BwSmFFdU.js";import{b as n}from"./p-G-TursYV.js";const h=class{constructor(i){t(this,i);this.initialized=false;this.isExpanded=false;this._documentScrollListenerCallbackId=undefined;this._observer=undefined}handleEscape(t){if(!t||t.key==="Escape"){for(const t of Array.from(this._ref.children)){t.blur()}}}handleAutoPlacement(){if(!this._ref)return;const t=this._ref.querySelector("article");if(t){s((()=>{var i;n(t,this._ref,(i=this.placement)!==null&&i!==void 0?i:"bottom")}),1)}}handleDocumentScroll(t){var i,s;if(((i=t===null||t===void 0?void 0:t.target)===null||i===void 0?void 0:i.contains)&&((s=t===null||t===void 0?void 0:t.target)===null||s===void 0?void 0:s.contains(this._ref))){this.handleAutoPlacement()}}handleEnter(){var t;this.isExpanded=true;this._documentScrollListenerCallbackId=(new o).addCallback((t=>this.handleDocumentScroll(t)));this.handleAutoPlacement();const i=this.getTrigger();if(i){(t=this._observer)===null||t===void 0?void 0:t.observe(i)}}handleLeave(t){var i;const s=t===null||t===void 0?void 0:t.target;const e=s===null||s===void 0?void 0:s.parentNode;if(!e||s.parentNode.querySelector(":focus")!==s&&s.parentNode.querySelector(":focus-within")!==s&&s.parentNode.querySelector(":hover")!==s){this.isExpanded=false;if(this._documentScrollListenerCallbackId){(new o).removeCallback(this._documentScrollListenerCallbackId)}const t=this.getTrigger();if(t){(i=this._observer)===null||i===void 0?void 0:i.unobserve(t)}}}getTrigger(){var t;if(this._ref){const i=Array.from(this._ref.children);if(i.length>=2){const s=i[0];if(s.tagName.includes("-")){return((t=s.children)===null||t===void 0?void 0:t.length)>0?s.children[0]:null}else{return s}}}return null}enableAttributePassing(t,i){const s=t===null||t===void 0?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){t.setAttribute(a.name,a.value);s.removeAttribute(a.name)}if(a&&a.name==="class"){const i=a.value.includes("hydrated");const e=a.value.replace("hydrated","").trim();const o=t.getAttribute("class");t.setAttribute(a.name,`${o?`${o} `:""}${e}`);if(i){s.setAttribute("class","hydrated")}else{s.removeAttribute(a.name)}}}}}watch0Fn(){if(this._ref&&this.initialized){this.initialized=false;const t=this.getTrigger();if(t){t.ariaHasPopup="true"}this.handleAutoPlacement();this._ref.addEventListener("keydown",(t=>this.handleEscape(t)));["mouseenter","focusin"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleEnter()))}));["mouseleave","focusout"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleLeave()))}));if(typeof window!=="undefined"&&"IntersectionObserver"in window){this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getTrigger()));if(i&&!i.isIntersecting){this.handleEscape(false)}}))}}}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref){const t=this.getTrigger();if(t){t.ariaExpanded=Boolean(this.isExpanded).toString()}}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-popover");this.initialized=true;this.watch0Fn();this.watch1Fn()}render(){var t;return i("div",{key:"4d902919abc8bf5b55a617a31424f35582e029c1",class:a("db-popover",this.className),ref:t=>{this._ref=t},id:this.id},i("slot",{key:"166a0b766f6f0c003e6d7a250fd466267117f59a",name:"trigger"}),i("article",{key:"4fa535dc081c76eb21671e0abfb7d090b38e6e5c",class:"db-popover-content","data-spacing":this.spacing,"data-gap":e(this.gap),"data-animation":e((t=this.animation)!==null&&t!==void 0?t:true),"data-open":e(this.open),"data-delay":this.delay,"data-width":this.width,"data-placement":this.placement},i("slot",{key:"ef47687b496cfe4d6cce11ef5d282a2ec3a88004"})))}static get watchers(){return{_ref:["watch0","watch1"],initialized:["watch0"],isExpanded:["watch1"]}}};export{h as db_popover};
|
|
2
|
+
//# sourceMappingURL=p-f81d1ae7.entry.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e="db-ux";const t={hydratedSelectorName:"hydrated",lazyLoad:true,shadowDom:false,slotRelocation:true,updatable:true};var n=Object.defineProperty;var r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var o=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var i=(e,t)=>{e.__stencil__getHostRef=()=>t;t.t=e};var l=(e,t)=>{const n={o:0,$hostElement$:e,i:t,l:new Map};{n.u=new Promise((e=>n.v=e));e["s-p"]=[];e["s-rc"]=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var s=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var a=new Map;var c=(e,t,n)=>{const r=e.h.replace(/-/g,"_");const o=e.p;if(!o){return void 0}const i=a.get(o);if(i){return i[r]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((e=>{{a.set(o,e)}return e[r]}),(e=>{f(e,t.$hostElement$)}))};var u="{visibility:hidden}.hydrated{visibility:inherit}";var v="slot-fb{display:contents}slot-fb[hidden]{display:none}";var d=typeof window!=="undefined"?window:{};var h={o:0,m:"",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 p=t.shadowDom;var m=e=>Promise.resolve(e);var y=false;var b=[];var w=[];var $=(e,t)=>n=>{e.push(n);if(!y){y=true;if(t&&h.o&4){k(j)}else{h.raf(j)}}};var g=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var j=()=>{g(b);{g(w);if(y=b.length>0){h.raf(j)}}};var k=e=>m().then(e);var O=$(w,true);var S=e=>{e=typeof e;return e==="object"||e==="function"};function E(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 N=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var R={};r(R,{err:()=>C,map:()=>M,ok:()=>x,unwrap:()=>T,unwrapErr:()=>F});var x=e=>({isOk:true,isErr:false,value:e});var C=e=>({isOk:false,isErr:true,value:e});function M(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>x(e)))}else{return x(n)}}if(e.isErr){const t=e.value;return C(t)}throw"should never get here"}var T=e=>{if(e.isOk){return e.value}else{throw e.value}};var F=e=>{if(e.isErr){return e.value}else{throw e.value}};var L=e=>{const t=z(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){U(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(D(e,A(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&z(e,"childNodes").length){L(e)}}};var P=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};function U(e,t,n){let r=0;let o=[];let i;for(;r<e.length;r++){i=e[r];if(i["s-sr"]&&(!t||i["s-hn"]===t)&&n===void 0){o.push(i)}o=[...o,...U(i.childNodes,t,n)]}return o}var D=(e,t,n=true)=>{const r=[];if(n&&e["s-sr"]||!e["s-sr"])r.push(e);let o=e;while(o=o.nextSibling){if(A(o)===t&&(n||!o["s-sr"]))r.push(o)}return r};var W=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var A=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function _(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 i=o.__childNodes?o.childNodes:P(o.childNodes);i.forEach((e=>{if(r===A(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 z(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 B=(e,t="")=>{{return()=>{}}};var I=(e,t)=>{{return()=>{}}};var q=new WeakMap;var H=(e,t,...n)=>{let r=null;let o=null;let i=null;let l=false;let s=false;const f=[];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"&&!S(r)){r=String(r)}if(l&&s){f[f.length-1].$+=r}else{f.push(l?V(null,r):r)}s=l}}};a(n);if(t){if(t.key){o=t.key}if(t.name){i=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,J)}const c=V(e,null);c.j=t;if(f.length>0){c.k=f}{c.O=o}{c.S=i}return c};var V=(e,t)=>{const n={o:0,N:e,$:t,R:null,k:null};{n.j=null}{n.O=null}{n.S=null}return n};var Y={};var G=e=>e&&e.N===Y;var J={forEach:(e,t)=>e.map(K).forEach(t),map:(e,t)=>e.map(K).map(t).map(Q)};var K=e=>({vattrs:e.j,vchildren:e.k,vkey:e.O,vname:e.S,vtag:e.N,vtext:e.$});var Q=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return H(e.vtag,t,...e.vchildren||[])}const t=V(e.vtag,e.vtext);t.j=e.vattrs;t.k=e.vchildren;t.O=e.vkey;t.S=e.vname;return t};var X=e=>{const t=N(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};X("::slotted");X(":host");X(":host-context");var Z=(e,t,n)=>{if(typeof e==="string"&&(t&16||t&8)&&(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]"))){try{return JSON.parse(e)}catch(e){}}if(e!=null&&!S(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 ee=e=>{var t;return(t=o(e))==null?void 0:t.$hostElement$};var te=(e,t,n)=>{const r=ee(e);return{emit:e=>ne(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var ne=(e,t,n)=>{const r=h.ce(t,n);e.dispatchEvent(r);return r};var re=(e,t,n,r,o,i,l)=>{if(n===r){return}let f=s(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const o=ie(n);let i=ie(r);{t.remove(...o.filter((e=>e&&!i.includes(e))));t.add(...i.filter((e=>e&&!o.includes(e))))}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!f&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(s(d,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(n||r){const o=t.endsWith(le);t=t.replace(se,"");if(n){h.rel(e,t,n,o)}if(r){h.ael(e,t,r,o)}}}else{const l=S(r);if((f||l&&r!==null)&&true){try{if(!e.tagName.includes("-")){const o=r==null?"":r;if(t==="list"){f=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((!f||i&4||o)&&!l&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var oe=/\s/;var ie=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(oe)};var le="Capture";var se=new RegExp(le+"$");var fe=(e,t,n,r)=>{const o=t.R.nodeType===11&&t.R.host?t.R.host:t.R;const i=e&&e.j||{};const l=t.j||{};{for(const e of ae(Object.keys(i))){if(!(e in l)){re(o,e,i[e],void 0,n,t.o)}}}for(const e of ae(Object.keys(l))){re(o,e,i[e],l[e],n,t.o)}};function ae(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ce;var ue;var ve=false;var de=false;var he=false;var pe=false;var me=(e,n,r)=>{var o;const i=n.k[r];let l=0;let s;let f;let a;if(!ve){he=true;if(i.N==="slot"){i.o|=i.k?2:1}}if(i.$!==null){s=i.R=d.document.createTextNode(i.$)}else if(i.o&1){s=i.R=d.document.createTextNode("");{fe(null,i,pe)}}else{if(!d.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}s=i.R=d.document.createElement(!ve&&t.slotRelocation&&i.o&2?"slot-fb":i.N);{fe(null,i,pe)}if(i.k){for(l=0;l<i.k.length;++l){f=me(e,i,l);if(f){s.appendChild(f)}}}}s["s-hn"]=ue;{if(i.o&(2|1)){s["s-sr"]=true;s["s-cr"]=ce;s["s-sn"]=i.S||"";s["s-rf"]=(o=i.j)==null?void 0:o.ref;_(s);a=e&&e.k&&e.k[r];if(a&&a.N===i.N&&e.R){{ye(e.R,false)}}}}return s};var ye=(e,t)=>{h.o|=1;const n=Array.from(e.__childNodes||e.childNodes);for(let e=n.length-1;e>=0;e--){const r=n[e];if(r["s-hn"]!==ue&&r["s-ol"]){Ne(je(r).parentNode,r,je(r));r["s-ol"].remove();r["s-ol"]=void 0;r["s-sh"]=void 0;he=true}if(t){ye(r,t)}}h.o&=-2};var be=(e,t,n,r,o,i)=>{let l=e["s-cr"]&&e["s-cr"].parentNode||e;let s;for(;o<=i;++o){if(r[o]){s=me(null,n,o);if(s){r[o].R=s;Ne(l,s,je(t))}}}};var we=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.R;Ee(t);if(e){{de=true;if(e["s-ol"]){e["s-ol"].remove()}else{ye(e,true)}}e.remove()}}}};var $e=(e,t,n,r,o=false)=>{let i=0;let l=0;let s=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let h=r[v];let p;let m;while(i<=a&&l<=v){if(c==null){c=t[++i]}else if(u==null){u=t[--a]}else if(d==null){d=r[++l]}else if(h==null){h=r[--v]}else if(ge(c,d,o)){ke(c,d,o);c=t[++i];d=r[++l]}else if(ge(u,h,o)){ke(u,h,o);u=t[--a];h=r[--v]}else if(ge(c,h,o)){if(c.N==="slot"||h.N==="slot"){ye(c.R.parentNode,false)}ke(c,h,o);Ne(e,c.R,u.R.nextSibling);c=t[++i];h=r[--v]}else if(ge(u,d,o)){if(c.N==="slot"||h.N==="slot"){ye(u.R.parentNode,false)}ke(u,d,o);Ne(e,u.R,c.R);u=t[--a];d=r[++l]}else{s=-1;{for(f=i;f<=a;++f){if(t[f]&&t[f].O!==null&&t[f].O===d.O){s=f;break}}}if(s>=0){m=t[s];if(m.N!==d.N){p=me(t&&t[l],n,s)}else{ke(m,d,o);t[s]=void 0;p=m.R}d=r[++l]}else{p=me(t&&t[l],n,l);d=r[++l]}if(p){{Ne(je(c.R).parentNode,p,je(c.R))}}}}if(i>a){be(e,r[v+1]==null?null:r[v+1].R,n,r,l,v)}else if(l>v){we(t,i,a)}};var ge=(e,t,n=false)=>{if(e.N===t.N){if(e.N==="slot"){return e.S===t.S}if(!n){return e.O===t.O}if(n&&!e.O&&t.O){e.O=t.O}return true}return false};var je=e=>e&&e["s-ol"]||e;var ke=(e,n,r=false)=>{const o=n.R=e.R;const i=e.k;const l=n.k;const s=n.$;let f;if(s===null){{fe(e,n,pe)}if(i!==null&&l!==null){$e(o,i,n,l,r)}else if(l!==null){if(e.$!==null){o.textContent=""}be(o,null,n,l,0,l.length-1)}else if(!r&&t.updatable&&i!==null){we(i,0,i.length-1)}else;}else if(f=o["s-cr"]){f.parentNode.textContent=s}else if(e.$!==s){o.data=s}};var Oe=[];var Se=e=>{let t;let n;let r;const o=e.__childNodes||e.childNodes;for(const e of o){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const o=e["s-sn"];for(r=n.length-1;r>=0;r--){t=n[r];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&true){if(W(t,o)){let n=Oe.find((e=>e.C===t));de=true;t["s-sn"]=t["s-sn"]||o;if(n){n.C["s-sh"]=e["s-hn"];n.M=e}else{t["s-sh"]=e["s-hn"];Oe.push({M:e,C:t})}if(t["s-sr"]){Oe.map((e=>{if(W(e.C,t["s-sn"])){n=Oe.find((e=>e.C===t));if(n&&!e.M){e.M=n.M}}}))}}else if(!Oe.some((e=>e.C===t))){Oe.push({C:t})}}}}if(e.nodeType===1){Se(e)}}};var Ee=e=>{{e.j&&e.j.ref&&e.j.ref(null);e.k&&e.k.map(Ee)}};var Ne=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var Re=(e,t,n=false)=>{var r,o,i,l;const s=e.$hostElement$;const f=e.T||V(null,null);const a=G(t);const c=a?t:H(null,null,t);ue=s.tagName;if(n&&c.j){for(const e of Object.keys(c.j)){if(s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){c.j[e]=s[e]}}}c.N=null;c.o|=4;e.T=c;c.R=f.R=s;ve=p;{ce=s["s-cr"];de=false}ke(f,c,n);{h.o|=1;if(he){Se(c.R);for(const e of Oe){const t=e.C;if(!t["s-ol"]&&d.document){const e=d.document.createTextNode("");e["s-nr"]=t;Ne(t.parentNode,t["s-ol"]=e,t)}}for(const e of Oe){const t=e.C;const s=e.M;if(s){const e=s.parentNode;let n=s.nextSibling;{let i=(r=t["s-ol"])==null?void 0:r.previousSibling;while(i){let r=(o=i["s-nr"])!=null?o:null;if(r&&r["s-sn"]===t["s-sn"]&&e===(r.__parentNode||r.parentNode)){r=r.nextSibling;while(r===t||(r==null?void 0:r["s-sr"])){r=r==null?void 0:r.nextSibling}if(!r||!r["s-nr"]){n=r;break}}i=i.previousSibling}}const l=t.__parentNode||t.parentNode;const f=t.__nextSibling||t.nextSibling;if(!n&&e!==l||f!==n){if(t!==n){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}Ne(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(i=t["s-ih"])!=null?i:false}}}t&&typeof s["s-rf"]==="function"&&s["s-rf"](s)}else{if(t.nodeType===1){if(n){t["s-ih"]=(l=t.hidden)!=null?l:false}t.hidden=true}}}}if(de){L(c.R)}h.o&=-2;Oe.length=0}ce=void 0};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 Ce=(e,t)=>{{e.o|=16}if(e.o&4){e.o|=512;return}xe(e,e.L);const n=()=>Me(e,t);if(t){queueMicrotask((()=>{n()}));return}return O(n)};var Me=(e,t)=>{const n=e.$hostElement$;const r=B("scheduleUpdate",e.i.h);const o=e.t;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 i;if(t){i=We(o,"componentWillLoad",void 0,n)}else{i=We(o,"componentWillUpdate",void 0,n)}i=Te(i,(()=>We(o,"componentWillRender",void 0,n)));r();return Te(i,(()=>Le(e,o,t)))};var Te=(e,t)=>Fe(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Fe=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Le=async(e,t,n)=>{var r;const o=e.$hostElement$;const i=B("update",e.i.h);const l=o["s-rc"];const s=B("render",e.i.h);{Pe(e,t,o,n)}if(l){l.map((e=>e()));o["s-rc"]=void 0}s();i();{const t=(r=o["s-p"])!=null?r:[];const n=()=>Ue(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.o|=4;t.length=0}}};var Pe=(e,t,n,r)=>{try{t=t.render();{e.o&=-17}{e.o|=2}{{{Re(e,t,r)}}}}catch(t){f(t,e.$hostElement$)}return null};var Ue=e=>{const t=e.i.h;const n=e.$hostElement$;const r=B("postUpdate",t);const o=e.t;const i=e.L;We(o,"componentDidRender",void 0,n);if(!(e.o&64)){e.o|=64;{Ae(n)}We(o,"componentDidLoad",void 0,n);r();{e.v(n);if(!i){De()}}}else{We(o,"componentDidUpdate",void 0,n);r()}{if(e.F){e.F();e.F=void 0}if(e.o&512){k((()=>Ce(e,false)))}e.o&=-517}};var De=t=>{k((()=>ne(d,"appload",{detail:{namespace:e}})))};var We=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e,r)}}return void 0};var Ae=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var _e=(e,t)=>o(e).l.get(t);var ze=(e,t,n,r)=>{const i=o(e);if(!i){return}if(!i){throw new Error(`Couldn't find host element for "${r.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const l=i.$hostElement$;const s=i.l.get(t);const a=i.o;const c=i.t;n=Z(n,r.P[t][0]);const u=Number.isNaN(s)&&Number.isNaN(n);const v=n!==s&&!u;if((!(a&8)||s===void 0)&&v){i.l.set(t,n);if(c){if(r.U&&a&128){const e=r.U[t];if(e){e.map((e=>{try{c[e](n,s,t)}catch(e){f(e,l)}}))}}if((a&(2|16))===2){if(c.componentShouldUpdate){if(c.componentShouldUpdate(n,s,t)===false){return}}Ce(i,false)}}}};var Be=(e,n,r)=>{var i,l;const s=e.prototype;if(n.P||(n.U||e.watchers)){if(e.watchers&&!n.U){n.U=e.watchers}const f=Object.entries((i=n.P)!=null?i:{});f.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:i,set:l}=Object.getOwnPropertyDescriptor(s,e)||{};if(i)n.P[e][0]|=2048;if(l)n.P[e][0]|=4096;if(r&1||!i){Object.defineProperty(s,e,{get(){{if((n.P[e][0]&2048)===0){return _e(this,e)}const t=o(this);const r=t?t.t:s;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(s,e,{set(i){const s=o(this);if(!s){return}if(l){const r=t&32?this[e]:s.$hostElement$[e];if(typeof r==="undefined"&&s.l.get(e)){i=s.l.get(e)}else if(!s.l.get(e)&&r){s.l.set(e,r)}l.apply(this,[Z(i,t)]);i=t&32?this[e]:s.$hostElement$[e];ze(this,e,i,n);return}{if((r&1)===0||(n.P[e][0]&4096)===0){ze(this,e,i,n);if(r&1&&!s.t){s.u.then((()=>{if(n.P[e][0]&4096&&s.t[e]!==s.l.get(e)){s.t[e]=i}}))}return}const o=()=>{const r=s.t[e];if(!s.l.get(e)&&r){s.l.set(e,r)}s.t[e]=Z(i,t);ze(this,e,s.t[e],n)};if(s.t){o()}else{s.u.then((()=>o()))}}}})}}));if(r&1){const r=new Map;s.attributeChangedCallback=function(e,i,l){h.jmp((()=>{var f;const a=r.get(e);if(this.hasOwnProperty(a)&&t.lazyLoad){l=this[a];delete this[a]}else if(s.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==l){return}else if(a==null){const t=o(this);const r=t==null?void 0:t.o;if(t&&r&&!(r&8)&&r&128&&l!==i){const r=t.t;const o=(f=n.U)==null?void 0:f[e];o==null?void 0:o.forEach((t=>{if(r[t]!=null){r[t].call(r,l,i,e)}}))}return}const c=Object.getOwnPropertyDescriptor(s,a);l=l===null&&typeof this[a]==="boolean"?false:l;if(l!==this[a]&&(!c.get||!!c.set)){this[a]=l}}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=n.U)!=null?l:{}),...f.filter((([e,t])=>t[0]&15)).map((([e,t])=>{const n=t[1]||e;r.set(n,e);return n}))]))}}return e};var Ie=async(e,t,n,r)=>{let o;if((t.o&32)===0){t.o|=32;const r=n.p;if(r){const r=c(n,t);if(r&&"then"in r){const e=I();o=await r;e()}else{o=r}if(!o){throw new Error(`Constructor for "${n.h}#${t.D}" was not found`)}if(!o.isProxied){{n.U=o.watchers}Be(o,n,2);o.isProxied=true}const i=B("createInstance",n.h);{t.o|=8}try{new o(t)}catch(t){f(t,e)}{t.o&=-9}{t.o|=128}i();qe(t.t,e)}else{o=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.o|=128))}}const i=t.L;const l=()=>Ce(t,true);if(i&&i["s-rc"]){i["s-rc"].push(l)}else{l()}};var qe=(e,t)=>{{We(e,"connectedCallback",void 0,t)}};var He=e=>{if((h.o&1)===0){const t=o(e);if(!t){return}const n=t.i;const r=B("connectedCallback",n.h);if(!(t.o&1)){t.o|=1;{if(n.o&(4|8)){Ve(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){xe(t,t.L=n);break}}}if(n.P){Object.entries(n.P).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{Ie(e,t,n)}}else{if(t==null?void 0:t.t){qe(t.t,e)}else if(t==null?void 0:t.u){t.u.then((()=>qe(t.t,e)))}}r()}};var Ve=e=>{if(!d.document){return}const t=e["s-cr"]=d.document.createComment("");t["s-cn"]=true;Ne(e,t,e.firstChild)};var Ye=(e,t)=>{{We(e,"disconnectedCallback",void 0,t||e)}};var Ge=async e=>{if((h.o&1)===0){const t=o(e);if(t==null?void 0:t.t){Ye(t.t,e)}else if(t==null?void 0:t.u){t.u.then((()=>Ye(t.t,e)))}}if(q.has(e)){q.delete(e)}if(e.shadowRoot&&q.has(e.shadowRoot)){q.delete(e.shadowRoot)}};var Je=(e,t={})=>{var n;if(!d.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=B();const i=[];const s=t.exclude||[];const f=d.customElements;const a=d.document.head;const c=a.querySelector("meta[charset]");const p=d.document.createElement("style");const m=[];let y;let b=true;Object.assign(h,t);h.m=new URL(t.resourcesUrl||"./",d.document.baseURI).href;let w=false;e.map((e=>{e[1].map((t=>{var n;const r={o:t[0],h:t[1],P:t[2],W:t[3]};if(r.o&4){w=true}{r.P=t[2]}{r.U=(n=t[4])!=null?n:{}}const a=r.h;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;l(e,r)}connectedCallback(){const e=o(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(y){clearTimeout(y);y=null}if(b){m.push(this)}else{h.jmp((()=>He(this)))}}disconnectedCallback(){h.jmp((()=>Ge(this)));h.raf((()=>{var e;const t=o(this);if(!t){return}const n=m.findIndex((e=>e===this));if(n>-1){m.splice(n,1)}if(((e=t==null?void 0:t.T)==null?void 0:e.R)instanceof Node&&!t.T.R.isConnected){delete t.T.R}}))}componentOnReady(){var e;return(e=o(this))==null?void 0:e.u}};r.p=e[0];if(!s.includes(a)&&!f.get(a)){i.push(a);f.define(a,Be(c,r,1))}}))}));if(i.length>0){if(w){p.textContent+=v}{p.textContent+=i.sort()+u}if(p.innerHTML.length){p.setAttribute("data-styles","");const e=(n=h.A)!=null?n:E(d.document);if(e!=null){p.setAttribute("nonce",e)}a.insertBefore(p,c?c.nextSibling:a.firstChild)}}b=false;if(m.length){m.map((e=>e.connectedCallback()))}else{{h.jmp((()=>y=setTimeout(De,30)))}}r()};var Ke=(e,t)=>t;var Qe=e=>h.A=e;export{Ke as F,Je as b,te as c,H as h,m as p,i as r,Qe as s};
|
|
3
|
+
//# sourceMappingURL=p-uOzX56mL.js.map
|