@florid-kit/components 2.6.13 → 2.6.15

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.
@@ -29,6 +29,7 @@ export declare class OccitaneSidePanel extends OccitaneSidePanel_base {
29
29
  secondButtonVariant: string;
30
30
  secondButtonProps: {};
31
31
  onSecondButtonClickClose: boolean;
32
+ stickyFooter: boolean;
32
33
  disablePortal: boolean;
33
34
  zIndex: number;
34
35
  initialized: boolean;
package/index.js CHANGED
@@ -12,7 +12,7 @@
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
13
  */const Q1=globalThis,p2=Q1.trustedTypes,Q2=p2?p2.createPolicy("lit-html",{createHTML:e=>e}):void 0,a0="$lit$",x1=`lit$${Math.random().toFixed(9).slice(2)}$`,c0="?"+x1,k0=`<${c0}>`,_1=document,Y1=()=>_1.createComment(""),J1=e=>e===null||typeof e!="object"&&typeof e!="function",O2=Array.isArray,M0=e=>O2(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",L2=`[
14
14
  \f\r]`,W1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X2=/-->/g,Y2=/>/g,E1=RegExp(`>|${L2}(?:([^\\s"'>=/]+)(${L2}*=${L2}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),J2=/'/g,t0=/"/g,h0=/^(?:script|style|textarea|title)$/i,_0=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),a=_0(1),G=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),e0=new WeakMap,k1=_1.createTreeWalker(_1,129);function d0(e,t){if(!O2(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Q2!==void 0?Q2.createHTML(t):t}const Z0=(e,t)=>{const i=e.length-1,n=[];let o,r=t===2?"<svg>":t===3?"<math>":"",l=W1;for(let c=0;c<i;c++){const d=e[c];let v,b,p=-1,H=0;for(;H<d.length&&(l.lastIndex=H,b=l.exec(d),b!==null);)H=l.lastIndex,l===W1?b[1]==="!--"?l=X2:b[1]!==void 0?l=Y2:b[2]!==void 0?(h0.test(b[2])&&(o=RegExp("</"+b[2],"g")),l=E1):b[3]!==void 0&&(l=E1):l===E1?b[0]===">"?(l=o??W1,p=-1):b[1]===void 0?p=-2:(p=l.lastIndex-b[2].length,v=b[1],l=b[3]===void 0?E1:b[3]==='"'?t0:J2):l===t0||l===J2?l=E1:l===X2||l===Y2?l=W1:(l=E1,o=void 0);const Z=l===E1&&e[c+1].startsWith("/>")?" ":"";r+=l===W1?d+k0:p>=0?(n.push(v),d.slice(0,p)+a0+d.slice(p)+x1+Z):d+x1+(p===-2?c:Z)}return[d0(e,r+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class t2{constructor({strings:t,_$litType$:i},n){let o;this.parts=[];let r=0,l=0;const c=t.length-1,d=this.parts,[v,b]=Z0(t,i);if(this.el=t2.createElement(v,n),k1.currentNode=this.el.content,i===2||i===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=k1.nextNode())!==null&&d.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(const p of o.getAttributeNames())if(p.endsWith(a0)){const H=b[l++],Z=o.getAttribute(p).split(x1),K=/([.?@])?(.*)/.exec(H);d.push({type:1,index:r,name:K[2],strings:Z,ctor:K[1]==="."?F0:K[1]==="?"?O0:K[1]==="@"?A0:u2}),o.removeAttribute(p)}else p.startsWith(x1)&&(d.push({type:6,index:r}),o.removeAttribute(p));if(h0.test(o.tagName)){const p=o.textContent.split(x1),H=p.length-1;if(H>0){o.textContent=p2?p2.emptyScript:"";for(let Z=0;Z<H;Z++)o.append(p[Z],Y1()),k1.nextNode(),d.push({type:2,index:++r});o.append(p[H],Y1())}}}else if(o.nodeType===8)if(o.data===c0)d.push({type:2,index:r});else{let p=-1;for(;(p=o.data.indexOf(x1,p+1))!==-1;)d.push({type:7,index:r}),p+=x1.length-1}r++}}static createElement(t,i){const n=_1.createElement("template");return n.innerHTML=t,n}}function I1(e,t,i=e,n){var l,c;if(t===G)return t;let o=n!==void 0?(l=i._$Co)==null?void 0:l[n]:i._$Cl;const r=J1(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==r&&((c=o==null?void 0:o._$AO)==null||c.call(o,!1),r===void 0?o=void 0:(o=new r(e),o._$AT(e,i,n)),n!==void 0?(i._$Co??(i._$Co=[]))[n]=o:i._$Cl=o),o!==void 0&&(t=I1(e,o._$AS(e,t.values),o,n)),t}class S0{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:n}=this._$AD,o=((t==null?void 0:t.creationScope)??_1).importNode(i,!0);k1.currentNode=o;let r=k1.nextNode(),l=0,c=0,d=n[0];for(;d!==void 0;){if(l===d.index){let v;d.type===2?v=new l2(r,r.nextSibling,this,t):d.type===1?v=new d.ctor(r,d.name,d.strings,this,t):d.type===6&&(v=new P0(r,this,t)),this._$AV.push(v),d=n[++c]}l!==(d==null?void 0:d.index)&&(r=k1.nextNode(),l++)}return k1.currentNode=_1,o}p(t){let i=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}}class l2{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,i,n,o){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=I1(this,t,i),J1(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==G&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):M0(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!==h&&J1(this._$AH)?this._$AA.nextSibling.data=t:this.T(_1.createTextNode(t)),this._$AH=t}$(t){var r;const{values:i,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=t2.createElement(d0(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(i);else{const l=new S0(o,this),c=l.u(this.options);l.p(i),this.T(c),this._$AH=l}}_$AC(t){let i=e0.get(t.strings);return i===void 0&&e0.set(t.strings,i=new t2(t)),i}k(t){O2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of t)o===i.length?i.push(n=new l2(this.O(Y1()),this.O(Y1()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,i);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var i;this._$AM===void 0&&(this._$Cv=t,(i=this._$AP)==null||i.call(this,t))}}class u2{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,n,o,r){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=h}_$AI(t,i=this,n,o){const r=this.strings;let l=!1;if(r===void 0)t=I1(this,t,i,0),l=!J1(t)||t!==this._$AH&&t!==G,l&&(this._$AH=t);else{const c=t;let d,v;for(t=r[0],d=0;d<r.length-1;d++)v=I1(this,c[n+d],i,d),v===G&&(v=this._$AH[d]),l||(l=!J1(v)||v!==this._$AH[d]),v===h?t=h:t!==h&&(t+=(v??"")+r[d+1]),this._$AH[d]=v}l&&!o&&this.j(t)}j(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class F0 extends u2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===h?void 0:t}}class O0 extends u2{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}}class A0 extends u2{constructor(t,i,n,o,r){super(t,i,n,o,r),this.type=5}_$AI(t,i=this){if((t=I1(this,t,i,0)??h)===G)return;const n=this._$AH,o=t===h&&n!==h||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==h&&(n===h||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i;typeof this._$AH=="function"?this._$AH.call(((i=this.options)==null?void 0:i.host)??this.element,t):this._$AH.handleEvent(t)}}class P0{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){I1(this,t)}}const $2=Q1.litHtmlPolyfillSupport;$2==null||$2(t2,l2),(Q1.litHtmlVersions??(Q1.litHtmlVersions=[])).push("3.3.0");const z0=(e,t,i)=>{const n=(i==null?void 0:i.renderBefore)??t;let o=n._$litPart$;if(o===void 0){const r=(i==null?void 0:i.renderBefore)??null;n._$litPart$=o=new l2(t.insertBefore(Y1(),r),r,void 0,i??{})}return o._$AI(e),o};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),J2=/'/g,t0=/"/g,h0=/^(?:script|style|textarea|title)$/i,_0=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),a=_0(1),G=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),e0=new WeakMap,k1=_1.createTreeWalker(_1,129);function d0(e,t){if(!O2(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Q2!==void 0?Q2.createHTML(t):t}const Z0=(e,t)=>{const i=e.length-1,n=[];let o,r=t===2?"<svg>":t===3?"<math>":"",l=W1;for(let c=0;c<i;c++){const d=e[c];let v,w,p=-1,H=0;for(;H<d.length&&(l.lastIndex=H,w=l.exec(d),w!==null);)H=l.lastIndex,l===W1?w[1]==="!--"?l=X2:w[1]!==void 0?l=Y2:w[2]!==void 0?(h0.test(w[2])&&(o=RegExp("</"+w[2],"g")),l=E1):w[3]!==void 0&&(l=E1):l===E1?w[0]===">"?(l=o??W1,p=-1):w[1]===void 0?p=-2:(p=l.lastIndex-w[2].length,v=w[1],l=w[3]===void 0?E1:w[3]==='"'?t0:J2):l===t0||l===J2?l=E1:l===X2||l===Y2?l=W1:(l=E1,o=void 0);const Z=l===E1&&e[c+1].startsWith("/>")?" ":"";r+=l===W1?d+k0:p>=0?(n.push(v),d.slice(0,p)+a0+d.slice(p)+x1+Z):d+x1+(p===-2?c:Z)}return[d0(e,r+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class t2{constructor({strings:t,_$litType$:i},n){let o;this.parts=[];let r=0,l=0;const c=t.length-1,d=this.parts,[v,w]=Z0(t,i);if(this.el=t2.createElement(v,n),k1.currentNode=this.el.content,i===2||i===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=k1.nextNode())!==null&&d.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(const p of o.getAttributeNames())if(p.endsWith(a0)){const H=w[l++],Z=o.getAttribute(p).split(x1),K=/([.?@])?(.*)/.exec(H);d.push({type:1,index:r,name:K[2],strings:Z,ctor:K[1]==="."?F0:K[1]==="?"?O0:K[1]==="@"?A0:u2}),o.removeAttribute(p)}else p.startsWith(x1)&&(d.push({type:6,index:r}),o.removeAttribute(p));if(h0.test(o.tagName)){const p=o.textContent.split(x1),H=p.length-1;if(H>0){o.textContent=p2?p2.emptyScript:"";for(let Z=0;Z<H;Z++)o.append(p[Z],Y1()),k1.nextNode(),d.push({type:2,index:++r});o.append(p[H],Y1())}}}else if(o.nodeType===8)if(o.data===c0)d.push({type:2,index:r});else{let p=-1;for(;(p=o.data.indexOf(x1,p+1))!==-1;)d.push({type:7,index:r}),p+=x1.length-1}r++}}static createElement(t,i){const n=_1.createElement("template");return n.innerHTML=t,n}}function I1(e,t,i=e,n){var l,c;if(t===G)return t;let o=n!==void 0?(l=i._$Co)==null?void 0:l[n]:i._$Cl;const r=J1(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==r&&((c=o==null?void 0:o._$AO)==null||c.call(o,!1),r===void 0?o=void 0:(o=new r(e),o._$AT(e,i,n)),n!==void 0?(i._$Co??(i._$Co=[]))[n]=o:i._$Cl=o),o!==void 0&&(t=I1(e,o._$AS(e,t.values),o,n)),t}class S0{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:n}=this._$AD,o=((t==null?void 0:t.creationScope)??_1).importNode(i,!0);k1.currentNode=o;let r=k1.nextNode(),l=0,c=0,d=n[0];for(;d!==void 0;){if(l===d.index){let v;d.type===2?v=new l2(r,r.nextSibling,this,t):d.type===1?v=new d.ctor(r,d.name,d.strings,this,t):d.type===6&&(v=new P0(r,this,t)),this._$AV.push(v),d=n[++c]}l!==(d==null?void 0:d.index)&&(r=k1.nextNode(),l++)}return k1.currentNode=_1,o}p(t){let i=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}}class l2{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,i,n,o){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=I1(this,t,i),J1(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==G&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):M0(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!==h&&J1(this._$AH)?this._$AA.nextSibling.data=t:this.T(_1.createTextNode(t)),this._$AH=t}$(t){var r;const{values:i,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=t2.createElement(d0(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(i);else{const l=new S0(o,this),c=l.u(this.options);l.p(i),this.T(c),this._$AH=l}}_$AC(t){let i=e0.get(t.strings);return i===void 0&&e0.set(t.strings,i=new t2(t)),i}k(t){O2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of t)o===i.length?i.push(n=new l2(this.O(Y1()),this.O(Y1()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,i);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var i;this._$AM===void 0&&(this._$Cv=t,(i=this._$AP)==null||i.call(this,t))}}class u2{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,n,o,r){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=h}_$AI(t,i=this,n,o){const r=this.strings;let l=!1;if(r===void 0)t=I1(this,t,i,0),l=!J1(t)||t!==this._$AH&&t!==G,l&&(this._$AH=t);else{const c=t;let d,v;for(t=r[0],d=0;d<r.length-1;d++)v=I1(this,c[n+d],i,d),v===G&&(v=this._$AH[d]),l||(l=!J1(v)||v!==this._$AH[d]),v===h?t=h:t!==h&&(t+=(v??"")+r[d+1]),this._$AH[d]=v}l&&!o&&this.j(t)}j(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class F0 extends u2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===h?void 0:t}}class O0 extends u2{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}}class A0 extends u2{constructor(t,i,n,o,r){super(t,i,n,o,r),this.type=5}_$AI(t,i=this){if((t=I1(this,t,i,0)??h)===G)return;const n=this._$AH,o=t===h&&n!==h||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==h&&(n===h||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i;typeof this._$AH=="function"?this._$AH.call(((i=this.options)==null?void 0:i.host)??this.element,t):this._$AH.handleEvent(t)}}class P0{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){I1(this,t)}}const $2=Q1.litHtmlPolyfillSupport;$2==null||$2(t2,l2),(Q1.litHtmlVersions??(Q1.litHtmlVersions=[])).push("3.3.0");const z0=(e,t,i)=>{const n=(i==null?void 0:i.renderBefore)??t;let o=n._$litPart$;if(o===void 0){const r=(i==null?void 0:i.renderBefore)??null;n._$litPart$=o=new l2(t.insertBefore(Y1(),r),r,void 0,i??{})}return o._$AI(e),o};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
@@ -68,7 +68,7 @@
68
68
  * @license
69
69
  * Copyright 2023 Google LLC
70
70
  * SPDX-License-Identifier: Apache-2.0
71
- */const Z1=Symbol("internals"),B2=Symbol("privateInternals");function a2(e){var t;class i extends e{get[(t=Z1,t)](){return this[B2]||(this[B2]=this.attachInternals()),this[B2]}}return i}const p0=new URLSearchParams(location.search).has("perf"),i0=()=>{var e;return p0||((e=window.__florid__)==null?void 0:e.performance)===!0};let j0=0;const q0=(e,t,i)=>{const n=e.get(t);n?(n.count++,n.total+=i,n.min=Math.min(n.min,i),n.max=Math.max(n.max,i)):e.set(t,{count:1,total:i,min:i,max:i})},U0=e=>e<5?"✓ fast":e<15?"✓ normal":e<30?"⚠ slow":"✗ critical",N0=(e,t)=>t?`${e} [${t}]`:e;function K0(){const e=new Map,t=[];let i=!1,n;const o=[];let r=null;try{r=new PerformanceObserver(b=>{b.getEntries().forEach(p=>o.push({start:p.startTime,duration:p.duration}))}),r.observe({type:"longtask",buffered:!0})}catch{}const l=new Map;let c=null;try{c=new PerformanceObserver(b=>{b.getEntries().forEach(p=>{const H=p;H.hadRecentInput||(H.sources??[]).forEach(Z=>{var V1,N1;const K=(N1=(V1=Z.node)==null?void 0:V1.nodeName)==null?void 0:N1.toLowerCase();K!=null&&K.startsWith("o-")&&l.set(K,(l.get(K)??0)+H.value)})})}),c.observe({type:"layout-shift",buffered:!0})}catch{}const d=()=>{if(i||(i=!0,v.disconnect(),r==null||r.disconnect(),c==null||c.disconnect(),clearTimeout(n),e.size===0))return;const b=[...e.entries()],p=b.filter(([S])=>S.includes(":init")),H=b.filter(([S])=>S.includes(":to-paint")),Z=p.reduce((S,[,V])=>S+V.count,0),K=H.length>0?H:p,V1=Math.max(...K.map(([,S])=>S.max));console.group(`%c⚡ Web Components Performance%c — ${location.pathname}`,"font-weight:bold;color:#b45309","font-weight:normal;color:inherit");const N1=([S,{count:V,total:W,min:T,max:y1}])=>{const P1=W/V;return[S,{instances:V,avg:`${P1.toFixed(2)}ms`,min:`${T.toFixed(2)}ms`,max:`${y1.toFixed(2)}ms`,verdict:U0(P1)}]};if(p.length>0&&(console.groupCollapsed("JS (Lit render)"),console.table(Object.fromEntries(p.map(N1))),console.groupEnd()),H.length>0)if(Z>1)console.groupCollapsed(`🎨 To first paint: ~${V1.toFixed(0)}ms — time until the browser painted all ${Z} components (expand for details)`),console.log(`How to read this value:
71
+ */const Z1=Symbol("internals"),B2=Symbol("privateInternals");function a2(e){var t;class i extends e{get[(t=Z1,t)](){return this[B2]||(this[B2]=this.attachInternals()),this[B2]}}return i}const p0=new URLSearchParams(location.search).has("perf"),i0=()=>{var e;return p0||((e=window.__florid__)==null?void 0:e.performance)===!0};let j0=0;const q0=(e,t,i)=>{const n=e.get(t);n?(n.count++,n.total+=i,n.min=Math.min(n.min,i),n.max=Math.max(n.max,i)):e.set(t,{count:1,total:i,min:i,max:i})},U0=e=>e<5?"✓ fast":e<15?"✓ normal":e<30?"⚠ slow":"✗ critical",N0=(e,t)=>t?`${e} [${t}]`:e;function K0(){const e=new Map,t=[];let i=!1,n;const o=[];let r=null;try{r=new PerformanceObserver(w=>{w.getEntries().forEach(p=>o.push({start:p.startTime,duration:p.duration}))}),r.observe({type:"longtask",buffered:!0})}catch{}const l=new Map;let c=null;try{c=new PerformanceObserver(w=>{w.getEntries().forEach(p=>{const H=p;H.hadRecentInput||(H.sources??[]).forEach(Z=>{var V1,N1;const K=(N1=(V1=Z.node)==null?void 0:V1.nodeName)==null?void 0:N1.toLowerCase();K!=null&&K.startsWith("o-")&&l.set(K,(l.get(K)??0)+H.value)})})}),c.observe({type:"layout-shift",buffered:!0})}catch{}const d=()=>{if(i||(i=!0,v.disconnect(),r==null||r.disconnect(),c==null||c.disconnect(),clearTimeout(n),e.size===0))return;const w=[...e.entries()],p=w.filter(([S])=>S.includes(":init")),H=w.filter(([S])=>S.includes(":to-paint")),Z=p.reduce((S,[,V])=>S+V.count,0),K=H.length>0?H:p,V1=Math.max(...K.map(([,S])=>S.max));console.group(`%c⚡ Web Components Performance%c — ${location.pathname}`,"font-weight:bold;color:#b45309","font-weight:normal;color:inherit");const N1=([S,{count:V,total:W,min:T,max:y1}])=>{const P1=W/V;return[S,{instances:V,avg:`${P1.toFixed(2)}ms`,min:`${T.toFixed(2)}ms`,max:`${y1.toFixed(2)}ms`,verdict:U0(P1)}]};if(p.length>0&&(console.groupCollapsed("JS (Lit render)"),console.table(Object.fromEntries(p.map(N1))),console.groupEnd()),H.length>0)if(Z>1)console.groupCollapsed(`🎨 To first paint: ~${V1.toFixed(0)}ms — time until the browser painted all ${Z} components (expand for details)`),console.log(`How to read this value:
72
72
  ~${V1.toFixed(0)}ms is the time from when the first component mounted
73
73
  until the browser completed its first paint pass for the entire page.
74
74
  All components render in a single browser batch, so this is the total
@@ -91,7 +91,7 @@ Google thresholds: < 0.1 good · 0.1–0.25 needs improvement · > 0.25 poor.
91
91
 
92
92
  Only light-DOM shifts are detected here. Shifts inside shadow DOM are not visible
93
93
  to the LayoutShift API. If a component shifts but is not listed, check its host
94
- element size change on mount (min-height, aspect-ratio, or skeleton placeholder).`),console.table(Object.fromEntries([...l.entries()].map(([W,T])=>[W,{"CLS contribution":T.toFixed(4),verdict:T<.01?"✓ ok":T<.1?"⚠ noticeable":"✗ poor"}]))),console.groupEnd()}console.log(`%c⚡ Real page impact:%c ~${V1.toFixed(2)}ms (${Z} component${Z>1?"s":""} run in parallel, not serial)`,"font-weight:bold","font-weight:normal"),console.log("%c💡 Tip:%c JS measures include Lit's async scheduler (~1–2ms overhead). In production builds expect 3–5× lower values.","font-weight:bold","font-weight:normal"),console.groupEnd()},v=new PerformanceObserver(b=>{b.getEntries().filter(p=>p.name.endsWith(":init")||p.name.endsWith(":to-paint")).forEach(p=>{var Z;const H=(Z=p.detail)==null?void 0:Z.parent;q0(e,N0(p.name,H),p.duration),t.push({name:p.name,start:p.startTime,end:p.startTime+p.duration})}),clearTimeout(n),n=setTimeout(d,500)});setTimeout(d,5e3),v.observe({type:"measure",buffered:!0})}p0&&!window.__STORYBOOK_ADDONS_CHANNEL__&&K0();function g(e){class t extends e{connectedCallback(){i0()&&(this._perfKey=`${this.tagName.toLowerCase()}#${++j0}`,this._perfParent=this._getParentContext(),this._perfStartTime=performance.now(),performance.mark(`${this._perfKey}:start`)),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._clearPerfState()}firstUpdated(n){super.firstUpdated(n);const o=this._perfKey,r=this._perfParent,l=this._perfStartTime;if(this._perfKey=void 0,this._perfParent=void 0,this._perfStartTime=void 0,!i0()||!o){o&&performance.clearMarks(`${o}:start`);return}const c=this.tagName.toLowerCase();try{performance.mark(`${o}:end`),performance.measure(`${c}:init`,{start:`${o}:start`,end:`${o}:end`,detail:{parent:r??"unknown"}})}catch{}finally{performance.clearMarks(`${o}:start`),performance.clearMarks(`${o}:end`)}l!==void 0&&requestAnimationFrame(()=>{performance.measure(`${c}:to-paint`,{start:l,detail:{parent:r??"unknown"}})})}_getParentContext(){var r;const n=(r=this.closest("[data-perf-context]"))==null?void 0:r.getAttribute("data-perf-context");if(n)return n;let o=this.parentElement;for(let l=0;l<5&&o&&o.tagName!=="BODY";l++,o=o.parentElement){const c=typeof o.className=="string"?o.className.trim():"";if(c)return`.${c.split(/\s+/)[0]}`;if(o.id)return`#${o.id}`}return"body"}_clearPerfState(){this._perfKey&&(performance.clearMarks(`${this._perfKey}:start`),this._perfKey=void 0,this._perfParent=void 0,this._perfStartTime=void 0)}}return t}/**
94
+ element size change on mount (min-height, aspect-ratio, or skeleton placeholder).`),console.table(Object.fromEntries([...l.entries()].map(([W,T])=>[W,{"CLS contribution":T.toFixed(4),verdict:T<.01?"✓ ok":T<.1?"⚠ noticeable":"✗ poor"}]))),console.groupEnd()}console.log(`%c⚡ Real page impact:%c ~${V1.toFixed(2)}ms (${Z} component${Z>1?"s":""} run in parallel, not serial)`,"font-weight:bold","font-weight:normal"),console.log("%c💡 Tip:%c JS measures include Lit's async scheduler (~1–2ms overhead). In production builds expect 3–5× lower values.","font-weight:bold","font-weight:normal"),console.groupEnd()},v=new PerformanceObserver(w=>{w.getEntries().filter(p=>p.name.endsWith(":init")||p.name.endsWith(":to-paint")).forEach(p=>{var Z;const H=(Z=p.detail)==null?void 0:Z.parent;q0(e,N0(p.name,H),p.duration),t.push({name:p.name,start:p.startTime,end:p.startTime+p.duration})}),clearTimeout(n),n=setTimeout(d,500)});setTimeout(d,5e3),v.observe({type:"measure",buffered:!0})}p0&&!window.__STORYBOOK_ADDONS_CHANNEL__&&K0();function g(e){class t extends e{connectedCallback(){i0()&&(this._perfKey=`${this.tagName.toLowerCase()}#${++j0}`,this._perfParent=this._getParentContext(),this._perfStartTime=performance.now(),performance.mark(`${this._perfKey}:start`)),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._clearPerfState()}firstUpdated(n){super.firstUpdated(n);const o=this._perfKey,r=this._perfParent,l=this._perfStartTime;if(this._perfKey=void 0,this._perfParent=void 0,this._perfStartTime=void 0,!i0()||!o){o&&performance.clearMarks(`${o}:start`);return}const c=this.tagName.toLowerCase();try{performance.mark(`${o}:end`),performance.measure(`${c}:init`,{start:`${o}:start`,end:`${o}:end`,detail:{parent:r??"unknown"}})}catch{}finally{performance.clearMarks(`${o}:start`),performance.clearMarks(`${o}:end`)}l!==void 0&&requestAnimationFrame(()=>{performance.measure(`${c}:to-paint`,{start:l,detail:{parent:r??"unknown"}})})}_getParentContext(){var r;const n=(r=this.closest("[data-perf-context]"))==null?void 0:r.getAttribute("data-perf-context");if(n)return n;let o=this.parentElement;for(let l=0;l<5&&o&&o.tagName!=="BODY";l++,o=o.parentElement){const c=typeof o.className=="string"?o.className.trim():"";if(c)return`.${c.split(/\s+/)[0]}`;if(o.id)return`#${o.id}`}return"body"}_clearPerfState(){this._perfKey&&(performance.clearMarks(`${this._perfKey}:start`),this._perfKey=void 0,this._perfParent=void 0,this._perfStartTime=void 0)}}return t}/**
95
95
  * @license
96
96
  * Copyright 2023 Google LLC
97
97
  * SPDX-License-Identifier: Apache-2.0
@@ -1233,8 +1233,8 @@ element size change on mount (min-height, aspect-ratio, or skeleton placeholder)
1233
1233
  .sr-only {
1234
1234
  ${A2}
1235
1235
  }
1236
- `;r1([s({type:String,reflect:!0})],R.prototype,"bgstyle",2);r1([s({type:String,reflect:!0})],R.prototype,"size",2);r1([s({type:String,reflect:!0})],R.prototype,"status",2);r1([s({type:String,reflect:!0})],R.prototype,"type",2);r1([s({type:String})],R.prototype,"strokewidth",2);r1([s({type:String})],R.prototype,"icon",2);r1([s({type:Boolean,reflect:!0})],R.prototype,"disabled",2);r1([s({type:Boolean,reflect:!0})],R.prototype,"highlight",2);r1([s({type:Boolean})],R.prototype,"showSrLabel",2);r1([s({type:String})],R.prototype,"srLabel",2);R=r1([f("o-icon-button")],R);var d5=Object.defineProperty,p5=Object.getOwnPropertyDescriptor,x=(e,t,i,n)=>{for(var o=n>1?void 0:n?p5(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&d5(t,i,o),o};let w=class extends g(C){constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.labelDialog="",this.labelAriaDialogPanel="",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.previousFocusedSelector=null,this._hideTimeout=null,this._onOpenDetail=async e=>{var i,n;const t=((i=e.detail)==null?void 0:i.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 o=(n=this.shadowRoot)==null?void 0:n.querySelector(".detail-view");o&&o.setAttribute("fromelement",this._detailOriginClass)}await this.focusDetailReturnBtn()},this._detailOriginEl=null,this._detailOriginClass="",this.handleKeyDown=e=>{this.open&&(e.key==="Escape"?this.closePanel():e.key==="Tab"&&this.trapFocus(e))},this.handleClosePanel=e=>{if(e instanceof KeyboardEvent&&e.key!=="Enter"&&e.key!==" ")return;e.preventDefault(),e.stopPropagation();const t=e.currentTarget,i=(t==null?void 0:t.getAttribute("data-role"))==="back";if(this.showDetail&&i){this.isHidingDetail=!0;const n=this.renderRoot.querySelector(".content"),o=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),o()};n.addEventListener("animationend",r)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}focusFirstInPanel(){var t,i,n;(n=this.getFocusableElements().map(o=>this.resolveFocusable(o)).filter(o=>!!o&&!o.hasAttribute("disabled"))[0]??((t=this.shadowRoot)==null?void 0:t.querySelector(".close-btn"))??((i=this.shadowRoot)==null?void 0:i.querySelector(".panel")))==null||n.focus({preventScroll:!0})}resolveFocusable(e){var i;const t=e.tagName.toLowerCase();return t==="o-icon-button"||t==="o-button"?((i=e.shadowRoot)==null?void 0:i.querySelector("button, .button"))??e:e}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",e=>{e.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 o,r,l,c,d;await this.updateComplete;const e=this.getDeepActiveElement(document);if(e&&e!==document.body)try{e.blur()}catch{}await new Promise(requestAnimationFrame);const t=(o=this.shadowRoot)==null?void 0:o.querySelector(".detail-view .return-btn");if(!t)return;t.updateComplete&&await t.updateComplete,(c=(l=((r=t.shadowRoot)==null?void 0:r.querySelector("button"))??t)==null?void 0:l.focus)==null||c.call(l,{preventScroll:!0});const n=(d=this.shadowRoot)==null?void 0:d.querySelector('.panel[role="dialog"]');n&&n.setAttribute("aria-label",this.labelAriaDialogPanel||"panel-title")}_restoreFocusToOrigin(){var t,i;const e=this._detailOriginEl;!e||!document.contains(e)||((i=(t=document.activeElement)==null?void 0:t.blur)==null||i.call(t),requestAnimationFrame(()=>{var o;e.classList.add("a--tabfocus"),(((o=e.shadowRoot)==null?void 0:o.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??e).focus({preventScroll:!0})}))}getDeepActiveElement(e=this.shadowRoot){let t=e.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(e){var r;if(e.key!=="Tab")return;const t=this.shadowRoot;if(!t)return;const i=this.getDeepActiveElement();if(this.showDetail){const l=t.querySelector(".detail-view .return-btn"),c=t.querySelector(".detail-view .close-btn"),d=l?this.resolveFocusable(l):null,v=c?this.resolveFocusable(c):null;if(e.shiftKey&&d&&i===d&&v){e.preventDefault(),e.stopPropagation(),v.focus({preventScroll:!0});return}if(!e.shiftKey&&v&&i===v){e.preventDefault(),e.stopPropagation(),(((r=t.querySelector(".detail-scroller"))==null?void 0:r.querySelector(w.focusablesSelector))??d??v).focus({preventScroll:!0});return}}if(document.querySelector("#refineandsortpopin")){const l=t.querySelector(".close-btn"),c=l?this.resolveFocusable(l):null,d=t.querySelector(".js-clear-refinements"),v=d?this.resolveFocusable(d):null,b=p=>{e.preventDefault(),e.stopPropagation(),p.focus()};if(c&&v){if(!e.shiftKey&&i===v)return b(c);if(e.shiftKey&&i===c)return b(v)}}const o=this.renderRoot.querySelector(".close-btn");if(!e.shiftKey&&o&&o.contains(i)){e.preventDefault();const l=this.renderRoot.querySelector(".o-whats-inside--content p");l==null||l.focus()}}getFocusableElements(){const e=this.renderRoot.querySelector(".panel");if(!e)return[];function t(o){return!(o.disabled||o.hasAttribute("disabled")||o.hasAttribute("tabindex")&&o.getAttribute("tabindex")==="-1")}function i(o){var l;const r=[o.matches(w.focusablesSelector)?o:[]];if(!["o-icon-button","o-button"].includes(o.tagName.toLowerCase())){const c=Array.from(o instanceof HTMLSlotElement?o.assignedElements({flatten:!0}):[]).filter(t).flatMap(i),d=Array.from(((l=o.shadowRoot)==null?void 0:l.querySelectorAll("*"))||[]).filter(t).flatMap(i);r.push(...c,...d)}return r.flat()}return Array.from(e.querySelectorAll("*")).filter(t).flatMap(i)}openPanel(){var t;this.removeAttribute("hidden"),this.getBoundingClientRect(),this.previousFocusedElement=document.activeElement,this.previousFocusedSelector=(t=this.previousFocusedElement)==null?void 0:t.getAttribute("paneltarget"),this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open");const e=this.renderRoot.querySelector(".panel");e&&e.setAttribute("aria-modal","true"),this.updateComplete.then(()=>{var i,n;if(this.showHeader){const o=(i=this.shadowRoot)==null?void 0:i.querySelector(".panel .close-btn"),r=this.resolveFocusable(o);(n=r==null?void 0:r.focus)==null||n.call(r,{preventScroll:!0})}else this.focusFirstInPanel()}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var i,n,o;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel");let e=this.previousFocusedElement;e!=null&&e.isConnected||(e=document.querySelector(`[paneltarget="${this.previousFocusedSelector}"]`)),(e==null?void 0:e.tagName.toLowerCase())==="o-button"?(o=(n=(i=e.shadowRoot)==null?void 0:i.querySelector(".button"))==null?void 0:n.focus)==null||o.call(n):e==null||e.focus();const t=this.renderRoot.querySelector(".panel");t&&t.removeAttribute("aria-modal"),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(e){e instanceof KeyboardEvent&&e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("firstbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:e.target}})))}handleSecondClick(e){e instanceof KeyboardEvent&&e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("secondbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:e.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`),this.open?(this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),this.removeAttribute("hidden")):this._hideTimeout=setTimeout(()=>{this.setAttribute("hidden","hidden")},500)}render(){const e=this.showHeader?a`
1237
- <div tabindex="-1" class="header ${this.showDetail?"detail-view-header":""}">
1236
+ `;r1([s({type:String,reflect:!0})],R.prototype,"bgstyle",2);r1([s({type:String,reflect:!0})],R.prototype,"size",2);r1([s({type:String,reflect:!0})],R.prototype,"status",2);r1([s({type:String,reflect:!0})],R.prototype,"type",2);r1([s({type:String})],R.prototype,"strokewidth",2);r1([s({type:String})],R.prototype,"icon",2);r1([s({type:Boolean,reflect:!0})],R.prototype,"disabled",2);r1([s({type:Boolean,reflect:!0})],R.prototype,"highlight",2);r1([s({type:Boolean})],R.prototype,"showSrLabel",2);r1([s({type:String})],R.prototype,"srLabel",2);R=r1([f("o-icon-button")],R);var d5=Object.defineProperty,p5=Object.getOwnPropertyDescriptor,x=(e,t,i,n)=>{for(var o=n>1?void 0:n?p5(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&d5(t,i,o),o};let b=class extends g(C){constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.labelDialog="",this.labelAriaDialogPanel="",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.stickyFooter=!1,this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.showDetail=!1,this.isHidingDetail=!1,this.previousFocusedElement=null,this.previousFocusedSelector=null,this._hideTimeout=null,this._onOpenDetail=async e=>{var i,n;const t=((i=e.detail)==null?void 0:i.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 o=(n=this.shadowRoot)==null?void 0:n.querySelector(".detail-view");o&&o.setAttribute("fromelement",this._detailOriginClass)}await this.focusDetailReturnBtn()},this._detailOriginEl=null,this._detailOriginClass="",this.handleKeyDown=e=>{this.open&&(e.key==="Escape"?this.closePanel():e.key==="Tab"&&this.trapFocus(e))},this.handleClosePanel=e=>{if(e instanceof KeyboardEvent&&e.key!=="Enter"&&e.key!==" ")return;e.preventDefault(),e.stopPropagation();const t=e.currentTarget,i=(t==null?void 0:t.getAttribute("data-role"))==="back";if(this.showDetail&&i){this.isHidingDetail=!0;const n=this.renderRoot.querySelector(".content"),o=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),o()};n.addEventListener("animationend",r)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}focusFirstInPanel(){var t,i,n;(n=this.getFocusableElements().map(o=>this.resolveFocusable(o)).filter(o=>!!o&&!o.hasAttribute("disabled"))[0]??((t=this.shadowRoot)==null?void 0:t.querySelector(".close-btn"))??((i=this.shadowRoot)==null?void 0:i.querySelector(".panel")))==null||n.focus({preventScroll:!0})}resolveFocusable(e){var i;const t=e.tagName.toLowerCase();return t==="o-icon-button"||t==="o-button"?((i=e.shadowRoot)==null?void 0:i.querySelector("button, .button"))??e:e}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",e=>{e.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 o,r,l,c,d;await this.updateComplete;const e=this.getDeepActiveElement(document);if(e&&e!==document.body)try{e.blur()}catch{}await new Promise(requestAnimationFrame);const t=(o=this.shadowRoot)==null?void 0:o.querySelector(".detail-view .return-btn");if(!t)return;t.updateComplete&&await t.updateComplete,(c=(l=((r=t.shadowRoot)==null?void 0:r.querySelector("button"))??t)==null?void 0:l.focus)==null||c.call(l,{preventScroll:!0});const n=(d=this.shadowRoot)==null?void 0:d.querySelector('.panel[role="dialog"]');n&&n.setAttribute("aria-label",this.labelAriaDialogPanel||"panel-title")}_restoreFocusToOrigin(){var t,i;const e=this._detailOriginEl;!e||!document.contains(e)||((i=(t=document.activeElement)==null?void 0:t.blur)==null||i.call(t),requestAnimationFrame(()=>{var o;e.classList.add("a--tabfocus"),(((o=e.shadowRoot)==null?void 0:o.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??e).focus({preventScroll:!0})}))}getDeepActiveElement(e=this.shadowRoot){let t=e.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(e){var r;if(e.key!=="Tab")return;const t=this.shadowRoot;if(!t)return;const i=this.getDeepActiveElement();if(this.showDetail){const l=t.querySelector(".detail-view .return-btn"),c=t.querySelector(".detail-view .close-btn"),d=l?this.resolveFocusable(l):null,v=c?this.resolveFocusable(c):null;if(e.shiftKey&&d&&i===d&&v){e.preventDefault(),e.stopPropagation(),v.focus({preventScroll:!0});return}if(!e.shiftKey&&v&&i===v){e.preventDefault(),e.stopPropagation(),(((r=t.querySelector(".detail-scroller"))==null?void 0:r.querySelector(b.focusablesSelector))??d??v).focus({preventScroll:!0});return}}if(document.querySelector("#refineandsortpopin")){const l=t.querySelector(".close-btn"),c=l?this.resolveFocusable(l):null,d=t.querySelector(".js-clear-refinements"),v=d?this.resolveFocusable(d):null,w=p=>{e.preventDefault(),e.stopPropagation(),p.focus()};if(c&&v){if(!e.shiftKey&&i===v)return w(c);if(e.shiftKey&&i===c)return w(v)}}const o=this.renderRoot.querySelector(".close-btn");if(!e.shiftKey&&o&&o.contains(i)){e.preventDefault();const l=this.renderRoot.querySelector(".o-whats-inside--content p");l==null||l.focus()}}getFocusableElements(){const e=this.renderRoot.querySelector(".panel");if(!e)return[];function t(o){return!(o.disabled||o.hasAttribute("disabled")||o.hasAttribute("tabindex")&&o.getAttribute("tabindex")==="-1")}function i(o){var l;const r=[o.matches(b.focusablesSelector)?o:[]];if(!["o-icon-button","o-button"].includes(o.tagName.toLowerCase())){const c=Array.from(o instanceof HTMLSlotElement?o.assignedElements({flatten:!0}):[]).filter(t).flatMap(i),d=Array.from(((l=o.shadowRoot)==null?void 0:l.querySelectorAll("*"))||[]).filter(t).flatMap(i);r.push(...c,...d)}return r.flat()}return Array.from(e.querySelectorAll("*")).filter(t).flatMap(i)}openPanel(){var t;this.removeAttribute("hidden"),this.getBoundingClientRect(),this.previousFocusedElement=document.activeElement,this.previousFocusedSelector=(t=this.previousFocusedElement)==null?void 0:t.getAttribute("paneltarget"),this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open");const e=this.renderRoot.querySelector(".panel");e&&e.setAttribute("aria-modal","true"),this.updateComplete.then(()=>{var i,n;if(this.showHeader){const o=(i=this.shadowRoot)==null?void 0:i.querySelector(".panel .close-btn"),r=this.resolveFocusable(o);(n=r==null?void 0:r.focus)==null||n.call(r,{preventScroll:!0})}else this.focusFirstInPanel()}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var i,n,o;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel");let e=this.previousFocusedElement;e!=null&&e.isConnected||(e=document.querySelector(`[paneltarget="${this.previousFocusedSelector}"]`)),(e==null?void 0:e.tagName.toLowerCase())==="o-button"?(o=(n=(i=e.shadowRoot)==null?void 0:i.querySelector(".button"))==null?void 0:n.focus)==null||o.call(n):e==null||e.focus();const t=this.renderRoot.querySelector(".panel");t&&t.removeAttribute("aria-modal"),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(e){e instanceof KeyboardEvent&&e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("firstbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:e.target}})))}handleSecondClick(e){e instanceof KeyboardEvent&&e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("secondbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:e.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`),this.open?(this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),this.removeAttribute("hidden")):this._hideTimeout=setTimeout(()=>{this.setAttribute("hidden","hidden")},500)}render(){const e=this.showHeader?a`
1237
+ <div tabindex="-1" part="header" class="header ${this.showDetail?"detail-view-header":""}">
1238
1238
  ${this.showHeaderStartIcon?a`
1239
1239
  <o-icon-button
1240
1240
  icon="arrowLeft"
@@ -1266,7 +1266,30 @@ element size change on mount (min-height, aspect-ratio, or skeleton placeholder)
1266
1266
  aria-describedby="panel-title"
1267
1267
  ></o-icon-button>
1268
1268
  </div>
1269
- `:null;return a`
1269
+ `:null,t=this.showFooter?a`
1270
+ <div class="footer" part="footer">
1271
+ ${this.firstButtonVariant&&this.firstButtonLabel?a`
1272
+ <o-button
1273
+ .variant=${this.firstButtonVariant}
1274
+ @click=${this.handleFirstClick}
1275
+ @keydown=${this.handleFirstClick}
1276
+ ${r0(this.firstButtonProps)}
1277
+ >
1278
+ ${this.firstButtonLabel}
1279
+ </o-button>
1280
+ `:null}
1281
+ ${this.secondButtonVariant&&this.secondButtonLabel?a`
1282
+ <o-button
1283
+ .variant=${this.secondButtonVariant}
1284
+ @click=${this.handleSecondClick}
1285
+ @keydown=${this.handleSecondClick}
1286
+ ${r0(this.secondButtonProps)}
1287
+ >
1288
+ ${this.secondButtonLabel}
1289
+ </o-button>
1290
+ `:null}
1291
+ </div>
1292
+ `:null;return a`
1270
1293
  <div class="overlay" style="z-index: ${this.zIndex}" @click=${this.handleClosePanel}></div>
1271
1294
  <div
1272
1295
  class="panel"
@@ -1279,8 +1302,8 @@ element size change on mount (min-height, aspect-ratio, or skeleton placeholder)
1279
1302
  <div role="document">
1280
1303
  ${e}
1281
1304
 
1282
- <div class="content ${this.isHidingDetail?"slide-out-right":""} ${this.showDetail?"with-detail":""}">
1283
-
1305
+ <div part="content" class="content ${this.isHidingDetail?"slide-out-right":""} ${this.showDetail?"with-detail":""}">
1306
+
1284
1307
  ${this.showDetail?a`
1285
1308
  <div class="detail-view">
1286
1309
  ${e}
@@ -1293,34 +1316,11 @@ element size change on mount (min-height, aspect-ratio, or skeleton placeholder)
1293
1316
  `:a`<slot></slot>`}
1294
1317
  </div>
1295
1318
 
1296
- ${this.showFooter?a`
1297
- <div class="footer">
1298
- ${this.firstButtonVariant&&this.firstButtonLabel?a`
1299
- <o-button
1300
- variant="${this.firstButtonVariant}"
1301
- @click=${this.handleFirstClick}
1302
- @keydown=${this.handleFirstClick}
1303
- ${r0(this.firstButtonProps)}
1304
- >
1305
- ${this.firstButtonLabel}
1306
- </o-button>
1307
- `:null}
1308
-
1309
- ${this.secondButtonVariant&&this.secondButtonLabel?a`
1310
- <o-button
1311
- variant="${this.secondButtonVariant}"
1312
- @click=${this.handleSecondClick}
1313
- @keydown=${this.handleSecondClick}
1314
- ${r0(this.secondButtonProps)}
1315
- >
1316
- ${this.secondButtonLabel}
1317
- </o-button>
1318
- `:null}
1319
- </div>
1320
- `:null}
1319
+ ${this.stickyFooter?null:t}
1321
1320
  </div>
1321
+ ${this.stickyFooter?t:null}
1322
1322
  </div>
1323
- `}};w.styles=u`
1323
+ `}};b.styles=u`
1324
1324
  :host {
1325
1325
  --z-overlay: 99;
1326
1326
  --z-panel: 100;
@@ -1496,6 +1496,13 @@ element size change on mount (min-height, aspect-ratio, or skeleton placeholder)
1496
1496
  justify-content: flex-start;
1497
1497
  }
1498
1498
 
1499
+ :host([stickyfooter]) [role="document"] {
1500
+ flex: 1 1 auto;
1501
+ overflow-y: auto;
1502
+ display: flex;
1503
+ flex-direction: column;
1504
+ }
1505
+
1499
1506
  /* Mobile */
1500
1507
  @media (max-width: 767px) {
1501
1508
  :host {
@@ -1555,7 +1562,7 @@ element size change on mount (min-height, aspect-ratio, or skeleton placeholder)
1555
1562
  overflow: auto;
1556
1563
  box-sizing: border-box;
1557
1564
  }
1558
- `;w.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';w.focusablesCustomElementsSelector="o-icon-button, o-button";w.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0};x([s({type:Boolean,reflect:!0})],w.prototype,"open",2);x([s({type:Boolean,reflect:!0})],w.prototype,"showHeader",2);x([s({type:Boolean,reflect:!0})],w.prototype,"showFooter",2);x([s({type:Boolean,reflect:!0})],w.prototype,"showHeaderStartIcon",2);x([s({type:String,reflect:!0})],w.prototype,"headerTitle",2);x([s({type:String,reflect:!0})],w.prototype,"headerTitleClassName",2);x([s({type:String,reflect:!0})],w.prototype,"labelDialog",2);x([s({type:String,reflect:!0})],w.prototype,"labelAriaDialogPanel",2);x([s({type:String,reflect:!0})],w.prototype,"addToBagProductCount",2);x([s({type:String,reflect:!0})],w.prototype,"closeButtonLabel",2);x([s({type:String,reflect:!0})],w.prototype,"goBackButtonLabel",2);x([s({type:String,reflect:!0})],w.prototype,"firstButtonLabel",2);x([s({type:String,reflect:!0})],w.prototype,"firstButtonVariant",2);x([s({type:Object,reflect:!0})],w.prototype,"firstButtonProps",2);x([s({type:Boolean,reflect:!0})],w.prototype,"onFirstButtonClickClose",2);x([s({type:String,reflect:!0})],w.prototype,"secondButtonLabel",2);x([s({type:String,reflect:!0})],w.prototype,"secondButtonVariant",2);x([s({type:Object,reflect:!0})],w.prototype,"secondButtonProps",2);x([s({type:Boolean,reflect:!0})],w.prototype,"onSecondButtonClickClose",2);x([s({type:Boolean,reflect:!0})],w.prototype,"disablePortal",2);x([s({type:Number,reflect:!0})],w.prototype,"zIndex",2);x([s({type:Boolean,reflect:!0})],w.prototype,"initialized",2);x([s({type:Boolean})],w.prototype,"showDetail",2);x([s({type:Boolean})],w.prototype,"isHidingDetail",2);w=x([f("o-side-panel")],w);var C5=Object.defineProperty,u5=Object.getOwnPropertyDescriptor,B=(e,t,i,n)=>{for(var o=n>1?void 0:n?u5(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&C5(t,i,o),o};const g5=g(a2(C));let L=class extends g5{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,this.hideRoleButton=!1,this.describedBy=null,this.ariaExpanded=null}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[Z1].form}handleClick(e){if(!(e instanceof KeyboardEvent&&!["Enter"," "].includes(e.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof w&&(t!=null&&t.openPanel)&&typeof t.openPanel=="function"?(e.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(e){const t=e==="start"?this.startIconModel:this.endIconModel;if(!t)return h;const i=g2[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return a`<span class="${e==="start"?"icon-start":"icon-end"}">${o1(i)}</span>`}renderButton(){const e=this.text||this.textsecond;return a`
1565
+ `;b.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';b.focusablesCustomElementsSelector="o-icon-button, o-button";b.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0};x([s({type:Boolean,reflect:!0})],b.prototype,"open",2);x([s({type:Boolean,reflect:!0})],b.prototype,"showHeader",2);x([s({type:Boolean,reflect:!0})],b.prototype,"showFooter",2);x([s({type:Boolean,reflect:!0})],b.prototype,"showHeaderStartIcon",2);x([s({type:String,reflect:!0})],b.prototype,"headerTitle",2);x([s({type:String,reflect:!0})],b.prototype,"headerTitleClassName",2);x([s({type:String,reflect:!0})],b.prototype,"labelDialog",2);x([s({type:String,reflect:!0})],b.prototype,"labelAriaDialogPanel",2);x([s({type:String,reflect:!0})],b.prototype,"addToBagProductCount",2);x([s({type:String,reflect:!0})],b.prototype,"closeButtonLabel",2);x([s({type:String,reflect:!0})],b.prototype,"goBackButtonLabel",2);x([s({type:String,reflect:!0})],b.prototype,"firstButtonLabel",2);x([s({type:String,reflect:!0})],b.prototype,"firstButtonVariant",2);x([s({type:Object,reflect:!0})],b.prototype,"firstButtonProps",2);x([s({type:Boolean,reflect:!0})],b.prototype,"onFirstButtonClickClose",2);x([s({type:String,reflect:!0})],b.prototype,"secondButtonLabel",2);x([s({type:String,reflect:!0})],b.prototype,"secondButtonVariant",2);x([s({type:Object,reflect:!0})],b.prototype,"secondButtonProps",2);x([s({type:Boolean,reflect:!0})],b.prototype,"onSecondButtonClickClose",2);x([s({type:Boolean,reflect:!0})],b.prototype,"stickyFooter",2);x([s({type:Boolean,reflect:!0})],b.prototype,"disablePortal",2);x([s({type:Number,reflect:!0})],b.prototype,"zIndex",2);x([s({type:Boolean,reflect:!0})],b.prototype,"initialized",2);x([s({type:Boolean})],b.prototype,"showDetail",2);x([s({type:Boolean})],b.prototype,"isHidingDetail",2);b=x([f("o-side-panel")],b);var C5=Object.defineProperty,u5=Object.getOwnPropertyDescriptor,B=(e,t,i,n)=>{for(var o=n>1?void 0:n?u5(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&C5(t,i,o),o};const g5=g(a2(C));let L=class extends g5{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,this.hideRoleButton=!1,this.describedBy=null,this.ariaExpanded=null}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[Z1].form}handleClick(e){if(!(e instanceof KeyboardEvent&&!["Enter"," "].includes(e.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof b&&(t!=null&&t.openPanel)&&typeof t.openPanel=="function"?(e.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(e){const t=e==="start"?this.startIconModel:this.endIconModel;if(!t)return h;const i=g2[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return a`<span class="${e==="start"?"icon-start":"icon-end"}">${o1(i)}</span>`}renderButton(){const e=this.text||this.textsecond;return a`
1559
1566
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
1560
1567
  aria-describedby=${this.describedBy||h} aria-expanded=${this.ariaExpanded||h} >
1561
1568
  ${this.startIcon?this.renderIcon("start"):h}
@@ -1903,10 +1910,10 @@ element size change on mount (min-height, aspect-ratio, or skeleton placeholder)
1903
1910
 
1904
1911
  :host([template="discret"]) .link-wrapper {
1905
1912
  color: var(--color-content-action-secondary);
1906
- font-size: var(--font-size-100);
1913
+ font-size: var(--font-size-150);
1907
1914
  font-weight: var(--font-weight-400);
1908
- line-height: var(--line-height-160);
1909
- letter-spacing: var(--letter-spacing-400);
1915
+ line-height: var(--line-height-200);
1916
+ letter-spacing: 0;
1910
1917
  font-family: var(--font-family-loccitane-sans);
1911
1918
  }
1912
1919
 
@@ -2529,7 +2536,7 @@ element size change on mount (min-height, aspect-ratio, or skeleton placeholder)
2529
2536
  :host([aria-current="true"]:active) .dots {
2530
2537
  background-color: var(--color-container-action-primary-pressed);
2531
2538
  }
2532
- `;k2=_5([f("o-dots")],k2);var Z5=Object.defineProperty,S5=Object.getOwnPropertyDescriptor,d1=(e,t,i,n)=>{for(var o=n>1?void 0:n?S5(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&Z5(t,i,o),o};let Q=class extends g(C){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._sent=new Set,this._pendingByKey=new Map,this._handleOutsideClick=e=>{this.contains(e.target)||(this.open=!1,this.activeIndex=-1,this._stopObserveVisibleItems())}}_getKey(e,t,i){return(t==null?void 0:t.productId)??e.value??String(i)}_scheduleFlush(){this._flushTimer||(this._flushTimer=window.setTimeout(()=>{this._flushTimer=void 0,this._flushPending()},80))}_flushPending(){if(!this.open||this._pendingByKey.size===0)return;const e=Array.from(this._pendingByKey.values());this._pendingByKey.clear(),this.dispatchEvent(new CustomEvent("event-tracking",{detail:{products:e},bubbles:!0,composed:!0}))}_emitTrackingEvent(e,t){const i=e==null?void 0:e.dataproduct;if(!i)return;let n;try{n=JSON.parse(i)}catch(o){console.warn("Invalid dataproduct JSON:",i,o);return}this.dispatchEvent(new CustomEvent("event-tracking",{detail:{product:n},bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}_startObserveVisibleItems(){var t;this._stopObserveVisibleItems();const e=(t=this.renderRoot)==null?void 0:t.querySelector("#dropdown-listbox");e&&(this._io=new IntersectionObserver(i=>{if(this.open)for(const n of i){if(!n.isIntersecting)continue;const o=n.target,r=o.dataset.index;if(!r)continue;const l=Number(r),c=this.options[l];if(!c||c.disabled)continue;const d=c.dataproduct??o.dataset.product;if(!d)continue;let v;try{v=JSON.parse(d)}catch(p){console.warn("Invalid dataproduct JSON:",d,p);continue}const b=this._getKey(c,v,l);this._sent.has(b)||(this._sent.add(b),this._pendingByKey.set(b,v),this._scheduleFlush())}},{root:e,threshold:.75}),e.querySelectorAll("li[role='option']").forEach(i=>{var n;return(n=this._io)==null?void 0:n.observe(i)}))}_stopObserveVisibleItems(){var e;this._flushPending(),this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=void 0),(e=this._io)==null||e.disconnect(),this._io=void 0}toggle(){var e;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=(e=this.renderRoot)==null?void 0:e.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open?this.updateComplete.then(()=>{this._focusActiveOption(),this._startObserveVisibleItems()}):this._stopObserveVisibleItems()}}_focusActiveOption(){var t;const e=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);e==null||e.focus()}selectOption(e){this.value=e.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:e.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(e){if(this.disabled){e.preventDefault();return}if(!this.open){(e.key==="ArrowDown"||e.key==="ArrowUp")&&(e.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(e.key){case"ArrowDown":e.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":e.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":e.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":e.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":e.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":e.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 e=g2["occ-check-outlined"].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(i=>i.value===this.value);return a`
2539
+ `;k2=_5([f("o-dots")],k2);var Z5=Object.defineProperty,S5=Object.getOwnPropertyDescriptor,d1=(e,t,i,n)=>{for(var o=n>1?void 0:n?S5(t,i):t,r=e.length-1,l;r>=0;r--)(l=e[r])&&(o=(n?l(t,i,o):l(o))||o);return n&&o&&Z5(t,i,o),o};let Q=class extends g(C){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._sent=new Set,this._pendingByKey=new Map,this._handleOutsideClick=e=>{this.contains(e.target)||(this.open=!1,this.activeIndex=-1,this._stopObserveVisibleItems())}}_getKey(e,t,i){return(t==null?void 0:t.productId)??e.value??String(i)}_scheduleFlush(){this._flushTimer||(this._flushTimer=window.setTimeout(()=>{this._flushTimer=void 0,this._flushPending()},80))}_flushPending(){if(!this.open||this._pendingByKey.size===0)return;const e=Array.from(this._pendingByKey.values());this._pendingByKey.clear(),this.dispatchEvent(new CustomEvent("event-tracking",{detail:{products:e},bubbles:!0,composed:!0}))}_emitTrackingEvent(e,t){const i=e==null?void 0:e.dataproduct;if(!i)return;let n;try{n=JSON.parse(i)}catch(o){console.warn("Invalid dataproduct JSON:",i,o);return}this.dispatchEvent(new CustomEvent("event-tracking",{detail:{product:n},bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}_startObserveVisibleItems(){var t;this._stopObserveVisibleItems();const e=(t=this.renderRoot)==null?void 0:t.querySelector("#dropdown-listbox");e&&(this._io=new IntersectionObserver(i=>{if(this.open)for(const n of i){if(!n.isIntersecting)continue;const o=n.target,r=o.dataset.index;if(!r)continue;const l=Number(r),c=this.options[l];if(!c||c.disabled)continue;const d=c.dataproduct??o.dataset.product;if(!d)continue;let v;try{v=JSON.parse(d)}catch(p){console.warn("Invalid dataproduct JSON:",d,p);continue}const w=this._getKey(c,v,l);this._sent.has(w)||(this._sent.add(w),this._pendingByKey.set(w,v),this._scheduleFlush())}},{root:e,threshold:.75}),e.querySelectorAll("li[role='option']").forEach(i=>{var n;return(n=this._io)==null?void 0:n.observe(i)}))}_stopObserveVisibleItems(){var e;this._flushPending(),this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=void 0),(e=this._io)==null||e.disconnect(),this._io=void 0}toggle(){var e;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=(e=this.renderRoot)==null?void 0:e.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open?this.updateComplete.then(()=>{this._focusActiveOption(),this._startObserveVisibleItems()}):this._stopObserveVisibleItems()}}_focusActiveOption(){var t;const e=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);e==null||e.focus()}selectOption(e){this.value=e.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:e.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(e){if(this.disabled){e.preventDefault();return}if(!this.open){(e.key==="ArrowDown"||e.key==="ArrowUp")&&(e.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(e.key){case"ArrowDown":e.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":e.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":e.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":e.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":e.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":e.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 e=g2["occ-check-outlined"].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(i=>i.value===this.value);return a`
2533
2540
  <button
2534
2541
  role="combobox"
2535
2542
  aria-haspopup="listbox"
package/index.mjs CHANGED
@@ -294,8 +294,8 @@ const Z0 = (e, t) => {
294
294
  let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", l = W1;
295
295
  for (let c = 0; c < i; c++) {
296
296
  const d = e[c];
297
- let v, b, p = -1, H = 0;
298
- for (; H < d.length && (l.lastIndex = H, b = l.exec(d), b !== null); ) H = l.lastIndex, l === W1 ? b[1] === "!--" ? l = X2 : b[1] !== void 0 ? l = Y2 : b[2] !== void 0 ? (h0.test(b[2]) && (o = RegExp("</" + b[2], "g")), l = E1) : b[3] !== void 0 && (l = E1) : l === E1 ? b[0] === ">" ? (l = o ?? W1, p = -1) : b[1] === void 0 ? p = -2 : (p = l.lastIndex - b[2].length, v = b[1], l = b[3] === void 0 ? E1 : b[3] === '"' ? t0 : J2) : l === t0 || l === J2 ? l = E1 : l === X2 || l === Y2 ? l = W1 : (l = E1, o = void 0);
297
+ let v, w, p = -1, H = 0;
298
+ for (; H < d.length && (l.lastIndex = H, w = l.exec(d), w !== null); ) H = l.lastIndex, l === W1 ? w[1] === "!--" ? l = X2 : w[1] !== void 0 ? l = Y2 : w[2] !== void 0 ? (h0.test(w[2]) && (o = RegExp("</" + w[2], "g")), l = E1) : w[3] !== void 0 && (l = E1) : l === E1 ? w[0] === ">" ? (l = o ?? W1, p = -1) : w[1] === void 0 ? p = -2 : (p = l.lastIndex - w[2].length, v = w[1], l = w[3] === void 0 ? E1 : w[3] === '"' ? t0 : J2) : l === t0 || l === J2 ? l = E1 : l === X2 || l === Y2 ? l = W1 : (l = E1, o = void 0);
299
299
  const Z = l === E1 && e[c + 1].startsWith("/>") ? " " : "";
300
300
  r += l === W1 ? d + k0 : p >= 0 ? (n.push(v), d.slice(0, p) + a0 + d.slice(p) + x1 + Z) : d + x1 + (p === -2 ? c : Z);
301
301
  }
@@ -306,7 +306,7 @@ class t2 {
306
306
  let o;
307
307
  this.parts = [];
308
308
  let r = 0, l = 0;
309
- const c = t.length - 1, d = this.parts, [v, b] = Z0(t, i);
309
+ const c = t.length - 1, d = this.parts, [v, w] = Z0(t, i);
310
310
  if (this.el = t2.createElement(v, n), k1.currentNode = this.el.content, i === 2 || i === 3) {
311
311
  const p = this.el.content.firstChild;
312
312
  p.replaceWith(...p.childNodes);
@@ -314,7 +314,7 @@ class t2 {
314
314
  for (; (o = k1.nextNode()) !== null && d.length < c; ) {
315
315
  if (o.nodeType === 1) {
316
316
  if (o.hasAttributes()) for (const p of o.getAttributeNames()) if (p.endsWith(a0)) {
317
- const H = b[l++], Z = o.getAttribute(p).split(x1), K = /([.?@])?(.*)/.exec(H);
317
+ const H = w[l++], Z = o.getAttribute(p).split(x1), K = /([.?@])?(.*)/.exec(H);
318
318
  d.push({ type: 1, index: r, name: K[2], strings: Z, ctor: K[1] === "." ? F0 : K[1] === "?" ? O0 : K[1] === "@" ? A0 : u2 }), o.removeAttribute(p);
319
319
  } else p.startsWith(x1) && (d.push({ type: 6, index: r }), o.removeAttribute(p));
320
320
  if (h0.test(o.tagName)) {
@@ -682,16 +682,16 @@ function K0() {
682
682
  const o = [];
683
683
  let r = null;
684
684
  try {
685
- r = new PerformanceObserver((b) => {
686
- b.getEntries().forEach((p) => o.push({ start: p.startTime, duration: p.duration }));
685
+ r = new PerformanceObserver((w) => {
686
+ w.getEntries().forEach((p) => o.push({ start: p.startTime, duration: p.duration }));
687
687
  }), r.observe({ type: "longtask", buffered: !0 });
688
688
  } catch {
689
689
  }
690
690
  const l = /* @__PURE__ */ new Map();
691
691
  let c = null;
692
692
  try {
693
- c = new PerformanceObserver((b) => {
694
- b.getEntries().forEach((p) => {
693
+ c = new PerformanceObserver((w) => {
694
+ w.getEntries().forEach((p) => {
695
695
  const H = p;
696
696
  H.hadRecentInput || (H.sources ?? []).forEach((Z) => {
697
697
  var V1, N1;
@@ -704,7 +704,7 @@ function K0() {
704
704
  }
705
705
  const d = () => {
706
706
  if (i || (i = !0, v.disconnect(), r == null || r.disconnect(), c == null || c.disconnect(), clearTimeout(n), e.size === 0)) return;
707
- const b = [...e.entries()], p = b.filter(([S]) => S.includes(":init")), H = b.filter(([S]) => S.includes(":to-paint")), Z = p.reduce((S, [, V]) => S + V.count, 0), K = H.length > 0 ? H : p, V1 = Math.max(...K.map(([, S]) => S.max));
707
+ const w = [...e.entries()], p = w.filter(([S]) => S.includes(":init")), H = w.filter(([S]) => S.includes(":to-paint")), Z = p.reduce((S, [, V]) => S + V.count, 0), K = H.length > 0 ? H : p, V1 = Math.max(...K.map(([, S]) => S.max));
708
708
  console.group(
709
709
  `%c⚡ Web Components Performance%c — ${location.pathname}`,
710
710
  "font-weight:bold;color:#b45309",
@@ -799,8 +799,8 @@ element size change on mount (min-height, aspect-ratio, or skeleton placeholder)
799
799
  "font-weight:bold",
800
800
  "font-weight:normal"
801
801
  ), console.groupEnd();
802
- }, v = new PerformanceObserver((b) => {
803
- b.getEntries().filter((p) => p.name.endsWith(":init") || p.name.endsWith(":to-paint")).forEach((p) => {
802
+ }, v = new PerformanceObserver((w) => {
803
+ w.getEntries().filter((p) => p.name.endsWith(":init") || p.name.endsWith(":to-paint")).forEach((p) => {
804
804
  var Z;
805
805
  const H = (Z = p.detail) == null ? void 0 : Z.parent;
806
806
  q0(e, N0(p.name, H), p.duration), t.push({ name: p.name, start: p.startTime, end: p.startTime + p.duration });
@@ -2447,9 +2447,9 @@ var d5 = Object.defineProperty, p5 = Object.getOwnPropertyDescriptor, x = (e, t,
2447
2447
  (l = e[r]) && (o = (n ? l(t, i, o) : l(o)) || o);
2448
2448
  return n && o && d5(t, i, o), o;
2449
2449
  };
2450
- let w = class extends g(C) {
2450
+ let b = class extends g(C) {
2451
2451
  constructor() {
2452
- super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.labelDialog = "", this.labelAriaDialogPanel = "", 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.previousFocusedSelector = null, this._hideTimeout = null, this._onOpenDetail = async (e) => {
2452
+ super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.labelDialog = "", this.labelAriaDialogPanel = "", 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.stickyFooter = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.showDetail = !1, this.isHidingDetail = !1, this.previousFocusedElement = null, this.previousFocusedSelector = null, this._hideTimeout = null, this._onOpenDetail = async (e) => {
2453
2453
  var i, n;
2454
2454
  const t = ((i = e.detail) == null ? void 0 : i.origin) ?? document.activeElement;
2455
2455
  if (this._detailOriginEl = t, this._detailOriginClass = (t == null ? void 0 : t.className) ?? "", this.showDetail = !0, this.showHeaderStartIcon = !0, await this.updateComplete, this._detailOriginClass) {
@@ -2545,18 +2545,18 @@ let w = class extends g(C) {
2545
2545
  }
2546
2546
  if (!e.shiftKey && v && i === v) {
2547
2547
  e.preventDefault(), e.stopPropagation(), (((r = t.querySelector(".detail-scroller")) == null ? void 0 : r.querySelector(
2548
- w.focusablesSelector
2548
+ b.focusablesSelector
2549
2549
  )) ?? d ?? v).focus({ preventScroll: !0 });
2550
2550
  return;
2551
2551
  }
2552
2552
  }
2553
2553
  if (document.querySelector("#refineandsortpopin")) {
2554
- const l = t.querySelector(".close-btn"), c = l ? this.resolveFocusable(l) : null, d = t.querySelector(".js-clear-refinements"), v = d ? this.resolveFocusable(d) : null, b = (p) => {
2554
+ const l = t.querySelector(".close-btn"), c = l ? this.resolveFocusable(l) : null, d = t.querySelector(".js-clear-refinements"), v = d ? this.resolveFocusable(d) : null, w = (p) => {
2555
2555
  e.preventDefault(), e.stopPropagation(), p.focus();
2556
2556
  };
2557
2557
  if (c && v) {
2558
- if (!e.shiftKey && i === v) return b(c);
2559
- if (e.shiftKey && i === c) return b(v);
2558
+ if (!e.shiftKey && i === v) return w(c);
2559
+ if (e.shiftKey && i === c) return w(v);
2560
2560
  }
2561
2561
  }
2562
2562
  const o = this.renderRoot.querySelector(".close-btn");
@@ -2576,7 +2576,7 @@ let w = class extends g(C) {
2576
2576
  }
2577
2577
  function i(o) {
2578
2578
  var l;
2579
- const r = [o.matches(w.focusablesSelector) ? o : []];
2579
+ const r = [o.matches(b.focusablesSelector) ? o : []];
2580
2580
  if (!["o-icon-button", "o-button"].includes(o.tagName.toLowerCase())) {
2581
2581
  const c = Array.from(
2582
2582
  o instanceof HTMLSlotElement ? o.assignedElements({ flatten: !0 }) : []
@@ -2647,7 +2647,7 @@ let w = class extends g(C) {
2647
2647
  }
2648
2648
  render() {
2649
2649
  const e = this.showHeader ? a`
2650
- <div tabindex="-1" class="header ${this.showDetail ? "detail-view-header" : ""}">
2650
+ <div tabindex="-1" part="header" class="header ${this.showDetail ? "detail-view-header" : ""}">
2651
2651
  ${this.showHeaderStartIcon ? a`
2652
2652
  <o-icon-button
2653
2653
  icon="arrowLeft"
@@ -2679,7 +2679,30 @@ let w = class extends g(C) {
2679
2679
  aria-describedby="panel-title"
2680
2680
  ></o-icon-button>
2681
2681
  </div>
2682
- ` : null;
2682
+ ` : null, t = this.showFooter ? a`
2683
+ <div class="footer" part="footer">
2684
+ ${this.firstButtonVariant && this.firstButtonLabel ? a`
2685
+ <o-button
2686
+ .variant=${this.firstButtonVariant}
2687
+ @click=${this.handleFirstClick}
2688
+ @keydown=${this.handleFirstClick}
2689
+ ${r0(this.firstButtonProps)}
2690
+ >
2691
+ ${this.firstButtonLabel}
2692
+ </o-button>
2693
+ ` : null}
2694
+ ${this.secondButtonVariant && this.secondButtonLabel ? a`
2695
+ <o-button
2696
+ .variant=${this.secondButtonVariant}
2697
+ @click=${this.handleSecondClick}
2698
+ @keydown=${this.handleSecondClick}
2699
+ ${r0(this.secondButtonProps)}
2700
+ >
2701
+ ${this.secondButtonLabel}
2702
+ </o-button>
2703
+ ` : null}
2704
+ </div>
2705
+ ` : null;
2683
2706
  return a`
2684
2707
  <div class="overlay" style="z-index: ${this.zIndex}" @click=${this.handleClosePanel}></div>
2685
2708
  <div
@@ -2693,8 +2716,8 @@ let w = class extends g(C) {
2693
2716
  <div role="document">
2694
2717
  ${e}
2695
2718
 
2696
- <div class="content ${this.isHidingDetail ? "slide-out-right" : ""} ${this.showDetail ? "with-detail" : ""}">
2697
-
2719
+ <div part="content" class="content ${this.isHidingDetail ? "slide-out-right" : ""} ${this.showDetail ? "with-detail" : ""}">
2720
+
2698
2721
  ${this.showDetail ? a`
2699
2722
  <div class="detail-view">
2700
2723
  ${e}
@@ -2707,37 +2730,14 @@ let w = class extends g(C) {
2707
2730
  ` : a`<slot></slot>`}
2708
2731
  </div>
2709
2732
 
2710
- ${this.showFooter ? a`
2711
- <div class="footer">
2712
- ${this.firstButtonVariant && this.firstButtonLabel ? a`
2713
- <o-button
2714
- variant="${this.firstButtonVariant}"
2715
- @click=${this.handleFirstClick}
2716
- @keydown=${this.handleFirstClick}
2717
- ${r0(this.firstButtonProps)}
2718
- >
2719
- ${this.firstButtonLabel}
2720
- </o-button>
2721
- ` : null}
2722
-
2723
- ${this.secondButtonVariant && this.secondButtonLabel ? a`
2724
- <o-button
2725
- variant="${this.secondButtonVariant}"
2726
- @click=${this.handleSecondClick}
2727
- @keydown=${this.handleSecondClick}
2728
- ${r0(this.secondButtonProps)}
2729
- >
2730
- ${this.secondButtonLabel}
2731
- </o-button>
2732
- ` : null}
2733
- </div>
2734
- ` : null}
2733
+ ${this.stickyFooter ? null : t}
2735
2734
  </div>
2735
+ ${this.stickyFooter ? t : null}
2736
2736
  </div>
2737
2737
  `;
2738
2738
  }
2739
2739
  };
2740
- w.styles = u`
2740
+ b.styles = u`
2741
2741
  :host {
2742
2742
  --z-overlay: 99;
2743
2743
  --z-panel: 100;
@@ -2913,6 +2913,13 @@ w.styles = u`
2913
2913
  justify-content: flex-start;
2914
2914
  }
2915
2915
 
2916
+ :host([stickyfooter]) [role="document"] {
2917
+ flex: 1 1 auto;
2918
+ overflow-y: auto;
2919
+ display: flex;
2920
+ flex-direction: column;
2921
+ }
2922
+
2916
2923
  /* Mobile */
2917
2924
  @media (max-width: 767px) {
2918
2925
  :host {
@@ -2973,88 +2980,91 @@ w.styles = u`
2973
2980
  box-sizing: border-box;
2974
2981
  }
2975
2982
  `;
2976
- w.focusablesSelector = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';
2977
- w.focusablesCustomElementsSelector = "o-icon-button, o-button";
2978
- w.shadowRootOptions = {
2983
+ b.focusablesSelector = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';
2984
+ b.focusablesCustomElementsSelector = "o-icon-button, o-button";
2985
+ b.shadowRootOptions = {
2979
2986
  ...C.shadowRootOptions,
2980
2987
  // This helps send focus into the first focusable in shadow when host is focused
2981
2988
  delegatesFocus: !0
2982
2989
  };
2983
2990
  x([
2984
2991
  s({ type: Boolean, reflect: !0 })
2985
- ], w.prototype, "open", 2);
2992
+ ], b.prototype, "open", 2);
2986
2993
  x([
2987
2994
  s({ type: Boolean, reflect: !0 })
2988
- ], w.prototype, "showHeader", 2);
2995
+ ], b.prototype, "showHeader", 2);
2989
2996
  x([
2990
2997
  s({ type: Boolean, reflect: !0 })
2991
- ], w.prototype, "showFooter", 2);
2998
+ ], b.prototype, "showFooter", 2);
2992
2999
  x([
2993
3000
  s({ type: Boolean, reflect: !0 })
2994
- ], w.prototype, "showHeaderStartIcon", 2);
3001
+ ], b.prototype, "showHeaderStartIcon", 2);
2995
3002
  x([
2996
3003
  s({ type: String, reflect: !0 })
2997
- ], w.prototype, "headerTitle", 2);
3004
+ ], b.prototype, "headerTitle", 2);
2998
3005
  x([
2999
3006
  s({ type: String, reflect: !0 })
3000
- ], w.prototype, "headerTitleClassName", 2);
3007
+ ], b.prototype, "headerTitleClassName", 2);
3001
3008
  x([
3002
3009
  s({ type: String, reflect: !0 })
3003
- ], w.prototype, "labelDialog", 2);
3010
+ ], b.prototype, "labelDialog", 2);
3004
3011
  x([
3005
3012
  s({ type: String, reflect: !0 })
3006
- ], w.prototype, "labelAriaDialogPanel", 2);
3013
+ ], b.prototype, "labelAriaDialogPanel", 2);
3007
3014
  x([
3008
3015
  s({ type: String, reflect: !0 })
3009
- ], w.prototype, "addToBagProductCount", 2);
3016
+ ], b.prototype, "addToBagProductCount", 2);
3010
3017
  x([
3011
3018
  s({ type: String, reflect: !0 })
3012
- ], w.prototype, "closeButtonLabel", 2);
3019
+ ], b.prototype, "closeButtonLabel", 2);
3013
3020
  x([
3014
3021
  s({ type: String, reflect: !0 })
3015
- ], w.prototype, "goBackButtonLabel", 2);
3022
+ ], b.prototype, "goBackButtonLabel", 2);
3016
3023
  x([
3017
3024
  s({ type: String, reflect: !0 })
3018
- ], w.prototype, "firstButtonLabel", 2);
3025
+ ], b.prototype, "firstButtonLabel", 2);
3019
3026
  x([
3020
3027
  s({ type: String, reflect: !0 })
3021
- ], w.prototype, "firstButtonVariant", 2);
3028
+ ], b.prototype, "firstButtonVariant", 2);
3022
3029
  x([
3023
3030
  s({ type: Object, reflect: !0 })
3024
- ], w.prototype, "firstButtonProps", 2);
3031
+ ], b.prototype, "firstButtonProps", 2);
3025
3032
  x([
3026
3033
  s({ type: Boolean, reflect: !0 })
3027
- ], w.prototype, "onFirstButtonClickClose", 2);
3034
+ ], b.prototype, "onFirstButtonClickClose", 2);
3028
3035
  x([
3029
3036
  s({ type: String, reflect: !0 })
3030
- ], w.prototype, "secondButtonLabel", 2);
3037
+ ], b.prototype, "secondButtonLabel", 2);
3031
3038
  x([
3032
3039
  s({ type: String, reflect: !0 })
3033
- ], w.prototype, "secondButtonVariant", 2);
3040
+ ], b.prototype, "secondButtonVariant", 2);
3034
3041
  x([
3035
3042
  s({ type: Object, reflect: !0 })
3036
- ], w.prototype, "secondButtonProps", 2);
3043
+ ], b.prototype, "secondButtonProps", 2);
3044
+ x([
3045
+ s({ type: Boolean, reflect: !0 })
3046
+ ], b.prototype, "onSecondButtonClickClose", 2);
3037
3047
  x([
3038
3048
  s({ type: Boolean, reflect: !0 })
3039
- ], w.prototype, "onSecondButtonClickClose", 2);
3049
+ ], b.prototype, "stickyFooter", 2);
3040
3050
  x([
3041
3051
  s({ type: Boolean, reflect: !0 })
3042
- ], w.prototype, "disablePortal", 2);
3052
+ ], b.prototype, "disablePortal", 2);
3043
3053
  x([
3044
3054
  s({ type: Number, reflect: !0 })
3045
- ], w.prototype, "zIndex", 2);
3055
+ ], b.prototype, "zIndex", 2);
3046
3056
  x([
3047
3057
  s({ type: Boolean, reflect: !0 })
3048
- ], w.prototype, "initialized", 2);
3058
+ ], b.prototype, "initialized", 2);
3049
3059
  x([
3050
3060
  s({ type: Boolean })
3051
- ], w.prototype, "showDetail", 2);
3061
+ ], b.prototype, "showDetail", 2);
3052
3062
  x([
3053
3063
  s({ type: Boolean })
3054
- ], w.prototype, "isHidingDetail", 2);
3055
- w = x([
3064
+ ], b.prototype, "isHidingDetail", 2);
3065
+ b = x([
3056
3066
  f("o-side-panel")
3057
- ], w);
3067
+ ], b);
3058
3068
  var C5 = Object.defineProperty, u5 = Object.getOwnPropertyDescriptor, B = (e, t, i, n) => {
3059
3069
  for (var o = n > 1 ? void 0 : n ? u5(t, i) : t, r = e.length - 1, l; r >= 0; r--)
3060
3070
  (l = e[r]) && (o = (n ? l(t, i, o) : l(o)) || o);
@@ -3077,7 +3087,7 @@ let L = class extends g5 {
3077
3087
  handleClick(e) {
3078
3088
  if (!(e instanceof KeyboardEvent && !["Enter", " "].includes(e.key)) && this.panelTarget) {
3079
3089
  const t = document.getElementById(this.panelTarget);
3080
- t instanceof w && (t != null && t.openPanel) && typeof t.openPanel == "function" ? (e.preventDefault(), t.openPanel()) : console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`);
3090
+ t instanceof b && (t != null && t.openPanel) && typeof t.openPanel == "function" ? (e.preventDefault(), t.openPanel()) : console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`);
3081
3091
  }
3082
3092
  }
3083
3093
  render() {
@@ -3589,10 +3599,10 @@ c1.styles = u`
3589
3599
 
3590
3600
  :host([template="discret"]) .link-wrapper {
3591
3601
  color: var(--color-content-action-secondary);
3592
- font-size: var(--font-size-100);
3602
+ font-size: var(--font-size-150);
3593
3603
  font-weight: var(--font-weight-400);
3594
- line-height: var(--line-height-160);
3595
- letter-spacing: var(--letter-spacing-400);
3604
+ line-height: var(--line-height-200);
3605
+ letter-spacing: 0;
3596
3606
  font-family: var(--font-family-loccitane-sans);
3597
3607
  }
3598
3608
 
@@ -4621,8 +4631,8 @@ let Q = class extends g(C) {
4621
4631
  console.warn("Invalid dataproduct JSON:", d, p);
4622
4632
  continue;
4623
4633
  }
4624
- const b = this._getKey(c, v, l);
4625
- this._sent.has(b) || (this._sent.add(b), this._pendingByKey.set(b, v), this._scheduleFlush());
4634
+ const w = this._getKey(c, v, l);
4635
+ this._sent.has(w) || (this._sent.add(w), this._pendingByKey.set(w, v), this._scheduleFlush());
4626
4636
  }
4627
4637
  },
4628
4638
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "2.6.13",
3
+ "version": "2.6.15",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",