@florid-kit/components 0.8.27 → 0.8.29

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.
@@ -6,6 +6,7 @@ export declare class OccitaneFilterChip extends buttonBaseClass {
6
6
  name: string;
7
7
  value: string;
8
8
  type: string;
9
+ datahref: string;
9
10
  text: string;
10
11
  selected: boolean;
11
12
  disabled: boolean;
package/index.js CHANGED
@@ -6,17 +6,17 @@
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:le,defineProperty:ce,getOwnPropertyDescriptor:he,getOwnPropertyNames:de,getOwnPropertySymbols:pe,getPrototypeOf:ue}=Object,T=globalThis,Rt=T.trustedTypes,ve=Rt?Rt.emptyScript:"",mt=T.reactiveElementPolyfillSupport,tt=(o,t)=>o,ut={toAttribute(o,t){switch(t){case Boolean:o=o?ve: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}},Lt=(o,t)=>!le(o,t),Vt={attribute:!0,type:String,converter:ut,reflect:!1,useDefault:!1,hasChanged:Lt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),T.litPropertyMetadata??(T.litPropertyMetadata=new WeakMap);let G=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=Vt){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}=he(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)??Vt}static _$Ei(){if(this.hasOwnProperty(tt("elementProperties")))return;const t=ue(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tt("properties"))){const e=this.properties,r=[...de(e),...pe(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(Ft(i))}else t!==void 0&&e.push(Ft(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 ae(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:ut).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:ut;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??Lt)(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){}};G.elementStyles=[],G.shadowRootOptions={mode:"open"},G[tt("elementProperties")]=new Map,G[tt("finalized")]=new Map,mt==null||mt({ReactiveElement:G}),(T.reactiveElementVersions??(T.reactiveElementVersions=[])).push("2.1.0");/**
9
+ */const{is:le,defineProperty:ce,getOwnPropertyDescriptor:he,getOwnPropertyNames:de,getOwnPropertySymbols:pe,getPrototypeOf:ue}=Object,j=globalThis,Rt=j.trustedTypes,ve=Rt?Rt.emptyScript:"",mt=j.reactiveElementPolyfillSupport,tt=(o,t)=>o,ut={toAttribute(o,t){switch(t){case Boolean:o=o?ve: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}},Lt=(o,t)=>!le(o,t),Vt={attribute:!0,type:String,converter:ut,reflect:!1,useDefault:!1,hasChanged:Lt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),j.litPropertyMetadata??(j.litPropertyMetadata=new WeakMap);let G=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=Vt){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}=he(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)??Vt}static _$Ei(){if(this.hasOwnProperty(tt("elementProperties")))return;const t=ue(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tt("properties"))){const e=this.properties,r=[...de(e),...pe(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(Ft(i))}else t!==void 0&&e.push(Ft(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 ae(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:ut).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:ut;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??Lt)(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){}};G.elementStyles=[],G.shadowRootOptions={mode:"open"},G[tt("elementProperties")]=new Map,G[tt("finalized")]=new Map,mt==null||mt({ReactiveElement:G}),(j.reactiveElementVersions??(j.reactiveElementVersions=[])).push("2.1.0");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const et=globalThis,vt=et.trustedTypes,Zt=vt?vt.createPolicy("lit-html",{createHTML:o=>o}):void 0,te="$lit$",M=`lit$${Math.random().toFixed(9).slice(2)}$`,ee="?"+M,be=`<${ee}>`,Z=document,it=()=>Z.createComment(""),rt=o=>o===null||typeof o!="object"&&typeof o!="function",It=Array.isArray,fe=o=>It(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",xt=`[
13
+ */const et=globalThis,vt=et.trustedTypes,Zt=vt?vt.createPolicy("lit-html",{createHTML:o=>o}):void 0,te="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,ee="?"+T,be=`<${ee}>`,Z=document,it=()=>Z.createComment(""),rt=o=>o===null||typeof o!="object"&&typeof o!="function",It=Array.isArray,fe=o=>It(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",xt=`[
14
14
  \f\r]`,Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qt=/-->/g,Wt=/>/g,F=RegExp(`>|${xt}(?:([^\\s"'>=/]+)(${xt}*=${xt}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Kt=/'/g,Gt=/"/g,oe=/^(?:script|style|textarea|title)$/i,ge=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=ge(1),j=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Xt=new WeakMap,R=Z.createTreeWalker(Z,129);function ie(o,t){if(!It(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zt!==void 0?Zt.createHTML(t):t}const ye=(o,t)=>{const e=o.length-1,r=[];let i,n=t===2?"<svg>":t===3?"<math>":"",s=Y;for(let h=0;h<e;h++){const c=o[h];let f,m,p=-1,O=0;for(;O<c.length&&(s.lastIndex=O,m=s.exec(c),m!==null);)O=s.lastIndex,s===Y?m[1]==="!--"?s=qt:m[1]!==void 0?s=Wt:m[2]!==void 0?(oe.test(m[2])&&(i=RegExp("</"+m[2],"g")),s=F):m[3]!==void 0&&(s=F):s===F?m[0]===">"?(s=i??Y,p=-1):m[1]===void 0?p=-2:(p=s.lastIndex-m[2].length,f=m[1],s=m[3]===void 0?F:m[3]==='"'?Gt:Kt):s===Gt||s===Kt?s=F:s===qt||s===Wt?s=Y:(s=F,i=void 0);const H=s===F&&o[h+1].startsWith("/>")?" ":"";n+=s===Y?c+be:p>=0?(r.push(f),c.slice(0,p)+te+c.slice(p)+M+H):c+M+(p===-2?h:H)}return[ie(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class nt{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0;const h=t.length-1,c=this.parts,[f,m]=ye(t,e);if(this.el=nt.createElement(f,r),R.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=R.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(te)){const O=m[s++],H=i.getAttribute(p).split(M),dt=/([.?@])?(.*)/.exec(O);c.push({type:1,index:n,name:dt[2],strings:H,ctor:dt[1]==="."?xe:dt[1]==="?"?we:dt[1]==="@"?$e:ft}),i.removeAttribute(p)}else p.startsWith(M)&&(c.push({type:6,index:n}),i.removeAttribute(p));if(oe.test(i.tagName)){const p=i.textContent.split(M),O=p.length-1;if(O>0){i.textContent=vt?vt.emptyScript:"";for(let H=0;H<O;H++)i.append(p[H],it()),R.nextNode(),c.push({type:2,index:++n});i.append(p[O],it())}}}else if(i.nodeType===8)if(i.data===ee)c.push({type:2,index:n});else{let p=-1;for(;(p=i.data.indexOf(M,p+1))!==-1;)c.push({type:7,index:n}),p+=M.length-1}n++}}static createElement(t,e){const r=Z.createElement("template");return r.innerHTML=t,r}}function X(o,t,e=o,r){var s,h;if(t===j)return t;let i=r!==void 0?(s=e._$Co)==null?void 0:s[r]:e._$Cl;const n=rt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=i:e._$Cl=i),i!==void 0&&(t=X(o,i._$AS(o,t.values),i,r)),t}class me{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??Z).importNode(e,!0);R.currentNode=i;let n=R.nextNode(),s=0,h=0,c=r[0];for(;c!==void 0;){if(s===c.index){let f;c.type===2?f=new ht(n,n.nextSibling,this,t):c.type===1?f=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(f=new _e(n,this,t)),this._$AV.push(f),c=r[++h]}s!==(c==null?void 0:c.index)&&(n=R.nextNode(),s++)}return R.currentNode=Z,i}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class ht{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),rt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==j&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&rt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Z.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=nt.createElement(ie(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const s=new me(i,this),h=s.u(this.options);s.p(e),this.T(h),this._$AH=s}}_$AC(t){let e=Xt.get(t.strings);return e===void 0&&Xt.set(t.strings,e=new nt(t)),e}k(t){It(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const n of t)i===e.length?e.push(r=new ht(this.O(it()),this.O(it()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,i){const n=this.strings;let s=!1;if(n===void 0)t=X(this,t,e,0),s=!rt(t)||t!==this._$AH&&t!==j,s&&(this._$AH=t);else{const h=t;let c,f;for(t=n[0],c=0;c<n.length-1;c++)f=X(this,h[r+c],e,c),f===j&&(f=this._$AH[c]),s||(s=!rt(f)||f!==this._$AH[c]),f===d?t=d:t!==d&&(t+=(f??"")+n[c+1]),this._$AH[c]=f}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xe extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class we extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class $e extends ft{constructor(t,e,r,i,n){super(t,e,r,i,n),this.type=5}_$AI(t,e=this){if((t=X(this,t,e,0)??d)===j)return;const r=this._$AH,i=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==d&&(r===d||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class _e{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const wt=et.litHtmlPolyfillSupport;wt==null||wt(nt,ht),(et.litHtmlVersions??(et.litHtmlVersions=[])).push("3.3.0");const ke=(o,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new ht(t.insertBefore(it(),n),n,void 0,e??{})}return i._$AI(o),i};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Kt=/'/g,Gt=/"/g,oe=/^(?:script|style|textarea|title)$/i,ge=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=ge(1),U=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Xt=new WeakMap,R=Z.createTreeWalker(Z,129);function ie(o,t){if(!It(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zt!==void 0?Zt.createHTML(t):t}const ye=(o,t)=>{const e=o.length-1,r=[];let i,n=t===2?"<svg>":t===3?"<math>":"",s=Y;for(let h=0;h<e;h++){const c=o[h];let f,m,p=-1,O=0;for(;O<c.length&&(s.lastIndex=O,m=s.exec(c),m!==null);)O=s.lastIndex,s===Y?m[1]==="!--"?s=qt:m[1]!==void 0?s=Wt:m[2]!==void 0?(oe.test(m[2])&&(i=RegExp("</"+m[2],"g")),s=F):m[3]!==void 0&&(s=F):s===F?m[0]===">"?(s=i??Y,p=-1):m[1]===void 0?p=-2:(p=s.lastIndex-m[2].length,f=m[1],s=m[3]===void 0?F:m[3]==='"'?Gt:Kt):s===Gt||s===Kt?s=F:s===qt||s===Wt?s=Y:(s=F,i=void 0);const M=s===F&&o[h+1].startsWith("/>")?" ":"";n+=s===Y?c+be:p>=0?(r.push(f),c.slice(0,p)+te+c.slice(p)+T+M):c+T+(p===-2?h:M)}return[ie(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class nt{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0;const h=t.length-1,c=this.parts,[f,m]=ye(t,e);if(this.el=nt.createElement(f,r),R.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=R.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(te)){const O=m[s++],M=i.getAttribute(p).split(T),dt=/([.?@])?(.*)/.exec(O);c.push({type:1,index:n,name:dt[2],strings:M,ctor:dt[1]==="."?xe:dt[1]==="?"?we:dt[1]==="@"?$e:ft}),i.removeAttribute(p)}else p.startsWith(T)&&(c.push({type:6,index:n}),i.removeAttribute(p));if(oe.test(i.tagName)){const p=i.textContent.split(T),O=p.length-1;if(O>0){i.textContent=vt?vt.emptyScript:"";for(let M=0;M<O;M++)i.append(p[M],it()),R.nextNode(),c.push({type:2,index:++n});i.append(p[O],it())}}}else if(i.nodeType===8)if(i.data===ee)c.push({type:2,index:n});else{let p=-1;for(;(p=i.data.indexOf(T,p+1))!==-1;)c.push({type:7,index:n}),p+=T.length-1}n++}}static createElement(t,e){const r=Z.createElement("template");return r.innerHTML=t,r}}function X(o,t,e=o,r){var s,h;if(t===U)return t;let i=r!==void 0?(s=e._$Co)==null?void 0:s[r]:e._$Cl;const n=rt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=i:e._$Cl=i),i!==void 0&&(t=X(o,i._$AS(o,t.values),i,r)),t}class me{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??Z).importNode(e,!0);R.currentNode=i;let n=R.nextNode(),s=0,h=0,c=r[0];for(;c!==void 0;){if(s===c.index){let f;c.type===2?f=new ht(n,n.nextSibling,this,t):c.type===1?f=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(f=new _e(n,this,t)),this._$AV.push(f),c=r[++h]}s!==(c==null?void 0:c.index)&&(n=R.nextNode(),s++)}return R.currentNode=Z,i}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class ht{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),rt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&rt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Z.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=nt.createElement(ie(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const s=new me(i,this),h=s.u(this.options);s.p(e),this.T(h),this._$AH=s}}_$AC(t){let e=Xt.get(t.strings);return e===void 0&&Xt.set(t.strings,e=new nt(t)),e}k(t){It(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const n of t)i===e.length?e.push(r=new ht(this.O(it()),this.O(it()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,i){const n=this.strings;let s=!1;if(n===void 0)t=X(this,t,e,0),s=!rt(t)||t!==this._$AH&&t!==U,s&&(this._$AH=t);else{const h=t;let c,f;for(t=n[0],c=0;c<n.length-1;c++)f=X(this,h[r+c],e,c),f===U&&(f=this._$AH[c]),s||(s=!rt(f)||f!==this._$AH[c]),f===d?t=d:t!==d&&(t+=(f??"")+n[c+1]),this._$AH[c]=f}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xe extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class we extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class $e extends ft{constructor(t,e,r,i,n){super(t,e,r,i,n),this.type=5}_$AI(t,e=this){if((t=X(this,t,e,0)??d)===U)return;const r=this._$AH,i=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==d&&(r===d||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class _e{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const wt=et.litHtmlPolyfillSupport;wt==null||wt(nt,ht),(et.litHtmlVersions??(et.litHtmlVersions=[])).push("3.3.0");const ke=(o,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new ht(t.insertBefore(it(),n),n,void 0,e??{})}return i._$AI(o),i};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const V=globalThis;let u=class extends G{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ke(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return j}};var Qt;u._$litElement$=!0,u.finalized=!0,(Qt=V.litElementHydrateSupport)==null||Qt.call(V,{LitElement:u});const $t=V.litElementPolyfillSupport;$t==null||$t({LitElement:u});(V.litElementVersions??(V.litElementVersions=[])).push("4.2.0");/**
19
+ */const V=globalThis;let u=class extends G{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ke(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return U}};var Qt;u._$litElement$=!0,u.finalized=!0,(Qt=V.litElementHydrateSupport)==null||Qt.call(V,{LitElement:u});const $t=V.litElementPolyfillSupport;$t==null||$t({LitElement:u});(V.litElementVersions??(V.litElementVersions=[])).push("4.2.0");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
@@ -135,11 +135,11 @@
135
135
  * @license
136
136
  * Copyright 2017 Google LLC
137
137
  * SPDX-License-Identifier: BSD-3-Clause
138
- */class kt extends Ht{constructor(t){if(super(t),this.it=d,t.type!==zt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===d||t==null)return this._t=void 0,this.it=t;if(t===j)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}kt.directiveName="unsafeHTML",kt.resultType=1;/**
138
+ */class kt extends Ht{constructor(t){if(super(t),this.it=d,t.type!==zt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===d||t==null)return this._t=void 0,this.it=t;if(t===U)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}kt.directiveName="unsafeHTML",kt.resultType=1;/**
139
139
  * @license
140
140
  * Copyright 2017 Google LLC
141
141
  * SPDX-License-Identifier: BSD-3-Clause
142
- */class Ct extends kt{}Ct.directiveName="unsafeSVG",Ct.resultType=2;const E=Dt(Ct);var Qe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,w=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ye(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&&Qe(t,e,i),i};const to=Bt(u);let v=class extends to{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}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Ot].form}handleClick(){if(this.panelTarget){const o=document.getElementById(this.panelTarget);o!=null&&o.openPanel&&typeof o.openPanel=="function"?o.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=W[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${E(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
142
+ */class Ct extends kt{}Ct.directiveName="unsafeSVG",Ct.resultType=2;const S=Dt(Ct);var Qe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,w=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ye(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&&Qe(t,e,i),i};const to=Bt(u);let v=class extends to{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}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Ot].form}handleClick(){if(this.panelTarget){const o=document.getElementById(this.panelTarget);o!=null&&o.openPanel&&typeof o.openPanel=="function"?o.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=W[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${S(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
143
143
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
144
144
  ${this.startIcon?this.renderIcon("start"):d}
145
145
  ${o?l`
@@ -349,7 +349,7 @@
349
349
  `;w([a()],v.prototype,"type",2);w([a({reflect:!0})],v.prototype,"value",2);w([a({type:String,reflect:!0})],v.prototype,"variant",2);w([a({type:String})],v.prototype,"text",2);w([a({type:String})],v.prototype,"textsecond",2);w([a({type:Boolean,reflect:!0})],v.prototype,"fullwidth",2);w([a({type:Boolean,reflect:!0})],v.prototype,"disabled",2);w([a({type:String,reflect:!0})],v.prototype,"startIconModel",2);w([a({type:String,reflect:!0})],v.prototype,"endIconModel",2);w([a({type:Boolean,reflect:!0,attribute:"starticon"})],v.prototype,"startIcon",2);w([a({type:Boolean,reflect:!0,attribute:"endicon"})],v.prototype,"endIcon",2);w([a({type:String,attribute:"paneltarget",reflect:!0})],v.prototype,"panelTarget",2);w([a({type:String})],v.prototype,"href",2);w([a({type:String})],v.prototype,"target",2);w([a({type:Boolean,reflect:!0})],v.prototype,"underlined",2);v=w([x("o-button")],v);var eo=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,gt=(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&&eo(t,e,i),i};let J=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("tabindex","0"),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=W.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
350
350
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
351
351
  <span class="sr-only">${this.label}</span>
352
- ${E(o)}
352
+ ${S(o)}
353
353
  </button>
354
354
  `}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()}};J.styles=g`
355
355
  :host {
@@ -423,7 +423,7 @@
423
423
  */const $=o=>o??d;var io=Object.defineProperty,ro=Object.getOwnPropertyDescriptor,I=(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&&io(t,e,i),i};let _=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=W[this.icon]??"",t=`icon-${this.icon}`,e=o.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),r=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,i=this.showSrLabel?null:"icon";return l`
424
424
  ${this.type==="span"?l`
425
425
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
426
- ${E(e)}
426
+ ${S(e)}
427
427
  </span>
428
428
  `:l`
429
429
  <button
@@ -432,7 +432,7 @@
432
432
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
433
433
  ?disabled="${this.disabled}"
434
434
  >
435
- ${E(e)}
435
+ ${S(e)}
436
436
  ${r}
437
437
  </button>
438
438
  `}
@@ -758,7 +758,7 @@
758
758
  `;K([a({type:String})],B.prototype,"href",2);K([a({type:String})],B.prototype,"target",2);K([a({type:String,reflect:!0})],B.prototype,"template",2);K([a({type:Boolean,reflect:!0})],B.prototype,"inverse",2);K([a({type:Boolean,reflect:!0})],B.prototype,"endIcon",2);K([a({type:Boolean,reflect:!0})],B.prototype,"reverseEndIcon",2);B=K([x("o-link")],B);var ao=Object.defineProperty,lo=Object.getOwnPropertyDescriptor,yt=(o,t,e,r)=>{for(var i=r>1?void 0:r?lo(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&&ao(t,e,i),i};let Q=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`
759
759
  <div class="rating">
760
760
  <div class="stars">
761
- ${o.map(t=>l`<span class="star">${E(W[t]??"")}</span>`)}
761
+ ${o.map(t=>l`<span class="star">${S(W[t]??"")}</span>`)}
762
762
  </div>
763
763
  ${this.reviewCount!=null&&this.href!=null?l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
764
764
  </div>
@@ -992,7 +992,7 @@
992
992
  --line-height: var(--line-height-280);
993
993
  }
994
994
  }
995
- `;y([a({type:Boolean,reflect:!0})],b.prototype,"open",2);y([a({type:Boolean,reflect:!0})],b.prototype,"showHeader",2);y([a({type:Boolean,reflect:!0})],b.prototype,"showFooter",2);y([a({type:Boolean,reflect:!0})],b.prototype,"showHeaderStartIcon",2);y([a({type:String,reflect:!0})],b.prototype,"headerTitle",2);y([a({type:String,reflect:!0})],b.prototype,"closeButtonLabel",2);y([a({type:String,reflect:!0})],b.prototype,"firstButtonLabel",2);y([a({type:String,reflect:!0})],b.prototype,"firstButtonVariant",2);y([a({type:Object,reflect:!0})],b.prototype,"firstButtonProps",2);y([a({type:Function})],b.prototype,"onFirstButtonClick",2);y([a({type:String,reflect:!0})],b.prototype,"secondaryButtonLabel",2);y([a({type:String,reflect:!0})],b.prototype,"secondaryButtonVariant",2);y([a({type:Object,reflect:!0})],b.prototype,"secondaryButtonProps",2);y([a({type:Function})],b.prototype,"onSecondaryButtonClick",2);y([a({type:Boolean,reflect:!0})],b.prototype,"disablePortal",2);y([a({type:Number,reflect:!0})],b.prototype,"zIndex",2);y([a({type:Boolean,reflect:!0})],b.prototype,"initialized",2);b=y([x("o-side-panel")],b);var xo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,U=(o,t,e,r)=>{for(var i=r>1?void 0:r?wo(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&&xo(t,e,i),i};let S=class extends u{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
995
+ `;y([a({type:Boolean,reflect:!0})],b.prototype,"open",2);y([a({type:Boolean,reflect:!0})],b.prototype,"showHeader",2);y([a({type:Boolean,reflect:!0})],b.prototype,"showFooter",2);y([a({type:Boolean,reflect:!0})],b.prototype,"showHeaderStartIcon",2);y([a({type:String,reflect:!0})],b.prototype,"headerTitle",2);y([a({type:String,reflect:!0})],b.prototype,"closeButtonLabel",2);y([a({type:String,reflect:!0})],b.prototype,"firstButtonLabel",2);y([a({type:String,reflect:!0})],b.prototype,"firstButtonVariant",2);y([a({type:Object,reflect:!0})],b.prototype,"firstButtonProps",2);y([a({type:Function})],b.prototype,"onFirstButtonClick",2);y([a({type:String,reflect:!0})],b.prototype,"secondaryButtonLabel",2);y([a({type:String,reflect:!0})],b.prototype,"secondaryButtonVariant",2);y([a({type:Object,reflect:!0})],b.prototype,"secondaryButtonProps",2);y([a({type:Function})],b.prototype,"onSecondaryButtonClick",2);y([a({type:Boolean,reflect:!0})],b.prototype,"disablePortal",2);y([a({type:Number,reflect:!0})],b.prototype,"zIndex",2);y([a({type:Boolean,reflect:!0})],b.prototype,"initialized",2);b=y([x("o-side-panel")],b);var xo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,N=(o,t,e,r)=>{for(var i=r>1?void 0:r?wo(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&&xo(t,e,i),i};let L=class extends u{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
996
996
  <o-icon-button
997
997
  icon="playerv"
998
998
  size="xsmall"
@@ -1023,7 +1023,7 @@
1023
1023
  </li>
1024
1024
  `})}
1025
1025
  </ul>
1026
- `}};S.styles=g`
1026
+ `}};L.styles=g`
1027
1027
  :host {
1028
1028
  display: flex;
1029
1029
  gap: 5px;
@@ -1128,7 +1128,7 @@
1128
1128
  height: 0;
1129
1129
  width: 0;
1130
1130
  }
1131
- `;U([a({type:Array})],S.prototype,"thumbnails",2);U([a({type:Number})],S.prototype,"activeIndex",2);U([a({type:Array})],S.prototype,"disabledIndexes",2);U([a({type:String})],S.prototype,"maxWidth",2);U([a({type:String})],S.prototype,"altressource",2);U([a({type:Object})],S.prototype,"swiperInstance",2);U([q()],S.prototype,"focusedIndex",2);S=U([x("thumbnail-navigation")],S);var $o=Object.defineProperty,_o=Object.getOwnPropertyDescriptor,Mt=(o,t,e,r)=>{for(var i=r>1?void 0:r?_o(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&&$o(t,e,i),i};let st=class extends u{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
1131
+ `;N([a({type:Array})],L.prototype,"thumbnails",2);N([a({type:Number})],L.prototype,"activeIndex",2);N([a({type:Array})],L.prototype,"disabledIndexes",2);N([a({type:String})],L.prototype,"maxWidth",2);N([a({type:String})],L.prototype,"altressource",2);N([a({type:Object})],L.prototype,"swiperInstance",2);N([q()],L.prototype,"focusedIndex",2);L=N([x("thumbnail-navigation")],L);var $o=Object.defineProperty,_o=Object.getOwnPropertyDescriptor,Mt=(o,t,e,r)=>{for(var i=r>1?void 0:r?_o(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&&$o(t,e,i),i};let st=class extends u{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
1132
1132
  <span class="tag ${this.bgstyle}"><slot></slot></span>
1133
1133
  `}};st.styles=g`
1134
1134
  .tag {
@@ -1322,10 +1322,10 @@
1322
1322
  ${e.url?l`
1323
1323
  <a href="${e.url}">
1324
1324
  <span>${e.label}</span>
1325
- ${e.value===this.value?l`<span class="check">${E(o)}</span>`:null}
1325
+ ${e.value===this.value?l`<span class="check">${S(o)}</span>`:null}
1326
1326
  </a>`:l`
1327
1327
  <span>${e.label}</span>
1328
- ${e.value===this.value?l`<span class="check">${E(o)}</span>`:null}`}
1328
+ ${e.value===this.value?l`<span class="check">${S(o)}</span>`:null}`}
1329
1329
  </li>`)}
1330
1330
  </ul>`:null}
1331
1331
 
@@ -1574,7 +1574,7 @@
1574
1574
  <div class="right">
1575
1575
  <span class="additional-text">${$(e.additionaltext)}</span>
1576
1576
  ${e.value===this.value&&!e.additionaltext?l`
1577
- <span class="check">${E(o)}</span>`:null}
1577
+ <span class="check">${S(o)}</span>`:null}
1578
1578
  </div>
1579
1579
  </a>
1580
1580
  </li>
@@ -1761,7 +1761,7 @@
1761
1761
  * @license
1762
1762
  * Copyright 2018 Google LLC
1763
1763
  * SPDX-License-Identifier: BSD-3-Clause
1764
- */const ne="important",Oo=" !"+ne,Bo=Dt(class extends Ht{constructor(o){var t;if(super(o),o.type!==zt.ATTRIBUTE||o.name!=="style"||((t=o.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{const r=o[e];return r==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(o,[t]){const{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?e.removeProperty(r):e[r]=null);for(const r in t){const i=t[r];if(i!=null){this.ft.add(r);const n=typeof i=="string"&&i.endsWith(Oo);r.includes("-")||n?e.setProperty(r,n?i.slice(0,-11):i,n?ne:""):e[r]=i}}return j}});var zo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,jt=(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&&zo(t,e,i),i};let lt=class extends u{constructor(){super(...arguments),this.option={},this.imageSize=64}render(){const o=this.option.clickable,t={width:`${this.imageSize}px`,height:`${this.imageSize}px`},e=l`
1764
+ */const ne="important",Oo=" !"+ne,Bo=Dt(class extends Ht{constructor(o){var t;if(super(o),o.type!==zt.ATTRIBUTE||o.name!=="style"||((t=o.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{const r=o[e];return r==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(o,[t]){const{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?e.removeProperty(r):e[r]=null);for(const r in t){const i=t[r];if(i!=null){this.ft.add(r);const n=typeof i=="string"&&i.endsWith(Oo);r.includes("-")||n?e.setProperty(r,n?i.slice(0,-11):i,n?ne:""):e[r]=i}}return U}});var zo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,jt=(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&&zo(t,e,i),i};let lt=class extends u{constructor(){super(...arguments),this.option={},this.imageSize=64}render(){const o=this.option.clickable,t={width:`${this.imageSize}px`,height:`${this.imageSize}px`},e=l`
1765
1765
  ${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${Bo(t)} />`:""}
1766
1766
  <div class="m-reassurance-content">
1767
1767
  <h3 class="a-reassurance-text">${$(this.option.title)}</h3>
@@ -1951,8 +1951,8 @@
1951
1951
  flex-wrap: wrap;
1952
1952
  gap: var(--spacing-s);
1953
1953
  }
1954
- `;Ut([a({reflect:!0})],ct.prototype,"name",2);Ut([a({reflect:!0})],ct.prototype,"value",2);ct=Ut([x("o-chipset")],ct);var No=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,N=(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};const Ro=Bt(u);let L=class extends Ro{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=W[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${E(o)}</span>`}strikeThroughImg(){const o=Je[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return E(o)}render(){const o=this.text;return l`${this.type==="link"?l`
1955
- <a role="button" tabindex="0" class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
1954
+ `;Ut([a({reflect:!0})],ct.prototype,"name",2);Ut([a({reflect:!0})],ct.prototype,"value",2);ct=Ut([x("o-chipset")],ct);var No=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,H=(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};const Ro=Bt(u);let E=class extends Ro{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.datahref="",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=W[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${S(o)}</span>`}strikeThroughImg(){const o=Je[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return S(o)}render(){const o=this.text;return l`${this.type==="link"?l`
1955
+ <a role="button" tabindex="0" class="button" href=${this.datahref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
1956
1956
  aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
1957
1957
  ${o?l`
1958
1958
  ${this.text?l`<span class="text">${this.text}</span>`:d}
@@ -1971,7 +1971,7 @@
1971
1971
  </button>
1972
1972
  `}
1973
1973
  ${this.disabled?this.strikeThroughImg():d}
1974
- `}};L.styles=g`
1974
+ `}};E.styles=g`
1975
1975
  :host {
1976
1976
  cursor: pointer;
1977
1977
  display: inline-flex;
@@ -2092,4 +2092,4 @@
2092
2092
  stroke-linecap: round;
2093
2093
  }
2094
2094
  }
2095
- `;N([a({reflect:!0})],L.prototype,"name",2);N([a({reflect:!0})],L.prototype,"value",2);N([a({type:String,reflect:!0})],L.prototype,"type",2);N([a({type:String})],L.prototype,"text",2);N([a({type:Boolean,reflect:!0})],L.prototype,"selected",2);N([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);N([a({type:Boolean,reflect:!0})],L.prototype,"fullwidth",2);L=N([x("o-filter-chip")],L);
2095
+ `;H([a({reflect:!0})],E.prototype,"name",2);H([a({reflect:!0})],E.prototype,"value",2);H([a({type:String,reflect:!0})],E.prototype,"type",2);H([a({type:String,reflect:!0})],E.prototype,"datahref",2);H([a({type:String})],E.prototype,"text",2);H([a({type:Boolean,reflect:!0})],E.prototype,"selected",2);H([a({type:Boolean,reflect:!0})],E.prototype,"disabled",2);H([a({type:Boolean,reflect:!0})],E.prototype,"fullwidth",2);E=H([x("o-filter-chip")],E);
package/index.mjs CHANGED
@@ -45,7 +45,7 @@ const se = (o) => new Yt(typeof o == "string" ? o : o + "", void 0, St), g = (o,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: le, defineProperty: ce, getOwnPropertyDescriptor: he, getOwnPropertyNames: de, getOwnPropertySymbols: pe, getPrototypeOf: ue } = Object, T = globalThis, Rt = T.trustedTypes, ve = Rt ? Rt.emptyScript : "", mt = T.reactiveElementPolyfillSupport, tt = (o, t) => o, ut = { toAttribute(o, t) {
48
+ const { is: le, defineProperty: ce, getOwnPropertyDescriptor: he, getOwnPropertyNames: de, getOwnPropertySymbols: pe, getPrototypeOf: ue } = Object, j = globalThis, Rt = j.trustedTypes, ve = Rt ? Rt.emptyScript : "", mt = j.reactiveElementPolyfillSupport, tt = (o, t) => o, ut = { toAttribute(o, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  o = o ? ve : null;
@@ -74,7 +74,7 @@ const { is: le, defineProperty: ce, getOwnPropertyDescriptor: he, getOwnProperty
74
74
  }
75
75
  return e;
76
76
  } }, Lt = (o, t) => !le(o, t), Vt = { attribute: !0, type: String, converter: ut, reflect: !1, useDefault: !1, hasChanged: Lt };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), T.litPropertyMetadata ?? (T.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), j.litPropertyMetadata ?? (j.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let G = class extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
@@ -276,15 +276,15 @@ let G = class extends HTMLElement {
276
276
  firstUpdated(t) {
277
277
  }
278
278
  };
279
- G.elementStyles = [], G.shadowRootOptions = { mode: "open" }, G[tt("elementProperties")] = /* @__PURE__ */ new Map(), G[tt("finalized")] = /* @__PURE__ */ new Map(), mt == null || mt({ ReactiveElement: G }), (T.reactiveElementVersions ?? (T.reactiveElementVersions = [])).push("2.1.0");
279
+ G.elementStyles = [], G.shadowRootOptions = { mode: "open" }, G[tt("elementProperties")] = /* @__PURE__ */ new Map(), G[tt("finalized")] = /* @__PURE__ */ new Map(), mt == null || mt({ ReactiveElement: G }), (j.reactiveElementVersions ?? (j.reactiveElementVersions = [])).push("2.1.0");
280
280
  /**
281
281
  * @license
282
282
  * Copyright 2017 Google LLC
283
283
  * SPDX-License-Identifier: BSD-3-Clause
284
284
  */
285
- const et = globalThis, vt = et.trustedTypes, Zt = vt ? vt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, te = "$lit$", M = `lit$${Math.random().toFixed(9).slice(2)}$`, ee = "?" + M, be = `<${ee}>`, Z = document, it = () => Z.createComment(""), rt = (o) => o === null || typeof o != "object" && typeof o != "function", It = Array.isArray, fe = (o) => It(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", xt = `[
285
+ const et = globalThis, vt = et.trustedTypes, Zt = vt ? vt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, te = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, ee = "?" + T, be = `<${ee}>`, Z = document, it = () => Z.createComment(""), rt = (o) => o === null || typeof o != "object" && typeof o != "function", It = Array.isArray, fe = (o) => It(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", xt = `[
286
286
  \f\r]`, Y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Wt = />/g, F = RegExp(`>|${xt}(?:([^\\s"'>=/]+)(${xt}*=${xt}*(?:[^
287
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Gt = /"/g, oe = /^(?:script|style|textarea|title)$/i, ge = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = ge(1), j = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), R = Z.createTreeWalker(Z, 129);
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Gt = /"/g, oe = /^(?:script|style|textarea|title)$/i, ge = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = ge(1), U = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), R = Z.createTreeWalker(Z, 129);
288
288
  function ie(o, t) {
289
289
  if (!It(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
290
  return Zt !== void 0 ? Zt.createHTML(t) : t;
@@ -296,8 +296,8 @@ const ye = (o, t) => {
296
296
  const c = o[h];
297
297
  let f, m, p = -1, O = 0;
298
298
  for (; O < c.length && (s.lastIndex = O, m = s.exec(c), m !== null); ) O = s.lastIndex, s === Y ? m[1] === "!--" ? s = qt : m[1] !== void 0 ? s = Wt : m[2] !== void 0 ? (oe.test(m[2]) && (i = RegExp("</" + m[2], "g")), s = F) : m[3] !== void 0 && (s = F) : s === F ? m[0] === ">" ? (s = i ?? Y, p = -1) : m[1] === void 0 ? p = -2 : (p = s.lastIndex - m[2].length, f = m[1], s = m[3] === void 0 ? F : m[3] === '"' ? Gt : Kt) : s === Gt || s === Kt ? s = F : s === qt || s === Wt ? s = Y : (s = F, i = void 0);
299
- const H = s === F && o[h + 1].startsWith("/>") ? " " : "";
300
- n += s === Y ? c + be : p >= 0 ? (r.push(f), c.slice(0, p) + te + c.slice(p) + M + H) : c + M + (p === -2 ? h : H);
299
+ const M = s === F && o[h + 1].startsWith("/>") ? " " : "";
300
+ n += s === Y ? c + be : p >= 0 ? (r.push(f), c.slice(0, p) + te + c.slice(p) + T + M) : c + T + (p === -2 ? h : M);
301
301
  }
302
302
  return [ie(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
303
303
  };
@@ -314,21 +314,21 @@ class nt {
314
314
  for (; (i = R.nextNode()) !== null && c.length < h; ) {
315
315
  if (i.nodeType === 1) {
316
316
  if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(te)) {
317
- const O = m[s++], H = i.getAttribute(p).split(M), dt = /([.?@])?(.*)/.exec(O);
318
- c.push({ type: 1, index: n, name: dt[2], strings: H, ctor: dt[1] === "." ? xe : dt[1] === "?" ? we : dt[1] === "@" ? $e : ft }), i.removeAttribute(p);
319
- } else p.startsWith(M) && (c.push({ type: 6, index: n }), i.removeAttribute(p));
317
+ const O = m[s++], M = i.getAttribute(p).split(T), dt = /([.?@])?(.*)/.exec(O);
318
+ c.push({ type: 1, index: n, name: dt[2], strings: M, ctor: dt[1] === "." ? xe : dt[1] === "?" ? we : dt[1] === "@" ? $e : ft }), i.removeAttribute(p);
319
+ } else p.startsWith(T) && (c.push({ type: 6, index: n }), i.removeAttribute(p));
320
320
  if (oe.test(i.tagName)) {
321
- const p = i.textContent.split(M), O = p.length - 1;
321
+ const p = i.textContent.split(T), O = p.length - 1;
322
322
  if (O > 0) {
323
323
  i.textContent = vt ? vt.emptyScript : "";
324
- for (let H = 0; H < O; H++) i.append(p[H], it()), R.nextNode(), c.push({ type: 2, index: ++n });
324
+ for (let M = 0; M < O; M++) i.append(p[M], it()), R.nextNode(), c.push({ type: 2, index: ++n });
325
325
  i.append(p[O], it());
326
326
  }
327
327
  }
328
328
  } else if (i.nodeType === 8) if (i.data === ee) c.push({ type: 2, index: n });
329
329
  else {
330
330
  let p = -1;
331
- for (; (p = i.data.indexOf(M, p + 1)) !== -1; ) c.push({ type: 7, index: n }), p += M.length - 1;
331
+ for (; (p = i.data.indexOf(T, p + 1)) !== -1; ) c.push({ type: 7, index: n }), p += T.length - 1;
332
332
  }
333
333
  n++;
334
334
  }
@@ -340,7 +340,7 @@ class nt {
340
340
  }
341
341
  function X(o, t, e = o, r) {
342
342
  var s, h;
343
- if (t === j) return t;
343
+ if (t === U) return t;
344
344
  let i = r !== void 0 ? (s = e._$Co) == null ? void 0 : s[r] : e._$Cl;
345
345
  const n = rt(t) ? void 0 : t._$litDirective$;
346
346
  return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = i : e._$Cl = i), i !== void 0 && (t = X(o, i._$AS(o, t.values), i, r)), t;
@@ -393,7 +393,7 @@ class ht {
393
393
  return this._$AB;
394
394
  }
395
395
  _$AI(t, e = this) {
396
- t = X(this, t, e), rt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : fe(t) ? this.k(t) : this._(t);
396
+ t = X(this, t, e), rt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : fe(t) ? this.k(t) : this._(t);
397
397
  }
398
398
  O(t) {
399
399
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -449,11 +449,11 @@ class ft {
449
449
  _$AI(t, e = this, r, i) {
450
450
  const n = this.strings;
451
451
  let s = !1;
452
- if (n === void 0) t = X(this, t, e, 0), s = !rt(t) || t !== this._$AH && t !== j, s && (this._$AH = t);
452
+ if (n === void 0) t = X(this, t, e, 0), s = !rt(t) || t !== this._$AH && t !== U, s && (this._$AH = t);
453
453
  else {
454
454
  const h = t;
455
455
  let c, f;
456
- for (t = n[0], c = 0; c < n.length - 1; c++) f = X(this, h[r + c], e, c), f === j && (f = this._$AH[c]), s || (s = !rt(f) || f !== this._$AH[c]), f === d ? t = d : t !== d && (t += (f ?? "") + n[c + 1]), this._$AH[c] = f;
456
+ for (t = n[0], c = 0; c < n.length - 1; c++) f = X(this, h[r + c], e, c), f === U && (f = this._$AH[c]), s || (s = !rt(f) || f !== this._$AH[c]), f === d ? t = d : t !== d && (t += (f ?? "") + n[c + 1]), this._$AH[c] = f;
457
457
  }
458
458
  s && !i && this.j(t);
459
459
  }
@@ -482,7 +482,7 @@ class $e extends ft {
482
482
  super(t, e, r, i, n), this.type = 5;
483
483
  }
484
484
  _$AI(t, e = this) {
485
- if ((t = X(this, t, e, 0) ?? d) === j) return;
485
+ if ((t = X(this, t, e, 0) ?? d) === U) return;
486
486
  const r = this._$AH, i = t === d && r !== d || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, n = t !== d && (r === d || i);
487
487
  i && this.element.removeEventListener(this.name, this, r), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
488
  }
@@ -541,7 +541,7 @@ let u = class extends G {
541
541
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
542
542
  }
543
543
  render() {
544
- return j;
544
+ return U;
545
545
  }
546
546
  };
547
547
  var Qt;
@@ -798,7 +798,7 @@ class kt extends Ht {
798
798
  }
799
799
  render(t) {
800
800
  if (t === d || t == null) return this._t = void 0, this.it = t;
801
- if (t === j) return t;
801
+ if (t === U) return t;
802
802
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
803
803
  if (t === this.it) return this._t;
804
804
  this.it = t;
@@ -815,7 +815,7 @@ kt.directiveName = "unsafeHTML", kt.resultType = 1;
815
815
  class Ct extends kt {
816
816
  }
817
817
  Ct.directiveName = "unsafeSVG", Ct.resultType = 2;
818
- const E = Dt(Ct);
818
+ const S = Dt(Ct);
819
819
  var Qe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, w = (o, t, e, r) => {
820
820
  for (var i = r > 1 ? void 0 : r ? Ye(t, e) : t, n = o.length - 1, s; n >= 0; n--)
821
821
  (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
@@ -851,7 +851,7 @@ let v = class extends to {
851
851
  "<svg",
852
852
  '<svg aria-hidden="true" focusable="false" part="svg"'
853
853
  );
854
- return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${E(e)}</span>`;
854
+ return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${S(e)}</span>`;
855
855
  }
856
856
  renderButton() {
857
857
  const o = this.text || this.textsecond;
@@ -1152,7 +1152,7 @@ let J = class extends u {
1152
1152
  return l`
1153
1153
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
1154
1154
  <span class="sr-only">${this.label}</span>
1155
- ${E(o)}
1155
+ ${S(o)}
1156
1156
  </button>
1157
1157
  `;
1158
1158
  }
@@ -1270,7 +1270,7 @@ let _ = class extends u {
1270
1270
  return l`
1271
1271
  ${this.type === "span" ? l`
1272
1272
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
1273
- ${E(e)}
1273
+ ${S(e)}
1274
1274
  </span>
1275
1275
  ` : l`
1276
1276
  <button
@@ -1279,7 +1279,7 @@ let _ = class extends u {
1279
1279
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
1280
1280
  ?disabled="${this.disabled}"
1281
1281
  >
1282
- ${E(e)}
1282
+ ${S(e)}
1283
1283
  ${r}
1284
1284
  </button>
1285
1285
  `}
@@ -1699,7 +1699,7 @@ let Q = class extends u {
1699
1699
  <div class="rating">
1700
1700
  <div class="stars">
1701
1701
  ${o.map(
1702
- (t) => l`<span class="star">${E(W[t] ?? "")}</span>`
1702
+ (t) => l`<span class="star">${S(W[t] ?? "")}</span>`
1703
1703
  )}
1704
1704
  </div>
1705
1705
  ${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
@@ -2244,12 +2244,12 @@ y([
2244
2244
  b = y([
2245
2245
  x("o-side-panel")
2246
2246
  ], b);
2247
- var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, U = (o, t, e, r) => {
2247
+ var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, N = (o, t, e, r) => {
2248
2248
  for (var i = r > 1 ? void 0 : r ? wo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
2249
2249
  (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
2250
2250
  return r && i && xo(t, e, i), i;
2251
2251
  };
2252
- let S = class extends u {
2252
+ let L = class extends u {
2253
2253
  constructor() {
2254
2254
  super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
2255
2255
  <o-icon-button
@@ -2326,7 +2326,7 @@ let S = class extends u {
2326
2326
  `;
2327
2327
  }
2328
2328
  };
2329
- S.styles = g`
2329
+ L.styles = g`
2330
2330
  :host {
2331
2331
  display: flex;
2332
2332
  gap: 5px;
@@ -2432,30 +2432,30 @@ S.styles = g`
2432
2432
  width: 0;
2433
2433
  }
2434
2434
  `;
2435
- U([
2435
+ N([
2436
2436
  a({ type: Array })
2437
- ], S.prototype, "thumbnails", 2);
2438
- U([
2437
+ ], L.prototype, "thumbnails", 2);
2438
+ N([
2439
2439
  a({ type: Number })
2440
- ], S.prototype, "activeIndex", 2);
2441
- U([
2440
+ ], L.prototype, "activeIndex", 2);
2441
+ N([
2442
2442
  a({ type: Array })
2443
- ], S.prototype, "disabledIndexes", 2);
2444
- U([
2443
+ ], L.prototype, "disabledIndexes", 2);
2444
+ N([
2445
2445
  a({ type: String })
2446
- ], S.prototype, "maxWidth", 2);
2447
- U([
2446
+ ], L.prototype, "maxWidth", 2);
2447
+ N([
2448
2448
  a({ type: String })
2449
- ], S.prototype, "altressource", 2);
2450
- U([
2449
+ ], L.prototype, "altressource", 2);
2450
+ N([
2451
2451
  a({ type: Object })
2452
- ], S.prototype, "swiperInstance", 2);
2453
- U([
2452
+ ], L.prototype, "swiperInstance", 2);
2453
+ N([
2454
2454
  q()
2455
- ], S.prototype, "focusedIndex", 2);
2456
- S = U([
2455
+ ], L.prototype, "focusedIndex", 2);
2456
+ L = N([
2457
2457
  x("thumbnail-navigation")
2458
- ], S);
2458
+ ], L);
2459
2459
  var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Mt = (o, t, e, r) => {
2460
2460
  for (var i = r > 1 ? void 0 : r ? _o(t, e) : t, n = o.length - 1, s; n >= 0; n--)
2461
2461
  (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
@@ -2772,10 +2772,10 @@ let A = class extends u {
2772
2772
  ${e.url ? l`
2773
2773
  <a href="${e.url}">
2774
2774
  <span>${e.label}</span>
2775
- ${e.value === this.value ? l`<span class="check">${E(o)}</span>` : null}
2775
+ ${e.value === this.value ? l`<span class="check">${S(o)}</span>` : null}
2776
2776
  </a>` : l`
2777
2777
  <span>${e.label}</span>
2778
- ${e.value === this.value ? l`<span class="check">${E(o)}</span>` : null}`}
2778
+ ${e.value === this.value ? l`<span class="check">${S(o)}</span>` : null}`}
2779
2779
  </li>`
2780
2780
  )}
2781
2781
  </ul>` : null}
@@ -3146,7 +3146,7 @@ let k = class extends u {
3146
3146
  <div class="right">
3147
3147
  <span class="additional-text">${$(e.additionaltext)}</span>
3148
3148
  ${e.value === this.value && !e.additionaltext ? l`
3149
- <span class="check">${E(o)}</span>` : null}
3149
+ <span class="check">${S(o)}</span>` : null}
3150
3150
  </div>
3151
3151
  </a>
3152
3152
  </li>
@@ -3392,7 +3392,7 @@ const ne = "important", Oo = " !" + ne, Bo = Dt(class extends Ht {
3392
3392
  r.includes("-") || n ? e.setProperty(r, n ? i.slice(0, -11) : i, n ? ne : "") : e[r] = i;
3393
3393
  }
3394
3394
  }
3395
- return j;
3395
+ return U;
3396
3396
  }
3397
3397
  });
3398
3398
  var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, jt = (o, t, e, r) => {
@@ -3689,15 +3689,15 @@ Ut([
3689
3689
  ct = Ut([
3690
3690
  x("o-chipset")
3691
3691
  ], ct);
3692
- var No = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, N = (o, t, e, r) => {
3692
+ var No = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, H = (o, t, e, r) => {
3693
3693
  for (var i = r > 1 ? void 0 : r ? Fo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
3694
3694
  (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
3695
3695
  return r && i && No(t, e, i), i;
3696
3696
  };
3697
3697
  const Ro = Bt(u);
3698
- let L = class extends Ro {
3698
+ let E = class extends Ro {
3699
3699
  constructor() {
3700
- 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";
3700
+ super(...arguments), this.name = "", this.value = "", this.type = "", this.datahref = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
3701
3701
  }
3702
3702
  handleClick(o) {
3703
3703
  if (o instanceof KeyboardEvent && o.key !== "Enter" && o.key !== " ")
@@ -3711,19 +3711,19 @@ let L = class extends Ro {
3711
3711
  "<svg",
3712
3712
  '<svg aria-hidden="true" focusable="false" part="svg"'
3713
3713
  ).replace(/stroke=[#"'a-z1-9]*/gi, "");
3714
- return l`<span class="cross-icon">${E(o)}</span>`;
3714
+ return l`<span class="cross-icon">${S(o)}</span>`;
3715
3715
  }
3716
3716
  strikeThroughImg() {
3717
3717
  const o = Je[this.strikethroughImgName].replace(
3718
3718
  "<svg",
3719
3719
  '<svg aria-hidden="true" focusable="false" part="strikethrough"'
3720
3720
  ).replace(/stroke=[#"'a-z1-9]*/gi, "");
3721
- return E(o);
3721
+ return S(o);
3722
3722
  }
3723
3723
  render() {
3724
3724
  const o = this.text;
3725
3725
  return l`${this.type === "link" ? l`
3726
- <a role="button" tabindex="0" class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
3726
+ <a role="button" tabindex="0" class="button" href=${this.datahref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
3727
3727
  aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
3728
3728
  ${o ? l`
3729
3729
  ${this.text ? l`<span class="text">${this.text}</span>` : d}
@@ -3745,7 +3745,7 @@ let L = class extends Ro {
3745
3745
  `;
3746
3746
  }
3747
3747
  };
3748
- L.styles = g`
3748
+ E.styles = g`
3749
3749
  :host {
3750
3750
  cursor: pointer;
3751
3751
  display: inline-flex;
@@ -3867,27 +3867,30 @@ L.styles = g`
3867
3867
  }
3868
3868
  }
3869
3869
  `;
3870
- N([
3870
+ H([
3871
3871
  a({ reflect: !0 })
3872
- ], L.prototype, "name", 2);
3873
- N([
3872
+ ], E.prototype, "name", 2);
3873
+ H([
3874
3874
  a({ reflect: !0 })
3875
- ], L.prototype, "value", 2);
3876
- N([
3875
+ ], E.prototype, "value", 2);
3876
+ H([
3877
3877
  a({ type: String, reflect: !0 })
3878
- ], L.prototype, "type", 2);
3879
- N([
3878
+ ], E.prototype, "type", 2);
3879
+ H([
3880
+ a({ type: String, reflect: !0 })
3881
+ ], E.prototype, "datahref", 2);
3882
+ H([
3880
3883
  a({ type: String })
3881
- ], L.prototype, "text", 2);
3882
- N([
3884
+ ], E.prototype, "text", 2);
3885
+ H([
3883
3886
  a({ type: Boolean, reflect: !0 })
3884
- ], L.prototype, "selected", 2);
3885
- N([
3887
+ ], E.prototype, "selected", 2);
3888
+ H([
3886
3889
  a({ type: Boolean, reflect: !0 })
3887
- ], L.prototype, "disabled", 2);
3888
- N([
3890
+ ], E.prototype, "disabled", 2);
3891
+ H([
3889
3892
  a({ type: Boolean, reflect: !0 })
3890
- ], L.prototype, "fullwidth", 2);
3891
- L = N([
3893
+ ], E.prototype, "fullwidth", 2);
3894
+ E = H([
3892
3895
  x("o-filter-chip")
3893
- ], L);
3896
+ ], E);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "0.8.27",
3
+ "version": "0.8.29",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",