@florid-kit/components 0.9.21 → 0.9.22

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.
Files changed (3) hide show
  1. package/index.js +20 -20
  2. package/index.mjs +45 -41
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -2,11 +2,11 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const _t=globalThis,jt=_t.ShadowRoot&&(_t.ShadyCSS===void 0||_t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rt=Symbol(),ee=new WeakMap;let ue=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(jt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=ee.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ee.set(e,t))}return t}toString(){return this.cssText}};const we=o=>new ue(typeof o=="string"?o:o+"",void 0,Rt),v=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((r,i,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[n+1],o[0]);return new ue(e,o,Rt)},$e=(o,t)=>{if(jt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),i=_t.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},oe=jt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return we(e)})(o):o;/**
5
+ */const Ct=globalThis,jt=Ct.ShadowRoot&&(Ct.ShadyCSS===void 0||Ct.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rt=Symbol(),ee=new WeakMap;let ue=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(jt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=ee.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ee.set(e,t))}return t}toString(){return this.cssText}};const we=o=>new ue(typeof o=="string"?o:o+"",void 0,Rt),v=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((r,i,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[n+1],o[0]);return new ue(e,o,Rt)},$e=(o,t)=>{if(jt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),i=Ct.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},oe=jt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return we(e)})(o):o;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:_e,defineProperty:Ce,getOwnPropertyDescriptor:ke,getOwnPropertyNames:Se,getOwnPropertySymbols:Ae,getPrototypeOf:Ee}=Object,W=globalThis,ie=W.trustedTypes,Le=ie?ie.emptyScript:"",Pt=W.reactiveElementPolyfillSupport,ct=(o,t)=>o,Ct={toAttribute(o,t){switch(t){case Boolean:o=o?Le:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Nt=(o,t)=>!_e(o,t),re={attribute:!0,type:String,converter:Ct,reflect:!1,useDefault:!1,hasChanged:Nt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),W.litPropertyMetadata??(W.litPropertyMetadata=new WeakMap);let rt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=re){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&Ce(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:n}=ke(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:i,set(s){const h=i==null?void 0:i.call(this);n==null||n.call(this,s),this.requestUpdate(t,h,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??re}static _$Ei(){if(this.hasOwnProperty(ct("elementProperties")))return;const t=Ee(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ct("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ct("properties"))){const e=this.properties,r=[...Se(e),...Ae(e)];for(const i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)e.unshift(oe(i))}else t!==void 0&&e.push(oe(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $e(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){var n;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:Ct).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var n,s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const h=r.getPropertyOptions(i),c=typeof h.converter=="function"?{fromAttribute:h.converter}:((n=h.converter)==null?void 0:n.fromAttribute)!==void 0?h.converter:Ct;this._$Em=i,this[i]=c.fromAttribute(e,h.type)??((s=this._$Ej)==null?void 0:s.get(i))??null,this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){const n=this.constructor,s=this[t];if(r??(r=n.getPropertyOptions(t)),!((r.hasChanged??Nt)(s,e)||r.useDefault&&r.reflect&&s===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(n._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:i,wrapped:n},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),n!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,s]of i){const{wrapped:h}=s,c=this[n];h!==!0||this._$AL.has(n)||c===void 0||this.C(n,void 0,s,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};rt.elementStyles=[],rt.shadowRootOptions={mode:"open"},rt[ct("elementProperties")]=new Map,rt[ct("finalized")]=new Map,Pt==null||Pt({ReactiveElement:rt}),(W.reactiveElementVersions??(W.reactiveElementVersions=[])).push("2.1.0");/**
9
+ */const{is:Ce,defineProperty:_e,getOwnPropertyDescriptor:ke,getOwnPropertyNames:Se,getOwnPropertySymbols:Ae,getPrototypeOf:Ee}=Object,W=globalThis,ie=W.trustedTypes,Le=ie?ie.emptyScript:"",Pt=W.reactiveElementPolyfillSupport,ct=(o,t)=>o,_t={toAttribute(o,t){switch(t){case Boolean:o=o?Le:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Nt=(o,t)=>!Ce(o,t),re={attribute:!0,type:String,converter:_t,reflect:!1,useDefault:!1,hasChanged:Nt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),W.litPropertyMetadata??(W.litPropertyMetadata=new WeakMap);let rt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=re){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&_e(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:n}=ke(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:i,set(s){const h=i==null?void 0:i.call(this);n==null||n.call(this,s),this.requestUpdate(t,h,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??re}static _$Ei(){if(this.hasOwnProperty(ct("elementProperties")))return;const t=Ee(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ct("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ct("properties"))){const e=this.properties,r=[...Se(e),...Ae(e)];for(const i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)e.unshift(oe(i))}else t!==void 0&&e.push(oe(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $e(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){var n;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:_t).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var n,s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const h=r.getPropertyOptions(i),c=typeof h.converter=="function"?{fromAttribute:h.converter}:((n=h.converter)==null?void 0:n.fromAttribute)!==void 0?h.converter:_t;this._$Em=i,this[i]=c.fromAttribute(e,h.type)??((s=this._$Ej)==null?void 0:s.get(i))??null,this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){const n=this.constructor,s=this[t];if(r??(r=n.getPropertyOptions(t)),!((r.hasChanged??Nt)(s,e)||r.useDefault&&r.reflect&&s===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(n._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:i,wrapped:n},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),n!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,s]of i){const{wrapped:h}=s,c=this[n];h!==!0||this._$AL.has(n)||c===void 0||this.C(n,void 0,s,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};rt.elementStyles=[],rt.shadowRootOptions={mode:"open"},rt[ct("elementProperties")]=new Map,rt[ct("finalized")]=new Map,Pt==null||Pt({ReactiveElement:rt}),(W.reactiveElementVersions??(W.reactiveElementVersions=[])).push("2.1.0");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
@@ -24,7 +24,7 @@
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Re={attribute:!0,type:String,converter:Ct,reflect:!1,hasChanged:Nt},Ne=(o=Re,t,e)=>{const{kind:r,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),n.set(e.name,o),r==="accessor"){const{name:s}=e;return{set(h){const c=t.get.call(this);t.set.call(this,h),this.requestUpdate(s,c,o)},init(h){return h!==void 0&&this.C(s,void 0,o,h),h}}}if(r==="setter"){const{name:s}=e;return function(h){const c=this[s];t.call(this,h),this.requestUpdate(s,c,o)}}throw Error("Unsupported decorator location: "+r)};function a(o){return(t,e)=>typeof e=="object"?Ne(o,t,e):((r,i,n)=>{const s=i.hasOwnProperty(n);return i.constructor.createProperty(n,r),s?Object.getOwnPropertyDescriptor(i,n):void 0})(o,t,e)}/**
27
+ */const Re={attribute:!0,type:String,converter:_t,reflect:!1,hasChanged:Nt},Ne=(o=Re,t,e)=>{const{kind:r,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),n.set(e.name,o),r==="accessor"){const{name:s}=e;return{set(h){const c=t.get.call(this);t.set.call(this,h),this.requestUpdate(s,c,o)},init(h){return h!==void 0&&this.C(s,void 0,o,h),h}}}if(r==="setter"){const{name:s}=e;return function(h){const c=this[s];t.call(this,h),this.requestUpdate(s,c,o)}}throw Error("Unsupported decorator location: "+r)};function a(o){return(t,e)=>typeof e=="object"?Ne(o,t,e):((r,i,n)=>{const s=i.hasOwnProperty(n);return i.constructor.createProperty(n,r),s?Object.getOwnPropertyDescriptor(i,n):void 0})(o,t,e)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
@@ -158,7 +158,7 @@
158
158
  * @license
159
159
  * Copyright 2017 Google LLC
160
160
  * SPDX-License-Identifier: BSD-3-Clause
161
- */class Ht extends Dt{}Ht.directiveName="unsafeSVG",Ht.resultType=2;const _=Zt(Ht);/**
161
+ */class Ht extends Dt{}Ht.directiveName="unsafeSVG",Ht.resultType=2;const C=Zt(Ht);/**
162
162
  * @license
163
163
  * Copyright 2020 Google LLC
164
164
  * SPDX-License-Identifier: BSD-3-Clause
@@ -166,14 +166,14 @@
166
166
  * @license
167
167
  * Copyright 2017 Google LLC
168
168
  * SPDX-License-Identifier: BSD-3-Clause
169
- */const dt=(o,t)=>{var r;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(r=i._$AO)==null||r.call(i,t,!1),dt(i,t);return!0},St=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},me=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),ko(t)}};function _o(o){this._$AN!==void 0?(St(this),this._$AM=o,me(this)):this._$AM=o}function Co(o,t=!1,e=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let n=e;n<r.length;n++)dt(r[n],!1),St(r[n]);else r!=null&&(dt(r,!1),St(r));else dt(this,o)}const ko=o=>{o.type==qt.CHILD&&(o._$AP??(o._$AP=Co),o._$AQ??(o._$AQ=_o))};class So extends Kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(dt(this,t),St(this))}setValue(t){if($o(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Ao extends So{constructor(){super(...arguments),this.prevData={}}render(t){return d}update(t,[e]){var r;this.element!==t.element&&(this.element=t.element),this.host=((r=t.options)===null||r===void 0?void 0:r.host)||this.element,this.apply(e),this.groom(e),this.prevData={...e}}apply(t){if(!t)return;const{prevData:e,element:r}=this;for(const i in t){const n=t[i];n!==e[i]&&(r[i]=n)}}groom(t){const{prevData:e,element:r}=this;if(e)for(const i in e)(!t||!(i in t)&&r[i]===e[i])&&(r[i]=void 0)}}class Eo extends Ao{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const e in t){const r=t[e];r!==this.eventData[e]&&this.applyEvent(e,r)}}applyEvent(t,e){const{prevData:r,element:i}=this;this.eventData[t]=e,r[t]&&i.removeEventListener(t,this,e),i.addEventListener(t,this,e)}groom(t){const{prevData:e,element:r}=this;if(e)for(const i in e)(!t||!(i in t)&&r[i]===e[i])&&this.groomEvent(i,e[i])}groomEvent(t,e){const{element:r}=this;delete this.eventData[t],r.removeEventListener(t,this,e)}handleEvent(t){const e=this.eventData[t.type];typeof e=="function"?e.call(this.host,t):e.handleEvent(t)}disconnected(){const{eventData:t,element:e}=this;for(const r in t){const i=r.slice(1),n=t[r];e.removeEventListener(i,this,n)}}reconnected(){const{eventData:t,element:e}=this;for(const r in t){const i=r.slice(1),n=t[r];e.addEventListener(i,this,n)}}}class Lo extends Eo{apply(t){if(!t)return;const{prevData:e,element:r}=this;for(const i in t){const n=t[i];if(n===e[i])continue;const s=i.slice(1);switch(i[0]){case"@":this.eventData[s]=n,this.applyEvent(s,n);break;case".":r[s]=n;break;case"?":n?r.setAttribute(s,""):r.removeAttribute(s);break;default:n!=null?r.setAttribute(i,String(n)):r.removeAttribute(i);break}}}groom(t){const{prevData:e,element:r}=this;if(e)for(const i in e){const n=i.slice(1);if(!t||!(i in t)&&r[n]===e[i])switch(i[0]){case"@":this.groomEvent(n,e[i]);break;case".":r[n]=void 0;break;case"?":r.removeAttribute(n);break;default:r.removeAttribute(i);break}}}}const de=Zt(Lo);/**
169
+ */const dt=(o,t)=>{var r;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(r=i._$AO)==null||r.call(i,t,!1),dt(i,t);return!0},St=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},me=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),ko(t)}};function Co(o){this._$AN!==void 0?(St(this),this._$AM=o,me(this)):this._$AM=o}function _o(o,t=!1,e=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let n=e;n<r.length;n++)dt(r[n],!1),St(r[n]);else r!=null&&(dt(r,!1),St(r));else dt(this,o)}const ko=o=>{o.type==qt.CHILD&&(o._$AP??(o._$AP=_o),o._$AQ??(o._$AQ=Co))};class So extends Kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(dt(this,t),St(this))}setValue(t){if($o(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Ao extends So{constructor(){super(...arguments),this.prevData={}}render(t){return d}update(t,[e]){var r;this.element!==t.element&&(this.element=t.element),this.host=((r=t.options)===null||r===void 0?void 0:r.host)||this.element,this.apply(e),this.groom(e),this.prevData={...e}}apply(t){if(!t)return;const{prevData:e,element:r}=this;for(const i in t){const n=t[i];n!==e[i]&&(r[i]=n)}}groom(t){const{prevData:e,element:r}=this;if(e)for(const i in e)(!t||!(i in t)&&r[i]===e[i])&&(r[i]=void 0)}}class Eo extends Ao{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const e in t){const r=t[e];r!==this.eventData[e]&&this.applyEvent(e,r)}}applyEvent(t,e){const{prevData:r,element:i}=this;this.eventData[t]=e,r[t]&&i.removeEventListener(t,this,e),i.addEventListener(t,this,e)}groom(t){const{prevData:e,element:r}=this;if(e)for(const i in e)(!t||!(i in t)&&r[i]===e[i])&&this.groomEvent(i,e[i])}groomEvent(t,e){const{element:r}=this;delete this.eventData[t],r.removeEventListener(t,this,e)}handleEvent(t){const e=this.eventData[t.type];typeof e=="function"?e.call(this.host,t):e.handleEvent(t)}disconnected(){const{eventData:t,element:e}=this;for(const r in t){const i=r.slice(1),n=t[r];e.removeEventListener(i,this,n)}}reconnected(){const{eventData:t,element:e}=this;for(const r in t){const i=r.slice(1),n=t[r];e.addEventListener(i,this,n)}}}class Lo extends Eo{apply(t){if(!t)return;const{prevData:e,element:r}=this;for(const i in t){const n=t[i];if(n===e[i])continue;const s=i.slice(1);switch(i[0]){case"@":this.eventData[s]=n,this.applyEvent(s,n);break;case".":r[s]=n;break;case"?":n?r.setAttribute(s,""):r.removeAttribute(s);break;default:n!=null?r.setAttribute(i,String(n)):r.removeAttribute(i);break}}}groom(t){const{prevData:e,element:r}=this;if(e)for(const i in e){const n=i.slice(1);if(!t||!(i in t)&&r[n]===e[i])switch(i[0]){case"@":this.groomEvent(n,e[i]);break;case".":r[n]=void 0;break;case"?":r.removeAttribute(n);break;default:r.removeAttribute(i);break}}}}const de=Zt(Lo);/**
170
170
  * @license
171
171
  * Copyright 2018 Google LLC
172
172
  * SPDX-License-Identifier: BSD-3-Clause
173
173
  */const S=o=>o??d;var Po=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,H=(o,t,e,r)=>{for(var i=r>1?void 0:r?Oo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Po(t,e,i),i};let A=class extends u{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="wishlist",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const o=F[this.icon]??"",t=`icon-${this.icon}`,e=o.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"'),r=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,i=this.showSrLabel?null:"icon";return l`
174
174
  ${this.type==="span"?l`
175
175
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
176
- ${_(e)}
176
+ ${C(e)}
177
177
  </span>
178
178
  `:l`
179
179
  <button
@@ -182,7 +182,7 @@
182
182
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
183
183
  ?disabled="${this.disabled}"
184
184
  >
185
- ${_(e)}
185
+ ${C(e)}
186
186
  ${r}
187
187
  </button>
188
188
  `}
@@ -680,7 +680,7 @@
680
680
  .detail-content {
681
681
  padding: var(--spacing-xl);
682
682
  }
683
- `;p.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';p.focusablesCustomElementsSelector="o-icon-button, o-button";b([a({type:Boolean,reflect:!0})],p.prototype,"open",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],p.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],p.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],p.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],p.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],p.prototype,"initialized",2);b([a({type:Boolean})],p.prototype,"showDetail",2);b([a({type:Boolean})],p.prototype,"isHidingDetail",2);p=b([g("o-side-panel")],p);var Bo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,x=(o,t,e,r)=>{for(var i=r>1?void 0:r?Do(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Bo(t,e,i),i};const Ho=Vt(u);let y=class extends Ho{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target="",this.underlined=!1,this.withbadge=!1}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Ut].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof p&&(t!=null&&t.openPanel)&&typeof t.openPanel=="function"?(o.preventDefault(),t.openPanel()):console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`)}}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){const t=o==="start"?this.startIconModel:this.endIconModel;if(!t)return d;const e=F[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${_(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
683
+ `;p.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';p.focusablesCustomElementsSelector="o-icon-button, o-button";b([a({type:Boolean,reflect:!0})],p.prototype,"open",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],p.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],p.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],p.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],p.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],p.prototype,"initialized",2);b([a({type:Boolean})],p.prototype,"showDetail",2);b([a({type:Boolean})],p.prototype,"isHidingDetail",2);p=b([g("o-side-panel")],p);var Bo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,x=(o,t,e,r)=>{for(var i=r>1?void 0:r?Do(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Bo(t,e,i),i};const Ho=Vt(u);let y=class extends Ho{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target="",this.underlined=!1,this.withbadge=!1}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Ut].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof p&&(t!=null&&t.openPanel)&&typeof t.openPanel=="function"?(o.preventDefault(),t.openPanel()):console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`)}}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){const t=o==="start"?this.startIconModel:this.endIconModel;if(!t)return d;const e=F[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${C(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
684
684
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}>
685
685
  ${this.startIcon?this.renderIcon("start"):d}
686
686
  ${o?l`
@@ -912,7 +912,7 @@
912
912
  `;x([a()],y.prototype,"type",2);x([a()],y.prototype,"value",2);x([a({type:String,reflect:!0})],y.prototype,"variant",2);x([a({type:String})],y.prototype,"text",2);x([a({type:String})],y.prototype,"textsecond",2);x([a({type:Boolean,reflect:!0})],y.prototype,"fullwidth",2);x([a({type:Boolean,reflect:!0})],y.prototype,"disabled",2);x([a({type:String})],y.prototype,"startIconModel",2);x([a({type:String})],y.prototype,"endIconModel",2);x([a({type:Boolean,reflect:!0,attribute:"starticon"})],y.prototype,"startIcon",2);x([a({type:Boolean,reflect:!0,attribute:"endicon"})],y.prototype,"endIcon",2);x([a({type:String,attribute:"paneltarget"})],y.prototype,"panelTarget",2);x([a({type:String})],y.prototype,"href",2);x([a({type:String})],y.prototype,"target",2);x([a({type:Boolean,reflect:!0})],y.prototype,"underlined",2);x([a({type:Boolean,reflect:!0})],y.prototype,"withbadge",2);y=x([g("o-button")],y);var To=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,Et=(o,t,e,r)=>{for(var i=r>1?void 0:r?Mo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&To(t,e,i),i};let st=class extends u{constructor(){super(...arguments),this.status="empty",this.ariaDescribedBy="a-product-name",this.label="Add to wishlist",this.toggleStatus=()=>{this.status=this.status==="empty"?"filled":"empty",this.setAttribute("aria-pressed",String(this.status==="filled")),this.dispatchEvent(new CustomEvent("wishlist-toggle",{detail:{status:this.status},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("aria-pressed",String(this.status==="filled"))}firstUpdated(){this.addEventListener("click",this.toggleStatus),this.addEventListener("keydown",this.handleKeydown)}handleKeydown(o){(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),this.toggleStatus())}render(){const o=F.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
913
913
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
914
914
  <span class="sr-only">${this.label}</span>
915
- ${_(o)}
915
+ ${C(o)}
916
916
  </button>
917
917
  `}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};st.styles=v`
918
918
  :host {
@@ -978,7 +978,7 @@
978
978
  width: 0.1rem !important;
979
979
  white-space: nowrap !important;
980
980
  }
981
- `;Et([a({type:String,reflect:!0})],st.prototype,"status",2);Et([a({type:String,reflect:!0})],st.prototype,"ariaDescribedBy",2);Et([a({type:String,reflect:!0})],st.prototype,"label",2);st=Et([g("o-wishlist-button")],st);var jo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,it=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ro(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&jo(t,e,i),i};let U=class extends u{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){const o=this.href||"#";return l`
981
+ `;Et([a({type:String,reflect:!0})],st.prototype,"status",2);Et([a({type:String,reflect:!0})],st.prototype,"ariaDescribedBy",2);Et([a({type:String,reflect:!0})],st.prototype,"label",2);st=Et([g("o-wishlist-button")],st);var jo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,it=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ro(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&jo(t,e,i),i};let U=class extends u{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault(),this.dispatchEvent(new CustomEvent("click",{detail:{href:this.href},bubbles:!0,composed:!0}))}render(){const o=this.href||"#";return l`
982
982
  <a
983
983
  href="${o}"
984
984
  target="${S(this.target||void 0)}"
@@ -1094,7 +1094,7 @@
1094
1094
  `;it([a({type:String})],U.prototype,"href",2);it([a({type:String})],U.prototype,"target",2);it([a({type:String,reflect:!0})],U.prototype,"template",2);it([a({type:Boolean,reflect:!0})],U.prototype,"inverse",2);it([a({type:Boolean,reflect:!0})],U.prototype,"endIcon",2);it([a({type:Boolean,reflect:!0})],U.prototype,"reverseEndIcon",2);U=it([g("o-link")],U);var No=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,Lt=(o,t,e,r)=>{for(var i=r>1?void 0:r?Fo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&No(t,e,i),i};let at=class extends u{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let r;e>=1?r=100:e<=0?r=0:r=Math.round(e*100/25)*25,o.push(`star-${r}`)}return o}render(){const o=this.getStarKeys();return l`
1095
1095
  <div class="rating">
1096
1096
  <div class="stars">
1097
- ${o.map(t=>l`<span class="star">${_(F[t]??"")}</span>`)}
1097
+ ${o.map(t=>l`<span class="star">${C(F[t]??"")}</span>`)}
1098
1098
  </div>
1099
1099
  ${this.reviewCount!=null&&this.href!=null?l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
1100
1100
  </div>
@@ -1461,10 +1461,10 @@
1461
1461
  ${e.url?l`
1462
1462
  <a href="${e.url}">
1463
1463
  <span>${e.label}</span>
1464
- ${e.value===this.value?l`<span class="check">${_(o)}</span>`:null}
1464
+ ${e.value===this.value?l`<span class="check">${C(o)}</span>`:null}
1465
1465
  </a>`:l`
1466
1466
  <span>${e.label}</span>
1467
- ${e.value===this.value?l`<span class="check">${_(o)}</span>`:null}`}
1467
+ ${e.value===this.value?l`<span class="check">${C(o)}</span>`:null}`}
1468
1468
  </li>`)}
1469
1469
  </ul>`:null}
1470
1470
 
@@ -1713,7 +1713,7 @@
1713
1713
  <div class="right">
1714
1714
  <span class="additional-text">${S(e.additionaltext)}</span>
1715
1715
  ${e.value===this.value&&!e.additionaltext?l`
1716
- <span class="check">${_(o)}</span>`:null}
1716
+ <span class="check">${C(o)}</span>`:null}
1717
1717
  </div>
1718
1718
  </a>
1719
1719
  </li>
@@ -2094,7 +2094,7 @@
2094
2094
  flex-wrap: wrap;
2095
2095
  gap: var(--spacing-s);
2096
2096
  }
2097
- `;Jt([a({reflect:!0})],yt.prototype,"name",2);Jt([a({reflect:!0})],yt.prototype,"value",2);yt=Jt([g("o-chipset")],yt);var hi=Object.defineProperty,di=Object.getOwnPropertyDescriptor,M=(o,t,e,r)=>{for(var i=r>1?void 0:r?di(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&hi(t,e,i),i};const pi=Vt(u);let P=class extends pi{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.text="",this.selected=!1,this.disabled=!1,this.fullwidth=!1,this.crossIconName="cross",this.strikethroughImgName="strikeDiagonal"}handleClick(o){if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;this.selected=!this.selected;const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}crossIcon(){const o=F[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${_(o)}</span>`}strikeThroughImg(){const o=xo[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return _(o)}render(){const o=this.text;return l`${this.type==="link"?l`
2097
+ `;Jt([a({reflect:!0})],yt.prototype,"name",2);Jt([a({reflect:!0})],yt.prototype,"value",2);yt=Jt([g("o-chipset")],yt);var hi=Object.defineProperty,di=Object.getOwnPropertyDescriptor,M=(o,t,e,r)=>{for(var i=r>1?void 0:r?di(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&hi(t,e,i),i};const pi=Vt(u);let P=class extends pi{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.text="",this.selected=!1,this.disabled=!1,this.fullwidth=!1,this.crossIconName="cross",this.strikethroughImgName="strikeDiagonal"}handleClick(o){if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;this.selected=!this.selected;const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}crossIcon(){const o=F[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${C(o)}</span>`}strikeThroughImg(){const o=xo[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return C(o)}render(){const o=this.text;return l`${this.type==="link"?l`
2098
2098
  <a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
2099
2099
  aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
2100
2100
  ${o?l`
@@ -2371,7 +2371,7 @@
2371
2371
  .fullpointer {
2372
2372
  cursor: pointer;
2373
2373
  }
2374
- `;let C=te;j([a({type:String})],C.prototype,"type");j([a({type:String})],C.prototype,"titleProduct");j([a({type:String})],C.prototype,"volume");j([a({type:String})],C.prototype,"perLiter");j([a({type:String})],C.prototype,"mainPrice");j([a({type:String})],C.prototype,"imageUrl");j([a({type:String})],C.prototype,"altImage");j([a({type:Boolean})],C.prototype,"fullwidth");j([a({type:String})],C.prototype,"tagText");j([a({type:Function})],C.prototype,"onClickTile");customElements.define("mini-tile",C);var vi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,Qt=(o,t,e,r)=>{for(var i=r>1?void 0:r?fi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&vi(t,e,i),i};let mt=class extends u{constructor(){super(...arguments),this.variant="cart",this.text=""}render(){return l`
2374
+ `;let _=te;j([a({type:String})],_.prototype,"type");j([a({type:String})],_.prototype,"titleProduct");j([a({type:String})],_.prototype,"volume");j([a({type:String})],_.prototype,"perLiter");j([a({type:String})],_.prototype,"mainPrice");j([a({type:String})],_.prototype,"imageUrl");j([a({type:String})],_.prototype,"altImage");j([a({type:Boolean})],_.prototype,"fullwidth");j([a({type:String})],_.prototype,"tagText");j([a({type:Function})],_.prototype,"onClickTile");customElements.define("mini-tile",_);var vi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,Qt=(o,t,e,r)=>{for(var i=r>1?void 0:r?fi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&vi(t,e,i),i};let mt=class extends u{constructor(){super(...arguments),this.variant="cart",this.text=""}render(){return l`
2375
2375
  <span class="badge">
2376
2376
  ${this.text?this.text:l`<slot></slot>`}
2377
2377
  </span>
@@ -2412,7 +2412,7 @@
2412
2412
  `;Qt([a({type:String,reflect:!0})],mt.prototype,"variant",2);Qt([a({type:String})],mt.prototype,"text",2);mt=Qt([g("o-badge")],mt);var bi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,I=(o,t,e,r)=>{for(var i=r>1?void 0:r?gi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&bi(t,e,i),i};let $=class extends u{constructor(){super(...arguments),this.icon="info",this.text="Sample text",this.verticalanchor="top",this.horizontalanchor="right",this.verticaloffset=24,this.horizontaloffset=24,this.animationduration=500,this.animationaxis="horizontal",this.animated=!0,this.lifeduration=5e3,this.multiline=!1}attributeChangedCallback(o,t,e){super.attributeChangedCallback(o,t,e),o=="verticaloffset"&&this.style.setProperty("--vertical-offset",e+"px"),o=="horizontaloffset"&&this.style.setProperty("--horizontal-offset",e+"px"),o=="animationduration"&&this.style.setProperty("--animation-duration",e+"ms")}selfCloseAfterDelay(){var o=this;setTimeout(function(){o.animated=!0,o.selfClose()},this.lifeduration)}selfClose(){var o=this;setTimeout(function(){o.remove()},this.animationduration+200)}connectedCallback(){var o=this;super.connectedCallback(),setTimeout(()=>{o.animated=!1,this.selfCloseAfterDelay()},600)}firstUpdated(){var r,i;var o=this;const t=(r=this.renderRoot)==null?void 0:r.querySelector("o-icon-button"),e=(i=this.renderRoot)==null?void 0:i.querySelector(".o-toast-text");if(e!=null){const n=window.getComputedStyle(e),s=parseInt(n.getPropertyValue("line-height").replace("px","")),h=parseInt(n.getPropertyValue("height").replace("px",""));!isNaN(s)&&!isNaN(h)&&h>s&&(this.multiline=!0)}t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=wo[this.icon].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"');return l`
2413
2413
  <div class="o-toast">
2414
2414
  <div class="o-toast-icon">
2415
- ${_(t)}
2415
+ ${C(t)}
2416
2416
  </div>
2417
2417
  <div class="o-toast-text">
2418
2418
  ${this.text}
@@ -2502,7 +2502,7 @@
2502
2502
  .o-toast-icon {
2503
2503
  height: 16px;
2504
2504
  }
2505
- `;I([a({type:String,reflect:!0})],$.prototype,"icon",2);I([a({type:String,reflect:!0})],$.prototype,"text",2);I([a({type:String,reflect:!0})],$.prototype,"verticalanchor",2);I([a({type:String,reflect:!0})],$.prototype,"horizontalanchor",2);I([a({type:Number,reflect:!0})],$.prototype,"verticaloffset",2);I([a({type:Number,reflect:!0})],$.prototype,"horizontaloffset",2);I([a({type:Number,reflect:!0})],$.prototype,"animationduration",2);I([a({type:String,reflect:!0})],$.prototype,"animationaxis",2);I([a({type:Boolean,reflect:!0})],$.prototype,"animated",2);I([a({type:Number,reflect:!0})],$.prototype,"lifeduration",2);I([a({type:Boolean,reflect:!0})],$.prototype,"multiline",2);$=I([g("o-toast")],$);var yi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,B=(o,t,e,r)=>{for(var i=r>1?void 0:r?mi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&yi(t,e,i),i};let xi=0,k=class extends u{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Checkbox",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-checkbox-${++xi}`)}toggle(){this.disabled||(this.indeterminate?(this.indeterminate=!1,this.checked=!0):this.checked=!this.checked,this.syncInput(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){this.inputEl&&(this.inputEl.checked=this.checked,this.inputEl.indeterminate=this.indeterminate)}updated(o){this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.toggle())}render(){const o=_(F.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=_(F.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
2505
+ `;I([a({type:String,reflect:!0})],$.prototype,"icon",2);I([a({type:String,reflect:!0})],$.prototype,"text",2);I([a({type:String,reflect:!0})],$.prototype,"verticalanchor",2);I([a({type:String,reflect:!0})],$.prototype,"horizontalanchor",2);I([a({type:Number,reflect:!0})],$.prototype,"verticaloffset",2);I([a({type:Number,reflect:!0})],$.prototype,"horizontaloffset",2);I([a({type:Number,reflect:!0})],$.prototype,"animationduration",2);I([a({type:String,reflect:!0})],$.prototype,"animationaxis",2);I([a({type:Boolean,reflect:!0})],$.prototype,"animated",2);I([a({type:Number,reflect:!0})],$.prototype,"lifeduration",2);I([a({type:Boolean,reflect:!0})],$.prototype,"multiline",2);$=I([g("o-toast")],$);var yi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,B=(o,t,e,r)=>{for(var i=r>1?void 0:r?mi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&yi(t,e,i),i};let xi=0,k=class extends u{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Checkbox",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-checkbox-${++xi}`)}toggle(){this.disabled||(this.indeterminate?(this.indeterminate=!1,this.checked=!0):this.checked=!this.checked,this.syncInput(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){this.inputEl&&(this.inputEl.checked=this.checked,this.inputEl.indeterminate=this.indeterminate)}updated(o){this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.toggle())}render(){const o=C(F.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=C(F.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
2506
2506
  <input
2507
2507
  type="checkbox"
2508
2508
  id=${this.inputId}
@@ -2621,7 +2621,7 @@
2621
2621
  svg path {
2622
2622
  stroke: var(--color-border-white);
2623
2623
  }
2624
- `;B([a({type:Boolean,reflect:!0})],k.prototype,"checked",2);B([a({type:Boolean,reflect:!0})],k.prototype,"indeterminate",2);B([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);B([a({type:String,reflect:!0})],k.prototype,"size",2);B([a({type:Boolean})],k.prototype,"showLabel",2);B([a({type:String})],k.prototype,"label",2);B([a({type:String})],k.prototype,"name",2);B([a({type:String})],k.prototype,"value",2);B([a({type:String,reflect:!0})],k.prototype,"inputId",2);B([ye("input")],k.prototype,"inputEl",2);k=B([g("o-checkbox")],k);var wi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,R=(o,t,e,r)=>{for(var i=r>1?void 0:r?$i(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&wi(t,e,i),i};let _i=0,O=class extends u{constructor(){super(),this.checked=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Radio button",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-radio-${++_i}`)}handleClick(){this.disabled||this.checked||(this.checked=!0,this.syncInput(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){this.inputEl&&(this.inputEl.checked=this.checked)}updated(o){if(o.has("checked")&&this.checked){const t=this.parentElement;t&&Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach(r=>{r!==this&&(r.checked=!1)})}this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.handleClick())}render(){return l`
2624
+ `;B([a({type:Boolean,reflect:!0})],k.prototype,"checked",2);B([a({type:Boolean,reflect:!0})],k.prototype,"indeterminate",2);B([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);B([a({type:String,reflect:!0})],k.prototype,"size",2);B([a({type:Boolean})],k.prototype,"showLabel",2);B([a({type:String})],k.prototype,"label",2);B([a({type:String})],k.prototype,"name",2);B([a({type:String})],k.prototype,"value",2);B([a({type:String,reflect:!0})],k.prototype,"inputId",2);B([ye("input")],k.prototype,"inputEl",2);k=B([g("o-checkbox")],k);var wi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,R=(o,t,e,r)=>{for(var i=r>1?void 0:r?$i(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&wi(t,e,i),i};let Ci=0,O=class extends u{constructor(){super(),this.checked=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Radio button",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-radio-${++Ci}`)}handleClick(){this.disabled||this.checked||(this.checked=!0,this.syncInput(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){this.inputEl&&(this.inputEl.checked=this.checked)}updated(o){if(o.has("checked")&&this.checked){const t=this.parentElement;t&&Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach(r=>{r!==this&&(r.checked=!1)})}this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.handleClick())}render(){return l`
2625
2625
  <input type="radio" id=${this.inputId} ?checked=${this.checked} ?disabled=${this.disabled} name=${this.name} value=${this.value} />
2626
2626
 
2627
2627
  <div class="box" role="radio" tabindex=${this.disabled?-1:0} aria-checked=${String(this.checked)} aria-disabled=${String(this.disabled)} @click=${this.handleClick} @keydown=${this.handleKeyDown}>
@@ -2718,7 +2718,7 @@
2718
2718
  width: 0;
2719
2719
  height: 0;
2720
2720
  }
2721
- `;R([a({type:Boolean,reflect:!0})],O.prototype,"checked",2);R([a({type:Boolean,reflect:!0})],O.prototype,"disabled",2);R([a({type:String,reflect:!0})],O.prototype,"size",2);R([a({type:Boolean})],O.prototype,"showLabel",2);R([a({type:String})],O.prototype,"label",2);R([a({type:String})],O.prototype,"name",2);R([a({type:String})],O.prototype,"value",2);R([a({type:String,reflect:!0})],O.prototype,"inputId",2);R([ye("input")],O.prototype,"inputEl",2);O=R([g("o-radio")],O);var Ci=Object.getOwnPropertyDescriptor,ki=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ci(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=s(i)||i);return i};let Mt=class extends u{render(){return l`
2721
+ `;R([a({type:Boolean,reflect:!0})],O.prototype,"checked",2);R([a({type:Boolean,reflect:!0})],O.prototype,"disabled",2);R([a({type:String,reflect:!0})],O.prototype,"size",2);R([a({type:Boolean})],O.prototype,"showLabel",2);R([a({type:String})],O.prototype,"label",2);R([a({type:String})],O.prototype,"name",2);R([a({type:String})],O.prototype,"value",2);R([a({type:String,reflect:!0})],O.prototype,"inputId",2);R([ye("input")],O.prototype,"inputEl",2);O=R([g("o-radio")],O);var _i=Object.getOwnPropertyDescriptor,ki=(o,t,e,r)=>{for(var i=r>1?void 0:r?_i(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=s(i)||i);return i};let Mt=class extends u{render(){return l`
2722
2722
  <nav aria-label="Breadcrumbs">
2723
2723
  <ul>
2724
2724
  <slot></slot>
package/index.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const _t = globalThis, jt = _t.ShadowRoot && (_t.ShadyCSS === void 0 || _t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Rt = Symbol(), ee = /* @__PURE__ */ new WeakMap();
6
+ const Ct = globalThis, jt = Ct.ShadowRoot && (Ct.ShadyCSS === void 0 || Ct.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Rt = Symbol(), ee = /* @__PURE__ */ new WeakMap();
7
7
  let ue = class {
8
8
  constructor(t, e, r) {
9
9
  if (this._$cssResult$ = !0, r !== Rt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -32,7 +32,7 @@ const we = (o) => new ue(typeof o == "string" ? o : o + "", void 0, Rt), v = (o,
32
32
  }, $e = (o, t) => {
33
33
  if (jt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
- const r = document.createElement("style"), i = _t.litNonce;
35
+ const r = document.createElement("style"), i = Ct.litNonce;
36
36
  i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, o.appendChild(r);
37
37
  }
38
38
  }, oe = jt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
@@ -45,7 +45,7 @@ const we = (o) => new ue(typeof o == "string" ? o : o + "", void 0, Rt), v = (o,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: _e, defineProperty: Ce, getOwnPropertyDescriptor: ke, getOwnPropertyNames: Se, getOwnPropertySymbols: Ae, getPrototypeOf: Ee } = Object, W = globalThis, ie = W.trustedTypes, Le = ie ? ie.emptyScript : "", Pt = W.reactiveElementPolyfillSupport, ct = (o, t) => o, Ct = { toAttribute(o, t) {
48
+ const { is: Ce, defineProperty: _e, getOwnPropertyDescriptor: ke, getOwnPropertyNames: Se, getOwnPropertySymbols: Ae, getPrototypeOf: Ee } = Object, W = globalThis, ie = W.trustedTypes, Le = ie ? ie.emptyScript : "", Pt = W.reactiveElementPolyfillSupport, ct = (o, t) => o, _t = { toAttribute(o, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  o = o ? Le : null;
@@ -73,7 +73,7 @@ const { is: _e, defineProperty: Ce, getOwnPropertyDescriptor: ke, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, Nt = (o, t) => !_e(o, t), re = { attribute: !0, type: String, converter: Ct, reflect: !1, useDefault: !1, hasChanged: Nt };
76
+ } }, Nt = (o, t) => !Ce(o, t), re = { attribute: !0, type: String, converter: _t, reflect: !1, useDefault: !1, hasChanged: Nt };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), W.litPropertyMetadata ?? (W.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let rt = class extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -85,7 +85,7 @@ let rt = class extends HTMLElement {
85
85
  static createProperty(t, e = re) {
86
86
  if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
87
87
  const r = Symbol(), i = this.getPropertyDescriptor(t, r, e);
88
- i !== void 0 && Ce(this.prototype, t, i);
88
+ i !== void 0 && _e(this.prototype, t, i);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, r) {
@@ -184,7 +184,7 @@ let rt = class extends HTMLElement {
184
184
  var n;
185
185
  const r = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, r);
186
186
  if (i !== void 0 && r.reflect === !0) {
187
- const s = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : Ct).toAttribute(e, r.type);
187
+ const s = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : _t).toAttribute(e, r.type);
188
188
  this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
189
189
  }
190
190
  }
@@ -192,7 +192,7 @@ let rt = class extends HTMLElement {
192
192
  var n, s;
193
193
  const r = this.constructor, i = r._$Eh.get(t);
194
194
  if (i !== void 0 && this._$Em !== i) {
195
- const h = r.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((n = h.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? h.converter : Ct;
195
+ const h = r.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((n = h.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? h.converter : _t;
196
196
  this._$Em = i, this[i] = c.fromAttribute(e, h.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? null, this._$Em = null;
197
197
  }
198
198
  }
@@ -564,7 +564,7 @@ const g = (o) => (t, e) => {
564
564
  * Copyright 2017 Google LLC
565
565
  * SPDX-License-Identifier: BSD-3-Clause
566
566
  */
567
- const Re = { attribute: !0, type: String, converter: Ct, reflect: !1, hasChanged: Nt }, Ne = (o = Re, t, e) => {
567
+ const Re = { attribute: !0, type: String, converter: _t, reflect: !1, hasChanged: Nt }, Ne = (o = Re, t, e) => {
568
568
  const { kind: r, metadata: i } = e;
569
569
  let n = globalThis.litPropertyMetadata.get(i);
570
570
  if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
@@ -855,7 +855,7 @@ Dt.directiveName = "unsafeHTML", Dt.resultType = 1;
855
855
  class Ht extends Dt {
856
856
  }
857
857
  Ht.directiveName = "unsafeSVG", Ht.resultType = 2;
858
- const _ = Zt(Ht);
858
+ const C = Zt(Ht);
859
859
  /**
860
860
  * @license
861
861
  * Copyright 2020 Google LLC
@@ -887,17 +887,17 @@ const dt = (o, t) => {
887
887
  e.add(o), ko(t);
888
888
  }
889
889
  };
890
- function _o(o) {
890
+ function Co(o) {
891
891
  this._$AN !== void 0 ? (St(this), this._$AM = o, me(this)) : this._$AM = o;
892
892
  }
893
- function Co(o, t = !1, e = 0) {
893
+ function _o(o, t = !1, e = 0) {
894
894
  const r = this._$AH, i = this._$AN;
895
895
  if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let n = e; n < r.length; n++) dt(r[n], !1), St(r[n]);
896
896
  else r != null && (dt(r, !1), St(r));
897
897
  else dt(this, o);
898
898
  }
899
899
  const ko = (o) => {
900
- o.type == qt.CHILD && (o._$AP ?? (o._$AP = Co), o._$AQ ?? (o._$AQ = _o));
900
+ o.type == qt.CHILD && (o._$AP ?? (o._$AP = _o), o._$AQ ?? (o._$AQ = Co));
901
901
  };
902
902
  class So extends Kt {
903
903
  constructor() {
@@ -1066,7 +1066,7 @@ let A = class extends u {
1066
1066
  return l`
1067
1067
  ${this.type === "span" ? l`
1068
1068
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
1069
- ${_(e)}
1069
+ ${C(e)}
1070
1070
  </span>
1071
1071
  ` : l`
1072
1072
  <button
@@ -1075,7 +1075,7 @@ let A = class extends u {
1075
1075
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
1076
1076
  ?disabled="${this.disabled}"
1077
1077
  >
1078
- ${_(e)}
1078
+ ${C(e)}
1079
1079
  ${r}
1080
1080
  </button>
1081
1081
  `}
@@ -1897,7 +1897,7 @@ let y = class extends Ho {
1897
1897
  "<svg",
1898
1898
  '<svg aria-hidden="true" focusable="false" part="svg"'
1899
1899
  );
1900
- return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${_(e)}</span>`;
1900
+ return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${C(e)}</span>`;
1901
1901
  }
1902
1902
  renderButton() {
1903
1903
  const o = this.text || this.textsecond;
@@ -2223,7 +2223,7 @@ let st = class extends u {
2223
2223
  return l`
2224
2224
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
2225
2225
  <span class="sr-only">${this.label}</span>
2226
- ${_(o)}
2226
+ ${C(o)}
2227
2227
  </button>
2228
2228
  `;
2229
2229
  }
@@ -2324,7 +2324,11 @@ let U = class extends u {
2324
2324
  super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
2325
2325
  }
2326
2326
  _handleClick(o) {
2327
- (!this.href || this.href === "#") && o.preventDefault();
2327
+ (!this.href || this.href === "#") && o.preventDefault(), this.dispatchEvent(new CustomEvent("click", {
2328
+ detail: { href: this.href },
2329
+ bubbles: !0,
2330
+ composed: !0
2331
+ }));
2328
2332
  }
2329
2333
  render() {
2330
2334
  const o = this.href || "#";
@@ -2490,7 +2494,7 @@ let at = class extends u {
2490
2494
  <div class="rating">
2491
2495
  <div class="stars">
2492
2496
  ${o.map(
2493
- (t) => l`<span class="star">${_(F[t] ?? "")}</span>`
2497
+ (t) => l`<span class="star">${C(F[t] ?? "")}</span>`
2494
2498
  )}
2495
2499
  </div>
2496
2500
  ${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
@@ -3088,10 +3092,10 @@ let z = class extends u {
3088
3092
  ${e.url ? l`
3089
3093
  <a href="${e.url}">
3090
3094
  <span>${e.label}</span>
3091
- ${e.value === this.value ? l`<span class="check">${_(o)}</span>` : null}
3095
+ ${e.value === this.value ? l`<span class="check">${C(o)}</span>` : null}
3092
3096
  </a>` : l`
3093
3097
  <span>${e.label}</span>
3094
- ${e.value === this.value ? l`<span class="check">${_(o)}</span>` : null}`}
3098
+ ${e.value === this.value ? l`<span class="check">${C(o)}</span>` : null}`}
3095
3099
  </li>`
3096
3100
  )}
3097
3101
  </ul>` : null}
@@ -3462,7 +3466,7 @@ let E = class extends u {
3462
3466
  <div class="right">
3463
3467
  <span class="additional-text">${S(e.additionaltext)}</span>
3464
3468
  ${e.value === this.value && !e.additionaltext ? l`
3465
- <span class="check">${_(o)}</span>` : null}
3469
+ <span class="check">${C(o)}</span>` : null}
3466
3470
  </div>
3467
3471
  </a>
3468
3472
  </li>
@@ -4031,14 +4035,14 @@ let P = class extends pi {
4031
4035
  "<svg",
4032
4036
  '<svg aria-hidden="true" focusable="false" part="svg"'
4033
4037
  ).replace(/stroke=[#"'a-z1-9]*/gi, "");
4034
- return l`<span class="cross-icon">${_(o)}</span>`;
4038
+ return l`<span class="cross-icon">${C(o)}</span>`;
4035
4039
  }
4036
4040
  strikeThroughImg() {
4037
4041
  const o = xo[this.strikethroughImgName].replace(
4038
4042
  "<svg",
4039
4043
  '<svg aria-hidden="true" focusable="false" part="strikethrough"'
4040
4044
  ).replace(/stroke=[#"'a-z1-9]*/gi, "");
4041
- return _(o);
4045
+ return C(o);
4042
4046
  }
4043
4047
  render() {
4044
4048
  const o = this.text;
@@ -4373,38 +4377,38 @@ te.styles = v`
4373
4377
  cursor: pointer;
4374
4378
  }
4375
4379
  `;
4376
- let C = te;
4380
+ let _ = te;
4377
4381
  j([
4378
4382
  a({ type: String })
4379
- ], C.prototype, "type");
4383
+ ], _.prototype, "type");
4380
4384
  j([
4381
4385
  a({ type: String })
4382
- ], C.prototype, "titleProduct");
4386
+ ], _.prototype, "titleProduct");
4383
4387
  j([
4384
4388
  a({ type: String })
4385
- ], C.prototype, "volume");
4389
+ ], _.prototype, "volume");
4386
4390
  j([
4387
4391
  a({ type: String })
4388
- ], C.prototype, "perLiter");
4392
+ ], _.prototype, "perLiter");
4389
4393
  j([
4390
4394
  a({ type: String })
4391
- ], C.prototype, "mainPrice");
4395
+ ], _.prototype, "mainPrice");
4392
4396
  j([
4393
4397
  a({ type: String })
4394
- ], C.prototype, "imageUrl");
4398
+ ], _.prototype, "imageUrl");
4395
4399
  j([
4396
4400
  a({ type: String })
4397
- ], C.prototype, "altImage");
4401
+ ], _.prototype, "altImage");
4398
4402
  j([
4399
4403
  a({ type: Boolean })
4400
- ], C.prototype, "fullwidth");
4404
+ ], _.prototype, "fullwidth");
4401
4405
  j([
4402
4406
  a({ type: String })
4403
- ], C.prototype, "tagText");
4407
+ ], _.prototype, "tagText");
4404
4408
  j([
4405
4409
  a({ type: Function })
4406
- ], C.prototype, "onClickTile");
4407
- customElements.define("mini-tile", C);
4410
+ ], _.prototype, "onClickTile");
4411
+ customElements.define("mini-tile", _);
4408
4412
  var vi = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, Qt = (o, t, e, r) => {
4409
4413
  for (var i = r > 1 ? void 0 : r ? fi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
4410
4414
  (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
@@ -4519,7 +4523,7 @@ let $ = class extends u {
4519
4523
  return l`
4520
4524
  <div class="o-toast">
4521
4525
  <div class="o-toast-icon">
4522
- ${_(t)}
4526
+ ${C(t)}
4523
4527
  </div>
4524
4528
  <div class="o-toast-text">
4525
4529
  ${this.text}
@@ -4671,7 +4675,7 @@ let xi = 0, k = class extends u {
4671
4675
  this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
4672
4676
  }
4673
4677
  render() {
4674
- const o = _(F.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = _(F.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
4678
+ const o = C(F.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = C(F.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
4675
4679
  return l`
4676
4680
  <input
4677
4681
  type="checkbox"
@@ -4836,9 +4840,9 @@ var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, R = (o, t,
4836
4840
  (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
4837
4841
  return r && i && wi(t, e, i), i;
4838
4842
  };
4839
- let _i = 0, O = class extends u {
4843
+ let Ci = 0, O = class extends u {
4840
4844
  constructor() {
4841
- super(), this.checked = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Radio button", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-radio-${++_i}`);
4845
+ super(), this.checked = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Radio button", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-radio-${++Ci}`);
4842
4846
  }
4843
4847
  handleClick() {
4844
4848
  this.disabled || this.checked || (this.checked = !0, this.syncInput(), this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
@@ -4990,8 +4994,8 @@ R([
4990
4994
  O = R([
4991
4995
  g("o-radio")
4992
4996
  ], O);
4993
- var Ci = Object.getOwnPropertyDescriptor, ki = (o, t, e, r) => {
4994
- for (var i = r > 1 ? void 0 : r ? Ci(t, e) : t, n = o.length - 1, s; n >= 0; n--)
4997
+ var _i = Object.getOwnPropertyDescriptor, ki = (o, t, e, r) => {
4998
+ for (var i = r > 1 ? void 0 : r ? _i(t, e) : t, n = o.length - 1, s; n >= 0; n--)
4995
4999
  (s = o[n]) && (i = s(i) || i);
4996
5000
  return i;
4997
5001
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "0.9.21",
3
+ "version": "0.9.22",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",