@florid-kit/components 0.10.14 → 0.10.16

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 +757 -785
  2. package/index.mjs +1089 -1117
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -2,21 +2,21 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Lt=globalThis,Vt=Lt.ShadowRoot&&(Lt.ShadyCSS===void 0||Lt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zt=Symbol(),le=new WeakMap;let xe=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Zt)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(Vt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=le.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&le.set(e,t))}return t}toString(){return this.cssText}};const Ae=o=>new xe(typeof o=="string"?o:o+"",void 0,Zt),f=(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 xe(e,o,Zt)},Le=(o,t)=>{if(Vt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),i=Lt.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},ce=Vt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return Ae(e)})(o):o;/**
5
+ */const At=globalThis,Vt=At.ShadowRoot&&(At.ShadyCSS===void 0||At.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zt=Symbol(),le=new WeakMap;let xe=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==Zt)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(Vt&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=le.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&le.set(e,t))}return t}toString(){return this.cssText}};const Le=o=>new xe(typeof o=="string"?o:o+"",void 0,Zt),f=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((n,i,r)=>n+(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[r+1],o[0]);return new xe(e,o,Zt)},Ae=(o,t)=>{if(Vt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),i=At.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=e.cssText,o.appendChild(n)}},ce=Vt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return Le(e)})(o):o;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Pe,defineProperty:Be,getOwnPropertyDescriptor:ze,getOwnPropertyNames:Oe,getOwnPropertySymbols:Ie,getPrototypeOf:De}=Object,Q=globalThis,he=Q.trustedTypes,He=he?he.emptyScript:"",Ht=Q.reactiveElementPolyfillSupport,vt=(o,t)=>o,Pt={toAttribute(o,t){switch(t){case Boolean:o=o?He: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}},Kt=(o,t)=>!Pe(o,t),de={attribute:!0,type:String,converter:Pt,reflect:!1,useDefault:!1,hasChanged:Kt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Q.litPropertyMetadata??(Q.litPropertyMetadata=new WeakMap);let ct=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=de){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&&Be(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:n}=ze(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:i,set(s){const c=i==null?void 0:i.call(this);n==null||n.call(this,s),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??de}static _$Ei(){if(this.hasOwnProperty(vt("elementProperties")))return;const t=De(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vt("properties"))){const e=this.properties,r=[...Oe(e),...Ie(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(ce(i))}else t!==void 0&&e.push(ce(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 Le(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:Pt).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 c=r.getPropertyOptions(i),h=typeof c.converter=="function"?{fromAttribute:c.converter}:((n=c.converter)==null?void 0:n.fromAttribute)!==void 0?c.converter:Pt;this._$Em=i,this[i]=h.fromAttribute(e,c.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??Kt)(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:c}=s,h=this[n];c!==!0||this._$AL.has(n)||h===void 0||this.C(n,void 0,s,h)}}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){}};ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[vt("elementProperties")]=new Map,ct[vt("finalized")]=new Map,Ht==null||Ht({ReactiveElement:ct}),(Q.reactiveElementVersions??(Q.reactiveElementVersions=[])).push("2.1.0");/**
9
+ */const{is:Pe,defineProperty:Be,getOwnPropertyDescriptor:ze,getOwnPropertyNames:Oe,getOwnPropertySymbols:Ie,getPrototypeOf:De}=Object,Q=globalThis,he=Q.trustedTypes,He=he?he.emptyScript:"",Ht=Q.reactiveElementPolyfillSupport,vt=(o,t)=>o,Pt={toAttribute(o,t){switch(t){case Boolean:o=o?He: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}},Kt=(o,t)=>!Pe(o,t),de={attribute:!0,type:String,converter:Pt,reflect:!1,useDefault:!1,hasChanged:Kt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Q.litPropertyMetadata??(Q.litPropertyMetadata=new WeakMap);let ct=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=de){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 n=Symbol(),i=this.getPropertyDescriptor(t,n,e);i!==void 0&&Be(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=ze(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:i,set(s){const c=i==null?void 0:i.call(this);r==null||r.call(this,s),this.requestUpdate(t,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??de}static _$Ei(){if(this.hasOwnProperty(vt("elementProperties")))return;const t=De(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vt("properties"))){const e=this.properties,n=[...Oe(e),...Ie(e)];for(const i of n)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,i]of e)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const i=this._$Eu(e,n);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const i of n)e.unshift(ce(i))}else t!==void 0&&e.push(ce(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n: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 n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);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 n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){var r;const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){const s=(((r=n.converter)==null?void 0:r.toAttribute)!==void 0?n.converter:Pt).toAttribute(e,n.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var r,s;const n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const c=n.getPropertyOptions(i),h=typeof c.converter=="function"?{fromAttribute:c.converter}:((r=c.converter)==null?void 0:r.fromAttribute)!==void 0?c.converter:Pt;this._$Em=i,this[i]=h.fromAttribute(e,c.type)??((s=this._$Ej)==null?void 0:s.get(i))??null,this._$Em=null}}requestUpdate(t,e,n){var i;if(t!==void 0){const r=this.constructor,s=this[t];if(n??(n=r.getPropertyOptions(t)),!((n.hasChanged??Kt)(s,e)||n.useDefault&&n.reflect&&s===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(r._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:i,wrapped:r},s){n&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),r!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(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 n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[r,s]of i){const{wrapped:c}=s,h=this[r];c!==!0||this._$AL.has(r)||h===void 0||this.C(r,void 0,s,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostUpdate)==null?void 0:r.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(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),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){}};ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[vt("elementProperties")]=new Map,ct[vt("finalized")]=new Map,Ht==null||Ht({ReactiveElement:ct}),(Q.reactiveElementVersions??(Q.reactiveElementVersions=[])).push("2.1.0");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
13
  */const gt=globalThis,Bt=gt.trustedTypes,pe=Bt?Bt.createPolicy("lit-html",{createHTML:o=>o}):void 0,we="$lit$",J=`lit$${Math.random().toFixed(9).slice(2)}$`,$e="?"+J,Te=`<${$e}>`,st=document,yt=()=>st.createComment(""),mt=o=>o===null||typeof o!="object"&&typeof o!="function",Wt=Array.isArray,Me=o=>Wt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Tt=`[
14
14
  \f\r]`,ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ue=/-->/g,fe=/>/g,it=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,ge=/"/g,ke=/^(?:script|style|textarea|title)$/i,je=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=je(1),tt=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),be=new WeakMap,rt=st.createTreeWalker(st,129);function _e(o,t){if(!Wt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return pe!==void 0?pe.createHTML(t):t}const Fe=(o,t)=>{const e=o.length-1,r=[];let i,n=t===2?"<svg>":t===3?"<math>":"",s=ft;for(let c=0;c<e;c++){const h=o[c];let w,_,v=-1,V=0;for(;V<h.length&&(s.lastIndex=V,_=s.exec(h),_!==null);)V=s.lastIndex,s===ft?_[1]==="!--"?s=ue:_[1]!==void 0?s=fe:_[2]!==void 0?(ke.test(_[2])&&(i=RegExp("</"+_[2],"g")),s=it):_[3]!==void 0&&(s=it):s===it?_[0]===">"?(s=i??ft,v=-1):_[1]===void 0?v=-2:(v=s.lastIndex-_[2].length,w=_[1],s=_[3]===void 0?it:_[3]==='"'?ge:ve):s===ge||s===ve?s=it:s===ue||s===fe?s=ft:(s=it,i=void 0);const Y=s===it&&o[c+1].startsWith("/>")?" ":"";n+=s===ft?h+Te:v>=0?(r.push(w),h.slice(0,v)+we+h.slice(v)+J+Y):h+J+(v===-2?c:Y)}return[_e(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class xt{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0;const c=t.length-1,h=this.parts,[w,_]=Fe(t,e);if(this.el=xt.createElement(w,r),rt.currentNode=this.el.content,e===2||e===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=rt.nextNode())!==null&&h.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(we)){const V=_[s++],Y=i.getAttribute(v).split(J),At=/([.?@])?(.*)/.exec(V);h.push({type:1,index:n,name:At[2],strings:Y,ctor:At[1]==="."?Ue:At[1]==="?"?Ne:At[1]==="@"?qe:Ot}),i.removeAttribute(v)}else v.startsWith(J)&&(h.push({type:6,index:n}),i.removeAttribute(v));if(ke.test(i.tagName)){const v=i.textContent.split(J),V=v.length-1;if(V>0){i.textContent=Bt?Bt.emptyScript:"";for(let Y=0;Y<V;Y++)i.append(v[Y],yt()),rt.nextNode(),h.push({type:2,index:++n});i.append(v[V],yt())}}}else if(i.nodeType===8)if(i.data===$e)h.push({type:2,index:n});else{let v=-1;for(;(v=i.data.indexOf(J,v+1))!==-1;)h.push({type:7,index:n}),v+=J.length-1}n++}}static createElement(t,e){const r=st.createElement("template");return r.innerHTML=t,r}}function ht(o,t,e=o,r){var s,c;if(t===tt)return t;let i=r!==void 0?(s=e._$Co)==null?void 0:s[r]:e._$Cl;const n=mt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((c=i==null?void 0:i._$AO)==null||c.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=ht(o,i._$AS(o,t.values),i,r)),t}class Re{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)??st).importNode(e,!0);rt.currentNode=i;let n=rt.nextNode(),s=0,c=0,h=r[0];for(;h!==void 0;){if(s===h.index){let w;h.type===2?w=new Et(n,n.nextSibling,this,t):h.type===1?w=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(w=new Ve(n,this,t)),this._$AV.push(w),h=r[++c]}s!==(h==null?void 0:h.index)&&(n=rt.nextNode(),s++)}return rt.currentNode=st,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 Et{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=ht(this,t,e),mt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==tt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Me(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&&mt(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.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=xt.createElement(_e(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 Re(i,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=be.get(t.strings);return e===void 0&&be.set(t.strings,e=new xt(t)),e}k(t){Wt(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 Et(this.O(yt()),this.O(yt()),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 Ot{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=ht(this,t,e,0),s=!mt(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{const c=t;let h,w;for(t=n[0],h=0;h<n.length-1;h++)w=ht(this,c[r+h],e,h),w===tt&&(w=this._$AH[h]),s||(s=!mt(w)||w!==this._$AH[h]),w===d?t=d:t!==d&&(t+=(w??"")+n[h+1]),this._$AH[h]=w}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ue extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Ne extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class qe extends Ot{constructor(t,e,r,i,n){super(t,e,r,i,n),this.type=5}_$AI(t,e=this){if((t=ht(this,t,e,0)??d)===tt)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 Ve{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){ht(this,t)}}const Mt=gt.litHtmlPolyfillSupport;Mt==null||Mt(xt,Et),(gt.litHtmlVersions??(gt.litHtmlVersions=[])).push("3.3.0");const Ze=(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 Et(t.insertBefore(yt(),n),n,void 0,e??{})}return i._$AI(o),i};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,ge=/"/g,ke=/^(?:script|style|textarea|title)$/i,je=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=je(1),tt=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),be=new WeakMap,nt=st.createTreeWalker(st,129);function _e(o,t){if(!Wt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return pe!==void 0?pe.createHTML(t):t}const Fe=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=ft;for(let c=0;c<e;c++){const h=o[c];let w,_,v=-1,V=0;for(;V<h.length&&(s.lastIndex=V,_=s.exec(h),_!==null);)V=s.lastIndex,s===ft?_[1]==="!--"?s=ue:_[1]!==void 0?s=fe:_[2]!==void 0?(ke.test(_[2])&&(i=RegExp("</"+_[2],"g")),s=it):_[3]!==void 0&&(s=it):s===it?_[0]===">"?(s=i??ft,v=-1):_[1]===void 0?v=-2:(v=s.lastIndex-_[2].length,w=_[1],s=_[3]===void 0?it:_[3]==='"'?ge:ve):s===ge||s===ve?s=it:s===ue||s===fe?s=ft:(s=it,i=void 0);const Y=s===it&&o[c+1].startsWith("/>")?" ":"";r+=s===ft?h+Te:v>=0?(n.push(w),h.slice(0,v)+we+h.slice(v)+J+Y):h+J+(v===-2?c:Y)}return[_e(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class xt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,h=this.parts,[w,_]=Fe(t,e);if(this.el=xt.createElement(w,n),nt.currentNode=this.el.content,e===2||e===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=nt.nextNode())!==null&&h.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(we)){const V=_[s++],Y=i.getAttribute(v).split(J),Lt=/([.?@])?(.*)/.exec(V);h.push({type:1,index:r,name:Lt[2],strings:Y,ctor:Lt[1]==="."?Ue:Lt[1]==="?"?Ne:Lt[1]==="@"?qe:Ot}),i.removeAttribute(v)}else v.startsWith(J)&&(h.push({type:6,index:r}),i.removeAttribute(v));if(ke.test(i.tagName)){const v=i.textContent.split(J),V=v.length-1;if(V>0){i.textContent=Bt?Bt.emptyScript:"";for(let Y=0;Y<V;Y++)i.append(v[Y],yt()),nt.nextNode(),h.push({type:2,index:++r});i.append(v[V],yt())}}}else if(i.nodeType===8)if(i.data===$e)h.push({type:2,index:r});else{let v=-1;for(;(v=i.data.indexOf(J,v+1))!==-1;)h.push({type:7,index:r}),v+=J.length-1}r++}}static createElement(t,e){const n=st.createElement("template");return n.innerHTML=t,n}}function ht(o,t,e=o,n){var s,c;if(t===tt)return t;let i=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=mt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=i:e._$Cl=i),i!==void 0&&(t=ht(o,i._$AS(o,t.values),i,n)),t}class Re{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:n}=this._$AD,i=((t==null?void 0:t.creationScope)??st).importNode(e,!0);nt.currentNode=i;let r=nt.nextNode(),s=0,c=0,h=n[0];for(;h!==void 0;){if(s===h.index){let w;h.type===2?w=new Et(r,r.nextSibling,this,t):h.type===1?w=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(w=new Ve(r,this,t)),this._$AV.push(w),h=n[++c]}s!==(h==null?void 0:h.index)&&(r=nt.nextNode(),s++)}return nt.currentNode=st,i}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class Et{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,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=ht(this,t,e),mt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==tt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Me(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&&mt(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=xt.createElement(_e(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{const s=new Re(i,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=be.get(t.strings);return e===void 0&&be.set(t.strings,e=new xt(t)),e}k(t){Wt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new Et(this.O(yt()),this.O(yt()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.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 Ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(t,e=this,n,i){const r=this.strings;let s=!1;if(r===void 0)t=ht(this,t,e,0),s=!mt(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{const c=t;let h,w;for(t=r[0],h=0;h<r.length-1;h++)w=ht(this,c[n+h],e,h),w===tt&&(w=this._$AH[h]),s||(s=!mt(w)||w!==this._$AH[h]),w===d?t=d:t!==d&&(t+=(w??"")+r[h+1]),this._$AH[h]=w}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ue extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Ne extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class qe extends Ot{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=ht(this,t,e,0)??d)===tt)return;const n=this._$AH,i=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==d&&(n===d||i);i&&this.element.removeEventListener(this.name,this,n),r&&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 Ve{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}}const Mt=gt.litHtmlPolyfillSupport;Mt==null||Mt(xt,Et),(gt.litHtmlVersions??(gt.litHtmlVersions=[])).push("3.3.0");const Ze=(o,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let i=n._$litPart$;if(i===void 0){const r=(e==null?void 0:e.renderBefore)??null;n._$litPart$=i=new Et(t.insertBefore(yt(),r),r,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 nt=globalThis;let p=class extends ct{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=Ze(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 tt}};var me;p._$litElement$=!0,p.finalized=!0,(me=nt.litElementHydrateSupport)==null||me.call(nt,{LitElement:p});const jt=nt.litElementPolyfillSupport;jt==null||jt({LitElement:p});(nt.litElementVersions??(nt.litElementVersions=[])).push("4.2.0");/**
19
+ */const rt=globalThis;let p=class extends ct{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=Ze(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 tt}};var me;p._$litElement$=!0,p.finalized=!0,(me=rt.litElementHydrateSupport)==null||me.call(rt,{LitElement:p});const jt=rt.litElementPolyfillSupport;jt==null||jt({LitElement:p});(rt.litElementVersions??(rt.litElementVersions=[])).push("4.2.0");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * 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 Ke={attribute:!0,type:String,converter:Pt,reflect:!1,hasChanged:Kt},We=(o=Ke,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(c){const h=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,h,o)},init(c){return c!==void 0&&this.C(s,void 0,o,c),c}}}if(r==="setter"){const{name:s}=e;return function(c){const h=this[s];t.call(this,c),this.requestUpdate(s,h,o)}}throw Error("Unsupported decorator location: "+r)};function a(o){return(t,e)=>typeof e=="object"?We(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 Ke={attribute:!0,type:String,converter:Pt,reflect:!1,hasChanged:Kt},We=(o=Ke,t,e)=>{const{kind:n,metadata:i}=e;let r=globalThis.litPropertyMetadata.get(i);if(r===void 0&&globalThis.litPropertyMetadata.set(i,r=new Map),n==="setter"&&((o=Object.create(o)).wrapped=!0),r.set(e.name,o),n==="accessor"){const{name:s}=e;return{set(c){const h=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,h,o)},init(c){return c!==void 0&&this.C(s,void 0,o,c),c}}}if(n==="setter"){const{name:s}=e;return function(c){const h=this[s];t.call(this,c),this.requestUpdate(s,h,o)}}throw Error("Unsupported decorator location: "+n)};function a(o){return(t,e)=>typeof e=="object"?We(o,t,e):((n,i,r)=>{const s=i.hasOwnProperty(r);return i.constructor.createProperty(r,n),s?Object.getOwnPropertyDescriptor(i,r):void 0})(o,t,e)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
@@ -36,7 +36,7 @@
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */function Ce(o,t){return(e,r,i)=>{const n=s=>{var c;return((c=s.renderRoot)==null?void 0:c.querySelector(o))??null};return Ge(e,r,{get(){return n(this)}})}}const at=f`
39
+ */function Ce(o,t){return(e,n,i)=>{const r=s=>{var c;return((c=s.renderRoot)==null?void 0:c.querySelector(o))??null};return Ge(e,n,{get(){return r(this)}})}}const at=f`
40
40
  outline: 1px dashed var(--color-border-primary);
41
41
  outline-offset: 2px;
42
42
  `;f`
@@ -51,7 +51,7 @@
51
51
  * @license
52
52
  * Copyright 2023 Google LLC
53
53
  * SPDX-License-Identifier: Apache-2.0
54
- */function Xe(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async r=>{const{type:i,[Gt]:n}=e,{form:s}=n;if(!(!s||i==="button")&&(await new Promise(c=>{setTimeout(c)}),!r.defaultPrevented)){if(i==="reset"){s.reset();return}s.addEventListener("submit",c=>{Object.defineProperty(c,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),n.setFormValue(e.value),s.requestSubmit()}})})}const Ye=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
54
+ */function Xe(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async n=>{const{type:i,[Gt]:r}=e,{form:s}=r;if(!(!s||i==="button")&&(await new Promise(c=>{setTimeout(c)}),!n.defaultPrevented)){if(i==="reset"){s.reset();return}s.addEventListener("submit",c=>{Object.defineProperty(c,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),r.setFormValue(e.value),s.requestSubmit()}})})}const Ye=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
55
55
  <path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
56
56
  </svg>
57
57
  `,Je=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -72,10 +72,10 @@
72
72
  `,io=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
73
73
  <path d="M15 6.39639H9.63446L8 1.4585L6.36554 6.39639H1L5.33977 9.4972L3.69404 14.4585L7.98873 11.3928L12.2834 14.4585L10.6377 9.4972L14.9775 6.39639H15ZM10.6715 12.2353L8.05636 10.3631V4.32528L9.03704 7.27398H12.2834L9.65701 9.14616L10.6715 12.2236V12.2353Z" fill="#3F2B2E"/>
74
74
  </svg>
75
- `,ro=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
75
+ `,no=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
76
76
  <path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L9.46538 12.4874L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM9.46538 11.4226V7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L9.46538 11.4226Z" fill="#3F2B2E"/>
77
77
  </svg>
78
- `,no=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
78
+ `,ro=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
79
79
  <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
80
80
  </svg>
81
81
  `,so=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -149,14 +149,14 @@
149
149
  </svg>`,Eo=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
150
150
  <path d="M4.5 8L11.5 13L11.5 3L4.5 8Z" fill="#3F2B2E"/>
151
151
  </svg>
152
- `,Ao=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
152
+ `,Lo=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
153
153
  <path d="M11.5 8L4.5 13L4.5 3L11.5 8Z" fill="#3F2B2E"/>
154
154
  </svg>
155
- `,Z={wishlist:Ye,playerv:Je,chevronRight:Qe,chevronLeft:to,icoPlus:lo,icoMinus:co,"star-0":eo,"star-25":oo,"star-50":io,"star-75":ro,"star-100":no,cross:so,search:ao,arrowLeft:ho,arrowTop:po,cart:uo,notifyme:fo,triangledown:vo,triangleup:go,checkstroke:bo,pause:yo,mapDualArrow:mo,swipeDualArrow:wo,backToBag:Co,checkbox:So,sliderLeftArrow:Eo,sliderRightArrow:Ao},Lo={strikeDiagonal:xo},Po={success:$o,error:ko,info:_o};/**
155
+ `,Z={wishlist:Ye,playerv:Je,chevronRight:Qe,chevronLeft:to,icoPlus:lo,icoMinus:co,"star-0":eo,"star-25":oo,"star-50":io,"star-75":no,"star-100":ro,cross:so,search:ao,arrowLeft:ho,arrowTop:po,cart:uo,notifyme:fo,triangledown:vo,triangleup:go,checkstroke:bo,pause:yo,mapDualArrow:mo,swipeDualArrow:wo,backToBag:Co,checkbox:So,sliderLeftArrow:Eo,sliderRightArrow:Lo},Ao={strikeDiagonal:xo},Po={success:$o,error:ko,info:_o};/**
156
156
  * @license
157
157
  * Copyright 2017 Google LLC
158
158
  * SPDX-License-Identifier: BSD-3-Clause
159
- */const Yt={ATTRIBUTE:1,CHILD:2},Jt=o=>(...t)=>({_$litDirective$:o,values:t});let Qt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
159
+ */const Yt={ATTRIBUTE:1,CHILD:2},Jt=o=>(...t)=>({_$litDirective$:o,values:t});let Qt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
160
160
  * @license
161
161
  * Copyright 2017 Google LLC
162
162
  * SPDX-License-Identifier: BSD-3-Clause
@@ -172,11 +172,11 @@
172
172
  * @license
173
173
  * Copyright 2017 Google LLC
174
174
  * SPDX-License-Identifier: BSD-3-Clause
175
- */const bt=(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),bt(i,t);return!0},zt=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)},Se=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),Io(t)}};function zo(o){this._$AN!==void 0?(zt(this),this._$AM=o,Se(this)):this._$AM=o}function Oo(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++)bt(r[n],!1),zt(r[n]);else r!=null&&(bt(r,!1),zt(r));else bt(this,o)}const Io=o=>{o.type==Yt.CHILD&&(o._$AP??(o._$AP=Oo),o._$AQ??(o._$AQ=zo))};class Do extends Qt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Se(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&&(bt(this,t),zt(this))}setValue(t){if(Bo(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 Ho extends Do{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 To extends Ho{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 Mo extends To{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 ye=Jt(Mo);/**
175
+ */const bt=(o,t)=>{var n;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(n=i._$AO)==null||n.call(i,t,!1),bt(i,t);return!0},zt=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)},Se=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),Io(t)}};function zo(o){this._$AN!==void 0?(zt(this),this._$AM=o,Se(this)):this._$AM=o}function Oo(o,t=!1,e=0){const n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let r=e;r<n.length;r++)bt(n[r],!1),zt(n[r]);else n!=null&&(bt(n,!1),zt(n));else bt(this,o)}const Io=o=>{o.type==Yt.CHILD&&(o._$AP??(o._$AP=Oo),o._$AQ??(o._$AQ=zo))};class Do extends Qt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Se(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,i;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(i=this.disconnected)==null||i.call(this)),e&&(bt(this,t),zt(this))}setValue(t){if(Bo(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 Ho extends Do{constructor(){super(...arguments),this.prevData={}}render(t){return d}update(t,[e]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(e),this.groom(e),this.prevData={...e}}apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];r!==e[i]&&(n[i]=r)}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&(n[i]=void 0)}}class To extends Ho{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const e in t){const n=t[e];n!==this.eventData[e]&&this.applyEvent(e,n)}}applyEvent(t,e){const{prevData:n,element:i}=this;this.eventData[t]=e,n[t]&&i.removeEventListener(t,this,e),i.addEventListener(t,this,e)}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&this.groomEvent(i,e[i])}groomEvent(t,e){const{element:n}=this;delete this.eventData[t],n.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 n in t){const i=n.slice(1),r=t[n];e.removeEventListener(i,this,r)}}reconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.addEventListener(i,this,r)}}}class Mo extends To{apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];if(r===e[i])continue;const s=i.slice(1);switch(i[0]){case"@":this.eventData[s]=r,this.applyEvent(s,r);break;case".":n[s]=r;break;case"?":r?n.setAttribute(s,""):n.removeAttribute(s);break;default:r!=null?n.setAttribute(i,String(r)):n.removeAttribute(i);break}}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e){const r=i.slice(1);if(!t||!(i in t)&&n[r]===e[i])switch(i[0]){case"@":this.groomEvent(r,e[i]);break;case".":n[r]=void 0;break;case"?":n.removeAttribute(r);break;default:n.removeAttribute(i);break}}}}const ye=Jt(Mo);/**
176
176
  * @license
177
177
  * Copyright 2018 Google LLC
178
178
  * SPDX-License-Identifier: BSD-3-Clause
179
- */const P=o=>o??d;var jo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,R=(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&&jo(t,e,i),i};let B=class extends p{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=Z[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`
179
+ */const P=o=>o??d;var jo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,R=(o,t,e,n)=>{for(var i=n>1?void 0:n?Fo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&jo(t,e,i),i};let B=class extends p{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=Z[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"'),n=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,i=this.showSrLabel?null:"icon";return l`
180
180
  ${this.type==="span"?l`
181
181
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
182
182
  ${S(e)}
@@ -189,7 +189,7 @@
189
189
  ?disabled="${this.disabled}"
190
190
  >
191
191
  ${S(e)}
192
- ${r}
192
+ ${n}
193
193
  </button>
194
194
  `}
195
195
  `}};B.styles=f`
@@ -210,15 +210,11 @@
210
210
  border-radius: var(--radius-full);
211
211
  cursor: pointer;
212
212
  position: relative;
213
+ }
213
214
 
214
- &.icon-wishlist {
215
- svg {
216
- path {
217
- stroke: var(--color-content-action-secondary);
218
- stroke-width: var(--icon-stroke-width, 1);
219
- }
220
- }
221
- }
215
+ .icon-button.icon-wishlist svg path {
216
+ stroke: var(--color-content-action-secondary);
217
+ stroke-width: var(--icon-stroke-width, 1);
222
218
  }
223
219
 
224
220
  .icon-button.filled svg {
@@ -228,96 +224,81 @@
228
224
  .icon-button.xsmall {
229
225
  width: 20px;
230
226
  height: 20px;
227
+ }
231
228
 
232
- &:not(.icon-wishlist) {
233
- svg {
234
- width: 8px;
235
- height: 8px;
236
- }
237
- }
229
+ .icon-button.xsmall:not(.icon-wishlist) svg {
230
+ width: 8px;
231
+ height: 8px;
238
232
  }
239
233
 
240
234
  .icon-button.small {
241
235
  width: 32px;
242
236
  height: 32px;
237
+ }
243
238
 
244
- &:not(.icon-wishlist) {
245
- svg {
246
- width: 16px;
247
- height: 16px;
248
- }
249
- }
239
+ .icon-button.small:not(.icon-wishlist) svg {
240
+ width: 16px;
241
+ height: 16px;
250
242
  }
251
243
 
252
244
  .icon-button.medium {
253
245
  width: 40px;
254
246
  height: 40px;
247
+ }
255
248
 
256
- &:not(.icon-wishlist) {
257
- svg {
258
- width: 16px;
259
- height: 16px;
260
- }
261
- }
249
+ .icon-button.medium:not(.icon-wishlist) svg {
250
+ width: 16px;
251
+ height: 16px;
262
252
  }
263
253
 
264
254
  .icon-button.large {
265
255
  width: 40px;
266
256
  height: 40px;
257
+ }
267
258
 
268
- &:not(.icon-wishlist) {
269
- svg {
270
- width: 24px;
271
- height: 24px;
272
- }
273
- }
259
+ .icon-button.large:not(.icon-wishlist) svg {
260
+ width: 24px;
261
+ height: 24px;
274
262
  }
275
263
 
276
264
  .icon-button.none-light, .icon-button.none-contrast {
277
265
  background-color: transparent;
278
266
  width: auto;
279
267
  height: auto;
268
+ }
280
269
 
281
- &.xsmall {
282
- svg {
283
- width: 8px;
284
- height: 8px;
285
- }
286
- }
270
+ .icon-button.none-light.xsmall svg,
271
+ .icon-button.none-contrast.xsmall svg {
272
+ width: 8px;
273
+ height: 8px;
274
+ }
287
275
 
288
- &.small {
289
- svg {
290
- width: 16px;
291
- height: 16px;
292
- }
293
- }
276
+ .icon-button.none-light.small svg,
277
+ .icon-button.none-contrast.small svg {
278
+ width: 16px;
279
+ height: 16px;
280
+ }
294
281
 
295
- &.medium {
296
- svg {
297
- width: 16px;
298
- height: 16px;
299
- }
300
- }
282
+ .icon-button.none-light.medium svg,
283
+ .icon-button.none-contrast.medium svg {
284
+ width: 16px;
285
+ height: 16px;
286
+ }
301
287
 
302
- &.large {
303
- svg {
304
- width: 24px;
305
- height: 24px;
306
- }
307
- }
288
+ .icon-button.none-light.large svg,
289
+ .icon-button.none-contrast.large svg {
290
+ width: 24px;
291
+ height: 24px;
292
+ }
308
293
 
309
- &:disabled {
310
- background-color: transparent;
311
- }
294
+ .icon-button.none-light:disabled,
295
+ .icon-button.none-contrast:disabled {
296
+ background-color: transparent;
312
297
  }
313
298
 
314
- .icon-button.none-light {
315
- svg {
316
- path {
317
- stroke: var(--color-content-action-primary);
318
- fill: var(--color-content-action-primary);
319
- }
320
- }
299
+ .icon-button.none-light svg path {
300
+ stroke: var(--color-content-action-primary);
301
+ fill: var(--color-content-action-primary);
321
302
  }
322
303
 
323
304
  .icon-button.none-light.icon-wishlist svg path {
@@ -330,70 +311,60 @@
330
311
 
331
312
  .icon-button.background-light {
332
313
  background-color: var(--color-alpha-light-strong);
333
-
334
- &:hover:not(:disabled) {
335
- background-color: var(--color-alpha-light-stronger);
336
- }
337
-
338
- &:active:not(:disabled) {
339
- background-color: var(--color-alpha-light-strongest);
340
- }
314
+ }
315
+ .icon-button.background-light:hover:not(:disabled) {
316
+ background-color: var(--color-alpha-light-stronger);
317
+ }
318
+ .icon-button.background-light:active:not(:disabled) {
319
+ background-color: var(--color-alpha-light-strongest);
341
320
  }
342
321
 
343
322
  .icon-button.background-contrast {
344
323
  background-color: var(--color-container-action-tertiary-default);
345
-
346
- &:hover:not(:disabled) {
347
- background-color: var(--color-container-action-tertiary-hover);
348
- }
349
-
350
- &:active:not(:disabled) {
351
- background-color: var(--color-container-action-tertiary-pressed);
352
- }
324
+ }
325
+ .icon-button.background-contrast:hover:not(:disabled) {
326
+ background-color: var(--color-container-action-tertiary-hover);
327
+ }
328
+ .icon-button.background-contrast:active:not(:disabled) {
329
+ background-color: var(--color-container-action-tertiary-pressed);
353
330
  }
354
331
 
332
+ /* ghost-light */
355
333
  .icon-button.ghost-light {
356
334
  background-color: transparent;
357
-
358
- svg {
359
- path {
360
- stroke: var(--color-content-action-primary);
361
- fill: var(--color-content-action-primary);
362
- }
363
- }
364
-
365
- &:hover:not(:disabled) {
366
- background-color: var(--color-alpha-light-lightest);
367
- }
368
-
369
- &:active:not(:disabled) {
370
- background-color: var(--color-alpha-light-light);
371
- }
335
+ }
336
+ .icon-button.ghost-light svg path {
337
+ stroke: var(--color-content-action-primary);
338
+ fill: var(--color-content-action-primary);
339
+ }
340
+ .icon-button.ghost-light:hover:not(:disabled) {
341
+ background-color: var(--color-alpha-light-lightest);
342
+ }
343
+ .icon-button.ghost-light:active:not(:disabled) {
344
+ background-color: var(--color-alpha-light-light);
372
345
  }
373
346
 
347
+ /* ghost-contrast */
374
348
  .icon-button.ghost-contrast {
375
349
  background-color: transparent;
376
-
377
- &:hover:not(:disabled) {
378
- background-color: var(--color-alpha-light-medium);
379
- }
380
-
381
- &:active:not(:disabled) {
382
- background-color: var(--color-alpha-light-strongest);
383
- }
350
+ }
351
+ .icon-button.ghost-contrast:hover:not(:disabled) {
352
+ background-color: var(--color-alpha-light-medium);
353
+ }
354
+ .icon-button.ghost-contrast:active:not(:disabled) {
355
+ background-color: var(--color-alpha-light-strongest);
384
356
  }
385
357
 
358
+ /* disabled */
386
359
  .icon-button:disabled {
387
360
  background-color: var(--color-container-disabled);
388
361
  cursor: default;
389
-
390
- svg {
391
- fill: var(--color-content-disabled);
392
-
393
- path {
394
- fill: var(--color-content-disabled);
395
- }
396
- }
362
+ }
363
+ .icon-button:disabled svg {
364
+ fill: var(--color-content-disabled);
365
+ }
366
+ .icon-button:disabled svg path {
367
+ fill: var(--color-content-disabled);
397
368
  }
398
369
 
399
370
  .icon-button:focus-visible {
@@ -403,7 +374,7 @@
403
374
  .sr-only {
404
375
  display: none;
405
376
  }
406
- `;R([a({type:String,reflect:!0})],B.prototype,"bgstyle",2);R([a({type:String,reflect:!0})],B.prototype,"size",2);R([a({type:String,reflect:!0})],B.prototype,"status",2);R([a({type:String,reflect:!0})],B.prototype,"type",2);R([a({type:String})],B.prototype,"strokewidth",2);R([a({type:String})],B.prototype,"icon",2);R([a({type:Boolean,reflect:!0})],B.prototype,"disabled",2);R([a({type:Boolean})],B.prototype,"showSrLabel",2);R([a({type:String})],B.prototype,"srLabel",2);B=R([g("o-icon-button")],B);var Ro=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,b=(o,t,e,r)=>{for(var i=r>1?void 0:r?Uo(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&&Ro(t,e,i),i};let u=class extends p{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.labelDialog="",this.addToBagProductCount="",this.closeButtonLabel="Close the modal",this.goBackButtonLabel="Go back to",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.firstButtonProps={},this.onFirstButtonClickClose=!1,this.secondButtonLabel="",this.secondButtonVariant="secondary",this.secondButtonProps={},this.onSecondButtonClickClose=!1,this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.showDetail=!1,this.isHidingDetail=!1,this.previousFocusedElement=null,this._onOpenDetail=async o=>{var e,r;const t=((e=o.detail)==null?void 0:e.origin)??document.activeElement;if(this._detailOriginEl=t,this._detailOriginClass=(t==null?void 0:t.className)??"",this.showDetail=!0,this.showHeaderStartIcon=!0,await this.updateComplete,this._detailOriginClass){const i=(r=this.shadowRoot)==null?void 0:r.querySelector(".detail-view");i&&i.setAttribute("fromelement",this._detailOriginClass)}await this.focusDetailReturnBtn()},this._detailOriginEl=null,this._detailOriginClass="",this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))},this.handleClosePanel=o=>{if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;o.preventDefault(),o.stopPropagation();const t=o.currentTarget,e=(t==null?void 0:t.getAttribute("data-role"))==="back";if(this.showDetail&&e){this.isHidingDetail=!0;const r=this.renderRoot.querySelector(".content"),i=async()=>{this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1,await this.updateComplete,this._restoreFocusToOrigin()};if(r){this.showHeaderStartIcon=!1;const n=()=>{this.showDetail=!1,this.isHidingDetail=!1,r.removeEventListener("animationend",n),i()};r.addEventListener("animationend",n)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}focusFirstInPanel(){var t,e,r;(r=this.getFocusableElements().map(i=>this.resolveFocusable(i)).filter(i=>!!i&&!i.hasAttribute("disabled"))[0]??((t=this.shadowRoot)==null?void 0:t.querySelector(".close-btn"))??((e=this.shadowRoot)==null?void 0:e.querySelector(".panel")))==null||r.focus({preventScroll:!0})}resolveFocusable(o){var e;const t=o.tagName.toLowerCase();return t==="o-icon-button"||t==="o-button"?((e=o.shadowRoot)==null?void 0:e.querySelector("button, .button"))??o:o}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),this.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0}),this.addEventListener("open-detail",this._onOpenDetail),this.addEventListener("focusin",o=>{o.composedPath()[0]===this&&this.focusFirstInPanel()})}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback(),this.removeEventListener("open-detail",this._onOpenDetail)}async focusDetailReturnBtn(){var i,n,s,c,h;await this.updateComplete;const o=this.getDeepActiveElement(document);if(o&&o!==document.body)try{o.blur()}catch{}await new Promise(requestAnimationFrame);const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".detail-view .return-btn");if(!t)return;t.updateComplete&&await t.updateComplete,(c=(s=((n=t.shadowRoot)==null?void 0:n.querySelector("button"))??t)==null?void 0:s.focus)==null||c.call(s,{preventScroll:!0});const r=(h=this.shadowRoot)==null?void 0:h.querySelector('.panel[role="dialog"]');r&&r.setAttribute("aria-label",this.headerTitle)}_restoreFocusToOrigin(){var t,e;const o=this._detailOriginEl;!o||!document.contains(o)||((e=(t=document.activeElement)==null?void 0:t.blur)==null||e.call(t),requestAnimationFrame(()=>{var i;o.classList.add("a--tabfocus"),(((i=o.shadowRoot)==null?void 0:i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??o).focus({preventScroll:!0})}))}getDeepActiveElement(o=this.shadowRoot){let t=o.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(o){if(o.key!=="Tab")return;const t=this.getDeepActiveElement(),e=this.renderRoot.querySelector(".close-btn");if(!o.shiftKey&&e&&e.contains(t)){o.preventDefault();const r=this.renderRoot.querySelector(".o-whats-inside--content p");r==null||r.focus()}}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");if(!o)return[];function t(i){return!(i.disabled||i.hasAttribute("disabled")||i.hasAttribute("tabindex")&&i.getAttribute("tabindex")==="-1")}function e(i){var s;const n=[i.matches(u.focusablesSelector)?i:[]];if(!["o-icon-button","o-button"].includes(i.tagName.toLowerCase())){const c=Array.from(i instanceof HTMLSlotElement?i.assignedElements({flatten:!0}):[]).filter(t).flatMap(e),h=Array.from(((s=i.shadowRoot)==null?void 0:s.querySelectorAll("*"))||[]).filter(t).flatMap(e);n.push(...c,...h)}return n.flat()}return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e)}openPanel(){this.removeAttribute("hidden"),this.getBoundingClientRect(),this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open");const o=this.renderRoot.querySelector(".panel");o&&o.setAttribute("aria-modal","true"),this.updateComplete.then(()=>{var t,e;if(this.showHeader){const r=(t=this.shadowRoot)==null?void 0:t.querySelector(".panel .close-btn"),i=this.resolveFocusable(r);(e=i==null?void 0:i.focus)==null||e.call(i,{preventScroll:!0})}else this.focusFirstInPanel()}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var t,e,r,i,n;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),((t=this.previousFocusedElement)==null?void 0:t.tagName.toLowerCase())==="o-button"?(i=(r=(e=this.previousFocusedElement.shadowRoot)==null?void 0:e.querySelector(".button"))==null?void 0:r.focus)==null||i.call(r):(n=this.previousFocusedElement)==null||n.focus();const o=this.renderRoot.querySelector(".panel");o&&o.removeAttribute("aria-modal"),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("firstbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:o.target}})))}handleSecondClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("secondbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:o.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`),this.open||setTimeout(()=>{this.setAttribute("hidden","hidden")},500)}render(){const o=this.showHeader?l`
377
+ `;R([a({type:String,reflect:!0})],B.prototype,"bgstyle",2);R([a({type:String,reflect:!0})],B.prototype,"size",2);R([a({type:String,reflect:!0})],B.prototype,"status",2);R([a({type:String,reflect:!0})],B.prototype,"type",2);R([a({type:String})],B.prototype,"strokewidth",2);R([a({type:String})],B.prototype,"icon",2);R([a({type:Boolean,reflect:!0})],B.prototype,"disabled",2);R([a({type:Boolean})],B.prototype,"showSrLabel",2);R([a({type:String})],B.prototype,"srLabel",2);B=R([g("o-icon-button")],B);var Ro=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,b=(o,t,e,n)=>{for(var i=n>1?void 0:n?Uo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ro(t,e,i),i};let u=class extends p{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.labelDialog="",this.addToBagProductCount="",this.closeButtonLabel="Close the modal",this.goBackButtonLabel="Go back to",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.firstButtonProps={},this.onFirstButtonClickClose=!1,this.secondButtonLabel="",this.secondButtonVariant="secondary",this.secondButtonProps={},this.onSecondButtonClickClose=!1,this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.showDetail=!1,this.isHidingDetail=!1,this.previousFocusedElement=null,this._onOpenDetail=async o=>{var e,n;const t=((e=o.detail)==null?void 0:e.origin)??document.activeElement;if(this._detailOriginEl=t,this._detailOriginClass=(t==null?void 0:t.className)??"",this.showDetail=!0,this.showHeaderStartIcon=!0,await this.updateComplete,this._detailOriginClass){const i=(n=this.shadowRoot)==null?void 0:n.querySelector(".detail-view");i&&i.setAttribute("fromelement",this._detailOriginClass)}await this.focusDetailReturnBtn()},this._detailOriginEl=null,this._detailOriginClass="",this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))},this.handleClosePanel=o=>{if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;o.preventDefault(),o.stopPropagation();const t=o.currentTarget,e=(t==null?void 0:t.getAttribute("data-role"))==="back";if(this.showDetail&&e){this.isHidingDetail=!0;const n=this.renderRoot.querySelector(".content"),i=async()=>{this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1,await this.updateComplete,this._restoreFocusToOrigin()};if(n){this.showHeaderStartIcon=!1;const r=()=>{this.showDetail=!1,this.isHidingDetail=!1,n.removeEventListener("animationend",r),i()};n.addEventListener("animationend",r)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}focusFirstInPanel(){var t,e,n;(n=this.getFocusableElements().map(i=>this.resolveFocusable(i)).filter(i=>!!i&&!i.hasAttribute("disabled"))[0]??((t=this.shadowRoot)==null?void 0:t.querySelector(".close-btn"))??((e=this.shadowRoot)==null?void 0:e.querySelector(".panel")))==null||n.focus({preventScroll:!0})}resolveFocusable(o){var e;const t=o.tagName.toLowerCase();return t==="o-icon-button"||t==="o-button"?((e=o.shadowRoot)==null?void 0:e.querySelector("button, .button"))??o:o}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),this.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0}),this.addEventListener("open-detail",this._onOpenDetail),this.addEventListener("focusin",o=>{o.composedPath()[0]===this&&this.focusFirstInPanel()})}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback(),this.removeEventListener("open-detail",this._onOpenDetail)}async focusDetailReturnBtn(){var i,r,s,c,h;await this.updateComplete;const o=this.getDeepActiveElement(document);if(o&&o!==document.body)try{o.blur()}catch{}await new Promise(requestAnimationFrame);const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".detail-view .return-btn");if(!t)return;t.updateComplete&&await t.updateComplete,(c=(s=((r=t.shadowRoot)==null?void 0:r.querySelector("button"))??t)==null?void 0:s.focus)==null||c.call(s,{preventScroll:!0});const n=(h=this.shadowRoot)==null?void 0:h.querySelector('.panel[role="dialog"]');n&&n.setAttribute("aria-label",this.headerTitle)}_restoreFocusToOrigin(){var t,e;const o=this._detailOriginEl;!o||!document.contains(o)||((e=(t=document.activeElement)==null?void 0:t.blur)==null||e.call(t),requestAnimationFrame(()=>{var i;o.classList.add("a--tabfocus"),(((i=o.shadowRoot)==null?void 0:i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??o).focus({preventScroll:!0})}))}getDeepActiveElement(o=this.shadowRoot){let t=o.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(o){if(o.key!=="Tab")return;const t=this.getDeepActiveElement(),e=this.renderRoot.querySelector(".close-btn");if(!o.shiftKey&&e&&e.contains(t)){o.preventDefault();const n=this.renderRoot.querySelector(".o-whats-inside--content p");n==null||n.focus()}}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");if(!o)return[];function t(i){return!(i.disabled||i.hasAttribute("disabled")||i.hasAttribute("tabindex")&&i.getAttribute("tabindex")==="-1")}function e(i){var s;const r=[i.matches(u.focusablesSelector)?i:[]];if(!["o-icon-button","o-button"].includes(i.tagName.toLowerCase())){const c=Array.from(i instanceof HTMLSlotElement?i.assignedElements({flatten:!0}):[]).filter(t).flatMap(e),h=Array.from(((s=i.shadowRoot)==null?void 0:s.querySelectorAll("*"))||[]).filter(t).flatMap(e);r.push(...c,...h)}return r.flat()}return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e)}openPanel(){this.removeAttribute("hidden"),this.getBoundingClientRect(),this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open");const o=this.renderRoot.querySelector(".panel");o&&o.setAttribute("aria-modal","true"),this.updateComplete.then(()=>{var t,e;if(this.showHeader){const n=(t=this.shadowRoot)==null?void 0:t.querySelector(".panel .close-btn"),i=this.resolveFocusable(n);(e=i==null?void 0:i.focus)==null||e.call(i,{preventScroll:!0})}else this.focusFirstInPanel()}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var t,e,n,i,r;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),((t=this.previousFocusedElement)==null?void 0:t.tagName.toLowerCase())==="o-button"?(i=(n=(e=this.previousFocusedElement.shadowRoot)==null?void 0:e.querySelector(".button"))==null?void 0:n.focus)==null||i.call(n):(r=this.previousFocusedElement)==null||r.focus();const o=this.renderRoot.querySelector(".panel");o&&o.removeAttribute("aria-modal"),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("firstbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:o.target}})))}handleSecondClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("secondbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:o.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`),this.open||setTimeout(()=>{this.setAttribute("hidden","hidden")},500)}render(){const o=this.showHeader?l`
407
378
  <div tabindex="-1" class="header ${this.showDetail?"detail-view-header":""}">
408
379
  ${this.showHeaderStartIcon?l`
409
380
  <o-icon-button
@@ -560,77 +531,73 @@
560
531
  gap: 8px;
561
532
  padding: 20px 16px;
562
533
  border-bottom: var(--border-050) solid var(--color-border-tertiary);
534
+ }
563
535
 
564
- .header-title-container {
565
- display: flex;
566
- flex-direction: row;
567
- align-items: center;
568
- column-gap: 8px;
569
- flex: 1 1 auto;
570
- min-width: 0;
571
- }
572
-
573
- .panel-title {
574
- font-family: var(--font-family-loccitane-serif);
575
- font-size: var(--font-size);
576
- font-weight: var(--font-weight-400);
577
- line-height: var(--line-height);
578
- font-style: var(--font-weight-italic);
579
- display: -webkit-box;
580
- -webkit-line-clamp: 2;
581
- -webkit-box-orient: vertical;
582
- height: auto;
583
- margin-top: auto;
584
- margin-bottom: auto;
585
- overflow: hidden;
586
- padding-right: 6px;
587
- color: var(--color-content-heading);
588
- flex: 0 1 auto;
589
- max-width: 100%;
590
- min-width: 0;
591
- }
536
+ .header .header-title-container {
537
+ display: flex;
538
+ flex-direction: row;
539
+ align-items: center;
540
+ column-gap: 8px;
541
+ flex: 1 1 auto;
542
+ min-width: 0;
543
+ }
592
544
 
593
- .a-quantity {
594
- border-radius: var(--radius-full, 999px);
595
- border: var(--border-s, 0.5px) solid var(--color-border-primary, #3F2B2E);
596
- background: var(--color-container-brand-accent, #FFC700);
597
- overflow: hidden;
598
- color: var(--color-content-body, #3F2B2E);
599
- text-align: center;
600
- text-overflow: ellipsis;
601
- font-family: var(--font-family-loccitane-sans);
602
- font-size: var(--font-size-100, 12px);
603
- font-weight: var(--font-weight-400, 400);
604
- line-height: var(--line-height-160, 16px);
605
- letter-spacing: var(--letter-spacing-000, 0);
606
- width: 16px;
607
- height: 16px;
608
- flex-shrink: 0;
609
- }
545
+ .header .panel-title {
546
+ font-family: var(--font-family-loccitane-serif);
547
+ font-size: var(--font-size);
548
+ font-weight: var(--font-weight-400);
549
+ line-height: var(--line-height);
550
+ font-style: var(--font-weight-italic);
551
+ display: -webkit-box;
552
+ -webkit-line-clamp: 2;
553
+ -webkit-box-orient: vertical;
554
+ height: auto;
555
+ margin-top: auto;
556
+ margin-bottom: auto;
557
+ overflow: hidden;
558
+ padding-right: 6px;
559
+ color: var(--color-content-heading);
560
+ flex: 0 1 auto;
561
+ max-width: 100%;
562
+ min-width: 0;
563
+ }
610
564
 
611
- .close-btn {
612
- margin-left: 8px;
613
- margin-top: 0;
614
- flex-direction: column;
615
- justify-content: start;
616
- margin-left: auto;
617
- }
565
+ .header .a-quantity {
566
+ border-radius: var(--radius-full, 999px);
567
+ border: var(--border-s, 0.5px) solid var(--color-border-primary, #3F2B2E);
568
+ background: var(--color-container-brand-accent, #FFC700);
569
+ overflow: hidden;
570
+ color: var(--color-content-body, #3F2B2E);
571
+ text-align: center;
572
+ text-overflow: ellipsis;
573
+ font-family: var(--font-family-loccitane-sans);
574
+ font-size: var(--font-size-100, 12px);
575
+ font-weight: var(--font-weight-400, 400);
576
+ line-height: var(--line-height-160, 16px);
577
+ letter-spacing: var(--letter-spacing-000, 0);
578
+ width: 16px;
579
+ height: 16px;
580
+ flex-shrink: 0;
581
+ }
582
+
583
+ .header .close-btn {
584
+ margin-left: 8px;
585
+ margin-top: 0;
586
+ flex-direction: column;
587
+ justify-content: start;
588
+ margin-left: auto;
589
+ }
618
590
 
619
- .return-btn {
620
- margin-right: 8px;
621
- }
591
+ .header .return-btn {
592
+ margin-right: 8px;
593
+ }
622
594
 
623
- &.detail-view-header {
624
- display: none;
625
- }
595
+ .header.detail-view-header {
596
+ display: none;
626
597
  }
627
598
 
628
- .detail-view {
629
- .header {
630
- &.detail-view-header {
631
- display: flex;
632
- }
633
- }
599
+ .detail-view .header.detail-view-header {
600
+ display: flex;
634
601
  }
635
602
 
636
603
  .panel:focus-visible,
@@ -646,17 +613,17 @@
646
613
  .content {
647
614
  flex: 1 1 auto;
648
615
  padding: var(--spacing-xl);
616
+ }
649
617
 
650
- &.with-detail {
651
- width: 100%;
652
- height: 100%;
653
- position: absolute;
654
- top: 0;
655
- left: 0;
656
- background: var(--color-container-bg-white);
657
- z-index: 3;
658
- padding: var(--spacing-4-xs);
659
- }
618
+ .content.with-detail {
619
+ width: 100%;
620
+ height: 100%;
621
+ position: absolute;
622
+ top: 0;
623
+ left: 0;
624
+ background: var(--color-container-bg-white);
625
+ z-index: 3;
626
+ padding: var(--spacing-4-xs);
660
627
  }
661
628
 
662
629
  .footer {
@@ -664,7 +631,7 @@
664
631
  padding: var(--spacing-xl);
665
632
  border-top: var(--border-050) solid var(--color-border-tertiary);
666
633
  display: flex;
667
- flex-direction: column;
634
+ flex-direction: column;
668
635
  gap: var(--spacing-l);
669
636
  justify-content: flex-start;
670
637
  }
@@ -728,7 +695,7 @@
728
695
  overflow: auto;
729
696
  box-sizing: border-box;
730
697
  }
731
- `;u.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';u.focusablesCustomElementsSelector="o-icon-button, o-button";u.shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};b([a({type:Boolean,reflect:!0})],u.prototype,"open",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],u.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],u.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],u.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],u.prototype,"addToBagProductCount",2);b([a({type:String,reflect:!0})],u.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],u.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],u.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],u.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],u.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],u.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],u.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],u.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],u.prototype,"initialized",2);b([a({type:Boolean})],u.prototype,"showDetail",2);b([a({type:Boolean})],u.prototype,"isHidingDetail",2);u=b([g("o-side-panel")],u);var No=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,k=(o,t,e,r)=>{for(var i=r>1?void 0:r?qo(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 Vo=Xt(p);let y=class extends Vo{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[Gt].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof u&&(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=Z[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`
698
+ `;u.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';u.focusablesCustomElementsSelector="o-icon-button, o-button";u.shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};b([a({type:Boolean,reflect:!0})],u.prototype,"open",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],u.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],u.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],u.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],u.prototype,"addToBagProductCount",2);b([a({type:String,reflect:!0})],u.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],u.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],u.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],u.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],u.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],u.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],u.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],u.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],u.prototype,"initialized",2);b([a({type:Boolean})],u.prototype,"showDetail",2);b([a({type:Boolean})],u.prototype,"isHidingDetail",2);u=b([g("o-side-panel")],u);var No=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,k=(o,t,e,n)=>{for(var i=n>1?void 0:n?qo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&No(t,e,i),i};const Vo=Xt(p);let y=class extends Vo{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[Gt].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof u&&(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=Z[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`
732
699
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}>
733
700
  ${this.startIcon?this.renderIcon("start"):d}
734
701
  ${o?l`
@@ -781,8 +748,8 @@
781
748
  --button-border: transparent;
782
749
  --button-border-width: var(--border-m);
783
750
  --button-padding: var(--spacing-l, 12px) var(--spacing-3-xl, 24px);
784
- --button-starticon-svg-width: 0px; /* No starticon SVG for primary button */
785
- --button-endicon-svg-width: 0px; /* No endicon SVG for primary button */
751
+ --button-starticon-svg-width: 0px;
752
+ --button-endicon-svg-width: 0px;
786
753
  }
787
754
 
788
755
  :host([variant="secondary"]) {
@@ -795,7 +762,7 @@
795
762
  --button-border-width: var(--border-m);
796
763
  --button-padding: var(--spacing-l, 12px) var(--spacing-3-xl, 24px);
797
764
  --button-starticon-svg-width: 16px;
798
- --button-endicon-svg-width: 0px; /* No endicon SVG for secondary button */
765
+ --button-endicon-svg-width: 0px;
799
766
  }
800
767
 
801
768
  :host([variant="ghost"]) {
@@ -805,7 +772,7 @@
805
772
  --button-text: var(--color-content-action-secondary);
806
773
  --button-text-hover: var(--color-content-action-secondary);
807
774
  --button-border-width: 0;
808
- --button-padding: var(--spacing-m, 10px) var(--spacing-xl, 16px);
775
+ --button-padding: var(--spacing-m, 10px) var(--spacing-xl, 16px);
809
776
  --button-starticon-svg-width: 16px;
810
777
  --button-endicon-svg-width: 12px;
811
778
  }
@@ -817,9 +784,9 @@
817
784
  --button-text: var(--color-content-body);
818
785
  --button-text-hover: var(--color-content-action-tertiary);
819
786
  --button-border-width: 0;
820
- --button-padding: var(--spacing-m, 10px) var(--spacing-l, 12px);
821
- --button-starticon-svg-width: 0px; /* No starticon SVG for tertiary button */
822
- --button-endicon-svg-width: 8px;
787
+ --button-padding: var(--spacing-m, 10px) var(--spacing-l, 12px);
788
+ --button-starticon-svg-width: 0px;
789
+ --button-endicon-svg-width: 8px;
823
790
  }
824
791
 
825
792
  :host([disabled]),
@@ -840,7 +807,6 @@
840
807
  justify-content: center;
841
808
  width: 100%;
842
809
  gap: var(--spacing-s, 8px);
843
- height: 100%;
844
810
  background-color: var(--button-bg);
845
811
  color: var(--button-text);
846
812
  border: var(--button-border-width, var(--border-m)) solid var(--button-border);
@@ -854,13 +820,13 @@
854
820
  text-decoration: none;
855
821
  cursor: inherit;
856
822
  box-sizing: border-box;
823
+ }
857
824
 
858
- span {
859
- font-family: var(--font-family-loccitane-sans);
860
- font-size: var(--font-size-150);
861
- font-weight: var(--font-weight-400);
862
- line-height: var(--line-height-200);
863
- }
825
+ .button span {
826
+ font-family: var(--font-family-loccitane-sans);
827
+ font-size: var(--font-size-150);
828
+ font-weight: var(--font-weight-400);
829
+ line-height: var(--line-height-200);
864
830
  }
865
831
 
866
832
  .button:hover:not([disabled]) {
@@ -885,20 +851,28 @@
885
851
  .icon-end {
886
852
  display: inline-flex;
887
853
  align-items: center;
854
+ }
888
855
 
889
- svg {
890
- max-height: 20px;
891
- }
892
- svg[x] {
893
- width: 15px;
894
- }
895
- path[fill],
896
- path[class] {
897
- fill: var(--button-text) !important;
898
- }
899
- path[stroke] {
900
- stroke: var(--button-text) !important;
901
- }
856
+ .icon-start svg,
857
+ .icon-end svg {
858
+ max-height: 20px;
859
+ }
860
+
861
+ .icon-start svg[x],
862
+ .icon-end svg[x] {
863
+ width: 15px;
864
+ }
865
+
866
+ .icon-start path[fill],
867
+ .icon-start path[class],
868
+ .icon-end path[fill],
869
+ .icon-end path[class] {
870
+ fill: var(--button-text) !important;
871
+ }
872
+
873
+ .icon-start path[stroke],
874
+ .icon-end path[stroke] {
875
+ stroke: var(--button-text) !important;
902
876
  }
903
877
 
904
878
  :host([variant="tertiary"][fullwidth][endIcon]) .button {
@@ -914,7 +888,7 @@
914
888
  display: inline-flex;
915
889
  align-items: center;
916
890
  }
917
-
891
+
918
892
  :host([variant="tertiary"][endIcon]) .button .icon-end {
919
893
  width: var(--button-endicon-svg-width, 8px);
920
894
  }
@@ -923,16 +897,18 @@
923
897
  :host([underlined]) .text,
924
898
  :host([underlined]:not([text])) .button slot {
925
899
  position: relative;
900
+ }
926
901
 
927
- &::after {
928
- content: "";
929
- display: block;
930
- position: absolute;
931
- bottom: 0;
932
- left: 0;
933
- width: 100%;
934
- border-bottom: var(--border-M, 1px) solid var(--button-text);
935
- }
902
+ :host([underlined]) span:not([class*="icon-"])::after,
903
+ :host([underlined]) .text::after,
904
+ :host([underlined]:not([text])) .button slot::after {
905
+ content: "";
906
+ display: block;
907
+ position: absolute;
908
+ bottom: 0;
909
+ left: 0;
910
+ width: 100%;
911
+ border-bottom: var(--border-M, 1px) solid var(--button-text);
936
912
  }
937
913
 
938
914
  :host([underlined]:not([text])) .button slot {
@@ -940,13 +916,10 @@
940
916
  gap: 8px;
941
917
  }
942
918
 
943
- :host([underlined][withbadge]:not([text])) .button slot {
944
- &::after {
945
- width: calc(100% - var(--badge-outer-width, 19px) - var(--spacing-s, 8px))
946
- }
919
+ :host([underlined][withbadge]:not([text])) .button slot::after {
920
+ width: calc(100% - var(--badge-outer-width, 19px) - var(--spacing-s, 8px));
947
921
  }
948
922
 
949
- //Icon movement on hover
950
923
  :host([variant="tertiary"][endIcon]) .icon-end {
951
924
  display: inline-flex;
952
925
  align-items: center;
@@ -956,8 +929,7 @@
956
929
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
957
930
  transform: translateX(4px);
958
931
  }
959
- //End icon movment on hover
960
- `;k([a()],y.prototype,"type",2);k([a()],y.prototype,"value",2);k([a({type:String,reflect:!0})],y.prototype,"variant",2);k([a({type:String})],y.prototype,"text",2);k([a({type:String})],y.prototype,"textsecond",2);k([a({type:Boolean,reflect:!0})],y.prototype,"fullwidth",2);k([a({type:Boolean,reflect:!0})],y.prototype,"disabled",2);k([a({type:String})],y.prototype,"startIconModel",2);k([a({type:String})],y.prototype,"endIconModel",2);k([a({type:Boolean,reflect:!0,attribute:"starticon"})],y.prototype,"startIcon",2);k([a({type:Boolean,reflect:!0,attribute:"endicon"})],y.prototype,"endIcon",2);k([a({type:String,attribute:"paneltarget"})],y.prototype,"panelTarget",2);k([a({type:String})],y.prototype,"href",2);k([a({type:String})],y.prototype,"target",2);k([a({type:Boolean,reflect:!0})],y.prototype,"underlined",2);k([a({type:Boolean,reflect:!0})],y.prototype,"withbadge",2);y=k([g("o-button")],y);var Zo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,It=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ko(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 dt=class extends p{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=Z.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
932
+ `;k([a()],y.prototype,"type",2);k([a()],y.prototype,"value",2);k([a({type:String,reflect:!0})],y.prototype,"variant",2);k([a({type:String})],y.prototype,"text",2);k([a({type:String})],y.prototype,"textsecond",2);k([a({type:Boolean,reflect:!0})],y.prototype,"fullwidth",2);k([a({type:Boolean,reflect:!0})],y.prototype,"disabled",2);k([a({type:String})],y.prototype,"startIconModel",2);k([a({type:String})],y.prototype,"endIconModel",2);k([a({type:Boolean,reflect:!0,attribute:"starticon"})],y.prototype,"startIcon",2);k([a({type:Boolean,reflect:!0,attribute:"endicon"})],y.prototype,"endIcon",2);k([a({type:String,attribute:"paneltarget"})],y.prototype,"panelTarget",2);k([a({type:String})],y.prototype,"href",2);k([a({type:String})],y.prototype,"target",2);k([a({type:Boolean,reflect:!0})],y.prototype,"underlined",2);k([a({type:Boolean,reflect:!0})],y.prototype,"withbadge",2);y=k([g("o-button")],y);var Zo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,It=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ko(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Zo(t,e,i),i};let dt=class extends p{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=Z.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
961
933
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
962
934
  <span class="sr-only">${this.label}</span>
963
935
  ${S(o)}
@@ -1026,7 +998,7 @@
1026
998
  width: 0.1rem !important;
1027
999
  white-space: nowrap !important;
1028
1000
  }
1029
- `;It([a({type:String,reflect:!0})],dt.prototype,"status",2);It([a({type:String,reflect:!0})],dt.prototype,"ariaDescribedBy",2);It([a({type:String,reflect:!0})],dt.prototype,"label",2);dt=It([g("o-wishlist-button")],dt);var Wo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,lt=(o,t,e,r)=>{for(var i=r>1?void 0:r?Go(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&&Wo(t,e,i),i};let K=class extends p{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`
1001
+ `;It([a({type:String,reflect:!0})],dt.prototype,"status",2);It([a({type:String,reflect:!0})],dt.prototype,"ariaDescribedBy",2);It([a({type:String,reflect:!0})],dt.prototype,"label",2);dt=It([g("o-wishlist-button")],dt);var Wo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,lt=(o,t,e,n)=>{for(var i=n>1?void 0:n?Go(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Wo(t,e,i),i};let K=class extends p{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`
1030
1002
  <a
1031
1003
  href="${o}"
1032
1004
  target="${P(this.target||void 0)}"
@@ -1134,7 +1106,7 @@
1134
1106
  transform: translateX(-4px);
1135
1107
  }
1136
1108
  }
1137
- `;lt([a({type:String})],K.prototype,"href",2);lt([a({type:String})],K.prototype,"target",2);lt([a({type:String,reflect:!0})],K.prototype,"template",2);lt([a({type:Boolean,reflect:!0})],K.prototype,"inverse",2);lt([a({type:Boolean,reflect:!0})],K.prototype,"endIcon",2);lt([a({type:Boolean,reflect:!0})],K.prototype,"reverseEndIcon",2);K=lt([g("o-link")],K);var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Dt=(o,t,e,r)=>{for(var i=r>1?void 0:r?Yo(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 pt=class extends p{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`
1109
+ `;lt([a({type:String})],K.prototype,"href",2);lt([a({type:String})],K.prototype,"target",2);lt([a({type:String,reflect:!0})],K.prototype,"template",2);lt([a({type:Boolean,reflect:!0})],K.prototype,"inverse",2);lt([a({type:Boolean,reflect:!0})],K.prototype,"endIcon",2);lt([a({type:Boolean,reflect:!0})],K.prototype,"reverseEndIcon",2);K=lt([g("o-link")],K);var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Dt=(o,t,e,n)=>{for(var i=n>1?void 0:n?Yo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Xo(t,e,i),i};let pt=class extends p{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let n;e>=1?n=100:e<=0?n=0:n=Math.round(e*100/25)*25,o.push(`star-${n}`)}return o}render(){const o=this.getStarKeys();return l`
1138
1110
  <div class="rating">
1139
1111
  <div class="stars">
1140
1112
  ${o.map(t=>l`<span class="star">${S(Z[t]??"")}</span>`)}
@@ -1174,7 +1146,7 @@
1174
1146
  text-decoration: underline;
1175
1147
  cursor: pointer;
1176
1148
  }
1177
- `;Dt([a({type:Number})],pt.prototype,"rating",2);Dt([a({type:String})],pt.prototype,"reviewCount",2);Dt([a({type:String})],pt.prototype,"href",2);pt=Dt([g("o-rating")],pt);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,ot=(o,t,e,r)=>{for(var i=r>1?void 0:r?Qo(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 F=class extends p{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
1149
+ `;Dt([a({type:Number})],pt.prototype,"rating",2);Dt([a({type:String})],pt.prototype,"reviewCount",2);Dt([a({type:String})],pt.prototype,"href",2);pt=Dt([g("o-rating")],pt);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,ot=(o,t,e,n)=>{for(var i=n>1?void 0:n?Qo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Jo(t,e,i),i};let F=class extends p{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
1178
1150
  <o-icon-button
1179
1151
  icon="playerv"
1180
1152
  size="xsmall"
@@ -1183,21 +1155,21 @@
1183
1155
  status="filled"
1184
1156
  strokewidth="0"
1185
1157
  ></o-icon-button>
1186
- `}get lastIndex(){return Math.max(0,this.thumbnails.length-1)}handleKeyDown(o){o.key==="ArrowRight"?(o.preventDefault(),this.focusNext()):o.key==="ArrowLeft"?(o.preventDefault(),this.focusPrevious()):o.key==="Enter"||o.key===" "?(o.preventDefault(),this.selectThumbnail(this.focusedIndex)):o.key==="Tab"&&(!o.shiftKey&&this.focusedIndex===this.lastIndex&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"last",direction:"forward"},bubbles:!0,composed:!0})),o.shiftKey&&this.focusedIndex===0&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"first",direction:"backward"},bubbles:!0,composed:!0})))}focusNext(){let o=this.focusedIndex+1;for(;this.disabledIndexes.includes(o)&&o<this.thumbnails.length;)o++;o<this.thumbnails.length&&(this.focusedIndex=o,this.focusThumbnail(o))}focusPrevious(){let o=this.focusedIndex-1;for(;this.disabledIndexes.includes(o)&&o>=0;)o--;o>=0&&(this.focusedIndex=o,this.focusThumbnail(o))}focusThumbnail(o){const t=this.renderRoot.querySelector(`[data-index="${o}"]`);t==null||t.focus()}selectThumbnail(o){this.disabledIndexes.includes(o)||(this.activeIndex=o,this.swiperInstance&&typeof this.swiperInstance.slideTo=="function"&&this.swiperInstance.slideTo(o),this.dispatchEvent(new CustomEvent("thumbnail-select",{detail:{index:o}})))}onFocus(o){const t=o.currentTarget,e=Number(t.dataset.index);this.focusedIndex=e,this.renderRoot.querySelectorAll(".thumb").forEach(i=>{i.classList.remove("a--tabfocus")}),t.classList.add("a--tabfocus"),this.requestUpdate()}onFocusOut(o){const t=o.currentTarget,e=Number(t.dataset.index),r=o.relatedTarget;(!r||this.shadowRoot&&!this.shadowRoot.contains(r))&&(this.renderRoot.querySelectorAll(".thumb").forEach(s=>s.classList.remove("a--tabfocus")),e===this.lastIndex?this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"last",direction:"unspecified"},bubbles:!0,composed:!0})):e===0&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"first",direction:"unspecified"},bubbles:!0,composed:!0})))}render(){return l`
1158
+ `}get lastIndex(){return Math.max(0,this.thumbnails.length-1)}handleKeyDown(o){o.key==="ArrowRight"?(o.preventDefault(),this.focusNext()):o.key==="ArrowLeft"?(o.preventDefault(),this.focusPrevious()):o.key==="Enter"||o.key===" "?(o.preventDefault(),this.selectThumbnail(this.focusedIndex)):o.key==="Tab"&&(!o.shiftKey&&this.focusedIndex===this.lastIndex&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"last",direction:"forward"},bubbles:!0,composed:!0})),o.shiftKey&&this.focusedIndex===0&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"first",direction:"backward"},bubbles:!0,composed:!0})))}focusNext(){let o=this.focusedIndex+1;for(;this.disabledIndexes.includes(o)&&o<this.thumbnails.length;)o++;o<this.thumbnails.length&&(this.focusedIndex=o,this.focusThumbnail(o))}focusPrevious(){let o=this.focusedIndex-1;for(;this.disabledIndexes.includes(o)&&o>=0;)o--;o>=0&&(this.focusedIndex=o,this.focusThumbnail(o))}focusThumbnail(o){const t=this.renderRoot.querySelector(`[data-index="${o}"]`);t==null||t.focus()}selectThumbnail(o){this.disabledIndexes.includes(o)||(this.activeIndex=o,this.swiperInstance&&typeof this.swiperInstance.slideTo=="function"&&this.swiperInstance.slideTo(o),this.dispatchEvent(new CustomEvent("thumbnail-select",{detail:{index:o}})))}onFocus(o){const t=o.currentTarget,e=Number(t.dataset.index);this.focusedIndex=e,this.renderRoot.querySelectorAll(".thumb").forEach(i=>{i.classList.remove("a--tabfocus")}),t.classList.add("a--tabfocus"),this.requestUpdate()}onFocusOut(o){const t=o.currentTarget,e=Number(t.dataset.index),n=o.relatedTarget;(!n||this.shadowRoot&&!this.shadowRoot.contains(n))&&(this.renderRoot.querySelectorAll(".thumb").forEach(s=>s.classList.remove("a--tabfocus")),e===this.lastIndex?this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"last",direction:"unspecified"},bubbles:!0,composed:!0})):e===0&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"first",direction:"unspecified"},bubbles:!0,composed:!0})))}render(){return l`
1187
1159
  <ul class="scroll-container" style="max-width: ${this.maxWidth};">
1188
- ${this.thumbnails.map((o,t)=>{const e=this.disabledIndexes.includes(t),r=this.activeIndex===t,i=o.type==="video",n=i?`video ${t}`:`${this.altressource} ${t+1}`;return l`
1160
+ ${this.thumbnails.map((o,t)=>{const e=this.disabledIndexes.includes(t),n=this.activeIndex===t,i=o.type==="video",r=i?`video ${t}`:`${this.altressource} ${t+1}`;return l`
1189
1161
  <li class="thumb-wrapper">
1190
1162
  <button
1191
1163
  class="thumb"
1192
1164
  data-index="${t}"
1193
1165
  ?disabled=${e}
1194
- aria-current=${r?"true":"false"}
1166
+ aria-current=${n?"true":"false"}
1195
1167
  @click=${()=>this.selectThumbnail(t)}
1196
1168
  @keydown=${this.handleKeyDown}
1197
1169
  @focus=${s=>this.onFocus(s)}
1198
1170
  @focusout=${s=>this.onFocusOut(s)}
1199
1171
  >
1200
- <img alt="${n}" src="${o.src}" />
1172
+ <img alt="${r}" src="${o.src}" />
1201
1173
  </button>
1202
1174
  ${i?l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>`:null}
1203
1175
  </li>
@@ -1238,18 +1210,17 @@
1238
1210
  }
1239
1211
  }
1240
1212
 
1241
- .thumb[aria-selected="true"], .a--tabfocus {
1242
- &::before {
1243
- content: "";
1244
- position: absolute;
1245
- top: 0;
1246
- left: 0;
1247
- right: 0;
1248
- bottom: 0;
1249
- border: 1px solid var(--color-border-primary);
1250
- pointer-events: none;
1251
- z-index: 1;
1252
- }
1213
+ .thumb[aria-selected="true"]::before,
1214
+ .a--tabfocus::before {
1215
+ content: "";
1216
+ position: absolute;
1217
+ top: 0;
1218
+ left: 0;
1219
+ right: 0;
1220
+ bottom: 0;
1221
+ border: 1px solid var(--color-border-primary);
1222
+ pointer-events: none;
1223
+ z-index: 1;
1253
1224
  }
1254
1225
 
1255
1226
  .thumb[disabled] {
@@ -1308,7 +1279,7 @@
1308
1279
  height: 0;
1309
1280
  width: 0;
1310
1281
  }
1311
- `;ot([a({type:Array})],F.prototype,"thumbnails",2);ot([a({type:Number})],F.prototype,"activeIndex",2);ot([a({type:Array})],F.prototype,"disabledIndexes",2);ot([a({type:String})],F.prototype,"maxWidth",2);ot([a({type:String})],F.prototype,"altressource",2);ot([a({type:Object})],F.prototype,"swiperInstance",2);ot([W()],F.prototype,"focusedIndex",2);F=ot([g("thumbnail-navigation")],F);var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,te=(o,t,e,r)=>{for(var i=r>1?void 0:r?ei(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&&ti(t,e,i),i};let wt=class extends p{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
1282
+ `;ot([a({type:Array})],F.prototype,"thumbnails",2);ot([a({type:Number})],F.prototype,"activeIndex",2);ot([a({type:Array})],F.prototype,"disabledIndexes",2);ot([a({type:String})],F.prototype,"maxWidth",2);ot([a({type:String})],F.prototype,"altressource",2);ot([a({type:Object})],F.prototype,"swiperInstance",2);ot([W()],F.prototype,"focusedIndex",2);F=ot([g("thumbnail-navigation")],F);var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,te=(o,t,e,n)=>{for(var i=n>1?void 0:n?ei(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ti(t,e,i),i};let wt=class extends p{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
1312
1283
  <span class="tag ${this.bgstyle}"><slot></slot></span>
1313
1284
  `}};wt.styles=f`
1314
1285
  .tag {
@@ -1369,7 +1340,7 @@
1369
1340
  }
1370
1341
  }
1371
1342
 
1372
- `;te([a({type:String,reflect:!0})],wt.prototype,"type",2);te([a({type:String,reflect:!0})],wt.prototype,"bgstyle",2);wt=te([g("o-tag")],wt);var oi=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ee=(o,t,e,r)=>{for(var i=r>1?void 0:r?ii(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&&oi(t,e,i),i};let $t=class extends p{constructor(){super(...arguments),this.type="top",this.text=""}render(){return l`
1343
+ `;te([a({type:String,reflect:!0})],wt.prototype,"type",2);te([a({type:String,reflect:!0})],wt.prototype,"bgstyle",2);wt=te([g("o-tag")],wt);var oi=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ee=(o,t,e,n)=>{for(var i=n>1?void 0:n?ii(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&oi(t,e,i),i};let $t=class extends p{constructor(){super(...arguments),this.type="top",this.text=""}render(){return l`
1373
1344
  <div class="tooltip">
1374
1345
  <span class="tooltiptext">${this.text}</span>
1375
1346
  <slot></slot>
@@ -1398,33 +1369,33 @@
1398
1369
  z-index: 1;
1399
1370
  }
1400
1371
 
1401
- .tooltip:hover .tooltiptext {
1402
- visibility: visible;
1403
- }
1372
+ .tooltip:hover .tooltiptext {
1373
+ visibility: visible;
1374
+ }
1404
1375
 
1405
- :host([type="right"]) .tooltip .tooltiptext {
1406
- top: -5px;
1407
- left: 105%;
1408
- }
1376
+ :host([type="right"]) .tooltip .tooltiptext {
1377
+ top: -5px;
1378
+ left: 105%;
1379
+ }
1409
1380
 
1410
- :host([type="left"]) .tooltip .tooltiptext {
1411
- top: -5px;
1412
- right: 105%;
1413
- }
1381
+ :host([type="left"]) .tooltip .tooltiptext {
1382
+ top: -5px;
1383
+ right: 105%;
1384
+ }
1414
1385
 
1415
- :host([type="top"]) .tooltip .tooltiptext {
1416
- width: 120px;
1417
- bottom: 100%;
1418
- left: 50%;
1419
- margin-left: -60px;
1420
- }
1386
+ :host([type="top"]) .tooltip .tooltiptext {
1387
+ width: 120px;
1388
+ bottom: 100%;
1389
+ left: 50%;
1390
+ margin-left: -60px;
1391
+ }
1421
1392
 
1422
- :host([type="bottom"]) .tooltip .tooltiptext {
1423
- width: 120px;
1424
- top: 100%;
1425
- left: 50%;
1426
- margin-left: -60px;
1427
- }
1393
+ :host([type="bottom"]) .tooltip .tooltiptext {
1394
+ width: 120px;
1395
+ top: 100%;
1396
+ left: 50%;
1397
+ margin-left: -60px;
1398
+ }
1428
1399
 
1429
1400
  /* Styles communs à tous les types */
1430
1401
  .tooltip .tooltiptext::after {
@@ -1466,7 +1437,7 @@
1466
1437
  border-color: transparent var(--color-alpha-dark-strongest) transparent transparent;
1467
1438
  }
1468
1439
 
1469
- `;ee([a({type:String,reflect:!0})],$t.prototype,"type",2);ee([a({type:String,reflect:!0})],$t.prototype,"text",2);$t=ee([g("o-tooltip")],$t);var ri=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,G=(o,t,e,r)=>{for(var i=r>1?void 0:r?ni(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&&ri(t,e,i),i};let T=class extends p{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>{this._focusActiveOption()})}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(o){this.options.length>0&&(this.options.some(e=>e.value===this.value)||(this.value=this.options[0].value))}render(){const o=Z.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
1440
+ `;ee([a({type:String,reflect:!0})],$t.prototype,"type",2);ee([a({type:String,reflect:!0})],$t.prototype,"text",2);$t=ee([g("o-tooltip")],$t);var ni=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,G=(o,t,e,n)=>{for(var i=n>1?void 0:n?ri(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ni(t,e,i),i};let T=class extends p{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>{this._focusActiveOption()})}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(o){this.options.length>0&&(this.options.some(e=>e.value===this.value)||(this.value=this.options[0].value))}render(){const o=Z.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
1470
1441
  <button
1471
1442
  role="combobox"
1472
1443
  aria-haspopup="listbox"
@@ -1494,13 +1465,13 @@
1494
1465
  aria-activedescendant="${this.activeIndex>=0?"option-"+this.activeIndex:""}"
1495
1466
  style=${`width: ${this.width};`}
1496
1467
  >
1497
- ${this.options.map((e,r)=>l`
1468
+ ${this.options.map((e,n)=>l`
1498
1469
  <li
1499
- id="option-${r}"
1470
+ id="option-${n}"
1500
1471
  role="option"
1501
1472
  aria-selected="${e.value===this.value}"
1502
- tabindex="${r===this.activeIndex?"0":"-1"}"
1503
- class="${r===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
1473
+ tabindex="${n===this.activeIndex?"0":"-1"}"
1474
+ class="${n===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
1504
1475
  @click=${()=>this.selectOption(e)}
1505
1476
  >
1506
1477
  ${e.url?l`
@@ -1515,196 +1486,186 @@
1515
1486
 
1516
1487
  <input type="hidden" name="${this.name}" .value="${this.value}" />
1517
1488
  `}};T.styles=f`
1518
- :host {
1519
- display: inline-block;
1520
- position: relative;
1489
+ :host {
1490
+ display: inline-block;
1491
+ position: relative;
1521
1492
  width: 100%;
1522
- }
1493
+ }
1523
1494
 
1524
- button {
1525
- padding: var(--spacing-s) var(--spacing-l);
1526
- background-color: var(--color-container-bg-default);
1527
- cursor: pointer;
1528
- border-radius: var(--radius-m);
1529
- border: var(--border-m) solid var(--color-border-tertiary);
1530
- display: flex;
1531
- justify-content: space-between;
1532
- width: 100%;
1533
- color: var(--color-content-body);
1534
-
1535
- .label {
1536
- font-family: var(--font-family-loccitane-sans);
1537
- font-weight: var(--font-weight-400);
1538
- font-size: var(--font-size-150);
1539
- line-height: var(--line-height-200);
1540
- letter-spacing: var(--letter-spacing-000);
1541
- }
1495
+ button {
1496
+ padding: var(--spacing-s) var(--spacing-l);
1497
+ background-color: var(--color-container-bg-default);
1498
+ cursor: pointer;
1499
+ border-radius: var(--radius-m);
1500
+ border: var(--border-m) solid var(--color-border-tertiary);
1501
+ display: flex;
1502
+ justify-content: space-between;
1503
+ width: 100%;
1504
+ color: var(--color-content-body);
1505
+ }
1542
1506
 
1543
- .arrow {
1544
- margin-top: auto;
1545
- margin-bottom: auto;
1546
- margin-left: var(--spacing-s);
1547
- }
1507
+ button .label {
1508
+ font-family: var(--font-family-loccitane-sans);
1509
+ font-weight: var(--font-weight-400);
1510
+ font-size: var(--font-size-150);
1511
+ line-height: var(--line-height-200);
1512
+ letter-spacing: var(--letter-spacing-000);
1513
+ }
1548
1514
 
1549
- &:disabled {
1550
- background-color: var(--color-container-disabled);
1551
- pointer-events: none;
1515
+ button .arrow {
1516
+ margin-top: auto;
1517
+ margin-bottom: auto;
1518
+ margin-left: var(--spacing-s);
1519
+ }
1552
1520
 
1553
- .label {
1554
- color: var(--color-content-disabled);
1555
- }
1556
- }
1521
+ button:disabled {
1522
+ background-color: var(--color-container-disabled);
1523
+ pointer-events: none;
1524
+ }
1557
1525
 
1558
- &:hover {
1559
- border: var(--border-m) solid var(--color-border-primary);
1560
- }
1526
+ button:disabled .label {
1527
+ color: var(--color-content-disabled);
1528
+ }
1561
1529
 
1562
- &[aria-expanded="true"] {
1563
- border: var(--border-l) solid var(--color-border-primary);
1564
- }
1565
- }
1530
+ button:hover {
1531
+ border: var(--border-m) solid var(--color-border-primary);
1532
+ }
1566
1533
 
1567
- ul {
1568
- list-style: none;
1569
- margin: 4px 0 0 0;
1570
- padding: 0;
1571
- border: var(--border-m) solid var(--color-border-tertiary);
1572
- position: absolute;
1573
- background: white;
1574
- height: auto;
1575
- overflow-y: auto;
1576
- z-index: 1000;
1534
+ button[aria-expanded="true"] {
1535
+ border: var(--border-l) solid var(--color-border-primary);
1536
+ }
1537
+
1538
+ ul {
1539
+ list-style: none;
1540
+ margin: 4px 0 0 0;
1541
+ padding: 0;
1542
+ border: var(--border-m) solid var(--color-border-tertiary);
1543
+ position: absolute;
1544
+ background: white;
1545
+ height: auto;
1546
+ overflow-y: auto;
1547
+ z-index: 1000;
1577
1548
  border-radius: var(--radius-200);
1578
1549
  background-color: var(--color-container-action-secondary-default);
1579
1550
  max-height: calc(5 * 40px);
1580
- }
1581
-
1582
- li {
1583
- display: flex;
1584
- justify-content: space-between;
1585
- align-items: center;
1586
- padding: var(--spacing-s) var(--spacing-l) var(--spacing-s) var(--spacing-s);
1587
- cursor: pointer;
1588
- border-bottom: var(--border-s) solid var(--color-border-tertiary);
1551
+ }
1589
1552
 
1590
- a {
1591
- display: flex;
1592
- justify-content: space-between;
1593
- width: 100%;
1594
- text-decoration: none;
1595
- color: var(--color-content-body);
1596
- }
1553
+ li {
1554
+ display: flex;
1555
+ justify-content: space-between;
1556
+ align-items: center;
1557
+ padding: var(--spacing-s) var(--spacing-l) var(--spacing-s) var(--spacing-s);
1558
+ cursor: pointer;
1559
+ border-bottom: var(--border-s) solid var(--color-border-tertiary);
1560
+ }
1597
1561
 
1598
- &.disabled {
1599
- background-color: var(--color-container-disabled);
1562
+ li a {
1563
+ display: flex;
1564
+ justify-content: space-between;
1565
+ width: 100%;
1566
+ text-decoration: none;
1567
+ color: var(--color-content-body);
1568
+ }
1600
1569
 
1601
- span {
1602
- color: var(--color-content-disabled);
1603
- }
1604
- }
1570
+ li.disabled {
1571
+ background-color: var(--color-container-disabled);
1572
+ }
1605
1573
 
1606
- &:hover:not(.disabled) {
1607
- background-color: var(--color-container-action-secondary-hover);
1608
- }
1574
+ li.disabled span {
1575
+ color: var(--color-content-disabled);
1576
+ }
1609
1577
 
1610
- &:active:not(.disabled) {
1611
- background-color: var(--color-container-action-secondary-pressed);
1612
- }
1578
+ li:hover:not(.disabled) {
1579
+ background-color: var(--color-container-action-secondary-hover);
1580
+ }
1613
1581
 
1614
- &[aria-selected="true"] {
1615
- background-color: var(--color-container-action-tertiary-default);
1582
+ li:active:not(.disabled) {
1583
+ background-color: var(--color-container-action-secondary-pressed);
1584
+ }
1616
1585
 
1617
- &:hover {
1618
- background-color: var(--color-container-action-tertiary-hover);
1619
- }
1586
+ li[aria-selected="true"] {
1587
+ background-color: var(--color-container-action-tertiary-default);
1588
+ }
1620
1589
 
1621
- &:active {
1622
- background-color: var(--color-container-action-tertiary-pressed);
1623
- }
1590
+ li[aria-selected="true"]:hover {
1591
+ background-color: var(--color-container-action-tertiary-hover);
1592
+ }
1624
1593
 
1625
- &.disabled {
1626
- background-color: var(--color-container-disabled);
1627
- }
1628
- }
1594
+ li[aria-selected="true"]:active {
1595
+ background-color: var(--color-container-action-tertiary-pressed);
1596
+ }
1629
1597
 
1630
- &:last-child {
1631
- border-bottom: none;
1632
- }
1598
+ li[aria-selected="true"].disabled {
1599
+ background-color: var(--color-container-disabled);
1600
+ }
1633
1601
 
1634
- span {
1635
- font-family: var(--font-family-loccitane-sans);
1636
- font-weight: var(--font-weight-400);
1637
- font-size: var(--font-size-150);
1638
- line-height: var(--line-height-200);
1639
- letter-spacing: var(--letter-spacing-000);
1640
- height: auto;
1641
- color: var(--color-content-body);
1602
+ li:last-child {
1603
+ border-bottom: none;
1604
+ }
1642
1605
 
1643
- }
1644
- }
1606
+ li span {
1607
+ font-family: var(--font-family-loccitane-sans);
1608
+ font-weight: var(--font-weight-400);
1609
+ font-size: var(--font-size-150);
1610
+ line-height: var(--line-height-200);
1611
+ letter-spacing: var(--letter-spacing-000);
1612
+ height: auto;
1613
+ color: var(--color-content-body);
1614
+ }
1645
1615
 
1646
- .check {
1616
+ .check {
1647
1617
  margin-left: var(--spacing-100);
1648
- width: 12px;
1649
- height: auto;
1650
- color: var(--color-content-action-secondary);
1651
-
1652
- }
1653
- input[type="hidden"] {
1654
- display: none;
1655
- }
1656
- `;G([a({type:Array,reflect:!0})],T.prototype,"options",2);G([a({type:String,reflect:!0})],T.prototype,"value",2);G([a({type:String,reflect:!0})],T.prototype,"name",2);G([a({type:Boolean,reflect:!0})],T.prototype,"disabled",2);G([a({type:String,reflect:!0})],T.prototype,"width",2);G([W()],T.prototype,"open",2);G([W()],T.prototype,"activeIndex",2);G([W()],T.prototype,"menuWidth",2);T=G([g("o-dropdown")],T);var si=Object.getOwnPropertyDescriptor,ai=(o,t,e,r)=>{for(var i=r>1?void 0:r?si(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=s(i)||i);return i};let Nt=class extends p{render(){return l` <span class="dots"></span> `}};Nt.styles=f`
1657
- :host {
1658
- display: flex;
1659
- align-items: center;
1660
- justify-content: center;
1661
- height: 20px;
1662
- width: 20px;
1663
- .dots {
1664
- display: inline-block;
1665
- width: 6px;
1666
- height: 6px;
1667
- border-radius: 50%;
1668
- cursor: pointer;
1669
- border: 1px solid var(--color-border-primary);
1670
- box-sizing: border-box;
1671
- background-color: var(--color-container-action-secondary-default);
1672
- }
1618
+ width: 12px;
1619
+ height: auto;
1620
+ color: var(--color-content-action-secondary);
1673
1621
  }
1674
1622
 
1675
- :host(:hover) {
1676
- .dots {
1677
- background-color: var(--color-container-action-secondary-hover);
1678
- }
1623
+ input[type="hidden"] {
1624
+ display: none;
1679
1625
  }
1626
+ `;G([a({type:Array,reflect:!0})],T.prototype,"options",2);G([a({type:String,reflect:!0})],T.prototype,"value",2);G([a({type:String,reflect:!0})],T.prototype,"name",2);G([a({type:Boolean,reflect:!0})],T.prototype,"disabled",2);G([a({type:String,reflect:!0})],T.prototype,"width",2);G([W()],T.prototype,"open",2);G([W()],T.prototype,"activeIndex",2);G([W()],T.prototype,"menuWidth",2);T=G([g("o-dropdown")],T);var si=Object.getOwnPropertyDescriptor,ai=(o,t,e,n)=>{for(var i=n>1?void 0:n?si(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(i)||i);return i};let Nt=class extends p{render(){return l` <span class="dots"></span> `}};Nt.styles=f`
1627
+ :host {
1628
+ display: flex;
1629
+ align-items: center;
1630
+ justify-content: center;
1631
+ height: 20px;
1632
+ width: 20px;
1633
+ }
1680
1634
 
1681
- :host(:active) {
1682
- .dots {
1683
- background-color: var(--color-container-action-secondary-pressed);
1684
- }
1685
- }
1635
+ .dots {
1636
+ display: inline-block;
1637
+ width: 6px;
1638
+ height: 6px;
1639
+ border-radius: 50%;
1640
+ cursor: pointer;
1641
+ border: 1px solid var(--color-border-primary);
1642
+ box-sizing: border-box;
1643
+ background-color: var(--color-container-action-secondary-default);
1644
+ }
1686
1645
 
1687
- :host([aria-current="true"]) {
1688
- .dots {
1689
- background-color: var(--color-container-action-primary-default);
1690
- border: 0.5px solid var(--color-border-white);
1691
- width: 8px;
1692
- height: 8px;
1693
- }
1694
- }
1646
+ :host(:hover) .dots {
1647
+ background-color: var(--color-container-action-secondary-hover);
1648
+ }
1695
1649
 
1696
- :host([aria-current="true"]:hover) {
1697
- .dots {
1698
- background-color: var(--color-container-action-primary-hover);
1699
- }
1700
- }
1650
+ :host(:active) .dots {
1651
+ background-color: var(--color-container-action-secondary-pressed);
1652
+ }
1701
1653
 
1702
- :host([aria-current="true"]:active) {
1703
- .dots {
1704
- background-color: var(--color-container-action-primary-pressed);
1705
- }
1706
- }
1707
- `;Nt=ai([g("o-dots")],Nt);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,U=(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=(r?s(t,e,i):s(i))||i);return r&&i&&li(t,e,i),i};let z=class extends p{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.additionaltext="+X variant(s)",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>this._focusActiveOption())}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(){this.options.length>0&&(this.options.some(t=>t.value===this.value)||(this.value=this.options[0].value))}render(){const o=Z.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
1654
+ :host([aria-current="true"]) .dots {
1655
+ background-color: var(--color-container-action-primary-default);
1656
+ border: 0.5px solid var(--color-border-white);
1657
+ width: 8px;
1658
+ height: 8px;
1659
+ }
1660
+
1661
+ :host([aria-current="true"]:hover) .dots {
1662
+ background-color: var(--color-container-action-primary-hover);
1663
+ }
1664
+
1665
+ :host([aria-current="true"]:active) .dots {
1666
+ background-color: var(--color-container-action-primary-pressed);
1667
+ }
1668
+ `;Nt=ai([g("o-dots")],Nt);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,U=(o,t,e,n)=>{for(var i=n>1?void 0:n?ci(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&li(t,e,i),i};let z=class extends p{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.additionaltext="+X variant(s)",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>this._focusActiveOption())}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(){this.options.length>0&&(this.options.some(t=>t.value===this.value)||(this.value=this.options[0].value))}render(){const o=Z.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
1708
1669
  <button
1709
1670
  role="combobox"
1710
1671
  aria-haspopup="listbox"
@@ -1742,14 +1703,14 @@
1742
1703
  aria-activedescendant="${this.activeIndex>=0?"option-"+this.activeIndex:""}"
1743
1704
  style=${`width: ${this.width};`}
1744
1705
  >
1745
- ${this.options.map((e,r)=>l`
1706
+ ${this.options.map((e,n)=>l`
1746
1707
  <li
1747
- id="option-${r}"
1708
+ id="option-${n}"
1748
1709
  role="option"
1749
1710
  aria-selected="${e.value===this.value}"
1750
1711
  aria-disabled="${e.disabled?"true":"false"}"
1751
- tabindex="${r===this.activeIndex?"0":"-1"}"
1752
- class="${r===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
1712
+ tabindex="${n===this.activeIndex?"0":"-1"}"
1713
+ class="${n===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
1753
1714
  @click=${()=>this.selectOption(e)}
1754
1715
  >
1755
1716
  <a href="${P(e.url)}">
@@ -1767,191 +1728,191 @@
1767
1728
 
1768
1729
  <input type="hidden" name="${this.name}" .value="${this.value}" />
1769
1730
  `}};z.styles=f`
1770
- :host {
1771
- display: inline-block;
1772
- position: relative;
1773
- width: 100%;
1774
- }
1731
+ :host {
1732
+ display: inline-block;
1733
+ position: relative;
1734
+ width: 100%;
1735
+ }
1775
1736
 
1776
- .btn-dropdown {
1777
- display: flex;
1778
- gap: var(--spacing-l);
1779
- width: 100%;
1780
- color: var(--color-content-body);
1781
- align-items: center;
1782
- background-color: var(--color-container-bg-default);
1783
- cursor: pointer;
1784
- border-radius: var(--radius-m);
1785
- border: var(--border-m) solid var(--color-border-tertiary);
1786
- padding: 0;
1787
- overflow: hidden;
1737
+ .btn-dropdown {
1738
+ display: flex;
1739
+ gap: var(--spacing-l);
1740
+ width: 100%;
1741
+ color: var(--color-content-body);
1742
+ align-items: center;
1743
+ background-color: var(--color-container-bg-default);
1744
+ cursor: pointer;
1745
+ border-radius: var(--radius-m);
1746
+ border: var(--border-m) solid var(--color-border-tertiary);
1747
+ padding: 0;
1748
+ overflow: hidden;
1749
+ }
1788
1750
 
1789
- &:disabled {
1790
- background-color: var(--color-container-disabled);
1791
- pointer-events: none;
1751
+ .btn-dropdown:disabled {
1752
+ background-color: var(--color-container-disabled);
1753
+ pointer-events: none;
1754
+ }
1792
1755
 
1793
- .label {
1794
- color: var(--color-content-disabled);
1795
- }
1796
- }
1756
+ .btn-dropdown:disabled .label {
1757
+ color: var(--color-content-disabled);
1758
+ }
1797
1759
 
1798
- img {
1799
- width: 40px;
1800
- height: 50px;
1801
- }
1760
+ .btn-dropdown img {
1761
+ width: 40px;
1762
+ height: 50px;
1763
+ }
1802
1764
 
1803
- .right {
1804
- display: flex;
1805
- align-items: center;
1806
- gap: var(--spacing-l);
1807
- }
1765
+ .btn-dropdown .right {
1766
+ display: flex;
1767
+ align-items: center;
1768
+ gap: var(--spacing-l);
1769
+ }
1808
1770
 
1809
- .arrow {
1810
- margin-top: auto;
1811
- margin-bottom: auto;
1812
- margin-right: var(--spacing-l);
1813
- }
1771
+ .btn-dropdown .arrow {
1772
+ margin-top: auto;
1773
+ margin-bottom: auto;
1774
+ margin-right: var(--spacing-l);
1775
+ }
1814
1776
 
1815
- &:hover {
1816
- border: var(--border-m) solid var(--color-border-primary);
1817
- }
1777
+ .btn-dropdown:hover {
1778
+ border: var(--border-m) solid var(--color-border-primary);
1779
+ }
1818
1780
 
1819
- &[aria-expanded="true"] {
1820
- border: var(--border-l) solid var(--color-border-primary);
1821
- }
1822
- }
1781
+ .btn-dropdown[aria-expanded="true"] {
1782
+ border: var(--border-l) solid var(--color-border-primary);
1783
+ }
1823
1784
 
1824
- .label {
1825
- flex: 1;
1826
- text-align: start;
1827
- font-family: var(--font-family-loccitane-sans);
1828
- font-weight: var(--font-weight-500);
1829
- font-size: var(--font-size-100);
1830
- line-height: var(--line-height-160);
1831
- letter-spacing: var(--letter-spacing-400);
1832
- text-transform: uppercase;
1833
- color: var(--color-content-body);
1834
- }
1785
+ .label {
1786
+ flex: 1;
1787
+ text-align: start;
1788
+ font-family: var(--font-family-loccitane-sans);
1789
+ font-weight: var(--font-weight-500);
1790
+ font-size: var(--font-size-100);
1791
+ line-height: var(--line-height-160);
1792
+ letter-spacing: var(--letter-spacing-400);
1793
+ text-transform: uppercase;
1794
+ color: var(--color-content-body);
1795
+ }
1835
1796
 
1836
- ul {
1837
- list-style: none;
1838
- margin: 4px 0 0 0;
1839
- padding: 0;
1840
- border: var(--border-m) solid var(--color-border-tertiary);
1841
- position: absolute;
1842
- background: white;
1843
- height: auto;
1844
- overflow-y: auto;
1845
- z-index: 1000;
1846
- border-radius: var(--radius-200);
1847
- background-color: var(--color-container-action-secondary-default);
1848
- max-height: calc(5 * 40px);
1849
- }
1797
+ ul {
1798
+ list-style: none;
1799
+ margin: 4px 0 0 0;
1800
+ padding: 0;
1801
+ border: var(--border-m) solid var(--color-border-tertiary);
1802
+ position: absolute;
1803
+ background: white;
1804
+ height: auto;
1805
+ overflow-y: auto;
1806
+ z-index: 1000;
1807
+ border-radius: var(--radius-200);
1808
+ background-color: var(--color-container-action-secondary-default);
1809
+ max-height: calc(5 * 40px);
1810
+ }
1850
1811
 
1851
- li {
1852
- display: flex;
1853
- justify-content: space-between;
1854
- align-items: center;
1855
- cursor: pointer;
1856
- border-bottom: var(--border-s) solid var(--color-border-tertiary);
1857
- gap: var(--spacing-l);
1858
- padding-right: var(--spacing-l);
1859
-
1860
- a {
1861
- display: flex;
1862
- width: 100%;
1863
- gap: var(--spacing-l);
1864
- align-items: center;
1865
- text-decoration: none;
1866
-
1867
- &:active {
1868
- color: inherit;
1869
- text-decoration: none;
1870
- }
1871
-
1872
- img {
1873
- width: 40px;
1874
- height: 50px;
1875
- }
1876
- }
1812
+ li {
1813
+ display: flex;
1814
+ justify-content: space-between;
1815
+ align-items: center;
1816
+ cursor: pointer;
1817
+ border-bottom: var(--border-s) solid var(--color-border-tertiary);
1818
+ gap: var(--spacing-l);
1819
+ padding-right: var(--spacing-l);
1820
+ }
1877
1821
 
1878
- &.disabled {
1879
- background-color: var(--color-container-disabled);
1822
+ li a {
1823
+ display: flex;
1824
+ width: 100%;
1825
+ gap: var(--spacing-l);
1826
+ align-items: center;
1827
+ text-decoration: none;
1828
+ }
1880
1829
 
1881
- .label {
1882
- color: var(--color-content-disabled);
1883
- }
1884
- }
1830
+ li a:active {
1831
+ color: inherit;
1832
+ text-decoration: none;
1833
+ }
1885
1834
 
1886
- &:hover:not(.disabled) {
1887
- background-color: var(--color-container-action-secondary-hover);
1888
- }
1835
+ li a img {
1836
+ width: 40px;
1837
+ height: 50px;
1838
+ }
1889
1839
 
1890
- &:active:not(.disabled) {
1891
- background-color: var(--color-container-action-secondary-pressed);
1892
- }
1840
+ li.disabled {
1841
+ background-color: var(--color-container-disabled);
1842
+ }
1893
1843
 
1894
- &[aria-selected="true"] {
1895
- background-color: var(--color-container-action-tertiary-default);
1844
+ li.disabled .label {
1845
+ color: var(--color-content-disabled);
1846
+ }
1896
1847
 
1897
- &:hover {
1898
- background-color: var(--color-container-action-tertiary-hover);
1899
- }
1848
+ li:hover:not(.disabled) {
1849
+ background-color: var(--color-container-action-secondary-hover);
1850
+ }
1900
1851
 
1901
- &:active {
1902
- background-color: var(--color-container-action-tertiary-pressed);
1903
- }
1852
+ li:active:not(.disabled) {
1853
+ background-color: var(--color-container-action-secondary-pressed);
1854
+ }
1904
1855
 
1905
- &.disabled {
1906
- background-color: var(--color-container-disabled);
1907
- }
1908
- }
1856
+ li[aria-selected="true"] {
1857
+ background-color: var(--color-container-action-tertiary-default);
1858
+ }
1909
1859
 
1910
- &:last-child {
1911
- border-bottom: none;
1912
- }
1860
+ li[aria-selected="true"]:hover {
1861
+ background-color: var(--color-container-action-tertiary-hover);
1862
+ }
1913
1863
 
1914
- span {
1915
- font-family: var(--font-family-loccitane-sans);
1916
- font-weight: var(--font-weight-400);
1917
- font-size: var(--font-size-150);
1918
- line-height: var(--line-height-200);
1919
- letter-spacing: var(--letter-spacing-000);
1920
- height: auto;
1921
- }
1922
- }
1864
+ li[aria-selected="true"]:active {
1865
+ background-color: var(--color-container-action-tertiary-pressed);
1866
+ }
1923
1867
 
1924
- .additional-text {
1925
- font-family: var(--font-family-loccitane-sans);
1926
- font-weight: var(--font-weight-400);
1927
- font-size: var(--font-size-100);
1928
- line-height: var(--line-height-160);
1929
- letter-spacing: var(--letter-spacing-400);
1930
- text-decoration: none;
1931
- color: var(--color-content-description);
1932
- }
1868
+ li[aria-selected="true"].disabled {
1869
+ background-color: var(--color-container-disabled);
1870
+ }
1933
1871
 
1934
- .check {
1935
- margin-left: var(--spacing-100);
1936
- width: 12px;
1937
- height: auto;
1938
- color: var(--color-content-action-secondary);
1939
- }
1872
+ li:last-child {
1873
+ border-bottom: none;
1874
+ }
1940
1875
 
1941
- input[type="hidden"] {
1942
- display: none;
1943
- }
1876
+ li span {
1877
+ font-family: var(--font-family-loccitane-sans);
1878
+ font-weight: var(--font-weight-400);
1879
+ font-size: var(--font-size-150);
1880
+ line-height: var(--line-height-200);
1881
+ letter-spacing: var(--letter-spacing-000);
1882
+ height: auto;
1883
+ }
1884
+
1885
+ .additional-text {
1886
+ font-family: var(--font-family-loccitane-sans);
1887
+ font-weight: var(--font-weight-400);
1888
+ font-size: var(--font-size-100);
1889
+ line-height: var(--line-height-160);
1890
+ letter-spacing: var(--letter-spacing-400);
1891
+ text-decoration: none;
1892
+ color: var(--color-content-description);
1893
+ }
1894
+
1895
+ .check {
1896
+ margin-left: var(--spacing-100);
1897
+ width: 12px;
1898
+ height: auto;
1899
+ color: var(--color-content-action-secondary);
1900
+ }
1901
+
1902
+ input[type="hidden"] {
1903
+ display: none;
1904
+ }
1944
1905
  `;U([a({type:Array,reflect:!0})],z.prototype,"options",2);U([a({type:String,reflect:!0})],z.prototype,"value",2);U([a({type:String,reflect:!0})],z.prototype,"name",2);U([a({type:String,reflect:!0})],z.prototype,"additionaltext",2);U([a({type:Boolean,reflect:!0})],z.prototype,"disabled",2);U([a({type:String,reflect:!0})],z.prototype,"width",2);U([W()],z.prototype,"open",2);U([W()],z.prototype,"activeIndex",2);U([W()],z.prototype,"menuWidth",2);z=U([g("o-dropdown-variant")],z);/**
1945
1906
  * @license
1946
1907
  * Copyright 2018 Google LLC
1947
1908
  * SPDX-License-Identifier: BSD-3-Clause
1948
- */const Ee="important",hi=" !"+Ee,di=Jt(class extends Qt{constructor(o){var t;if(super(o),o.type!==Yt.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(hi);r.includes("-")||n?e.setProperty(r,n?i.slice(0,-11):i,n?Ee:""):e[r]=i}}return tt}});var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,oe=(o,t,e,r)=>{for(var i=r>1?void 0:r?ui(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&&pi(t,e,i),i};let kt=class extends p{constructor(){super(...arguments),this.option={},this.imageSize=64}render(){const o=s=>{const c=document.createElement("textarea");return c.innerHTML=s,c.value},t=this.option&&this.option.clickable,e={width:`${this.imageSize}px`,height:`${this.imageSize}px`},r=this.option&&this.option.title?o(this.option.title):"",i=this.option&&this.option.description?o(this.option.description):"",n=l`
1949
- ${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${P(r)}" aria-hidden="true" style=${di(e)} />`:""}
1909
+ */const Ee="important",hi=" !"+Ee,di=Jt(class extends Qt{constructor(o){var t;if(super(o),o.type!==Yt.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 n=o[e];return n==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}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 n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?e.removeProperty(n):e[n]=null);for(const n in t){const i=t[n];if(i!=null){this.ft.add(n);const r=typeof i=="string"&&i.endsWith(hi);n.includes("-")||r?e.setProperty(n,r?i.slice(0,-11):i,r?Ee:""):e[n]=i}}return tt}});var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,oe=(o,t,e,n)=>{for(var i=n>1?void 0:n?ui(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&pi(t,e,i),i};let kt=class extends p{constructor(){super(...arguments),this.option={},this.imageSize=64}render(){const o=s=>{const c=document.createElement("textarea");return c.innerHTML=s,c.value},t=this.option&&this.option.clickable,e={width:`${this.imageSize}px`,height:`${this.imageSize}px`},n=this.option&&this.option.title?o(this.option.title):"",i=this.option&&this.option.description?o(this.option.description):"",r=l`
1910
+ ${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${P(n)}" aria-hidden="true" style=${di(e)} />`:""}
1950
1911
  <div class="m-reassurance-content">
1951
- <h3 class="a-reassurance-text">${P(r)}</h3>
1912
+ <h3 class="a-reassurance-text">${P(n)}</h3>
1952
1913
  <p class="a-reassurance-description">${P(i)}</p>
1953
1914
  </div>
1954
- `;return t?l`<a href="${P(this.option.url)}" class="reassurance-item clickable">${n}</a>`:l`<div class="reassurance-item">${n}</div>`}};kt.styles=f`
1915
+ `;return t?l`<a href="${P(this.option.url)}" class="reassurance-item clickable">${r}</a>`:l`<div class="reassurance-item">${r}</div>`}};kt.styles=f`
1955
1916
  :host {
1956
1917
  display: inline-block;
1957
1918
  position: relative;
@@ -1966,73 +1927,73 @@
1966
1927
  background-color: var(--color-container-bg-white);
1967
1928
  border-radius: var(--radius-m);
1968
1929
  padding: var(--spacing-xl);
1930
+ }
1969
1931
 
1970
- &:has(img) {
1971
- padding: 3px var(--spacing-s) 3px var(--spacing-2-xs);
1972
- }
1932
+ .reassurance-item:has(img) {
1933
+ padding: 3px var(--spacing-s) 3px var(--spacing-2-xs);
1934
+ }
1973
1935
 
1974
- &.clickable {
1975
- text-decoration: none;
1936
+ .reassurance-item.clickable {
1937
+ text-decoration: none;
1938
+ }
1976
1939
 
1977
- &:disabled {
1978
- box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.06);
1979
- }
1940
+ .reassurance-item.clickable:disabled {
1941
+ box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.06);
1942
+ }
1980
1943
 
1981
- &:hover {
1982
- border: none;
1983
- box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.12);
1984
- }
1944
+ .reassurance-item.clickable:hover {
1945
+ border: none;
1946
+ box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.12);
1947
+ }
1985
1948
 
1986
- &:active {
1987
- border: none;
1988
- box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.32);
1989
- }
1990
- }
1949
+ .reassurance-item.clickable:active {
1950
+ border: none;
1951
+ box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.32);
1952
+ }
1991
1953
 
1992
- img {
1993
- display: block;
1994
- aspect-ratio: 1 / 1;
1995
- border-radius: var(--radius-s);
1996
- }
1954
+ .reassurance-item img {
1955
+ display: block;
1956
+ aspect-ratio: 1 / 1;
1957
+ border-radius: var(--radius-s);
1958
+ }
1997
1959
 
1998
- .m-reassurance-content {
1999
- display: flex;
2000
- flex-direction: column;
2001
- justify-content: flex-start;
2002
- row-gap: var(--spacing-3-xs);
2003
- }
1960
+ .reassurance-item .m-reassurance-content {
1961
+ display: flex;
1962
+ flex-direction: column;
1963
+ justify-content: flex-start;
1964
+ row-gap: var(--spacing-3-xs);
1965
+ }
2004
1966
 
2005
- .a-reassurance-text {
2006
- color: var(--color-content-body);
2007
- font-family: var(--font-family-loccitane-sans);
2008
- font-size: var(--font-size-100);
2009
- font-weight: var(--font-weight-500);
2010
- line-height: var(--line-height-160);
2011
- letter-spacing: var(--letter-spacing-400);
2012
- text-transform: uppercase;
2013
- margin: var(--spacing-4-xs);
2014
- display: -webkit-box;
2015
- -webkit-line-clamp: 1;
2016
- line-clamp: 1;
2017
- -webkit-box-orient: vertical;
2018
- overflow: hidden;
2019
- }
1967
+ .reassurance-item .a-reassurance-text {
1968
+ color: var(--color-content-body);
1969
+ font-family: var(--font-family-loccitane-sans);
1970
+ font-size: var(--font-size-100);
1971
+ font-weight: var(--font-weight-500);
1972
+ line-height: var(--line-height-160);
1973
+ letter-spacing: var(--letter-spacing-400);
1974
+ text-transform: uppercase;
1975
+ margin: var(--spacing-4-xs);
1976
+ display: -webkit-box;
1977
+ -webkit-line-clamp: 1;
1978
+ line-clamp: 1;
1979
+ -webkit-box-orient: vertical;
1980
+ overflow: hidden;
1981
+ }
2020
1982
 
2021
- .a-reassurance-description {
2022
- color: var(--color-content-description);
2023
- font-family: var(--font-family-loccitane-sans);
2024
- font-size: var(--font-size-150);
2025
- font-weight: var(--font-weight-400);
2026
- line-height: var(--line-height-200);
2027
- margin: var(--spacing-4-xs);
2028
- display: -webkit-box;
2029
- -webkit-line-clamp: 2;
2030
- line-clamp: 2;
2031
- -webkit-box-orient: vertical;
2032
- overflow: hidden;
2033
- }
1983
+ .reassurance-item .a-reassurance-description {
1984
+ color: var(--color-content-description);
1985
+ font-family: var(--font-family-loccitane-sans);
1986
+ font-size: var(--font-size-150);
1987
+ font-weight: var(--font-weight-400);
1988
+ line-height: var(--line-height-200);
1989
+ margin: var(--spacing-4-xs);
1990
+ display: -webkit-box;
1991
+ -webkit-line-clamp: 2;
1992
+ line-clamp: 2;
1993
+ -webkit-box-orient: vertical;
1994
+ overflow: hidden;
2034
1995
  }
2035
- `;oe([a({type:Object,reflect:!0})],kt.prototype,"option",2);oe([a({type:Number,reflect:!0})],kt.prototype,"imageSize",2);kt=oe([g("o-reassurance")],kt);var fi=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,X=(o,t,e,r)=>{for(var i=r>1?void 0:r?vi(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&&fi(t,e,i),i};const gi=Xt(p);let O=class extends gi{constructor(){super(...arguments),this.link="",this.name="",this.value="",this.text="",this.size="standard",this.selected=!1,this.fullwidth=!1,this.inactive=!1}handleClick(o){this.selected||(this.selected=!0);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}render(){const o=this.text;return this.link?l`
1996
+ `;oe([a({type:Object,reflect:!0})],kt.prototype,"option",2);oe([a({type:Number,reflect:!0})],kt.prototype,"imageSize",2);kt=oe([g("o-reassurance")],kt);var fi=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,X=(o,t,e,n)=>{for(var i=n>1?void 0:n?vi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&fi(t,e,i),i};const gi=Xt(p);let O=class extends gi{constructor(){super(...arguments),this.link="",this.name="",this.value="",this.text="",this.size="standard",this.selected=!1,this.fullwidth=!1,this.inactive=!1}handleClick(o){this.selected||(this.selected=!0);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}render(){const o=this.text;return this.link?l`
2036
1997
  <a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
2037
1998
  ${o?this.text:l`<slot></slot>`}
2038
1999
  </a>
@@ -2099,26 +2060,30 @@
2099
2060
  text-decoration: none;
2100
2061
  cursor: inherit;
2101
2062
  box-sizing: border-box;
2063
+ }
2102
2064
 
2103
- span {
2104
- font-family: var(--font-family-loccitane-sans);
2105
- font-size: var(--font-size-150);
2106
- font-weight: var(--font-weight-400);
2107
- line-height: var(--line-height-200);
2108
- }
2065
+ .o-chip span,
2066
+ .button span {
2067
+ font-family: var(--font-family-loccitane-sans);
2068
+ font-size: var(--font-size-150);
2069
+ font-weight: var(--font-weight-400);
2070
+ line-height: var(--line-height-200);
2071
+ }
2109
2072
 
2110
- &:hover {
2111
- background-color: var(--button-bg-hover);
2112
- color: var(--button-text-hover);
2113
- }
2073
+ .o-chip:hover,
2074
+ .button:hover {
2075
+ background-color: var(--button-bg-hover);
2076
+ color: var(--button-text-hover);
2077
+ }
2114
2078
 
2115
- &:active {
2116
- background-color: var(--button-bg-pressed);
2117
- }
2079
+ .o-chip:active,
2080
+ .button:active {
2081
+ background-color: var(--button-bg-pressed);
2082
+ }
2118
2083
 
2119
- &:focus-visible {
2120
- ${at};
2121
- }
2084
+ .o-chip:focus-visible,
2085
+ .button:focus-visible {
2086
+ ${at};
2122
2087
  }
2123
2088
 
2124
2089
  span.text + span.text::before {
@@ -2130,7 +2095,7 @@
2130
2095
  display: inline-flex;
2131
2096
  align-items: center;
2132
2097
  }
2133
- `;X([a({type:String,reflect:!0})],O.prototype,"link",2);X([a({reflect:!0})],O.prototype,"name",2);X([a({reflect:!0})],O.prototype,"value",2);X([a({type:String})],O.prototype,"text",2);X([a({type:String,reflect:!0})],O.prototype,"size",2);X([a({type:Boolean,reflect:!0})],O.prototype,"selected",2);X([a({type:Boolean,reflect:!0})],O.prototype,"fullwidth",2);X([a({type:Boolean,reflect:!0})],O.prototype,"inactive",2);O=X([g("o-chip")],O);var bi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,ie=(o,t,e,r)=>{for(var i=r>1?void 0:r?yi(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 _t=class extends p{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof O?o.target:null;t!=null&&t.link||(this.name=(t==null?void 0:t.name)||"",this.value=(t==null?void 0:t.value)||"",this.querySelectorAll("o-chip").forEach(e=>{e!==t&&(e.selected=!1)}))}render(){return l`
2098
+ `;X([a({type:String,reflect:!0})],O.prototype,"link",2);X([a({reflect:!0})],O.prototype,"name",2);X([a({reflect:!0})],O.prototype,"value",2);X([a({type:String})],O.prototype,"text",2);X([a({type:String,reflect:!0})],O.prototype,"size",2);X([a({type:Boolean,reflect:!0})],O.prototype,"selected",2);X([a({type:Boolean,reflect:!0})],O.prototype,"fullwidth",2);X([a({type:Boolean,reflect:!0})],O.prototype,"inactive",2);O=X([g("o-chip")],O);var bi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,ie=(o,t,e,n)=>{for(var i=n>1?void 0:n?yi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&bi(t,e,i),i};let _t=class extends p{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof O?o.target:null;t!=null&&t.link||(this.name=(t==null?void 0:t.name)||"",this.value=(t==null?void 0:t.value)||"",this.querySelectorAll("o-chip").forEach(e=>{e!==t&&(e.selected=!1)}))}render(){return l`
2134
2099
  <slot></slot>
2135
2100
  `}};_t.styles=f`
2136
2101
  :host {
@@ -2139,7 +2104,7 @@
2139
2104
  flex-wrap: wrap;
2140
2105
  gap: var(--spacing-s);
2141
2106
  }
2142
- `;ie([a({reflect:!0})],_t.prototype,"name",2);ie([a({reflect:!0})],_t.prototype,"value",2);_t=ie([g("o-chipset")],_t);var mi=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,N=(o,t,e,r)=>{for(var i=r>1?void 0:r?xi(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&&mi(t,e,i),i};const wi=Xt(p);let I=class extends wi{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=Z[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=Lo[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`
2107
+ `;ie([a({reflect:!0})],_t.prototype,"name",2);ie([a({reflect:!0})],_t.prototype,"value",2);_t=ie([g("o-chipset")],_t);var mi=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,N=(o,t,e,n)=>{for(var i=n>1?void 0:n?xi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&mi(t,e,i),i};const wi=Xt(p);let I=class extends wi{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=Z[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=Ao[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`
2143
2108
  <a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
2144
2109
  aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
2145
2110
  ${o?l`
@@ -2220,13 +2185,15 @@
2220
2185
  text-decoration: none;
2221
2186
  cursor: inherit;
2222
2187
  box-sizing: border-box;
2188
+ }
2223
2189
 
2224
- span {
2225
- font-family: var(--font-family-loccitane-sans);
2226
- font-size: var(--font-size-150);
2227
- font-weight: var(--font-weight-400);
2228
- line-height: var(--line-height-200);
2229
- }
2190
+ .button span {
2191
+ font-family: var(--font-family-loccitane-sans);
2192
+ font-size: var(--font-size-150);
2193
+ font-weight: var(--font-weight-400);
2194
+ line-height: var(--line-height-200);
2195
+ display: inline-flex;
2196
+ align-items: center;
2230
2197
  }
2231
2198
 
2232
2199
  .button:hover:not([disabled]) {
@@ -2250,17 +2217,12 @@
2250
2217
  .cross-icon {
2251
2218
  display: inline-flex;
2252
2219
  align-items: center;
2253
-
2254
- svg {
2255
- width: 8px;
2256
- height: 8px;
2257
- stroke: var(--color-content-action-primary);
2258
- }
2259
2220
  }
2260
2221
 
2261
- .button span {
2262
- display: inline-flex;
2263
- align-items: center;
2222
+ .cross-icon svg {
2223
+ width: 8px;
2224
+ height: 8px;
2225
+ stroke: var(--color-content-action-primary);
2264
2226
  }
2265
2227
 
2266
2228
  .button slot {
@@ -2277,14 +2239,14 @@
2277
2239
  bottom: 0;
2278
2240
  left: 0;
2279
2241
  right: 0;
2242
+ }
2280
2243
 
2281
- line {
2282
- stroke: var(--button-strikethrough-stroke);
2283
- stroke-width: 4px;
2284
- stroke-linecap: round;
2285
- }
2244
+ [part="strikethrough"] line {
2245
+ stroke: var(--button-strikethrough-stroke);
2246
+ stroke-width: 4px;
2247
+ stroke-linecap: round;
2286
2248
  }
2287
- `;N([a({reflect:!0})],I.prototype,"name",2);N([a({reflect:!0})],I.prototype,"value",2);N([a({type:String,reflect:!0})],I.prototype,"type",2);N([a({type:String,reflect:!0})],I.prototype,"href",2);N([a({type:String,reflect:!0,attribute:"data-href"})],I.prototype,"dataHref",2);N([a({type:String})],I.prototype,"text",2);N([a({type:Boolean,reflect:!0})],I.prototype,"selected",2);N([a({type:Boolean,reflect:!0})],I.prototype,"disabled",2);N([a({type:Boolean,reflect:!0})],I.prototype,"fullwidth",2);I=N([g("o-filter-chip")],I);var $i=Object.defineProperty,M=(o,t,e,r)=>{for(var i=void 0,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=s(t,e,i)||i);return i&&$i(t,e,i),i};const se=class se extends p{constructor(){super(...arguments),this.type="cart | chevron",this.titleProduct="",this.volume="",this.perLiter="",this.mainPrice="",this.imageUrl="https://placehold.co/56x70",this.altImage="",this.fullwidth=!1,this.tagText=""}onClick(t){var r,i;const e=t.target;(r=e==null?void 0:e.classList)!=null&&r.contains("add-to-bag")||((i=this.onClickTile)==null||i.call(this),this.dispatchEvent(new CustomEvent("tile-click",{bubbles:!0,composed:!0})))}onClickIcons(){var t;(t=this.onClickIcon)==null||t.call(this),this.dispatchEvent(new CustomEvent("tile-icon-click",{bubbles:!0,composed:!0}))}get icons(){return this.type==="chevron"?l`
2249
+ `;N([a({reflect:!0})],I.prototype,"name",2);N([a({reflect:!0})],I.prototype,"value",2);N([a({type:String,reflect:!0})],I.prototype,"type",2);N([a({type:String,reflect:!0})],I.prototype,"href",2);N([a({type:String,reflect:!0,attribute:"data-href"})],I.prototype,"dataHref",2);N([a({type:String})],I.prototype,"text",2);N([a({type:Boolean,reflect:!0})],I.prototype,"selected",2);N([a({type:Boolean,reflect:!0})],I.prototype,"disabled",2);N([a({type:Boolean,reflect:!0})],I.prototype,"fullwidth",2);I=N([g("o-filter-chip")],I);var $i=Object.defineProperty,M=(o,t,e,n)=>{for(var i=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(t,e,i)||i);return i&&$i(t,e,i),i};const se=class se extends p{constructor(){super(...arguments),this.type="cart | chevron",this.titleProduct="",this.volume="",this.perLiter="",this.mainPrice="",this.imageUrl="https://placehold.co/56x70",this.altImage="",this.fullwidth=!1,this.tagText=""}onClick(t){var n,i;const e=t.target;(n=e==null?void 0:e.classList)!=null&&n.contains("add-to-bag")||((i=this.onClickTile)==null||i.call(this),this.dispatchEvent(new CustomEvent("tile-click",{bubbles:!0,composed:!0})))}onClickIcons(){var t;(t=this.onClickIcon)==null||t.call(this),this.dispatchEvent(new CustomEvent("tile-icon-click",{bubbles:!0,composed:!0}))}get icons(){return this.type==="chevron"?l`
2288
2250
  <o-icon-button
2289
2251
  @click=${this.onClickIcons}
2290
2252
  icon="chevronRight"
@@ -2348,10 +2310,10 @@
2348
2310
  margin: 0;
2349
2311
  border: 0 none;
2350
2312
  box-sizing: content-box;
2313
+ }
2351
2314
 
2352
- o-icon-button {
2353
- margin-left: var(--spacing-xl);
2354
- }
2315
+ .tile o-icon-button {
2316
+ margin-left: var(--spacing-xl);
2355
2317
  }
2356
2318
 
2357
2319
  .tile.fullwidth {
@@ -2385,16 +2347,16 @@
2385
2347
  display: -webkit-box;
2386
2348
  -webkit-line-clamp: 2;
2387
2349
  -webkit-box-orient: vertical;
2350
+ }
2388
2351
 
2389
- + .details {
2390
- padding-top: var(--spacing-s);
2391
- overflow: hidden;
2392
- text-overflow: ellipsis;
2393
- display: -webkit-box;
2394
- -webkit-line-clamp: 1;
2395
- -webkit-box-orient: vertical;
2396
- text-align: left;
2397
- }
2352
+ .info .title + .details {
2353
+ padding-top: var(--spacing-s);
2354
+ overflow: hidden;
2355
+ text-overflow: ellipsis;
2356
+ display: -webkit-box;
2357
+ -webkit-line-clamp: 1;
2358
+ -webkit-box-orient: vertical;
2359
+ text-align: left;
2398
2360
  }
2399
2361
 
2400
2362
  .info .details {
@@ -2407,14 +2369,12 @@
2407
2369
  color: var(--colors-noir-des-terres-500);
2408
2370
  font-family: var(--font-family-loccitane-sans);
2409
2371
  line-height: var(--line-height-160);
2372
+ }
2410
2373
 
2411
- + .main-price {
2412
- &::before {
2413
- content: "•";
2414
- padding: 0 var(--spacing-xs) 0 var(--spacing-2-xs);
2415
- color: var(--colors-noir-des-terres-500);
2416
- }
2417
- }
2374
+ .info .volume-info + .main-price::before {
2375
+ content: "•";
2376
+ padding: 0 var(--spacing-xs) 0 var(--spacing-2-xs);
2377
+ color: var(--colors-noir-des-terres-500);
2418
2378
  }
2419
2379
 
2420
2380
  .info o-tag {
@@ -2440,7 +2400,7 @@
2440
2400
  .fullpointer {
2441
2401
  cursor: pointer;
2442
2402
  }
2443
- `;let E=se;M([a({type:String})],E.prototype,"type");M([a({type:String})],E.prototype,"titleProduct");M([a({type:String})],E.prototype,"volume");M([a({type:String})],E.prototype,"perLiter");M([a({type:String})],E.prototype,"mainPrice");M([a({type:String})],E.prototype,"imageUrl");M([a({type:String})],E.prototype,"altImage");M([a({type:Boolean})],E.prototype,"fullwidth");M([a({type:String})],E.prototype,"tagText");M([a({attribute:!1})],E.prototype,"onClickTile");M([a({attribute:!1})],E.prototype,"onClickIcon");customElements.define("mini-tile",E);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,re=(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&&ki(t,e,i),i};let Ct=class extends p{constructor(){super(...arguments),this.variant="cart",this.text=""}render(){return l`
2403
+ `;let E=se;M([a({type:String})],E.prototype,"type");M([a({type:String})],E.prototype,"titleProduct");M([a({type:String})],E.prototype,"volume");M([a({type:String})],E.prototype,"perLiter");M([a({type:String})],E.prototype,"mainPrice");M([a({type:String})],E.prototype,"imageUrl");M([a({type:String})],E.prototype,"altImage");M([a({type:Boolean})],E.prototype,"fullwidth");M([a({type:String})],E.prototype,"tagText");M([a({attribute:!1})],E.prototype,"onClickTile");M([a({attribute:!1})],E.prototype,"onClickIcon");customElements.define("mini-tile",E);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,ne=(o,t,e,n)=>{for(var i=n>1?void 0:n?_i(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ki(t,e,i),i};let Ct=class extends p{constructor(){super(...arguments),this.variant="cart",this.text=""}render(){return l`
2444
2404
  <span class="badge">
2445
2405
  ${this.text?this.text:l`<slot></slot>`}
2446
2406
  </span>
@@ -2478,7 +2438,7 @@
2478
2438
  color: var(--text-color);
2479
2439
  }
2480
2440
 
2481
- `;re([a({type:String,reflect:!0})],Ct.prototype,"variant",2);re([a({type:String})],Ct.prototype,"text",2);Ct=re([g("o-badge")],Ct);var Ci=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,H=(o,t,e,r)=>{for(var i=r>1?void 0:r?Si(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&&Ci(t,e,i),i};let A=class extends p{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","")),c=parseInt(n.getPropertyValue("height").replace("px",""));!isNaN(s)&&!isNaN(c)&&c>s&&(this.multiline=!0)}t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=Po[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`
2441
+ `;ne([a({type:String,reflect:!0})],Ct.prototype,"variant",2);ne([a({type:String})],Ct.prototype,"text",2);Ct=ne([g("o-badge")],Ct);var Ci=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,H=(o,t,e,n)=>{for(var i=n>1?void 0:n?Si(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ci(t,e,i),i};let L=class extends p{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 n,i;var o=this;const t=(n=this.renderRoot)==null?void 0:n.querySelector("o-icon-button"),e=(i=this.renderRoot)==null?void 0:i.querySelector(".o-toast-text");if(e!=null){const r=window.getComputedStyle(e),s=parseInt(r.getPropertyValue("line-height").replace("px","")),c=parseInt(r.getPropertyValue("height").replace("px",""));!isNaN(s)&&!isNaN(c)&&c>s&&(this.multiline=!0)}t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=Po[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`
2482
2442
  <div class="o-toast">
2483
2443
  <div class="o-toast-icon">
2484
2444
  ${S(t)}
@@ -2494,7 +2454,7 @@
2494
2454
  </o-icon-button>
2495
2455
  </div>
2496
2456
  </div>
2497
- `}};A.styles=f`
2457
+ `}};L.styles=f`
2498
2458
  :host {
2499
2459
  --vertical-offset: 24px;
2500
2460
  --horizontal-offset: 24px;
@@ -2571,7 +2531,7 @@
2571
2531
  .o-toast-icon {
2572
2532
  height: 16px;
2573
2533
  }
2574
- `;H([a({type:String,reflect:!0})],A.prototype,"icon",2);H([a({type:String,reflect:!0})],A.prototype,"text",2);H([a({type:String,reflect:!0})],A.prototype,"verticalanchor",2);H([a({type:String,reflect:!0})],A.prototype,"horizontalanchor",2);H([a({type:Number,reflect:!0})],A.prototype,"verticaloffset",2);H([a({type:Number,reflect:!0})],A.prototype,"horizontaloffset",2);H([a({type:Number,reflect:!0})],A.prototype,"animationduration",2);H([a({type:String,reflect:!0})],A.prototype,"animationaxis",2);H([a({type:Boolean,reflect:!0})],A.prototype,"animated",2);H([a({type:Number,reflect:!0})],A.prototype,"lifeduration",2);H([a({type:Boolean,reflect:!0})],A.prototype,"multiline",2);A=H([g("o-toast")],A);var Ei=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,j=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ai(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&&Ei(t,e,i),i};let Li=0,L=class extends p{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-${++Li}`)}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=S(Z.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=S(Z.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
2534
+ `;H([a({type:String,reflect:!0})],L.prototype,"icon",2);H([a({type:String,reflect:!0})],L.prototype,"text",2);H([a({type:String,reflect:!0})],L.prototype,"verticalanchor",2);H([a({type:String,reflect:!0})],L.prototype,"horizontalanchor",2);H([a({type:Number,reflect:!0})],L.prototype,"verticaloffset",2);H([a({type:Number,reflect:!0})],L.prototype,"horizontaloffset",2);H([a({type:Number,reflect:!0})],L.prototype,"animationduration",2);H([a({type:String,reflect:!0})],L.prototype,"animationaxis",2);H([a({type:Boolean,reflect:!0})],L.prototype,"animated",2);H([a({type:Number,reflect:!0})],L.prototype,"lifeduration",2);H([a({type:Boolean,reflect:!0})],L.prototype,"multiline",2);L=H([g("o-toast")],L);var Ei=Object.defineProperty,Li=Object.getOwnPropertyDescriptor,j=(o,t,e,n)=>{for(var i=n>1?void 0:n?Li(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ei(t,e,i),i};let Ai=0,A=class extends p{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-${++Ai}`)}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=S(Z.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=S(Z.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
2575
2535
  <input
2576
2536
  type="checkbox"
2577
2537
  id=${this.inputId}
@@ -2579,7 +2539,7 @@
2579
2539
  ?disabled=${this.disabled}
2580
2540
  name=${this.name}
2581
2541
  value=${this.value}
2582
- @change=${e=>{const r=e.target;this.checked=r.checked,this.indeterminate=r.indeterminate,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}}
2542
+ @change=${e=>{const n=e.target;this.checked=n.checked,this.indeterminate=n.indeterminate,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}}
2583
2543
  />
2584
2544
 
2585
2545
  <div class="box" role="checkbox" tabindex=${this.disabled?-1:0} aria-checked=${this.indeterminate?"mixed":String(this.checked)} aria-disabled=${String(this.disabled)} @click=${this.toggle} @keydown=${this.handleKeyDown}>
@@ -2587,7 +2547,7 @@
2587
2547
  </div>
2588
2548
 
2589
2549
  ${this.showLabel?l`<label class="label" for=${this.inputId}>${this.label}</label>`:""}
2590
- `}};L.styles=f`
2550
+ `}};A.styles=f`
2591
2551
  :host {
2592
2552
  display: inline-flex;
2593
2553
  align-items: center;
@@ -2617,17 +2577,16 @@
2617
2577
  width: 16px;
2618
2578
  height: 16px;
2619
2579
  }
2620
- :host([size="L"]) {
2621
- .box {
2622
- width: 24px;
2623
- height: 24px;
2624
- border: 2px solid var(--color-border-secondary);
2625
- }
2626
2580
 
2627
- .label {
2628
- line-height: var(--line-height-200);
2629
- font-size: var(--font-size-200);
2630
- }
2581
+ :host([size="L"]) .box {
2582
+ width: 24px;
2583
+ height: 24px;
2584
+ border: 2px solid var(--color-border-secondary);
2585
+ }
2586
+
2587
+ :host([size="L"]) .label {
2588
+ line-height: var(--line-height-200);
2589
+ font-size: var(--font-size-200);
2631
2590
  }
2632
2591
 
2633
2592
  :host([checked]) .box,
@@ -2690,7 +2649,7 @@
2690
2649
  svg path {
2691
2650
  stroke: var(--color-border-white);
2692
2651
  }
2693
- `;j([a({type:Boolean,reflect:!0})],L.prototype,"checked",2);j([a({type:Boolean,reflect:!0})],L.prototype,"indeterminate",2);j([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);j([a({type:String,reflect:!0})],L.prototype,"size",2);j([a({type:Boolean})],L.prototype,"showLabel",2);j([a({type:String})],L.prototype,"label",2);j([a({type:String})],L.prototype,"name",2);j([a({type:String})],L.prototype,"value",2);j([a({type:String,reflect:!0})],L.prototype,"inputId",2);j([Ce("input")],L.prototype,"inputEl",2);L=j([g("o-checkbox")],L);var Pi=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,q=(o,t,e,r)=>{for(var i=r>1?void 0:r?Bi(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&&Pi(t,e,i),i};let zi=0,D=class extends p{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-${++zi}`)}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`
2652
+ `;j([a({type:Boolean,reflect:!0})],A.prototype,"checked",2);j([a({type:Boolean,reflect:!0})],A.prototype,"indeterminate",2);j([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2);j([a({type:String,reflect:!0})],A.prototype,"size",2);j([a({type:Boolean})],A.prototype,"showLabel",2);j([a({type:String})],A.prototype,"label",2);j([a({type:String})],A.prototype,"name",2);j([a({type:String})],A.prototype,"value",2);j([a({type:String,reflect:!0})],A.prototype,"inputId",2);j([Ce("input")],A.prototype,"inputEl",2);A=j([g("o-checkbox")],A);var Pi=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,q=(o,t,e,n)=>{for(var i=n>1?void 0:n?Bi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Pi(t,e,i),i};let zi=0,D=class extends p{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-${++zi}`)}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(n=>{n!==this&&(n.checked=!1)})}this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.handleClick())}render(){return l`
2694
2653
  <input type="radio" id=${this.inputId} ?checked=${this.checked} ?disabled=${this.disabled} name=${this.name} value=${this.value} />
2695
2654
 
2696
2655
  <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}>
@@ -2787,7 +2746,7 @@
2787
2746
  width: 0;
2788
2747
  height: 0;
2789
2748
  }
2790
- `;q([a({type:Boolean,reflect:!0})],D.prototype,"checked",2);q([a({type:Boolean,reflect:!0})],D.prototype,"disabled",2);q([a({type:String,reflect:!0})],D.prototype,"size",2);q([a({type:Boolean})],D.prototype,"showLabel",2);q([a({type:String})],D.prototype,"label",2);q([a({type:String})],D.prototype,"name",2);q([a({type:String})],D.prototype,"value",2);q([a({type:String,reflect:!0})],D.prototype,"inputId",2);q([Ce("input")],D.prototype,"inputEl",2);D=q([g("o-radio")],D);var Oi=Object.getOwnPropertyDescriptor,Ii=(o,t,e,r)=>{for(var i=r>1?void 0:r?Oi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=s(i)||i);return i};let qt=class extends p{render(){return l`
2749
+ `;q([a({type:Boolean,reflect:!0})],D.prototype,"checked",2);q([a({type:Boolean,reflect:!0})],D.prototype,"disabled",2);q([a({type:String,reflect:!0})],D.prototype,"size",2);q([a({type:Boolean})],D.prototype,"showLabel",2);q([a({type:String})],D.prototype,"label",2);q([a({type:String})],D.prototype,"name",2);q([a({type:String})],D.prototype,"value",2);q([a({type:String,reflect:!0})],D.prototype,"inputId",2);q([Ce("input")],D.prototype,"inputEl",2);D=q([g("o-radio")],D);var Oi=Object.getOwnPropertyDescriptor,Ii=(o,t,e,n)=>{for(var i=n>1?void 0:n?Oi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(i)||i);return i};let qt=class extends p{render(){return l`
2791
2750
  <nav aria-label="Breadcrumbs">
2792
2751
  <ul>
2793
2752
  <slot></slot>
@@ -2804,7 +2763,7 @@
2804
2763
  margin: var(--spacing-4-xs);
2805
2764
  padding: var(--spacing-4-xs);
2806
2765
  }
2807
- `;qt=Ii([g("o-breadcrumbs")],qt);var Di=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,ne=(o,t,e,r)=>{for(var i=r>1?void 0:r?Hi(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&&Di(t,e,i),i};let St=class extends p{constructor(){super(...arguments),this.href="",this.active=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){return this.active?l`<span aria-current="page"><slot></slot></span>`:l`
2766
+ `;qt=Ii([g("o-breadcrumbs")],qt);var Di=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,re=(o,t,e,n)=>{for(var i=n>1?void 0:n?Hi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Di(t,e,i),i};let St=class extends p{constructor(){super(...arguments),this.href="",this.active=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){return this.active?l`<span aria-current="page"><slot></slot></span>`:l`
2808
2767
  <li>
2809
2768
  <a
2810
2769
  href="${this.href}"
@@ -2853,7 +2812,7 @@
2853
2812
  :host(.a--tabfocus) {
2854
2813
  outline: none !important;
2855
2814
  }
2856
- `;ne([a({type:String})],St.prototype,"href",2);ne([a({type:Boolean,reflect:!0})],St.prototype,"active",2);St=ne([g("o-breadcrumb")],St);var Ti=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,ut=(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&&Ti(t,e,i),i};let et=class extends p{constructor(){super(...arguments),this.imageUrl="",this.imageAlt="",this.hoverUrl="",this.hoverAlt="",this.dimmed=!1}render(){return l`<div class="card">
2815
+ `;re([a({type:String})],St.prototype,"href",2);re([a({type:Boolean,reflect:!0})],St.prototype,"active",2);St=re([g("o-breadcrumb")],St);var Ti=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,ut=(o,t,e,n)=>{for(var i=n>1?void 0:n?Mi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ti(t,e,i),i};let et=class extends p{constructor(){super(...arguments),this.imageUrl="",this.imageAlt="",this.hoverUrl="",this.hoverAlt="",this.dimmed=!1}render(){return l`<div class="card">
2857
2816
  <svg aria-hidden="true">
2858
2817
  <defs>
2859
2818
  <clipPath id="arch-gift-finder" clipPathUnits="objectBoundingBox">
@@ -2873,53 +2832,66 @@
2873
2832
  --overlay-bg: rgba(0,0,0,0.56);
2874
2833
  --overlay-opacity: 1;
2875
2834
  --card-filter: none;
2835
+ display: block;
2836
+ }
2837
+
2838
+ .card {
2839
+ position: relative;
2840
+ width: var(--card-width);
2841
+ height: var(--card-height);
2842
+ overflow: hidden;
2843
+ background-color: var(--colors-noir-des-terres-500);
2844
+ clip-path: url(#arch-gift-finder);
2845
+ -webkit-clip-path: url(#arch-gift-finder);
2846
+ filter: var(--card-filter, none);
2847
+ -webkit-tap-highlight-color: transparent;
2848
+ }
2876
2849
 
2850
+ @media (max-width: 1024px) {
2877
2851
  .card {
2878
- position: relative;
2879
- width: var(--card-width);
2880
- height: var(--card-height);
2881
- overflow: hidden;
2882
- background-color: var(--colors-noir-des-terres-500);
2883
- clip-path: url(#arch-gift-finder);
2884
- -webkit-clip-path: url(#arch-gift-finder);
2885
- filter: var(--card-filter, none);
2886
-
2887
- @media (max-width: 1024px) {
2888
- width: var(--card-width-mobile);
2889
- height: var(--card-height-mobile);
2890
- }
2852
+ width: var(--card-width-mobile);
2853
+ height: var(--card-height-mobile);
2891
2854
  }
2855
+ }
2892
2856
 
2893
- .card-img {
2894
- position: absolute;
2895
- top: 0;
2896
- left: 0;
2897
- width: 100%;
2898
- height: 100%;
2899
- object-fit: cover;
2900
- transition: opacity 0.3s ease-in-out;
2901
- background: linear-gradient(180deg, #f9f4ed 0%, #f3f0eb 81.41%, #edeae5 100%);
2857
+ .card-img {
2858
+ position: absolute;
2859
+ top: 0;
2860
+ left: 0;
2861
+ width: 100%;
2862
+ height: 100%;
2863
+ object-fit: cover;
2864
+ transition: opacity 0.3s ease-in-out;
2865
+ background: linear-gradient(180deg, #f9f4ed 0%, #f3f0eb 81.41%, #edeae5 100%);
2866
+ }
2902
2867
 
2903
- &.hover {
2904
- opacity: 0;
2905
- z-index: 2;
2906
- }
2907
- }
2868
+ .card-img.hover {
2869
+ opacity: 0;
2870
+ z-index: 2;
2871
+ }
2908
2872
 
2873
+ @media (hover: hover) and (pointer: fine) {
2909
2874
  .card:hover .card-img.hover {
2910
2875
  opacity: 1;
2911
2876
  }
2877
+ }
2912
2878
 
2913
- .overlay {
2914
- position: absolute; inset: 0;
2915
- background: var(--overlay-bg);
2916
- opacity: 0;
2917
- transition: opacity .2s ease;
2918
- pointer-events: none;
2919
- z-index: 3;
2879
+ @media (hover: none) and (pointer: coarse) {
2880
+ .card:active .card-img.hover {
2881
+ opacity: 1;
2920
2882
  }
2921
2883
  }
2922
2884
 
2885
+ .overlay {
2886
+ position: absolute; inset: 0;
2887
+ background: var(--overlay-bg);
2888
+ opacity: 0;
2889
+ transition: opacity .2s ease;
2890
+ pointer-events: none;
2891
+ z-index: 3;
2892
+ }
2893
+
2894
+
2923
2895
  :host([dimmed]) .overlay {
2924
2896
  opacity: var(--overlay-opacity, 1);
2925
2897
  }
@@ -3003,7 +2975,7 @@
3003
2975
  d="m 1237.15,72.3984 c -3.61,1.5625 -7.64,0.6211 -10.76,-1.5898 -3.47,-2.4688 -6.01,-6.207 -8.42,-9.6484 l -2.61,-3.7305 c -3.58,-5.1094 -9.55,-13.6992 -12.29,-16.1094 -5.74,-5.1289 -9.34,-6.6094 -53,-6.6094 -33.15,0 -37.81,0.9883 -43.8,4.1602 -5.52,2.7891 -7.77,10.7773 -7.77,13.6484 0,3.3594 -0.2,14.711 -0.45,28.7422 -0.39,22.6093 -0.93,52.2383 -0.93,66.5083 v 2.082 c 61.53,-0.032 57.15,-0.524 65,-2.762 2.14,-0.75 4.31,-3.918 6.04,-9.07 0,0 1.62,-4.02 1.63,-4.032 1.32,-3.277 2.66,-6.867 5.45,-9.207 3.1,-2.609 8.34,-2.961 11.82,-0.832 2.53,1.551 4.41,4.86 5.34,7.641 1.18,3.469 1.06,7.031 0.47,10.601 -0.42,2.528 -1.65,14.649 -0.88,22.661 0.36,3.359 0.91,7.339 1.4,11.039 0.81,5.937 1.45,11.25 1.45,13.039 0,10.769 -6.83,13.64 -10.87,13.64 -7.45,0 -10.98,-7.148 -12.29,-9.8 -5.17,-10.34 -7.99,-12.258 -8.92,-12.77 -1.75,-1.09 -4.81,-1.93 -26.44,-1.93 h -39.2 v 107.52 c 0,4.422 0.17,7.101 0.34,8.738 15.96,0.774 76.93,0.524 87.71,-1.476 3.62,-0.602 9.08,-1.5 17.68,-21.911 1.36,-3.211 3.03,-6.711 5.7,-9.043 3,-2.609 7.9,-3.558 11.48,-1.648 3.15,1.672 4.77,5.262 5.42,8.621 0.48,2.52 0.57,5.379 0.02,7.899 -1.68,7.71 -2.32,17.339 -2.74,23.718 l -0.42,5.41 c -1.6,9.993 -5.84,15.063 -12.6,15.063 -1.95,0 -3.97,-0.121 -6.59,-0.27 -4.29,-0.261 -10.36,-0.652 -21.14,-0.652 -8.99,0 -29.44,-0.219 -50.5,-0.437 -22.25,-0.231 -45.19,-0.493 -55.89,-0.493 -7.8,0 -14.28,0.411 -20.23,0.77 -5.38,0.32 -10.33,0.621 -15.39,0.621 -8.85,0 -15.02,-4.461 -15.02,-10.859 0,-3.692 1.73,-10.231 13.17,-12.532 11.25,-2.488 15.05,-3.339 15.05,-28.168 0,-97.863 -0.47,-142.242 -2.32,-215.7808 -0.34,-15.5196 -5.21,-19.0821 -18.87,-21.3594 C 1027,30.8984 1016.62,29 1016.62,19.6719 c 0,-1.9727 0.81,-11.80081 16.89,-11.80081 1.95,0 6.58,0.3086 12.45,0.71875 9.5,0.67969 22.45,1.60156 31.94,1.60156 17.71,0 38.65,-0.41015 60.92,-0.83984 25.46,-0.49218 52.62,-1.01172 78.73,-1.01172 4,0 9.62,1.69926 13.67,9.76956 2.26,4.4687 4.54,12.8906 7.15,22.6094 1.18,4.4218 2.39,8.9531 3.55,12.8203 0.89,2.9804 1.73,5.9726 1.57,9.1211 -0.2,3.9804 -2.49,7.9804 -6.34,9.7382" /><path
3004
2976
  id="path52"
3005
2977
  style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
3006
- d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;var Fi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,C=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ri(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&&Fi(t,e,i),i};const ae=class ae extends p{constructor(){super(...arguments),this.ispagedesigner=!1,this._classPopin="",this.open=!1,this.background="",this.backgroundUrl="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.lockScroll=!0,this.variant="fullscreen",this.maxWidth="640px",this.showBackButton=!1,this.contrast=!1,this.iconSize="large",this.hideHeaderOnScroll=!1,this._labelId=`title-${Math.random().toString(36).slice(2)}`,this._headerHidden=!1,this._onBackdropClick=t=>{var r;if(!this.open||!this.closeOnBackdrop)return;const e=t.composedPath()[0];(r=e==null?void 0:e.classList)!=null&&r.contains("backdrop")&&this._requestClose("backdrop")},this._onScroll=t=>{if(!this.hideHeaderOnScroll||!this.open)return;const i=t.target.scrollTop>50;i!==this._headerHidden&&(this._headerHidden=i,this.requestUpdate())}}get classPopin(){return this.ispagedesigner?"pagedesigner-popin "+this._classPopin:this._classPopin}set classPopin(t){this._classPopin=t}connectedCallback(){super.connectedCallback(),this._onKeydown=this._onKeydown.bind(this),this._onScroll=this._onScroll.bind(this),document.addEventListener("keydown",this._onKeydown)}disconnectedCallback(){document.removeEventListener("keydown",this._onKeydown),this._removeScrollListener(),super.disconnectedCallback()}updated(t){if(t.has("background")||t.has("backgroundUrl")){let e="";this.background&&this.background.trim()?e=this.background.trim():this.backgroundUrl&&this.backgroundUrl.trim()&&(e=`url('${this.backgroundUrl.trim()}') center/cover no-repeat`),this.style.setProperty("--_bg",e)}if(t.has("open")){if(this.lockScroll){const e=document==null?void 0:document.body;e&&(e.style.overflow=this.open&&!this.ispagedesigner?"hidden":"")}this.open?this.updateComplete.then(()=>{var r;(r=this.renderRoot.querySelector("[data-close-btn]")??this.renderRoot.querySelector('[role="dialog"]'))==null||r.focus(),this._setupScrollListener(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}):(this._removeScrollListener(),this._headerHidden=!1,this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}(t.has("hideHeaderOnScroll")||t.has("open"))&&(this.open?this._setupScrollListener():this._removeScrollListener())}_onKeydown(t){this.open&&this.closeOnEsc&&t.key==="Escape"&&(t.preventDefault(),this._requestClose("esc"))}_setupScrollListener(){this.hideHeaderOnScroll&&(this._removeScrollListener(),this.updateComplete.then(()=>{const t=this.renderRoot.querySelector('main[part="body"]');t&&t.addEventListener("scroll",this._onScroll,{passive:!0})}))}_removeScrollListener(){const t=this.renderRoot.querySelector('main[part="body"]');t&&t.removeEventListener("scroll",this._onScroll)}_onBackClick(){this.dispatchEvent(new CustomEvent("back",{bubbles:!0,composed:!0}))}_requestClose(t){const e=new CustomEvent("request-close",{bubbles:!0,composed:!0,detail:{reason:t}});this.dispatchEvent(e),e.defaultPrevented||(this.open=!1)}_renderCloseButton(){return customElements.get("o-icon-button")?l`
2978
+ d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;var Fi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,C=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ri(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Fi(t,e,i),i};const ae=class ae extends p{constructor(){super(...arguments),this.ispagedesigner=!1,this._classPopin="",this.open=!1,this.background="",this.backgroundUrl="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.lockScroll=!0,this.variant="fullscreen",this.maxWidth="640px",this.showBackButton=!1,this.contrast=!1,this.iconSize="large",this.hideHeaderOnScroll=!1,this._labelId=`title-${Math.random().toString(36).slice(2)}`,this._headerHidden=!1,this._onBackdropClick=t=>{var n;if(!this.open||!this.closeOnBackdrop)return;const e=t.composedPath()[0];(n=e==null?void 0:e.classList)!=null&&n.contains("backdrop")&&this._requestClose("backdrop")},this._onScroll=t=>{if(!this.hideHeaderOnScroll||!this.open)return;const i=t.target.scrollTop>50;i!==this._headerHidden&&(this._headerHidden=i,this.requestUpdate())}}get classPopin(){return this.ispagedesigner?"pagedesigner-popin "+this._classPopin:this._classPopin}set classPopin(t){this._classPopin=t}connectedCallback(){super.connectedCallback(),this._onKeydown=this._onKeydown.bind(this),this._onScroll=this._onScroll.bind(this),document.addEventListener("keydown",this._onKeydown)}disconnectedCallback(){document.removeEventListener("keydown",this._onKeydown),this._removeScrollListener(),super.disconnectedCallback()}updated(t){if(t.has("background")||t.has("backgroundUrl")){let e="";this.background&&this.background.trim()?e=this.background.trim():this.backgroundUrl&&this.backgroundUrl.trim()&&(e=`url('${this.backgroundUrl.trim()}') center/cover no-repeat`),this.style.setProperty("--_bg",e)}if(t.has("open")){if(this.lockScroll){const e=document==null?void 0:document.body;e&&(e.style.overflow=this.open&&!this.ispagedesigner?"hidden":"")}this.open?this.updateComplete.then(()=>{var n;(n=this.renderRoot.querySelector("[data-close-btn]")??this.renderRoot.querySelector('[role="dialog"]'))==null||n.focus(),this._setupScrollListener(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}):(this._removeScrollListener(),this._headerHidden=!1,this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}(t.has("hideHeaderOnScroll")||t.has("open"))&&(this.open?this._setupScrollListener():this._removeScrollListener())}_onKeydown(t){this.open&&this.closeOnEsc&&t.key==="Escape"&&(t.preventDefault(),this._requestClose("esc"))}_setupScrollListener(){this.hideHeaderOnScroll&&(this._removeScrollListener(),this.updateComplete.then(()=>{const t=this.renderRoot.querySelector('main[part="body"]');t&&t.addEventListener("scroll",this._onScroll,{passive:!0})}))}_removeScrollListener(){const t=this.renderRoot.querySelector('main[part="body"]');t&&t.removeEventListener("scroll",this._onScroll)}_onBackClick(){this.dispatchEvent(new CustomEvent("back",{bubbles:!0,composed:!0}))}_requestClose(t){const e=new CustomEvent("request-close",{bubbles:!0,composed:!0,detail:{reason:t}});this.dispatchEvent(e),e.defaultPrevented||(this.open=!1)}_renderCloseButton(){return customElements.get("o-icon-button")?l`
3007
2979
  <o-icon-button
3008
2980
  data-close-btn
3009
2981
  icon="cross"
@@ -3190,7 +3162,7 @@
3190
3162
  from { transform: translateY(10px) scale(.98); opacity: 0; }
3191
3163
  to { transform: translateY(0) scale(1); opacity: 1; }
3192
3164
  }
3193
- `;let x=ae;C([a({type:Boolean,reflect:!0})],x.prototype,"ispagedesigner",2);C([a({type:String,reflect:!0})],x.prototype,"classPopin",1);C([a({type:Boolean,reflect:!0})],x.prototype,"open",2);C([a({type:String,reflect:!0})],x.prototype,"background",2);C([a({type:String,attribute:"background-url",reflect:!0})],x.prototype,"backgroundUrl",2);C([a({type:Boolean,attribute:"close-on-esc"})],x.prototype,"closeOnEsc",2);C([a({type:Boolean,attribute:"close-on-backdrop"})],x.prototype,"closeOnBackdrop",2);C([a({type:Boolean,attribute:"lock-scroll"})],x.prototype,"lockScroll",2);C([a({type:String,reflect:!0})],x.prototype,"variant",2);C([a({type:String,attribute:"max-width"})],x.prototype,"maxWidth",2);C([a({type:Boolean,reflect:!0})],x.prototype,"showBackButton",2);C([a({type:Boolean,reflect:!0})],x.prototype,"contrast",2);C([a({type:String,reflect:!0})],x.prototype,"iconSize",2);C([a({type:Boolean,attribute:"hide-header-on-scroll"})],x.prototype,"hideHeaderOnScroll",2);C([W()],x.prototype,"_labelId",2);C([W()],x.prototype,"_headerHidden",2);customElements.define("o-popin",x);var Ui=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,$=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ni(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&&Ui(t,e,i),i};let m=class extends p{constructor(){super(...arguments),this.type="cart | notifyme",this.titleProduct="",this.descriptionProduct="",this.volume="",this.perLiter="",this.mainPrice="",this.salesPercentage="",this.oldPrice="",this.imageUrl="https://placehold.co/112x140",this.outOfStock=!1,this.altImage="",this.fullwidth=!1,this.current=!1,this.hideIcon=!1,this.tagText=""}onClick(o){var e,r,i;const t=o.target;(e=t==null?void 0:t.classList)!=null&&e.contains("add-to-bag")||(r=t==null?void 0:t.classList)!=null&&r.contains("js-availability-notify-details-routine")||((i=this.onClickTile)==null||i.call(this),this.dispatchEvent(new CustomEvent("tile-click",{bubbles:!0,composed:!0})))}onClickIcons(){var o;(o=this.onClickIcon)==null||o.call(this),this.dispatchEvent(new CustomEvent("tile-icon-click",{bubbles:!0,composed:!0}))}get icons(){return this.hideIcon?"":l`
3165
+ `;let x=ae;C([a({type:Boolean,reflect:!0})],x.prototype,"ispagedesigner",2);C([a({type:String,reflect:!0})],x.prototype,"classPopin",1);C([a({type:Boolean,reflect:!0})],x.prototype,"open",2);C([a({type:String,reflect:!0})],x.prototype,"background",2);C([a({type:String,attribute:"background-url",reflect:!0})],x.prototype,"backgroundUrl",2);C([a({type:Boolean,attribute:"close-on-esc"})],x.prototype,"closeOnEsc",2);C([a({type:Boolean,attribute:"close-on-backdrop"})],x.prototype,"closeOnBackdrop",2);C([a({type:Boolean,attribute:"lock-scroll"})],x.prototype,"lockScroll",2);C([a({type:String,reflect:!0})],x.prototype,"variant",2);C([a({type:String,attribute:"max-width"})],x.prototype,"maxWidth",2);C([a({type:Boolean,reflect:!0})],x.prototype,"showBackButton",2);C([a({type:Boolean,reflect:!0})],x.prototype,"contrast",2);C([a({type:String,reflect:!0})],x.prototype,"iconSize",2);C([a({type:Boolean,attribute:"hide-header-on-scroll"})],x.prototype,"hideHeaderOnScroll",2);C([W()],x.prototype,"_labelId",2);C([W()],x.prototype,"_headerHidden",2);customElements.define("o-popin",x);var Ui=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,$=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ni(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ui(t,e,i),i};let m=class extends p{constructor(){super(...arguments),this.type="cart | notifyme",this.titleProduct="",this.descriptionProduct="",this.volume="",this.perLiter="",this.mainPrice="",this.salesPercentage="",this.oldPrice="",this.imageUrl="https://placehold.co/112x140",this.outOfStock=!1,this.altImage="",this.fullwidth=!1,this.current=!1,this.hideIcon=!1,this.tagText=""}onClick(o){var e,n,i;const t=o.target;(e=t==null?void 0:t.classList)!=null&&e.contains("add-to-bag")||(n=t==null?void 0:t.classList)!=null&&n.contains("js-availability-notify-details-routine")||((i=this.onClickTile)==null||i.call(this),this.dispatchEvent(new CustomEvent("tile-click",{bubbles:!0,composed:!0})))}onClickIcons(){var o;(o=this.onClickIcon)==null||o.call(this),this.dispatchEvent(new CustomEvent("tile-icon-click",{bubbles:!0,composed:!0}))}get icons(){return this.hideIcon?"":l`
3194
3166
  <o-icon-button
3195
3167
  @click=${this.onClickIcons}
3196
3168
  icon=${this.type==="notifyme"?"notifyme":"cart"}