@lmvz-ds/components 0.25.0 → 0.26.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/CHANGELOG.md +11 -0
- package/cjs/{ds.constants-DSnxZ3ia.js → ds.constants-8fh6ItAF.js} +1 -1
- package/cjs/index.cjs.js +196 -2
- package/cjs/lmvz-button-group.cjs.entry.js +183 -0
- package/cjs/lmvz-button_2.cjs.entry.js +198 -0
- package/cjs/lmvz-card.cjs.entry.js +1 -1
- package/cjs/lmvz-checkbox.cjs.entry.js +1 -1
- package/cjs/lmvz-chip.cjs.entry.js +2 -2
- package/cjs/lmvz-components.cjs.js +1 -1
- package/cjs/lmvz-menuitem.cjs.entry.js +1 -1
- package/cjs/lmvz-modal.cjs.entry.js +1 -1
- package/cjs/lmvz-radio.cjs.entry.js +1 -1
- package/cjs/lmvz-snackbar.cjs.entry.js +83 -0
- package/cjs/lmvz-toggle.cjs.entry.js +2 -2
- package/cjs/loader.cjs.js +1 -1
- package/collection/api/ds.constants.js +4 -1
- package/collection/collection-manifest.json +1 -0
- package/collection/components/lmvz-button/lmvz-button.css +6 -6
- package/collection/components/lmvz-button-group/lmvz-button-group.css +2 -2
- package/collection/components/lmvz-card/lmvz-card.css +9 -9
- package/collection/components/lmvz-checkbox/lmvz-checkbox.css +4 -4
- package/collection/components/lmvz-chip/lmvz-chip.css +2 -2
- package/collection/components/lmvz-icon/lmvz-icon.js +1 -1
- package/collection/components/lmvz-menuitem/lmvz-menuitem.css +1 -1
- package/collection/components/lmvz-modal/lmvz-modal.css +4 -16
- package/collection/components/lmvz-radio/lmvz-radio.css +4 -4
- package/collection/components/lmvz-snackbar/lmvz-snackbar.css +101 -0
- package/collection/components/lmvz-snackbar/lmvz-snackbar.js +266 -0
- package/collection/components/lmvz-snackbar/public.js +1 -0
- package/collection/components/lmvz-snackbar/snackbar-controller.js +194 -0
- package/collection/components/lmvz-toggle/lmvz-toggle.css +2 -2
- package/collection/components/lmvz-toggle/lmvz-toggle.js +1 -1
- package/collection/index.js +1 -0
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.bak +2 -0
- package/components/index.js +1 -1
- package/components/lmvz-action.js +1 -1
- package/components/lmvz-button-group.js +1 -1
- package/components/lmvz-button.js +1 -1
- package/components/lmvz-card.js +1 -1
- package/components/lmvz-checkbox.js +1 -1
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-header.js +1 -1
- package/components/lmvz-icon.js +1 -1
- package/components/lmvz-input.js +1 -1
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-modal.js +1 -1
- package/components/lmvz-radio.js +1 -1
- package/components/lmvz-select.js +1 -1
- package/components/lmvz-snackbar.d.ts +11 -0
- package/components/lmvz-snackbar.d.ts.bak +11 -0
- package/components/lmvz-snackbar.js +1 -0
- package/components/lmvz-toggle.js +1 -1
- package/components/{p-CNmHnJ1D.js → p-BOzeYzKk.js} +1 -1
- package/components/{p-CCcoDnH-.js → p-DYa3zcGE.js} +1 -1
- package/components/{p-DOTK1OW3.js → p-JAKQdFhF.js} +1 -1
- package/components/p-WLZ7VWNX.js +1 -0
- package/components/{p-DYr7Jc0V.js → p-c7OzBK8f.js} +1 -1
- package/components/p-lsUdmjdw.js +1 -0
- package/esm/{ds.constants-Bmi89ll1.js → ds.constants-BOOwq5dE.js} +1 -1
- package/esm/index.js +198 -1
- package/esm/lmvz-button-group.entry.js +181 -0
- package/esm/lmvz-button_2.entry.js +195 -0
- package/esm/lmvz-card.entry.js +1 -1
- package/esm/lmvz-checkbox.entry.js +1 -1
- package/esm/lmvz-chip.entry.js +2 -2
- package/esm/lmvz-components.js +1 -1
- package/esm/lmvz-menuitem.entry.js +1 -1
- package/esm/lmvz-modal.entry.js +1 -1
- package/esm/lmvz-radio.entry.js +1 -1
- package/esm/lmvz-snackbar.entry.js +81 -0
- package/esm/lmvz-toggle.entry.js +2 -2
- package/esm/loader.js +1 -1
- package/hydrate/index.js +106 -10
- package/hydrate/index.mjs +106 -10
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/p-01aeca60.entry.js +1 -1
- package/lmvz-components/p-0a37e0f2.entry.js +1 -0
- package/lmvz-components/p-14c3d837.entry.js +1 -0
- package/lmvz-components/{p-3df070b0.entry.js → p-24e63b0a.entry.js} +1 -1
- package/lmvz-components/p-25f045b2.entry.js +1 -0
- package/lmvz-components/{p-2044a9ac.entry.js → p-3da301a6.entry.js} +1 -1
- package/lmvz-components/{p-e23d0054.entry.js → p-40228d48.entry.js} +1 -1
- package/lmvz-components/{p-0dced359.entry.js → p-4da9073a.entry.js} +1 -1
- package/lmvz-components/p-6de9981f.entry.js +1 -0
- package/lmvz-components/{p-c01a6c70.entry.js → p-8dae99f1.entry.js} +1 -1
- package/lmvz-components/p-BOOwq5dE.js +1 -0
- package/lmvz-components/p-f5cece32.entry.js +1 -0
- package/manifest.json +288 -9
- package/package.json +5 -1
- package/types/api/ds.constants.d.ts +9 -1
- package/types/components/lmvz-snackbar/lmvz-snackbar.d.ts +21 -0
- package/types/components/lmvz-snackbar/public.d.ts +2 -0
- package/types/components/lmvz-snackbar/snackbar-controller.d.ts +32 -0
- package/types/components.d.ts +61 -1
- package/types/index.d.ts +1 -0
- package/cjs/lmvz-button_3.cjs.entry.js +0 -375
- package/components/p-Bb-kEOmU.js +0 -1
- package/components/p-vUYpZZoR.js +0 -1
- package/esm/lmvz-button_3.entry.js +0 -371
- package/lmvz-components/p-3c2adbb4.entry.js +0 -1
- package/lmvz-components/p-90f5a19d.entry.js +0 -1
- package/lmvz-components/p-Bmi89ll1.js +0 -1
- package/lmvz-components/p-acfeae08.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as i,h as e,
|
|
1
|
+
import{p as i,h as e,d as o,t as n}from"./p-c7OzBK8f.js";import{t,e as s,p as c}from"./p-CcxjkCOx.js";import{R as r,A as a}from"./p-BOzeYzKk.js";const l=Symbol.for("LMVZ__iconProviderRegistry"),m={};function v(){return"undefined"==typeof window?m:window[l]??(window[l]={})}function h(i,e){const o=v(),n=i;Object.prototype.hasOwnProperty.call(o,n)&&console.warn(`Icon provider with name "${n}" is already registered. Overwriting existing provider.`),o[n]=e}function d(i){const e=v();if(i)return e[i];const o=Object.keys(e);if(0===o.length)return;o.length>1&&console.warn(`Multiple icon providers registered (${o.join(", ")}). Using the first one: "${o[0]}".`);const n=o[0];return n?e[n]:void 0}function z(i,e){return{iconset:i,icon:e}}const p=i(class extends r{intersectionObserver;ariaValidationController=new a(this);get el(){return this}validationEl;icon;weight="medium";size="md";iconset;iconData;visible=!1;ariaLabel;get ariaHidden(){return!this.ariaLabel}constructor(i){super(!1),!1!==i&&this.__registerHost(),this.addController(this.ariaValidationController)}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()})),super.connectedCallback()}disconnectedCallback(){this.intersectionObserver&&"function"==typeof this.intersectionObserver.disconnect&&this.intersectionObserver.disconnect(),this.intersectionObserver=void 0,super.disconnectedCallback()}async loadIconPathData(){const{icon:i,iconset:e,visible:o}=this;if(!i||!o)return;const n=c(i);this.iconData=n||await async function(i){const{icon:e,iconset:o}=i;return await(async()=>{const i=d(o);if(i)try{const n=await Promise.resolve(i.resolve(e));if(!n?.svg)return void console.warn(`Icon "${e}"${o?` from set "${o}"`:""} not found in provider. Using default icon.`);const s=t(n.svg);if(s)return s}catch(i){return void console.error(`Error resolving icon "${e}" with provider:`,i)}else console.warn(`No icon provider registered. Unable to resolve icon "${e}"${o?` from set "${o}"`:""}. Using default icon.`)})()||(console.error(`Icon "${e}" not found${o?` in set "${o}"`:""}. Using default icon.`),s())}({icon:i,iconset:e})}componentDidRender(){this.validationEl=this.el.querySelector("svg"),this.ariaValidationController.revalidateAria(),super.componentDidRender()}render(){return e(o,{key:"03b4391d02a77409257bcda51c2b65ad9a9e0a0c",role:"img","aria-hidden":`${this.ariaHidden}`,innerHTML:this.iconData})}waitUntilVisible(i,e=50){"undefined"!=typeof window&&window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver((e=>{e.some((e=>!!e.isIntersecting&&(this.intersectionObserver&&"function"==typeof this.intersectionObserver.disconnect&&this.intersectionObserver.disconnect(),this.intersectionObserver=void 0,i(),!0)))}),{rootMargin:`${e}px`}),this.intersectionObserver.observe(this.el)):i()}static get watchers(){return{icon:[{loadIconPathData:0}],iconset:[{loadIconPathData:0}]}}static get style(){return".sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));--lmvz-icon-size:var(--lmvz-component-size, var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)));display:inline-block;line-height:0;svg{display:block;height:var(--lmvz-icon-size);width:auto}svg path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem))}}[size='sm'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))}}[size='md'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem))}}[size='lg'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem))}}[size='inherit'].sc-lmvz-icon-h{svg{height:var(--lmvz-component-size, inherit)}}[weight='light'].sc-lmvz-icon-h{svg path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg path{stroke-width:2;fill:var(--lmvz-icon-color)}}"}},[514,"lmvz-icon",{icon:[513],weight:[513],size:[513],iconset:[513],ariaLabel:[513,"aria-label"],iconData:[32],visible:[32]},void 0,{icon:[{loadIconPathData:0}],iconset:[{loadIconPathData:0}]}]);function u(){"undefined"!=typeof customElements&&["lmvz-icon"].forEach((i=>{"lmvz-icon"===i&&(customElements.get(n(i))||customElements.define(n(i),p))}))}export{p as L,u as d,d as g,h as r,z as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a=(a,e)=>{a.componentOnReady?a.componentOnReady().then((a=>e(a))):i((()=>e(a)))},e=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],r=(a,r)=>{let i=e;return r&&r.length>0&&(i=i.filter((a=>!r.includes(a)))),((a,e=[])=>{const r={};return e.forEach((e=>{a.hasAttribute(e)&&(null!==a.getAttribute(e)&&(r[e]=a.getAttribute(e)),a.removeAttribute(e))})),r})(a,i)},i=a=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(a):"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a);function t(a=document){let e=a.activeElement;if(!e)return null;for(;e?.shadowRoot;){const a=e.shadowRoot.activeElement;if(!a)break;e=a}return e}function n(a){return!!a&&a instanceof HTMLElement&&a.tabIndex>=0&&!a.hasAttribute("disabled")&&"true"!==a.getAttribute("aria-hidden")&&a.checkVisibility()&&null!==a.offsetParent}function o(a,e){if(a instanceof HTMLFormElement)return a;if("string"==typeof a){const e=document.getElementById(a);return e?e instanceof HTMLFormElement?e:(console.warn(`No Form found with selector: "#${a}". Verify that the element with id exists and is actually a <form> element.`,e),null):(console.warn(`No Form found with selector: "#${a}". Verify that the id is correct and the form is rendered in the DOM.`,e),null)}return void 0!==a?(console.warn('The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',e),null):e.closest("form")}export{
|
|
1
|
+
const a=(a,e)=>{a.componentOnReady?a.componentOnReady().then((a=>e(a))):i((()=>e(a)))},e=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],r=(a,r)=>{let i=e;return r&&r.length>0&&(i=i.filter((a=>!r.includes(a)))),((a,e=[])=>{const r={};return e.forEach((e=>{a.hasAttribute(e)&&(null!==a.getAttribute(e)&&(r[e]=a.getAttribute(e)),a.removeAttribute(e))})),r})(a,i)},i=a=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(a):"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a);function t(a=document){let e=a.activeElement;if(!e)return null;for(;e?.shadowRoot;){const a=e.shadowRoot.activeElement;if(!a)break;e=a}return e}function n(a){return!!a&&a instanceof HTMLElement&&a.tabIndex>=0&&!a.hasAttribute("disabled")&&"true"!==a.getAttribute("aria-hidden")&&a.checkVisibility()&&null!==a.offsetParent}function o(a,e){if(a instanceof HTMLFormElement)return a;if("string"==typeof a){const e=document.getElementById(a);return e?e instanceof HTMLFormElement?e:(console.warn(`No Form found with selector: "#${a}". Verify that the element with id exists and is actually a <form> element.`,e),null):(console.warn(`No Form found with selector: "#${a}". Verify that the id is correct and the form is rendered in the DOM.`,e),null)}return void 0!==a?(console.warn('The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',e),null):e.closest("form")}export{a,n as c,o as f,t as g,r as i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,c as o,h as n,d as r,t as e}from"./p-c7OzBK8f.js";import{c as a}from"./p-BfTCfPZ1.js";import{R as l,A as m}from"./p-BOzeYzKk.js";import{E as i}from"./p-CN0JX9-m.js";import{i as s,f as v}from"./p-JAKQdFhF.js";const d=t(class extends l{get el(){return this}validationEl;inheritedAttributes={};formEl=null;formButtonEl=null;lmvzActivation;get ti(){return 0}scale="default";variant;disabled=!1;type="button";form;formMethod;name;value;constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.lmvzActivation=o(this,"lmvzActivation",7),this.addController(new m(this)),this.addController(new i(this,{localHandler:this.handleClick.bind(this),keys:["Enter"]}))}connectedCallback(){this.inheritedAttributes=s(this.el),super.connectedCallback()}disconnectedCallback(){this.formButtonEl?.remove(),this.formButtonEl=null,this.formEl=null,super.disconnectedCallback()}renderHiddenButton(){if("submit"!==this.type)return this.formButtonEl?.remove(),this.formButtonEl=null,void(this.formEl=null);const t=v(this.form,this.el);if(!t)return this.formButtonEl?.remove(),this.formButtonEl=null,void(this.formEl=null);this.formEl=t;const o=this.formButtonEl??document.createElement("button");o.type="submit",o.style.display="none",o.disabled=this.disabled,o.name=this.name??"",o.value=this.value??"",this.formMethod?o.setAttribute("formmethod",this.formMethod):o.removeAttribute("formmethod"),this.formButtonEl!==o&&(this.formButtonEl=o),o.parentElement!==t&&(o.remove(),t.appendChild(o))}submitForm(t){this.formEl&&this.formButtonEl&&(t.preventDefault(),this.formButtonEl.click())}handleClick=t=>{"submit"===this.type&&this.submitForm(t)};render(){return this.renderHiddenButton(),n(r,{key:"8196de85afc3878c6f38e582d7c031f5d19bcd36","aria-disabled":this.disabled?"true":null},n("button",{key:"8d73f979fa227de22a03403a2a3938684911060a",ref:t=>this.validationEl=t,part:"button",disabled:this.disabled,type:this.type,class:a(this.variant??"secondary",{[this.scale??""]:!!this.scale,disabled:this.disabled}),...this.inheritedAttributes},n("slot",{key:"18e91a2f94ba0d7e5cf13150191003e2f0b2a03a"})))}static get delegatesFocus(){return!0}static get style(){return" @layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('RouterBook-Regular'), local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'); font-weight: 400; } @font-face { font-family: Router; src: local('RouterMedium-Regular'), local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'); font-weight: 500; } @font-face { font-family: Router; src: local('RouterBold-Regular'), local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'); font-weight: 700; } } @layer lmvz-ds.reset { body { margin: 0; } h1, h2, h3, h4, h5, h6 { margin: 0; } *[hidden] { display: none !important; } } :host { button { --lmvz-button-color: var(--lmvz-component-color, var(--lmvz-semantic-color-int-on-secondary, #000000)); --lmvz-button-padding-inline: var(--lmvz-button-padding, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))); --lmvz-button-padding-block: var(--lmvz-button-padding, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))); --lmvz-button-gap: var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-min-height: var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem)); --lmvz-button-font: var(--lmvz-typography-body-md-strong, 500 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router); --lmvz-button-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; --lmvz-button-background: var(--lmvz-semantic-color-int-secondary, #f0f0f0); display: inline-flex; align-items: center; justify-content: center; gap: var(--lmvz-button-gap); padding-block: var(--lmvz-button-padding-block); padding-inline: var(--lmvz-button-padding-inline); min-height: var(--lmvz-button-min-height); border-radius: var(--lmvz-button-radius); border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-align: center; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } button > * { font: inherit; color: inherit; } button:focus-visible { outline: var(--lmvz-ds-outline, 1px solid #0e7ab4); outline-offset: var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem)); } button:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } button:not([disabled]):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); } button:not([disabled]):active { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4); } button.primary { --lmvz-button-background: var(--lmvz-semantic-color-int-primary, #000000); --lmvz-button-color: var(--lmvz-semantic-color-int-on-primary, #ffffff); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; } button.primary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-hover, #2e2e2e); } button.primary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-active, #545454); } button.secondary { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; } button.secondary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary-hover, #000000); } button.secondary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary-active, #000000); } button.tertiary { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary, #000000); } button.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary-hover, #000000); } button.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary-active, #000000); } button.small { --lmvz-button-padding-inline: var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem)); --lmvz-button-padding-block: var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem)); --lmvz-button-gap: var(--lmvz-component-input-gap-sm, clamp(0.38rem, 0.31rem + 0.26vw, 0.63rem)); --lmvz-button-min-height: var(--lmvz-component-input-size-sm, clamp(2rem, 1.94rem + 0.26vw, 2.25rem)); --lmvz-button-font: var(--lmvz-typography-body-sm-strong, 500 clamp(0.69rem, 0.67rem + 0.06vw, 0.75rem) / 1.5 Router); } button.large { --lmvz-button-padding-inline: var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)); --lmvz-button-padding-block: var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)); --lmvz-button-gap: var(--lmvz-component-input-gap-lg, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); --lmvz-button-min-height: var(--lmvz-component-input-size-lg, clamp(2.75rem, 2.69rem + 0.26vw, 3rem)); --lmvz-button-font: var(--lmvz-typography-body-lg-strong, 500 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5 Router); } display: inline-block; } ::slotted(*) { --lmvz-component-color: var(--lmvz-button-color); } "}},[785,"lmvz-button",{ti:[2562,"tabindex"],scale:[513],variant:[513],disabled:[516],type:[1],form:[1],formMethod:[1,"form-method"],name:[1],value:[1]}]);function c(){"undefined"!=typeof customElements&&["lmvz-button"].forEach((t=>{"lmvz-button"===t&&(customElements.get(e(t))||customElements.define(e(t),d))}))}export{d as L,c as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t={isDev:!1},n=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(n||{}),e=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(e||{}),o="type",l="value",s="serialized:";function r(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var i,c=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=r(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(e)?t[e]=n.l.get(e):void 0!==o&&(t[e]=o)}}))},f=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},u=(t,n)=>n in t,a=(t,n)=>(0,console.error)(t,n),d=new Map,$="s-id",p="sty-id",h="c-id",v="http://www.w3.org/1999/xlink",y=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],b="undefined"!=typeof window?window:{},m=b.HTMLElement||class{},g={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},w=(()=>{var t;let n=!1;try{null==(t=b.document)||t.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch(t){}return n})(),j=(()=>{try{return!!b.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),O=!!j&&(()=>!!b.document&&Object.getOwnPropertyDescriptor(b.document.adoptedStyleSheets,"length").writable)(),S=!1,k=[],N=[],x=(t,n)=>e=>{t.push(e),S||(S=!0,n&&4&g.i?E(C):g.raf(C))},M=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){a(t)}t.length=0},C=()=>{M(k),M(N),(S=k.length>0)&&g.raf(C)},E=t=>Promise.resolve(undefined).then(t),A=x(N,!0),I=t=>{const n=new URL(t,g.u);return n.origin!==b.location.origin?n.href:n.pathname},L=t=>g.u=t;function R(t){const n={mode:"open"};n.delegatesFocus=!!(16&t.i);const e=this.attachShadow(n);void 0===i&&(i=null),i&&(O?e.adoptedStyleSheets.push(i):e.adoptedStyleSheets=[...e.adoptedStyleSheets,i])}var _=t=>{const n=V(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&D(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!T(t,U(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&V(t,"childNodes").length&&_(t)}};function D(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||U(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...D(o.childNodes,n,e)]}return s}var T=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)U(l)!==n||!e&&l["s-sr"]||o.push(l);return o},B=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,F=(t,n,e,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,r=V(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=V(s,"childNodes"),n=[l];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>r.call(s,t)))}else r.call(s,l);t["s-ol"]=l,t["s-sh"]=n["s-hn"]},U=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function H(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.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 l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===U(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}function V(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var P=new WeakMap,W=(t,n,e)=>{let o=d.get(t);j&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,d.set(t,o)},z=(t,n)=>{var e,o,l;const s=q(n),r=d.get(s);if(!b.document)return s;if(t=11===t.nodeType?t:b.document,r)if("string"==typeof r){let l,i=P.get(t=t.head||t);i||P.set(t,i=new Set);const c=t.querySelector(`[${p}="${s}"]`);if(c)c.textContent=r;else if(!i.has(s)){l=b.document.createElement("style"),l.textContent=r;const c=null!=(e=g.$)?e:function(){var t,n,e;return null!=(e=null==(n=null==(t=b.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();if(null!=c&&l.setAttribute("nonce",c),!(1&n.i))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(j){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(r),O?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=r+n.textContent:t.prepend(l)}else t.append(l);1&n.i&&t.insertBefore(l,null),4&n.i&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(s)}}else{let n=P.get(t);if(n||P.set(t,n=new Set),!n.has(s)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(r.constructor===e.CSSStyleSheet)o=r;else{o=new e.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)o.insertRule(r.cssRules[t].cssText,t)}if(O?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(s),"host"in t){const n=t.querySelector(`[${p}="${s}"]`);n&&A((()=>n.remove()))}}}return s},q=t=>"sc-"+t.p,Y=t=>"object"==(t=typeof t)||"function"===t,J=(t,n,...e)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],f=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!Y(o))&&(o=String(o)),r&&i?c[c.length-1].h+=o:c.push(r?Z(null,o):o),i=r)};if(f(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const u=Z(t,null);return u.v=n,c.length>0&&(u.m=c),u.j=l,u.O=s,u},Z=(t,n)=>({i:0,S:t,h:null!=n?n:null,k:null,m:null,v:null,j:null,O:null}),G={},K=(t,n,e,o,l,s,r,i=[])=>{let c,f,u,a;const d=l["s-sc"];if(1===s.nodeType){if(c=s.getAttribute(h),c&&(f=c.split("."),f[0]===r||"0"===f[0])){u=X({i:0,N:f[0],M:f[1],C:f[2],A:f[3],S:s.tagName.toLowerCase(),k:s,v:{class:s.className||""}}),n.push(u),s.removeAttribute(h),t.m||(t.m=[]),d&&f[0]===r&&(s["s-si"]=d,u.v.class+=" "+d);const l=u.k.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===u.S&&(tt(l,f[2],u,s,t,n,e,o,i),d&&s.classList.add(d)),u.k["s-sn"]=l,u.k.removeAttribute("s-sn")),void 0!==u.A&&(t.m[u.A]=u),t=u,o&&"0"===u.C&&(o[u.A]=u.k)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)K(t,n,e,o,l,s.shadowRoot.childNodes[a],r,i);const $=s.__childNodes||s.childNodes;for(a=$.length-1;a>=0;a--)K(t,n,e,o,l,$[a],r,i)}else if(8===s.nodeType)f=s.nodeValue.split("."),(f[1]===r||"0"===f[1])&&(c=f[0],u=X({N:f[1],M:f[2],C:f[3],A:f[4]||"0",k:s,v:null,m:null,j:null,O:null,S:null,h:null}),"t"===c?(u.k=et(s,3),u.k&&3===u.k.nodeType&&(u.h=u.k.textContent,n.push(u),s.remove(),r===u.N&&(t.m||(t.m=[]),t.m[u.A]=u),o&&"0"===u.C&&(o[u.A]=u.k))):"c"===c?(u.k=et(s,8),u.k&&8===u.k.nodeType&&(n.push(u),s.remove())):u.N===r&&("s"===c?tt(s["s-sn"]=f[5]||"",f[2],u,s,t,n,e,o,i):"r"===c&&(o?s.remove():(l["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.S){const n=Z(null,s.textContent);n.k=s,n.A="0",t.m=[n]}return t},Q=(t,n)=>{if(1===t.nodeType){const e=t[$]||t.getAttribute($);e&&n.set(e,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)Q(t.shadowRoot.childNodes[o],n);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)Q(l[o],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},X=t=>({i:0,N:null,M:null,C:null,A:"0",k:null,v:null,m:null,j:null,O:null,S:null,h:null,...t});function tt(t,n,e,o,l,s,r,i,c){o["s-sr"]=!0,e.O=t||null,e.S="slot";const f=(null==l?void 0:l.k)?l.k["s-id"]||l.k.getAttribute("s-id"):"";if(i&&b.document){const s=e.k=b.document.createElement(e.S);e.O&&e.k.setAttribute("name",t),l.k.shadowRoot&&f&&f!==e.N?V(l.k,"insertBefore")(s,V(l.k,"children")[0]):V(V(o,"parentNode"),"insertBefore")(s,o),nt(c,n,t,o,e.N),o.remove(),"0"===e.C&&(i[e.A]=e.k)}else{const s=e.k,r=f&&f!==e.N&&l.k.shadowRoot;nt(c,n,t,o,r?f:e.N),H(o),r&&l.k.insertBefore(s,l.k.children[0])}s.push(e),r.push(e),l.m||(l.m=[]),l.m[e.A]=e}var nt=(t,n,e,o,l)=>{var s,r;let i=o.nextSibling;if(t[n]=t[n]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==e&&(""!==e||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=e,t[n].push({slot:o,node:i,hostId:l})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},et=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},ot=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},lt=class t{static fromLocalValue(n){const e=n[o],s=l in n?n[l]:void 0;switch(e){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((n=>t.fromLocalValue(n)));case"date":return new Date(s);case"map":const n=new Map;for(const[e,o]of s){const l="object"==typeof e&&null!==e?t.fromLocalValue(e):e,s=t.fromLocalValue(o);n.set(l,s)}return n;case"object":const o={};for(const[n,e]of s)o[n]=t.fromLocalValue(e);return o;case"regexp":const{pattern:l,flags:r}=s;return new RegExp(l,r);case"set":const i=new Set;for(const n of s)i.add(t.fromLocalValue(n));return i;case"symbol":return Symbol(s);default:throw new Error(`Unsupported type: ${e}`)}}static fromLocalValueArray(n){return n.map((n=>t.fromLocalValue(n)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(o))return!1;const s=t[o];return!!Object.values({...n,...e}).includes(s)&&("null"===s||"undefined"===s||t.hasOwnProperty(l))}};var st,rt,it,ct=(t,n,e)=>{return"string"==typeof t&&t.startsWith(s)?t="string"==typeof(o=t)&&o.startsWith(s)?lt.fromLocalValue(JSON.parse(function(t){const n=atob(t),e=new Uint8Array(n.length);for(let t=0;t<n.length;t++)e[t]=n.charCodeAt(t);return(new TextDecoder).decode(e)}(o.slice(11)))):o:null==t||Y(t)?t:4&n?(e&&"string"==typeof t||"false"!==t)&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?String(t):t;var o},ft=(t,n,e)=>{const o=t;return{emit:t=>ut(o,n,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:t})}},ut=(t,n,e)=>{const o=g.ce(n,e);return t.dispatchEvent(o),o},at=(t,n,e,o,l,s,r)=>{if(e===o)return;let i=u(t,n),c=n.toLowerCase();if("class"===n){const n=t.classList,l=$t(e);let s=$t(o);if((t["s-si"]||t["s-sc"])&&r){const e=t["s-sc"]||t["s-si"];s.push(e),l.forEach((t=>{t.startsWith(e)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),n.add(...s)}else n.remove(...l.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&_t(o,t);else if(t.__lookupSetter__(n)||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let l;{const n=f(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(l=t[1])}}return l||(l=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const r=Y(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?i=!1:null!=e&&t[n]===l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(n)||(f?t.removeAttributeNS(v,n):t.removeAttribute(n)):(!i||4&s||l)&&!r&&1===t.nodeType&&(o=!0===o?"":o,f?t.setAttributeNS(v,n,o):t.setAttribute(n,o))}}else if(n="-"===n[2]?n.slice(3):u(b,c)?c.slice(2):c[2]+n.slice(3),e||o){const l=n.endsWith(pt);n=n.replace(ht,""),e&&g.rel(t,n,e,l),o&&g.ael(t,n,o,l)}},dt=/\s/,$t=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(dt):[]),pt="Capture",ht=new RegExp(pt+"$"),vt=(t,n,e,o)=>{const l=11===n.k.nodeType&&n.k.host?n.k.host:n.k,s=t&&t.v||{},r=n.v||{};for(const t of yt(Object.keys(s)))t in r||at(l,t,s[t],void 0,e,n.i,o);for(const t of yt(Object.keys(r)))at(l,t,s[t],r[t],e,n.i,o)};function yt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var bt=!1,mt=!1,gt=!1,wt=!1,jt=[],Ot=[],St=(t,n,e)=>{var o;const l=n.m[e];let s,r,i,c=0;if(bt||(gt=!0,"slot"===l.S&&(l.i|=l.m?2:1)),null!=l.h)s=l.k=b.document.createTextNode(l.h);else if(1&l.i)s=l.k=b.document.createTextNode(""),vt(null,l,wt);else{if(!b.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.k=b.document.createElement(!bt&&2&l.i?"slot-fb":l.S),vt(null,l,wt),null!=(f=st)&&void 0!==f&&s["s-si"]!==st&&s.classList.add(s["s-si"]=st),l.m){const n="template"===l.S?s.content:s;for(c=0;c<l.m.length;++c)r=St(t,l,c),r&&n.appendChild(r)}}var f;return s["s-hn"]=it,3&l.i&&(s["s-sr"]=!0,s["s-cr"]=rt,s["s-sn"]=l.O||"",s["s-rf"]=null==(o=l.v)?void 0:o.ref,H(s),i=t&&t.m&&t.m[e],i&&i.S===l.S&&t.k&&kt(t.k),Tt(rt,s,n.k,null==t?void 0:t.k)),s},kt=t=>{g.i|=1;const n=t.closest(it.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(Dt(n,t,null!=e?e:null),t["s-sh"]=void 0,gt=!0)}g.i&=-2},Nt=(t,n)=>{g.i|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===it&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==it&&o["s-ol"]&&(Dt(Et(o).parentNode,o,Et(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,gt=!0),n&&Nt(o,n)}g.i&=-2},xt=(t,n,e,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===it&&(i=i.shadowRoot),"template"===e.S&&(i=i.content);l<=s;++l)o[l]&&(r=St(null,e,l),r&&(o[l].k=r,Dt(i,r,Et(n))))},Mt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;Rt(n),t&&(mt=!0,t["s-ol"]?t["s-ol"].remove():Nt(t,!0),t.remove())}}},Ct=(t,n,e=!1)=>t.S===n.S&&("slot"===t.S?t.O===n.O:e?(e&&!t.j&&n.j&&(t.j=n.j),!0):t.j===n.j),Et=t=>t&&t["s-ol"]||t,At=(t,n,e=!1)=>{const o=n.k=t.k,l=t.m,s=n.m,r=n.h;let i;null==r?("slot"!==n.S||bt||t.O!==n.O&&(n.k["s-sn"]=n.O||"",kt(n.k.parentElement)),vt(t,n,wt,e),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,r,i=0,c=0,f=0,u=0,a=n.length-1,d=n[0],$=n[a],p=o.length-1,h=o[0],v=o[p];const y="template"===e.S?t.content:t;for(;i<=a&&c<=p;)if(null==d)d=n[++i];else if(null==$)$=n[--a];else if(null==h)h=o[++c];else if(null==v)v=o[--p];else if(Ct(d,h,l))At(d,h,l),d=n[++i],h=o[++c];else if(Ct($,v,l))At($,v,l),$=n[--a],v=o[--p];else if(Ct(d,v,l))"slot"!==d.S&&"slot"!==v.S||Nt(d.k.parentNode,!1),At(d,v,l),Dt(y,d.k,$.k.nextSibling),d=n[++i],v=o[--p];else if(Ct($,h,l))"slot"!==d.S&&"slot"!==v.S||Nt($.k.parentNode,!1),At($,h,l),Dt(y,$.k,d.k),$=n[--a],h=o[++c];else{for(f=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].j&&n[u].j===h.j){f=u;break}f>=0?(r=n[f],r.S!==h.S?s=St(n&&n[c],e,f):(At(r,h,l),n[f]=void 0,s=r.k),h=o[++c]):(s=St(n&&n[c],e,c),h=o[++c]),s&&Dt(Et(d.k).parentNode,s,Et(d.k))}i>a?xt(t,null==o[p+1]?null:o[p+1].k,e,o,c,p):c>p&&Mt(n,i,a)})(o,l,n,s,e):null!==s?(null!==t.h&&(o.textContent=""),xt(o,null,n,s,0,s.length-1)):e||null===l?e&&null!==l&&null===s&&(n.m=l):Mt(l,0,l.length-1)):(i=o["s-cr"])?i.parentNode.textContent=r:t.h!==r&&(o.data=r)},It=[],Lt=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(B(n,l)){let e=It.find((t=>t.I===n));mt=!0,n["s-sn"]=n["s-sn"]||l,e?(e.I["s-sh"]=t["s-hn"],e.L=t):(n["s-sh"]=t["s-hn"],It.push({L:t,I:n})),n["s-sr"]&&It.map((t=>{B(t.I,n["s-sn"])&&(e=It.find((t=>t.I===n)),e&&!t.L&&(t.L=e.L))}))}else It.some((t=>t.I===n))||It.push({I:n})}1===t.nodeType&&Lt(t)}},Rt=t=>{t.v&&t.v.ref&&jt.push((()=>t.v.ref(null))),t.m&&t.m.map(Rt)},_t=(t,n)=>{Ot.push((()=>t(n)))},Dt=(t,n,e,o)=>{if("string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])Tt(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=U(t)||"";return{slotNode:D(V(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&l.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)};function Tt(t,n,e,o){var l,s;let r;if(t&&"string"==typeof n["s-sn"]&&n["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(r=n["s-si"]||t.parentNode["s-sc"])){const t=n["s-sn"],i=n["s-hn"];if(null==(l=e.classList)||l.add(r+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(r+"-s"))){let n=(o.__childNodes||o.childNodes)[0],e=!1;for(;n;){if(n["s-sn"]!==t&&n["s-hn"]===i&&n["s-sr"]){e=!0;break}n=n.nextSibling}e||o.classList.remove(r+"-s")}}}var Bt=(t,n,e=!1)=>{var o,l,s,r,i;const c=t.$hostElement$,f=t.o,u=t.R||Z(null,null);var a;const d=(a=n)&&a.S===G?n:J(null,null,n);if(it=c.tagName,f._&&(d.v=d.v||{},f._.forEach((([t,n])=>{d.v[n]=c[t]}))),e&&d.v)for(const t of Object.keys(d.v))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.v[t]=c[t]);if(d.S=null,d.i|=4,t.R=d,d.k=u.k=c.shadowRoot||c,st=c["s-sc"],bt=!(!(1&f.i)||128&f.i),rt=c["s-cr"],mt=!1,At(u,d,e),g.i|=1,gt){Lt(d.k);for(const t of It){const n=t.I;if(!n["s-ol"]&&b.document){const t=b.document.createTextNode("");t["s-nr"]=n,Dt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of It){const n=t.I,i=t.L;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),i){const t=i.parentNode;let o=i.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(Dt(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=b.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,Dt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(r=n["s-ih"])&&r)}n&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===n.nodeType&&(n.hidden=!0)}}if(mt&&_(d.k),g.i&=-2,It.length=0,!bt&&!(1&f.i)&&c["s-cr"]){const t=d.k.__childNodes||d.k.childNodes;for(const n of t)if(n["s-hn"]!==it&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(i=n.hidden)&&i),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=b.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],Dt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}rt=void 0,jt.forEach((t=>t())),jt.length=0,Ot.forEach((t=>t())),Ot.length=0},Ft=(t,n)=>{if(n&&!t.D&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.D=()=>{n["s-p"].splice(e-1,1),o()})))}},Ut=(t,n)=>{if(t.i|=16,4&t.i)return void(t.i|=512);Ft(t,t.T);const e=()=>Ht(t,n);if(!n)return A(e);queueMicrotask((()=>{e()}))},Ht=(t,n)=>{const e=t.$hostElement$,o=e;if(!o)throw new Error(`Can't render component <${e.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;return l=Jt(o,n?"componentWillLoad":"componentWillUpdate",void 0,e),l=Vt(l,(()=>Jt(o,"componentWillRender",void 0,e))),Vt(l,(()=>Wt(t,o,n)))},Vt=(t,n)=>Pt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Pt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Wt=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.i,l=z(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);zt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>qt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.i|=4,n.length=0)}},zt=(t,n,e,o)=>{try{n=n.render(),t.i&=-17,t.i|=2,Bt(t,n,o)}catch(n){a(n,t.$hostElement$)}return null},qt=t=>{const n=t.$hostElement$,e=n,o=t.T;Jt(e,"componentDidRender",void 0,n),64&t.i?Jt(e,"componentDidUpdate",void 0,n):(t.i|=64,Zt(n),Jt(e,"componentDidLoad",void 0,n),t.B(n),o||Yt()),t.D&&(t.D(),t.D=void 0),512&t.i&&E((()=>Ut(t,!1))),t.i&=-517},Yt=()=>{var t;E((()=>ut(b,"appload",{detail:{namespace:"lmvz-components"}}))),(null==(t=g.F)?void 0:t.size)&&g.F.clear()},Jt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){a(t,o)}},Zt=t=>t.classList.add("hydrated"),Gt=(t,n,e,o)=>{const l=f(t);if(!l)return;const s=t,r=l.l.get(n),i=l.i,c=s;e=ct(e,o.t[n][0],!!(64&o.i));const u=Number.isNaN(r)&&Number.isNaN(e);if(e!==r&&!u){if(l.l.set(n,e),o.U){const t=o.U[n];t&&t.map((t=>{try{const[[o,s]]=Object.entries(t);(128&i||1&s)&&(c?c[o](e,r,n):l.H.push((()=>{l.V[o](e,r,n)})))}catch(t){a(t,s)}}))}if(2&i){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(e,r,n)&&!(16&i))return;16&i||Ut(l,!1)}}},Kt=(t,n,e)=>{var o,l;const s=t.prototype;64&n.i&&1&e&&y.forEach((t=>{const n=s[t];Object.defineProperty(s,t,{value(...e){var o;const l=f(this),s=this;s?"function"==typeof n&&n.call(s,...e):null==(o=null==l?void 0:l.P)||o.then((n=>{const o=n[t];"function"==typeof o&&o.call(n,...e)}))}})}));{t.watchers&&!n.U&&(n.U=ot(t.watchers)),t.deserializers&&!n.W&&(n.W=t.deserializers),t.serializers&&!n.q&&(n.q=t.serializers);const e=Object.entries(null!=(o=n.t)?o:{});e.map((([t,[e]])=>{if(31&e||32&e){const{get:o,set:l}=r(s,t)||{};o&&(n.t[t][0]|=2048),l&&(n.t[t][0]|=4096),Object.defineProperty(s,t,{get(){return o?o.apply(this):(n=t,f(this).l.get(n));var n},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(o){const s=f(this);if(s){if(l)return void 0===(32&e?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(o=s.l.get(t)),l.apply(this,[ct(o,e,!!(64&n.i))]),void Gt(this,t,o=32&e?this[t]:s.$hostElement$[t],n);Gt(this,t,o,n)}}})}}));{const o=new Map;s.attributeChangedCallback=function(t,l,r){g.jmp((()=>{var i;const c=o.get(t),u=f(this);if(this.hasOwnProperty(c),s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const e=null==u?void 0:u.i;if(u&&e&&!(8&e)&&r!==l){const o=this,s=null==(i=n.U)?void 0:i[t];null==s||s.forEach((n=>{const[[s,i]]=Object.entries(n);null!=o[s]&&(128&e||1&i)&&o[s].call(o,r,l,t)}))}return}const a=e.find((([t])=>t===c)),d=a&&4&a[1][0],$=d&&null===r&&void 0===this[c];d&&(r=null!==r&&"false"!==r);const p=Object.getOwnPropertyDescriptor(s,c);$||r==this[c]||p.get&&!p.set||(this[c]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.U)?l:{}),...e.filter((([t,n])=>31&n[0])).map((([t,e])=>{var l;const s=e[1]||t;return o.set(s,t),512&e[0]&&(null==(l=n._)||l.push([t,s])),s}))]))}}return t},Qt=t=>{if(!b.document)return;const n=t["s-cr"]=b.document.createComment("");n["s-cn"]=!0,Dt(t,n,t.firstChild)},Xt=(t,n)=>{const e={i:n[0],p:n[1]};try{e.t=n[2],e.Y=n[3],e.U=ot(t.U),e.W=t.W,e.q=t.q,e._=[],(()=>{if(!b.document)return;const t=b.document.querySelectorAll(`[${p}]`);let n=0;for(;n<t.length;n++)W(t[n].getAttribute(p),t[n].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0)})();const o=t.prototype.connectedCallback,l=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,n)=>{const e={i:0,$hostElement$:t,o:n,l:new Map,J:new Map};e.P=new Promise((t=>e.B=t)),t["s-p"]=[],t["s-rc"]=[];const o=e;t.__stencil__getHostRef=()=>o,512&n.i&&c(t,e)})(this,e)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=f(this);if(!t)return;tn(this,t,e.Y),this.__hasHostListenerAttached=!0}(t=>{if(!(1&g.i)){const n=f(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.i)tn(t,n,e.Y),(null==n?void 0:n.V)||(null==n?void 0:n.P)&&n.P.then((()=>{}));else{let o;if(n.i|=1,o=t.getAttribute($),o){if(1&e.i){const n=z(t.shadowRoot,e);t.classList.remove(n+"-h",n+"-s")}else if(2&e.i){const n=q(e);t["s-sc"]=n}((t,n,e,o)=>{var l,s,r,i;const c=t.shadowRoot,u=[],a=[],d=[],p=c?[]:null,h=Z(n,null);let v;h.k=t;{const n=o.o;n&&10&n.i&&t["s-sc"]?(v=t["s-sc"],t.classList.add(v+"-h")):t["s-sc"]&&delete t["s-sc"]}!b.document||g.F&&g.F.size||Q(b.document.body,g.F=new Map),t[$]=e,t.removeAttribute($),o.R=K(h,u,a,p,t,t,e,d);let y=0;const m=u.length;let w;for(;y<m;y++){w=u[y];const e=w.N+"."+w.M,o=g.F.get(e),s=w.k;if(c){if((null==(l=w.S)?void 0:l.toString().includes("-"))&&"slot-fb"!==w.S&&!w.k.shadowRoot){const t=f(w.k);if(t){const n=q(t.o),e=b.document.querySelector(`style[sty-id="${n}"]`);e&&p.unshift(e.cloneNode(!0))}}}else s["s-hn"]=n.toUpperCase(),"slot"===w.S&&(s["s-cr"]=t["s-cr"]);"slot"===w.S&&(w.O=w.k["s-sn"]||w.k.name||null,w.m?(w.i|=2,w.k.childNodes.length||w.m.forEach((t=>{w.k.appendChild(t.k)}))):w.i|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),c||(s["s-oo"]=parseInt(w.M))),o&&!o["s-id"]&&g.F.delete(e)}const j=[],O=d.length;let S,k,N,x,M=0,C=0;for(;M<O;M++)if(S=d[M],S&&S.length)for(N=S.length,k=0;k<N;k++){if(x=S[k],j[x.hostId]||(j[x.hostId]=g.F.get(x.hostId)),!j[x.hostId])continue;const t=j[x.hostId];t.shadowRoot&&x.node.parentElement!==t&&t.insertBefore(x.node,null==(r=null==(s=S[k-1])?void 0:s.node)?void 0:r.nextSibling),t.shadowRoot&&c||(x.slot["s-cr"]||(x.slot["s-cr"]=t["s-cr"],x.slot["s-cr"]=!x.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),F(x.node,x.slot,0,x.node["s-oo"]||C),(null==(i=x.node.parentElement)?void 0:i.shadowRoot)&&x.node.getAttribute&&x.node.getAttribute("slot")&&x.node.removeAttribute("slot")),C=(x.node["s-oo"]||C)+1}if(v&&a.length&&a.forEach((t=>{t.k.parentElement.classList.add(v+"-s")})),c&&!c.childNodes.length){let n=0;const e=p.length;if(e){for(;n<e;n++){const t=p[n];t&&c.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,e.p,o,n)}o||12&e.i&&Qt(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){Ft(n,n.T=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;try{if(!(32&n.i)&&(n.i|=32,o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.i|=128)),o&&o.style)){let t;"string"==typeof o.style&&(t=o.style);const n=q(e);if(!d.has(n)){const o=()=>{};W(n,t,!!(1&e.i)),o()}}const l=n.T,s=()=>Ut(n,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()}catch(e){a(e,t),n.D&&(n.D(),n.D=void 0),n.B&&n.B(t)}})(t,n,e)}o()}})(this),o&&o.call(this)},disconnectedCallback(){(async t=>{if(!(1&g.i)){const n=f(t);(null==n?void 0:n.Z)&&(n.Z.map((t=>t())),n.Z=void 0)}P.has(t)&&P.delete(t),t.shadowRoot&&P.has(t.shadowRoot)&&P.delete(t.shadowRoot)})(this),l&&l.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${e.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else R.call(this,e)}}),Object.defineProperty(t,"is",{value:e.p,configurable:!0}),Kt(t,e,3)}catch(n){return a(n),t}},tn=(t,n,e)=>{e&&b.document&&e.map((([e,o,l])=>{const s=t,r=nn(n,l),i=en(e);g.ael(s,o,r,i),(n.Z=n.Z||[]).push((()=>g.rel(s,o,r,i)))}))},nn=(t,n)=>e=>{try{t.$hostElement$[n](e)}catch(n){a(n,t.$hostElement$)}},en=t=>w?{passive:!!(1&t),capture:!!(2&t)}:!!(2&t),on=t=>g.$=t,ln=t=>Object.assign(g,t),sn=new WeakMap;function rn(t,n){let e=sn.get(n);e||(e={i:0,o:{i:0,p:n.tagName},$hostElement$:n},sn.set(n,e)),Bt(e,t)}function cn(t){return t}export{t as B,G as H,on as a,ln as b,ft as c,m as d,I as g,J as h,Xt as p,rn as r,L as s,cn as t}
|
|
1
|
+
var t={isDev:!1},n=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(n||{}),e=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(e||{}),o="type",l="value",s="serialized:";function r(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var i,c=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=r(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(e)?t[e]=n.l.get(e):void 0!==o&&(t[e]=o)}}))},f=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},u=(t,n)=>n in t,a=(t,n)=>(0,console.error)(t,n),d=new Map,$="s-id",p="sty-id",h="c-id",v="http://www.w3.org/1999/xlink",y=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],b="undefined"!=typeof window?window:{},m=b.HTMLElement||class{},g={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},w=(()=>{var t;let n=!1;try{null==(t=b.document)||t.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch(t){}return n})(),j=(()=>{try{return!!b.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),O=!!j&&(()=>!!b.document&&Object.getOwnPropertyDescriptor(b.document.adoptedStyleSheets,"length").writable)(),S=!1,k=[],N=[],x=(t,n)=>e=>{t.push(e),S||(S=!0,n&&4&g.i?E(C):g.raf(C))},M=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){a(t)}t.length=0},C=()=>{M(k),M(N),(S=k.length>0)&&g.raf(C)},E=t=>Promise.resolve(undefined).then(t),A=x(N,!0),I=t=>{const n=new URL(t,g.u);return n.origin!==b.location.origin?n.href:n.pathname},L=t=>g.u=t;function R(t){const n={mode:"open"};n.delegatesFocus=!!(16&t.i);const e=this.attachShadow(n);void 0===i&&(i=null),i&&(O?e.adoptedStyleSheets.push(i):e.adoptedStyleSheets=[...e.adoptedStyleSheets,i])}var _=t=>{const n=H(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&D(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!T(t,U(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&H(t,"childNodes").length&&_(t)}};function D(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||U(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...D(o.childNodes,n,e)]}return s}var T=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)U(l)!==n||!e&&l["s-sr"]||o.push(l);return o},B=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,F=(t,n,e,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,r=H(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=H(s,"childNodes"),n=[l];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>r.call(s,t)))}else r.call(s,l);t["s-ol"]=l,t["s-sh"]=n["s-hn"]},U=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function V(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.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 l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===U(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}function H(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var P=new WeakMap,W=(t,n,e)=>{let o=d.get(t);j&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,d.set(t,o)},z=(t,n)=>{var e,o,l;const s=q(n),r=d.get(s);if(!b.document)return s;if(t=11===t.nodeType?t:b.document,r)if("string"==typeof r){let l,i=P.get(t=t.head||t);i||P.set(t,i=new Set);const c=t.querySelector(`[${p}="${s}"]`);if(c)c.textContent=r;else if(!i.has(s)){l=b.document.createElement("style"),l.textContent=r;const c=null!=(e=g.$)?e:function(){var t,n,e;return null!=(e=null==(n=null==(t=b.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();if(null!=c&&l.setAttribute("nonce",c),!(1&n.i))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(j){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(r),O?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=r+n.textContent:t.prepend(l)}else t.append(l);1&n.i&&t.insertBefore(l,null),4&n.i&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(s)}}else{let n=P.get(t);if(n||P.set(t,n=new Set),!n.has(s)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(r.constructor===e.CSSStyleSheet)o=r;else{o=new e.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)o.insertRule(r.cssRules[t].cssText,t)}if(O?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(s),"host"in t){const n=t.querySelector(`[${p}="${s}"]`);n&&A((()=>n.remove()))}}}return s},q=t=>"sc-"+t.p,Y=t=>"object"==(t=typeof t)||"function"===t,J=(t,n,...e)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],f=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!Y(o))&&(o=String(o)),r&&i?c[c.length-1].h+=o:c.push(r?Z(null,o):o),i=r)};if(f(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const u=Z(t,null);return u.v=n,c.length>0&&(u.m=c),u.j=l,u.O=s,u},Z=(t,n)=>({i:0,S:t,h:null!=n?n:null,k:null,m:null,v:null,j:null,O:null}),G={},K=(t,n,e,o,l,s,r,i=[])=>{let c,f,u,a;const d=l["s-sc"];if(1===s.nodeType){if(c=s.getAttribute(h),c&&(f=c.split("."),f[0]===r||"0"===f[0])){u=X({i:0,N:f[0],M:f[1],C:f[2],A:f[3],S:s.tagName.toLowerCase(),k:s,v:{class:s.className||""}}),n.push(u),s.removeAttribute(h),t.m||(t.m=[]),d&&f[0]===r&&(s["s-si"]=d,u.v.class+=" "+d);const l=u.k.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===u.S&&(tt(l,f[2],u,s,t,n,e,o,i),d&&s.classList.add(d)),u.k["s-sn"]=l,u.k.removeAttribute("s-sn")),void 0!==u.A&&(t.m[u.A]=u),t=u,o&&"0"===u.C&&(o[u.A]=u.k)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)K(t,n,e,o,l,s.shadowRoot.childNodes[a],r,i);const $=s.__childNodes||s.childNodes;for(a=$.length-1;a>=0;a--)K(t,n,e,o,l,$[a],r,i)}else if(8===s.nodeType)f=s.nodeValue.split("."),(f[1]===r||"0"===f[1])&&(c=f[0],u=X({N:f[1],M:f[2],C:f[3],A:f[4]||"0",k:s,v:null,m:null,j:null,O:null,S:null,h:null}),"t"===c?(u.k=et(s,3),u.k&&3===u.k.nodeType&&(u.h=u.k.textContent,n.push(u),s.remove(),r===u.N&&(t.m||(t.m=[]),t.m[u.A]=u),o&&"0"===u.C&&(o[u.A]=u.k))):"c"===c?(u.k=et(s,8),u.k&&8===u.k.nodeType&&(n.push(u),s.remove())):u.N===r&&("s"===c?tt(s["s-sn"]=f[5]||"",f[2],u,s,t,n,e,o,i):"r"===c&&(o?s.remove():(l["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.S){const n=Z(null,s.textContent);n.k=s,n.A="0",t.m=[n]}return t},Q=(t,n)=>{if(1===t.nodeType){const e=t[$]||t.getAttribute($);e&&n.set(e,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)Q(t.shadowRoot.childNodes[o],n);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)Q(l[o],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},X=t=>({i:0,N:null,M:null,C:null,A:"0",k:null,v:null,m:null,j:null,O:null,S:null,h:null,...t});function tt(t,n,e,o,l,s,r,i,c){o["s-sr"]=!0,e.O=t||null,e.S="slot";const f=(null==l?void 0:l.k)?l.k["s-id"]||l.k.getAttribute("s-id"):"";if(i&&b.document){const s=e.k=b.document.createElement(e.S);e.O&&e.k.setAttribute("name",t),l.k.shadowRoot&&f&&f!==e.N?H(l.k,"insertBefore")(s,H(l.k,"children")[0]):H(H(o,"parentNode"),"insertBefore")(s,o),nt(c,n,t,o,e.N),o.remove(),"0"===e.C&&(i[e.A]=e.k)}else{const s=e.k,r=f&&f!==e.N&&l.k.shadowRoot;nt(c,n,t,o,r?f:e.N),V(o),r&&l.k.insertBefore(s,l.k.children[0])}s.push(e),r.push(e),l.m||(l.m=[]),l.m[e.A]=e}var nt=(t,n,e,o,l)=>{var s,r;let i=o.nextSibling;if(t[n]=t[n]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==e&&(""!==e||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=e,t[n].push({slot:o,node:i,hostId:l})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},et=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},ot=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},lt=class t{static fromLocalValue(n){const e=n[o],s=l in n?n[l]:void 0;switch(e){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((n=>t.fromLocalValue(n)));case"date":return new Date(s);case"map":const n=new Map;for(const[e,o]of s){const l="object"==typeof e&&null!==e?t.fromLocalValue(e):e,s=t.fromLocalValue(o);n.set(l,s)}return n;case"object":const o={};for(const[n,e]of s)o[n]=t.fromLocalValue(e);return o;case"regexp":const{pattern:l,flags:r}=s;return new RegExp(l,r);case"set":const i=new Set;for(const n of s)i.add(t.fromLocalValue(n));return i;case"symbol":return Symbol(s);default:throw new Error(`Unsupported type: ${e}`)}}static fromLocalValueArray(n){return n.map((n=>t.fromLocalValue(n)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(o))return!1;const s=t[o];return!!Object.values({...n,...e}).includes(s)&&("null"===s||"undefined"===s||t.hasOwnProperty(l))}};var st,rt,it,ct=(t,n,e)=>{return"string"==typeof t&&t.startsWith(s)?t="string"==typeof(o=t)&&o.startsWith(s)?lt.fromLocalValue(JSON.parse(function(t){const n=atob(t),e=new Uint8Array(n.length);for(let t=0;t<n.length;t++)e[t]=n.charCodeAt(t);return(new TextDecoder).decode(e)}(o.slice(11)))):o:null==t||Y(t)?t:4&n?(e&&"string"==typeof t||"false"!==t)&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?String(t):t;var o},ft=(t,n,e)=>{const o=t;return{emit:t=>ut(o,n,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:t})}},ut=(t,n,e)=>{const o=g.ce(n,e);return t.dispatchEvent(o),o},at=(t,n,e,o,l,s,r)=>{if(e===o)return;let i=u(t,n),c=n.toLowerCase();if("class"===n){const n=t.classList,l=$t(e);let s=$t(o);if((t["s-si"]||t["s-sc"])&&r){const e=t["s-sc"]||t["s-si"];s.push(e),l.forEach((t=>{t.startsWith(e)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),n.add(...s)}else n.remove(...l.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&_t(o,t);else if(t.__lookupSetter__(n)||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let l;{const n=f(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(l=t[1])}}return l||(l=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const r=Y(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?i=!1:null!=e&&t[n]===l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(n)||(f?t.removeAttributeNS(v,n):t.removeAttribute(n)):(!i||4&s||l)&&!r&&1===t.nodeType&&(o=!0===o?"":o,f?t.setAttributeNS(v,n,o):t.setAttribute(n,o))}}else if(n="-"===n[2]?n.slice(3):u(b,c)?c.slice(2):c[2]+n.slice(3),e||o){const l=n.endsWith(pt);n=n.replace(ht,""),e&&g.rel(t,n,e,l),o&&g.ael(t,n,o,l)}},dt=/\s/,$t=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(dt):[]),pt="Capture",ht=new RegExp(pt+"$"),vt=(t,n,e,o)=>{const l=11===n.k.nodeType&&n.k.host?n.k.host:n.k,s=t&&t.v||{},r=n.v||{};for(const t of yt(Object.keys(s)))t in r||at(l,t,s[t],void 0,e,n.i,o);for(const t of yt(Object.keys(r)))at(l,t,s[t],r[t],e,n.i,o)};function yt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var bt=!1,mt=!1,gt=!1,wt=!1,jt=[],Ot=[],St=(t,n,e)=>{var o;const l=n.m[e];let s,r,i,c=0;if(bt||(gt=!0,"slot"===l.S&&(l.i|=l.m?2:1)),null!=l.h)s=l.k=b.document.createTextNode(l.h);else if(1&l.i)s=l.k=b.document.createTextNode(""),vt(null,l,wt);else{if(!b.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.k=b.document.createElement(!bt&&2&l.i?"slot-fb":l.S),vt(null,l,wt),null!=(f=st)&&void 0!==f&&s["s-si"]!==st&&s.classList.add(s["s-si"]=st),l.m){const n="template"===l.S?s.content:s;for(c=0;c<l.m.length;++c)r=St(t,l,c),r&&n.appendChild(r)}}var f;return s["s-hn"]=it,3&l.i&&(s["s-sr"]=!0,s["s-cr"]=rt,s["s-sn"]=l.O||"",s["s-rf"]=null==(o=l.v)?void 0:o.ref,V(s),i=t&&t.m&&t.m[e],i&&i.S===l.S&&t.k&&kt(t.k),Tt(rt,s,n.k,null==t?void 0:t.k)),s},kt=t=>{g.i|=1;const n=t.closest(it.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(Dt(n,t,null!=e?e:null),t["s-sh"]=void 0,gt=!0)}g.i&=-2},Nt=(t,n)=>{g.i|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===it&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==it&&o["s-ol"]&&(Dt(Et(o).parentNode,o,Et(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,gt=!0),n&&Nt(o,n)}g.i&=-2},xt=(t,n,e,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===it&&(i=i.shadowRoot),"template"===e.S&&(i=i.content);l<=s;++l)o[l]&&(r=St(null,e,l),r&&(o[l].k=r,Dt(i,r,Et(n))))},Mt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;Rt(n),t&&(mt=!0,t["s-ol"]?t["s-ol"].remove():Nt(t,!0),t.remove())}}},Ct=(t,n,e=!1)=>t.S===n.S&&("slot"===t.S?t.O===n.O:e?(e&&!t.j&&n.j&&(t.j=n.j),!0):t.j===n.j),Et=t=>t&&t["s-ol"]||t,At=(t,n,e=!1)=>{const o=n.k=t.k,l=t.m,s=n.m,r=n.h;let i;null==r?("slot"!==n.S||bt||t.O!==n.O&&(n.k["s-sn"]=n.O||"",kt(n.k.parentElement)),vt(t,n,wt,e),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,r,i=0,c=0,f=0,u=0,a=n.length-1,d=n[0],$=n[a],p=o.length-1,h=o[0],v=o[p];const y="template"===e.S?t.content:t;for(;i<=a&&c<=p;)if(null==d)d=n[++i];else if(null==$)$=n[--a];else if(null==h)h=o[++c];else if(null==v)v=o[--p];else if(Ct(d,h,l))At(d,h,l),d=n[++i],h=o[++c];else if(Ct($,v,l))At($,v,l),$=n[--a],v=o[--p];else if(Ct(d,v,l))"slot"!==d.S&&"slot"!==v.S||Nt(d.k.parentNode,!1),At(d,v,l),Dt(y,d.k,$.k.nextSibling),d=n[++i],v=o[--p];else if(Ct($,h,l))"slot"!==d.S&&"slot"!==v.S||Nt($.k.parentNode,!1),At($,h,l),Dt(y,$.k,d.k),$=n[--a],h=o[++c];else{for(f=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].j&&n[u].j===h.j){f=u;break}f>=0?(r=n[f],r.S!==h.S?s=St(n&&n[c],e,f):(At(r,h,l),n[f]=void 0,s=r.k),h=o[++c]):(s=St(n&&n[c],e,c),h=o[++c]),s&&Dt(Et(d.k).parentNode,s,Et(d.k))}i>a?xt(t,null==o[p+1]?null:o[p+1].k,e,o,c,p):c>p&&Mt(n,i,a)})(o,l,n,s,e):null!==s?(null!==t.h&&(o.textContent=""),xt(o,null,n,s,0,s.length-1)):e||null===l?e&&null!==l&&null===s&&(n.m=l):Mt(l,0,l.length-1)):(i=o["s-cr"])?i.parentNode.textContent=r:t.h!==r&&(o.data=r)},It=[],Lt=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(B(n,l)){let e=It.find((t=>t.I===n));mt=!0,n["s-sn"]=n["s-sn"]||l,e?(e.I["s-sh"]=t["s-hn"],e.L=t):(n["s-sh"]=t["s-hn"],It.push({L:t,I:n})),n["s-sr"]&&It.map((t=>{B(t.I,n["s-sn"])&&(e=It.find((t=>t.I===n)),e&&!t.L&&(t.L=e.L))}))}else It.some((t=>t.I===n))||It.push({I:n})}1===t.nodeType&&Lt(t)}},Rt=t=>{t.v&&t.v.ref&&jt.push((()=>t.v.ref(null))),t.m&&t.m.map(Rt)},_t=(t,n)=>{Ot.push((()=>t(n)))},Dt=(t,n,e,o)=>{if("string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])Tt(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=U(t)||"";return{slotNode:D(H(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&l.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)};function Tt(t,n,e,o){var l,s;let r;if(t&&"string"==typeof n["s-sn"]&&n["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(r=n["s-si"]||t.parentNode["s-sc"])){const t=n["s-sn"],i=n["s-hn"];if(null==(l=e.classList)||l.add(r+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(r+"-s"))){let n=(o.__childNodes||o.childNodes)[0],e=!1;for(;n;){if(n["s-sn"]!==t&&n["s-hn"]===i&&n["s-sr"]){e=!0;break}n=n.nextSibling}e||o.classList.remove(r+"-s")}}}var Bt=(t,n,e=!1)=>{var o,l,s,r,i;const c=t.$hostElement$,f=t.o,u=t.R||Z(null,null);var a;const d=(a=n)&&a.S===G?n:J(null,null,n);if(it=c.tagName,f._&&(d.v=d.v||{},f._.forEach((([t,n])=>{d.v[n]=c[t]}))),e&&d.v)for(const t of Object.keys(d.v))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.v[t]=c[t]);if(d.S=null,d.i|=4,t.R=d,d.k=u.k=c.shadowRoot||c,st=c["s-sc"],bt=!(!(1&f.i)||128&f.i),rt=c["s-cr"],mt=!1,At(u,d,e),g.i|=1,gt){Lt(d.k);for(const t of It){const n=t.I;if(!n["s-ol"]&&b.document){const t=b.document.createTextNode("");t["s-nr"]=n,Dt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of It){const n=t.I,i=t.L;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),i){const t=i.parentNode;let o=i.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(Dt(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=b.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,Dt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(r=n["s-ih"])&&r)}n&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===n.nodeType&&(n.hidden=!0)}}if(mt&&_(d.k),g.i&=-2,It.length=0,!bt&&!(1&f.i)&&c["s-cr"]){const t=d.k.__childNodes||d.k.childNodes;for(const n of t)if(n["s-hn"]!==it&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(i=n.hidden)&&i),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=b.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],Dt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}rt=void 0,jt.forEach((t=>t())),jt.length=0,Ot.forEach((t=>t())),Ot.length=0},Ft=(t,n)=>{if(n&&!t.D&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.D=()=>{n["s-p"].splice(e-1,1),o()})))}},Ut=(t,n)=>{if(t.i|=16,4&t.i)return void(t.i|=512);Ft(t,t.T);const e=()=>Vt(t,n);if(!n)return A(e);queueMicrotask((()=>{e()}))},Vt=(t,n)=>{const e=t.$hostElement$,o=e;if(!o)throw new Error(`Can't render component <${e.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;return l=Jt(o,n?"componentWillLoad":"componentWillUpdate",void 0,e),l=Ht(l,(()=>Jt(o,"componentWillRender",void 0,e))),Ht(l,(()=>Wt(t,o,n)))},Ht=(t,n)=>Pt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Pt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Wt=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.i,l=z(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);zt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>qt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.i|=4,n.length=0)}},zt=(t,n,e,o)=>{try{n=n.render(),t.i&=-17,t.i|=2,Bt(t,n,o)}catch(n){a(n,t.$hostElement$)}return null},qt=t=>{const n=t.$hostElement$,e=n,o=t.T;Jt(e,"componentDidRender",void 0,n),64&t.i?Jt(e,"componentDidUpdate",void 0,n):(t.i|=64,Zt(n),Jt(e,"componentDidLoad",void 0,n),t.B(n),o||Yt()),t.D&&(t.D(),t.D=void 0),512&t.i&&E((()=>Ut(t,!1))),t.i&=-517},Yt=()=>{var t;E((()=>ut(b,"appload",{detail:{namespace:"lmvz-components"}}))),(null==(t=g.F)?void 0:t.size)&&g.F.clear()},Jt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){a(t,o)}},Zt=t=>t.classList.add("hydrated"),Gt=(t,n,e,o)=>{const l=f(t);if(!l)return;const s=t,r=l.l.get(n),i=l.i,c=s;e=ct(e,o.t[n][0],!!(64&o.i));const u=Number.isNaN(r)&&Number.isNaN(e);if(e!==r&&!u){if(l.l.set(n,e),o.U){const t=o.U[n];t&&t.map((t=>{try{const[[o,s]]=Object.entries(t);(128&i||1&s)&&(c?c[o](e,r,n):l.V.push((()=>{l.H[o](e,r,n)})))}catch(t){a(t,s)}}))}if(2&i){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(e,r,n)&&!(16&i))return;16&i||Ut(l,!1)}}},Kt=(t,n,e)=>{var o,l;const s=t.prototype;64&n.i&&1&e&&y.forEach((t=>{const n=s[t];Object.defineProperty(s,t,{value(...e){var o;const l=f(this),s=this;s?"function"==typeof n&&n.call(s,...e):null==(o=null==l?void 0:l.P)||o.then((n=>{const o=n[t];"function"==typeof o&&o.call(n,...e)}))}})}));{t.watchers&&!n.U&&(n.U=ot(t.watchers)),t.deserializers&&!n.W&&(n.W=t.deserializers),t.serializers&&!n.q&&(n.q=t.serializers);const e=Object.entries(null!=(o=n.t)?o:{});e.map((([t,[e]])=>{if(31&e||32&e){const{get:o,set:l}=r(s,t)||{};o&&(n.t[t][0]|=2048),l&&(n.t[t][0]|=4096),Object.defineProperty(s,t,{get(){return o?o.apply(this):(n=t,f(this).l.get(n));var n},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(o){const s=f(this);if(s){if(l)return void 0===(32&e?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(o=s.l.get(t)),l.apply(this,[ct(o,e,!!(64&n.i))]),void Gt(this,t,o=32&e?this[t]:s.$hostElement$[t],n);Gt(this,t,o,n)}}})}}));{const o=new Map;s.attributeChangedCallback=function(t,l,r){g.jmp((()=>{var i;const c=o.get(t),u=f(this);if(this.hasOwnProperty(c),s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const e=null==u?void 0:u.i;if(u&&e&&!(8&e)&&r!==l){const o=this,s=null==(i=n.U)?void 0:i[t];null==s||s.forEach((n=>{const[[s,i]]=Object.entries(n);null!=o[s]&&(128&e||1&i)&&o[s].call(o,r,l,t)}))}return}const a=e.find((([t])=>t===c)),d=a&&4&a[1][0],$=d&&null===r&&void 0===this[c];d&&(r=null!==r&&"false"!==r);const p=Object.getOwnPropertyDescriptor(s,c);$||r==this[c]||p.get&&!p.set||(this[c]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.U)?l:{}),...e.filter((([t,n])=>31&n[0])).map((([t,e])=>{var l;const s=e[1]||t;return o.set(s,t),512&e[0]&&(null==(l=n._)||l.push([t,s])),s}))]))}}return t},Qt=t=>{if(!b.document)return;const n=t["s-cr"]=b.document.createComment("");n["s-cn"]=!0,Dt(t,n,t.firstChild)},Xt=(t,n)=>{const e={i:n[0],p:n[1]};try{e.t=n[2],e.Y=n[3],e.U=ot(t.U),e.W=t.W,e.q=t.q,e._=[],(()=>{if(!b.document)return;const t=b.document.querySelectorAll(`[${p}]`);let n=0;for(;n<t.length;n++)W(t[n].getAttribute(p),t[n].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0)})();const o=t.prototype.connectedCallback,l=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,n)=>{const e={i:0,$hostElement$:t,o:n,l:new Map,J:new Map};e.P=new Promise((t=>e.B=t)),t["s-p"]=[],t["s-rc"]=[];const o=e;t.__stencil__getHostRef=()=>o,512&n.i&&c(t,e)})(this,e)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=f(this);if(!t)return;tn(this,t,e.Y),this.__hasHostListenerAttached=!0}(t=>{if(!(1&g.i)){const n=f(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.i)tn(t,n,e.Y),(null==n?void 0:n.H)||(null==n?void 0:n.P)&&n.P.then((()=>{}));else{let o;if(n.i|=1,o=t.getAttribute($),o){if(1&e.i){const n=z(t.shadowRoot,e);t.classList.remove(n+"-h",n+"-s")}else if(2&e.i){const n=q(e);t["s-sc"]=n}((t,n,e,o)=>{var l,s,r,i;const c=t.shadowRoot,u=[],a=[],d=[],p=c?[]:null,h=Z(n,null);let v;h.k=t;{const n=o.o;n&&10&n.i&&t["s-sc"]?(v=t["s-sc"],t.classList.add(v+"-h")):t["s-sc"]&&delete t["s-sc"]}!b.document||g.F&&g.F.size||Q(b.document.body,g.F=new Map),t[$]=e,t.removeAttribute($),o.R=K(h,u,a,p,t,t,e,d);let y=0;const m=u.length;let w;for(;y<m;y++){w=u[y];const e=w.N+"."+w.M,o=g.F.get(e),s=w.k;if(c){if((null==(l=w.S)?void 0:l.toString().includes("-"))&&"slot-fb"!==w.S&&!w.k.shadowRoot){const t=f(w.k);if(t){const n=q(t.o),e=b.document.querySelector(`style[sty-id="${n}"]`);e&&p.unshift(e.cloneNode(!0))}}}else s["s-hn"]=n.toUpperCase(),"slot"===w.S&&(s["s-cr"]=t["s-cr"]);"slot"===w.S&&(w.O=w.k["s-sn"]||w.k.name||null,w.m?(w.i|=2,w.k.childNodes.length||w.m.forEach((t=>{w.k.appendChild(t.k)}))):w.i|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),c||(s["s-oo"]=parseInt(w.M))),o&&!o["s-id"]&&g.F.delete(e)}const j=[],O=d.length;let S,k,N,x,M=0,C=0;for(;M<O;M++)if(S=d[M],S&&S.length)for(N=S.length,k=0;k<N;k++){if(x=S[k],j[x.hostId]||(j[x.hostId]=g.F.get(x.hostId)),!j[x.hostId])continue;const t=j[x.hostId];t.shadowRoot&&x.node.parentElement!==t&&t.insertBefore(x.node,null==(r=null==(s=S[k-1])?void 0:s.node)?void 0:r.nextSibling),t.shadowRoot&&c||(x.slot["s-cr"]||(x.slot["s-cr"]=t["s-cr"],x.slot["s-cr"]=!x.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),F(x.node,x.slot,0,x.node["s-oo"]||C),(null==(i=x.node.parentElement)?void 0:i.shadowRoot)&&x.node.getAttribute&&x.node.getAttribute("slot")&&x.node.removeAttribute("slot")),C=(x.node["s-oo"]||C)+1}if(v&&a.length&&a.forEach((t=>{t.k.parentElement.classList.add(v+"-s")})),c&&!c.childNodes.length){let n=0;const e=p.length;if(e){for(;n<e;n++){const t=p[n];t&&c.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,e.p,o,n)}o||12&e.i&&Qt(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){Ft(n,n.T=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;try{if(!(32&n.i)&&(n.i|=32,o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.i|=128)),o&&o.style)){let t;"string"==typeof o.style&&(t=o.style);const n=q(e);if(!d.has(n)){const o=()=>{};W(n,t,!!(1&e.i)),o()}}const l=n.T,s=()=>Ut(n,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()}catch(e){a(e,t),n.D&&(n.D(),n.D=void 0),n.B&&n.B(t)}})(t,n,e)}o()}})(this),o&&o.call(this)},disconnectedCallback(){(async t=>{if(!(1&g.i)){const n=f(t);(null==n?void 0:n.Z)&&(n.Z.map((t=>t())),n.Z=void 0)}P.has(t)&&P.delete(t),t.shadowRoot&&P.has(t.shadowRoot)&&P.delete(t.shadowRoot)})(this),l&&l.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${e.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else R.call(this,e)}}),Object.defineProperty(t,"is",{value:e.p,configurable:!0}),Kt(t,e,3)}catch(n){return a(n),t}},tn=(t,n,e)=>{e&&b.document&&e.map((([e,o,l])=>{const s=t,r=nn(n,l),i=en(e);g.ael(s,o,r,i),(n.Z=n.Z||[]).push((()=>g.rel(s,o,r,i)))}))},nn=(t,n)=>e=>{try{t.$hostElement$[n](e)}catch(n){a(n,t.$hostElement$)}},en=t=>w?{passive:!!(1&t),capture:!!(2&t)}:!!(2&t),on=t=>g.$=t,ln=t=>Object.assign(g,t),sn=new WeakMap;function rn(t,n){let e=sn.get(n);e||(e={i:0,o:{i:0,p:n.tagName},$hostElement$:n},sn.set(n,e)),Bt(e,t)}function cn(t){return t}export{t as B,m as H,on as a,ln as b,ft as c,G as d,I as g,J as h,Xt as p,rn as r,L as s,cn as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as e,h as n,d as s,t as i}from"./p-c7OzBK8f.js";import{a as o,i as r}from"./p-CdDO7mQa.js";import{c as a}from"./p-JAKQdFhF.js";const c=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}actionsSlot;validationMessageCache=[];actionsStateObserver;get primaryEnabledAction(){return this.enabledButtons.find(p)??this.enabledButtons[0]}get hasActions(){return this.assignedButtons.some((t=>l(t)&&u(t)&&!h(t)))}componentDidLoad(){this.handleActionsSlotChange()}disconnectedCallback(){this.actionsStateObserver?.disconnect()}get assignedElements(){return this.actionsSlot?.assignedElements({flatten:!0})??[]}get assignedButtons(){return this.assignedElements.filter(u)}get visibleButtons(){return this.assignedButtons.filter(l)}get enabledButtons(){return this.visibleButtons.filter((t=h,(...e)=>{const n=t(...e);return o(n)?n.then((t=>!t)):!n}));var t}getActionValidationResult(){if(!this.visibleButtons.length)return[];const t=this.visibleButtons.filter(p),e=this.visibleButtons.filter(f),n=[],s=this.visibleButtons.toReversed();if(1!==t.length&&n.push("LmvzModal actions slot must contain exactly one primary action."),e.length>1&&n.push(`LmvzModal actions slot must contain at most one secondary action (received ${e.length})`),t.length){const i=e[0];0!==s.indexOf(t[0])&&n.push("Primary action must be the last focusable element in the actions slot (i.e. rightmost button)."),i&&1!==s.indexOf(i)&&n.push("Secondary action must be the second-to-last focusable element in the actions slot (i.e. left of primary button).")}else e.length&&0!==s.indexOf(e[0])&&n.push("Secondary action must be the last focusable element in the actions slot when no primary action is present (i.e. rightmost button).");return n}handleActionsSlotChange=()=>{this.observeActionState(),this.syncActionsState()};observeActionState(){"undefined"!=typeof MutationObserver&&(this.actionsStateObserver?.disconnect(),this.assignedButtons.length&&(this.actionsStateObserver=new MutationObserver((()=>{this.syncActionsState()})),this.assignedButtons.forEach((t=>{this.actionsStateObserver?.observe(t,{attributes:!0,attributeFilter:["disabled","hidden","variant"]})}))))}syncActionsState(){this.assignedElements.forEach((t=>{["LMVZ-BUTTON","BUTTON"].includes(t.tagName.toUpperCase())||(t.hasAttribute("hidden")||t.setAttribute("hidden",""),"true"!==t.getAttribute("aria-hidden")&&t.setAttribute("aria-hidden","true"))})),this.checkActions();const t=this.visibleButtons.length;for(let e=0;e<t;e++){const n=e===t-1?"primary":e===t-2?"secondary":"tertiary",s=this.visibleButtons.at(e);s&&(d(s)?s.getAttribute("variant")||s.setAttribute("variant",n):s.classList.add(n))}this.focusPrimaryAction()}focusPrimaryAction(){const t=this.primaryEnabledAction;t&&"undefined"!=typeof window&&window.requestAnimationFrame((()=>{a(t)&&t.focus()}))}checkActions(){if(!r())return;const t=this.getActionValidationResult();t.length&&t.forEach((t=>{this.validationMessageCache.includes(t)||(console.warn(t),this.validationMessageCache.push(t))}))}render(){return n(s,{key:"56b60821ecaa2301d13e78d621e873aa74cd170e"},n("slot",{key:"e6a1422950fa5b0026356b7788a607a690116186",ref:t=>this.actionsSlot=t,onSlotchange:this.handleActionsSlotChange}))}static get style(){return":host{display:flex;justify-content:flex-end;gap:var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem));font:var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router);flex-wrap:wrap}::slotted([hidden]){display:none !important}"}},[257,"lmvz-button-group",{primaryEnabledAction:[2064],hasActions:[2052,"has-actions"]}]);function u(t){return["LMVZ-BUTTON","BUTTON"].includes(t.tagName.toUpperCase())}function d(t){return"LMVZ-BUTTON"===t?.tagName.toUpperCase()}function h(t){return t.hasAttribute("disabled")||!0===t.disabled}function l(t){return!t.hasAttribute("hidden")}function m(t){const e=t.getAttribute("variant")??t.variant;return"primary"===e||"secondary"===e||"tertiary"===e?e:"secondary"}function p(t){return"primary"===m(t)}function f(t){return"secondary"===m(t)}function y(){"undefined"!=typeof customElements&&["lmvz-button-group"].forEach((t=>{"lmvz-button-group"===t&&(customElements.get(i(t))||customElements.define(i(t),c))}))}export{c as L,y as d}
|
|
@@ -2,7 +2,7 @@ const sizes = ['xs', 'sm', 'md', 'lg'];
|
|
|
2
2
|
const textSizes = [...sizes, 'xl'];
|
|
3
3
|
const inputTypes = ['text', 'email', 'password', 'tel', 'url', 'search', 'number'];
|
|
4
4
|
const iconSizes = [...sizes, 'inherit'];
|
|
5
|
-
const iconWeights = ['thin', 'medium', 'bold'
|
|
5
|
+
const iconWeights = ['thin', 'medium', 'bold'];
|
|
6
6
|
const chipTypes = ['active', 'warning', 'success', 'error', 'neutral'];
|
|
7
7
|
const chipSizes = ['default', 'small'];
|
|
8
8
|
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,202 @@
|
|
|
1
1
|
export { A as ARIA_VALIDATION_RUNTIME_CHANGED_EVENT, d as disableAriaValidation, e as enableAriaValidation, i as isAriaValidationEnabled, q as queueValidation, u as useVerboseLogging } from './aria-loader-GfsGHZHY.js';
|
|
2
|
-
export { c as chipSizes, a as chipTypes, i as iconSizes, b as iconWeights, d as inputTypes, t as textSizes } from './ds.constants-
|
|
2
|
+
export { c as chipSizes, a as chipTypes, i as iconSizes, b as iconWeights, d as inputTypes, t as textSizes } from './ds.constants-BOOwq5dE.js';
|
|
3
3
|
export { g as getRegisteredIconProvider, r as registerIconProvider, t as typedIconFromSet } from './icons-CmuFKDRz.js';
|
|
4
4
|
import './svg-B2YoIRuh.js';
|
|
5
5
|
import './logger-CGmJG63p.js';
|
|
6
|
+
|
|
7
|
+
const PRIORITY_MAP = {
|
|
8
|
+
low: 0,
|
|
9
|
+
normal: 1,
|
|
10
|
+
high: 2,
|
|
11
|
+
};
|
|
12
|
+
const STATUS_DURATION = {
|
|
13
|
+
success: 5000,
|
|
14
|
+
warning: 5000,
|
|
15
|
+
error: 8000,
|
|
16
|
+
};
|
|
17
|
+
let idCounter = 0;
|
|
18
|
+
function nextId() {
|
|
19
|
+
idCounter += 1;
|
|
20
|
+
return `snackbar-${idCounter}`;
|
|
21
|
+
}
|
|
22
|
+
function resolveHostElement() {
|
|
23
|
+
if (typeof document === 'undefined') {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const existing = document.querySelector('[data-snackbar-host]');
|
|
27
|
+
if (existing) {
|
|
28
|
+
return existing;
|
|
29
|
+
}
|
|
30
|
+
const el = document.createElement('lmvz-snackbar');
|
|
31
|
+
el.setAttribute('data-snackbar-host', '');
|
|
32
|
+
document.body.appendChild(el);
|
|
33
|
+
return el;
|
|
34
|
+
}
|
|
35
|
+
class SnackbarController {
|
|
36
|
+
hostEl = undefined;
|
|
37
|
+
active = undefined;
|
|
38
|
+
getHost() {
|
|
39
|
+
if (this.hostEl !== undefined && !this.hostEl.isConnected) {
|
|
40
|
+
this.hostEl = undefined;
|
|
41
|
+
}
|
|
42
|
+
if (this.hostEl === undefined) {
|
|
43
|
+
this.hostEl = resolveHostElement();
|
|
44
|
+
}
|
|
45
|
+
return this.hostEl;
|
|
46
|
+
}
|
|
47
|
+
clearTimer(entry) {
|
|
48
|
+
if (entry.timerId !== undefined) {
|
|
49
|
+
clearTimeout(entry.timerId);
|
|
50
|
+
entry.timerId = undefined;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
scheduleTimer(entry, delayMs) {
|
|
54
|
+
if (delayMs <= 0) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
entry.timerStartedAt = Date.now();
|
|
58
|
+
entry.timerId = setTimeout(() => {
|
|
59
|
+
if (this.active !== undefined && this.active.id === entry.id) {
|
|
60
|
+
this.dismissActive(entry, 'timeout');
|
|
61
|
+
}
|
|
62
|
+
}, delayMs);
|
|
63
|
+
}
|
|
64
|
+
dismissActive(entry, reason) {
|
|
65
|
+
this.clearTimer(entry);
|
|
66
|
+
const host = entry.hostEl;
|
|
67
|
+
host.removeEventListener('pointerenter', entry.onPointerEnter);
|
|
68
|
+
host.removeEventListener('pointerleave', entry.onPointerLeave);
|
|
69
|
+
host.removeEventListener('focusin', entry.onFocusIn);
|
|
70
|
+
host.removeEventListener('focusout', entry.onFocusOut);
|
|
71
|
+
if (entry.onActionListener) {
|
|
72
|
+
host.removeEventListener('lmvzAction', entry.onActionListener);
|
|
73
|
+
}
|
|
74
|
+
host.hide?.();
|
|
75
|
+
if (this.active?.id === entry.id) {
|
|
76
|
+
this.active = undefined;
|
|
77
|
+
}
|
|
78
|
+
if (reason !== 'action') {
|
|
79
|
+
host.dispatchEvent(new CustomEvent('lmvzClose', { detail: { reason }, bubbles: true, composed: true }));
|
|
80
|
+
}
|
|
81
|
+
entry.resolve({ reason });
|
|
82
|
+
}
|
|
83
|
+
pauseTimer(entry) {
|
|
84
|
+
entry.pauseCount += 1;
|
|
85
|
+
if (entry.pauseCount > 1 || entry.timerId === undefined) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const elapsed = entry.timerStartedAt !== undefined ? Date.now() - entry.timerStartedAt : 0;
|
|
89
|
+
entry.remaining = Math.max(0, entry.remaining - elapsed);
|
|
90
|
+
entry.timerStartedAt = undefined;
|
|
91
|
+
this.clearTimer(entry);
|
|
92
|
+
}
|
|
93
|
+
resumeTimer(entry) {
|
|
94
|
+
if (entry.pauseCount > 0) {
|
|
95
|
+
entry.pauseCount -= 1;
|
|
96
|
+
}
|
|
97
|
+
if (entry.pauseCount > 0) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (entry.remaining > 0) {
|
|
101
|
+
this.scheduleTimer(entry, entry.remaining);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
applyToHost(host, options) {
|
|
105
|
+
host.setAttribute('status', options.status ?? 'success');
|
|
106
|
+
if (options.actionLabel !== undefined) {
|
|
107
|
+
host.setAttribute('action-label', options.actionLabel);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
host.removeAttribute('action-label');
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
open(options) {
|
|
114
|
+
const incomingPriority = PRIORITY_MAP[options.priority ?? 'normal'];
|
|
115
|
+
if (this.active !== undefined && incomingPriority < this.active.priority) {
|
|
116
|
+
let swallowResolve;
|
|
117
|
+
const closed = new Promise((resolve) => {
|
|
118
|
+
swallowResolve = resolve;
|
|
119
|
+
});
|
|
120
|
+
swallowResolve({ reason: 'swallowed' });
|
|
121
|
+
const id = nextId();
|
|
122
|
+
return {
|
|
123
|
+
id,
|
|
124
|
+
closed,
|
|
125
|
+
dismiss() {
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
if (this.active !== undefined) {
|
|
130
|
+
this.dismissActive(this.active, 'overridden');
|
|
131
|
+
}
|
|
132
|
+
const host = this.getHost();
|
|
133
|
+
if (host === undefined) {
|
|
134
|
+
const id = nextId();
|
|
135
|
+
let ssrResolve;
|
|
136
|
+
const closed = new Promise((resolve) => {
|
|
137
|
+
ssrResolve = resolve;
|
|
138
|
+
});
|
|
139
|
+
ssrResolve({ reason: 'swallowed' });
|
|
140
|
+
return { id, closed, dismiss() { } };
|
|
141
|
+
}
|
|
142
|
+
const id = nextId();
|
|
143
|
+
const status = options.status ?? 'success';
|
|
144
|
+
const durationMs = options.duration === 0 ? 0 : (options.duration ?? STATUS_DURATION[status]);
|
|
145
|
+
let entryResolve;
|
|
146
|
+
const closed = new Promise((resolve) => {
|
|
147
|
+
entryResolve = resolve;
|
|
148
|
+
});
|
|
149
|
+
const entry = {
|
|
150
|
+
id,
|
|
151
|
+
priority: incomingPriority,
|
|
152
|
+
resolve: entryResolve,
|
|
153
|
+
timerId: undefined,
|
|
154
|
+
remaining: durationMs,
|
|
155
|
+
timerStartedAt: undefined,
|
|
156
|
+
pauseCount: 0,
|
|
157
|
+
hostEl: host,
|
|
158
|
+
onPointerEnter: () => this.pauseTimer(entry),
|
|
159
|
+
onPointerLeave: () => this.resumeTimer(entry),
|
|
160
|
+
onFocusIn: () => this.pauseTimer(entry),
|
|
161
|
+
onFocusOut: () => this.resumeTimer(entry),
|
|
162
|
+
};
|
|
163
|
+
this.active = entry;
|
|
164
|
+
host.addEventListener('pointerenter', entry.onPointerEnter);
|
|
165
|
+
host.addEventListener('pointerleave', entry.onPointerLeave);
|
|
166
|
+
host.addEventListener('focusin', entry.onFocusIn);
|
|
167
|
+
host.addEventListener('focusout', entry.onFocusOut);
|
|
168
|
+
this.applyToHost(host, options);
|
|
169
|
+
const onAction = () => {
|
|
170
|
+
if (this.active !== undefined && this.active.id === id) {
|
|
171
|
+
options.onAction?.();
|
|
172
|
+
this.dismissActive(entry, 'action');
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
entry.onActionListener = onAction;
|
|
176
|
+
host.addEventListener('lmvzAction', onAction, { once: true });
|
|
177
|
+
host.show?.();
|
|
178
|
+
queueMicrotask(() => host.setAttribute('message', options.message));
|
|
179
|
+
if (durationMs > 0) {
|
|
180
|
+
this.scheduleTimer(entry, durationMs);
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
id,
|
|
184
|
+
closed,
|
|
185
|
+
dismiss: () => {
|
|
186
|
+
if (this.active?.id === id) {
|
|
187
|
+
this.dismissActive(entry, 'manual');
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
dismiss(id) {
|
|
193
|
+
if (!this.active) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
if (!id || this.active.id === id) {
|
|
197
|
+
this.dismissActive(this.active, 'manual');
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export { SnackbarController };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-CKYszC64.js';
|
|
2
|
+
import { a as isPromise, i as isAriaValidationEnabled } from './aria-loader-GfsGHZHY.js';
|
|
3
|
+
import { a as canReceiveFocus } from './component-DOTK1OW3.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Returns a function that delegates to the given predicate/filter and negates its result.
|
|
7
|
+
* The returned function preserves the input function's types, arguments and timing.
|
|
8
|
+
*
|
|
9
|
+
* @param delegate - The predicate/filter function to negate.
|
|
10
|
+
* @returns A function that returns the negated result.
|
|
11
|
+
*/
|
|
12
|
+
function negate(delegate) {
|
|
13
|
+
return (...args) => {
|
|
14
|
+
const result = delegate(...args);
|
|
15
|
+
return isPromise(result) ? result.then((res) => !res) : !result;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const lmvzButtonGroupCss = () => `:host{display:flex;justify-content:flex-end;gap:var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem));font:var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router);flex-wrap:wrap}::slotted([hidden]){display:none !important}`;
|
|
20
|
+
|
|
21
|
+
const LmvzButtonGroup = class {
|
|
22
|
+
constructor(hostRef) {
|
|
23
|
+
registerInstance(this, hostRef);
|
|
24
|
+
}
|
|
25
|
+
actionsSlot;
|
|
26
|
+
validationMessageCache = [];
|
|
27
|
+
actionsStateObserver;
|
|
28
|
+
get primaryEnabledAction() {
|
|
29
|
+
return this.enabledButtons.find(isPrimaryAction) ?? this.enabledButtons[0];
|
|
30
|
+
}
|
|
31
|
+
get hasActions() {
|
|
32
|
+
return this.assignedButtons.some((element) => isVisible(element) && isActionButton(element) && !isDisabledButton(element));
|
|
33
|
+
}
|
|
34
|
+
componentDidLoad() {
|
|
35
|
+
this.handleActionsSlotChange();
|
|
36
|
+
}
|
|
37
|
+
disconnectedCallback() {
|
|
38
|
+
this.actionsStateObserver?.disconnect();
|
|
39
|
+
}
|
|
40
|
+
get assignedElements() {
|
|
41
|
+
return this.actionsSlot?.assignedElements({ flatten: true }) ?? [];
|
|
42
|
+
}
|
|
43
|
+
get assignedButtons() {
|
|
44
|
+
return this.assignedElements.filter(isActionButton);
|
|
45
|
+
}
|
|
46
|
+
get visibleButtons() {
|
|
47
|
+
return this.assignedButtons.filter(isVisible);
|
|
48
|
+
}
|
|
49
|
+
get enabledButtons() {
|
|
50
|
+
return this.visibleButtons.filter(negate(isDisabledButton));
|
|
51
|
+
}
|
|
52
|
+
getActionValidationResult() {
|
|
53
|
+
if (!this.visibleButtons.length) {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
const primaryActions = this.visibleButtons.filter(isPrimaryAction);
|
|
57
|
+
const secondaryActions = this.visibleButtons.filter(isSecondaryAction);
|
|
58
|
+
const issues = [];
|
|
59
|
+
const order = this.visibleButtons.toReversed();
|
|
60
|
+
if (primaryActions.length !== 1)
|
|
61
|
+
issues.push('LmvzModal actions slot must contain exactly one primary action.');
|
|
62
|
+
if (secondaryActions.length > 1)
|
|
63
|
+
issues.push(`LmvzModal actions slot must contain at most one secondary action (received ${secondaryActions.length})`);
|
|
64
|
+
if (primaryActions.length) {
|
|
65
|
+
const primaryAction = primaryActions[0];
|
|
66
|
+
const secondaryAction = secondaryActions[0];
|
|
67
|
+
if (order.indexOf(primaryAction) !== 0)
|
|
68
|
+
issues.push('Primary action must be the last focusable element in the actions slot (i.e. rightmost button).');
|
|
69
|
+
if (secondaryAction && order.indexOf(secondaryAction) !== 1)
|
|
70
|
+
issues.push('Secondary action must be the second-to-last focusable element in the actions slot (i.e. left of primary button).');
|
|
71
|
+
}
|
|
72
|
+
else if (secondaryActions.length) {
|
|
73
|
+
const secondaryAction = secondaryActions[0];
|
|
74
|
+
if (order.indexOf(secondaryAction) !== 0)
|
|
75
|
+
issues.push('Secondary action must be the last focusable element in the actions slot when no primary action is present (i.e. rightmost button).');
|
|
76
|
+
}
|
|
77
|
+
return issues;
|
|
78
|
+
}
|
|
79
|
+
handleActionsSlotChange = () => {
|
|
80
|
+
this.observeActionState();
|
|
81
|
+
this.syncActionsState();
|
|
82
|
+
};
|
|
83
|
+
observeActionState() {
|
|
84
|
+
if (typeof MutationObserver === 'undefined')
|
|
85
|
+
return;
|
|
86
|
+
this.actionsStateObserver?.disconnect();
|
|
87
|
+
if (!this.assignedButtons.length)
|
|
88
|
+
return;
|
|
89
|
+
this.actionsStateObserver = new MutationObserver(() => {
|
|
90
|
+
this.syncActionsState();
|
|
91
|
+
});
|
|
92
|
+
this.assignedButtons.forEach((element) => {
|
|
93
|
+
this.actionsStateObserver?.observe(element, {
|
|
94
|
+
attributes: true,
|
|
95
|
+
attributeFilter: ['disabled', 'hidden', 'variant'],
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
syncActionsState() {
|
|
100
|
+
const assignedElements = this.assignedElements;
|
|
101
|
+
assignedElements.forEach((element) => {
|
|
102
|
+
const isAllowedAction = ['LMVZ-BUTTON', 'BUTTON'].includes(element.tagName.toUpperCase());
|
|
103
|
+
if (isAllowedAction)
|
|
104
|
+
return;
|
|
105
|
+
if (!element.hasAttribute('hidden')) {
|
|
106
|
+
element.setAttribute('hidden', '');
|
|
107
|
+
}
|
|
108
|
+
if (element.getAttribute('aria-hidden') !== 'true') {
|
|
109
|
+
element.setAttribute('aria-hidden', 'true');
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
this.checkActions();
|
|
113
|
+
const length = this.visibleButtons.length;
|
|
114
|
+
for (let i = 0; i < length; i++) {
|
|
115
|
+
const variant = i === length - 1 ? 'primary' : i === length - 2 ? 'secondary' : 'tertiary';
|
|
116
|
+
const element = this.visibleButtons.at(i);
|
|
117
|
+
if (!element)
|
|
118
|
+
continue;
|
|
119
|
+
if (isLmvzButton(element)) {
|
|
120
|
+
if (!element.getAttribute('variant'))
|
|
121
|
+
element.setAttribute('variant', variant);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
element.classList.add(variant);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
this.focusPrimaryAction();
|
|
128
|
+
}
|
|
129
|
+
focusPrimaryAction() {
|
|
130
|
+
const focusTarget = this.primaryEnabledAction;
|
|
131
|
+
if (!focusTarget || typeof window === 'undefined')
|
|
132
|
+
return;
|
|
133
|
+
window.requestAnimationFrame(() => {
|
|
134
|
+
if (canReceiveFocus(focusTarget)) {
|
|
135
|
+
focusTarget.focus();
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
checkActions() {
|
|
140
|
+
if (!isAriaValidationEnabled())
|
|
141
|
+
return;
|
|
142
|
+
const issues = this.getActionValidationResult();
|
|
143
|
+
if (!issues.length) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
issues.forEach((issue) => {
|
|
147
|
+
if (this.validationMessageCache.includes(issue))
|
|
148
|
+
return;
|
|
149
|
+
console.warn(issue);
|
|
150
|
+
this.validationMessageCache.push(issue);
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
render() {
|
|
154
|
+
return (h(Host, { key: '56b60821ecaa2301d13e78d621e873aa74cd170e' }, h("slot", { key: 'e6a1422950fa5b0026356b7788a607a690116186', ref: (element) => (this.actionsSlot = element), onSlotchange: this.handleActionsSlotChange })));
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
function isActionButton(element) {
|
|
158
|
+
return ['LMVZ-BUTTON', 'BUTTON'].includes(element.tagName.toUpperCase());
|
|
159
|
+
}
|
|
160
|
+
function isLmvzButton(element) {
|
|
161
|
+
return element?.tagName.toUpperCase() === 'LMVZ-BUTTON';
|
|
162
|
+
}
|
|
163
|
+
function isDisabledButton(element) {
|
|
164
|
+
return element.hasAttribute('disabled') || element.disabled === true;
|
|
165
|
+
}
|
|
166
|
+
function isVisible(element) {
|
|
167
|
+
return !element.hasAttribute('hidden');
|
|
168
|
+
}
|
|
169
|
+
function getActionVariant(element) {
|
|
170
|
+
const variant = element.getAttribute('variant') ?? element.variant;
|
|
171
|
+
return variant === 'primary' || variant === 'secondary' || variant === 'tertiary' ? variant : 'secondary';
|
|
172
|
+
}
|
|
173
|
+
function isPrimaryAction(element) {
|
|
174
|
+
return getActionVariant(element) === 'primary';
|
|
175
|
+
}
|
|
176
|
+
function isSecondaryAction(element) {
|
|
177
|
+
return getActionVariant(element) === 'secondary';
|
|
178
|
+
}
|
|
179
|
+
LmvzButtonGroup.style = lmvzButtonGroupCss();
|
|
180
|
+
|
|
181
|
+
export { LmvzButtonGroup as lmvz_button_group };
|