@florid-kit/components 0.10.15 → 0.10.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +677 -708
- package/index.mjs +1007 -1038
- 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
|
|
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
|
|
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,
|
|
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
|
|
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:
|
|
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,
|
|
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
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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":
|
|
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,
|
|
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
|
|
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,
|
|
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
|
-
${
|
|
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
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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
|
-
|
|
257
|
-
|
|
258
|
-
|
|
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
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
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
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
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
|
-
|
|
310
|
-
|
|
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
|
-
|
|
316
|
-
|
|
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
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
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
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
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
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
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,
|
|
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
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
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
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
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
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
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
|
-
|
|
620
|
-
|
|
621
|
-
|
|
591
|
+
.header .return-btn {
|
|
592
|
+
margin-right: 8px;
|
|
593
|
+
}
|
|
622
594
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
}
|
|
595
|
+
.header.detail-view-header {
|
|
596
|
+
display: none;
|
|
626
597
|
}
|
|
627
598
|
|
|
628
|
-
.detail-view {
|
|
629
|
-
|
|
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
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
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
|
-
|
|
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,
|
|
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;
|
|
785
|
-
--button-endicon-svg-width: 0px;
|
|
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;
|
|
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;
|
|
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
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
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
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
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
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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,
|
|
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),
|
|
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),
|
|
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=${
|
|
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="${
|
|
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"],
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
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,
|
|
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,
|
|
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
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1372
|
+
.tooltip:hover .tooltiptext {
|
|
1373
|
+
visibility: visible;
|
|
1374
|
+
}
|
|
1404
1375
|
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1376
|
+
:host([type="right"]) .tooltip .tooltiptext {
|
|
1377
|
+
top: -5px;
|
|
1378
|
+
left: 105%;
|
|
1379
|
+
}
|
|
1409
1380
|
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1381
|
+
:host([type="left"]) .tooltip .tooltiptext {
|
|
1382
|
+
top: -5px;
|
|
1383
|
+
right: 105%;
|
|
1384
|
+
}
|
|
1414
1385
|
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1386
|
+
:host([type="top"]) .tooltip .tooltiptext {
|
|
1387
|
+
width: 120px;
|
|
1388
|
+
bottom: 100%;
|
|
1389
|
+
left: 50%;
|
|
1390
|
+
margin-left: -60px;
|
|
1391
|
+
}
|
|
1421
1392
|
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
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
|
|
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,
|
|
1468
|
+
${this.options.map((e,n)=>l`
|
|
1498
1469
|
<li
|
|
1499
|
-
id="option-${
|
|
1470
|
+
id="option-${n}"
|
|
1500
1471
|
role="option"
|
|
1501
1472
|
aria-selected="${e.value===this.value}"
|
|
1502
|
-
tabindex="${
|
|
1503
|
-
class="${
|
|
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,145 +1486,144 @@
|
|
|
1515
1486
|
|
|
1516
1487
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1517
1488
|
`}};T.styles=f`
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1489
|
+
:host {
|
|
1490
|
+
display: inline-block;
|
|
1491
|
+
position: relative;
|
|
1521
1492
|
width: 100%;
|
|
1522
|
-
|
|
1493
|
+
}
|
|
1523
1494
|
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
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
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
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
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1515
|
+
button .arrow {
|
|
1516
|
+
margin-top: auto;
|
|
1517
|
+
margin-bottom: auto;
|
|
1518
|
+
margin-left: var(--spacing-s);
|
|
1519
|
+
}
|
|
1552
1520
|
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1521
|
+
button:disabled {
|
|
1522
|
+
background-color: var(--color-container-disabled);
|
|
1523
|
+
pointer-events: none;
|
|
1524
|
+
}
|
|
1557
1525
|
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1526
|
+
button:disabled .label {
|
|
1527
|
+
color: var(--color-content-disabled);
|
|
1528
|
+
}
|
|
1561
1529
|
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
}
|
|
1530
|
+
button:hover {
|
|
1531
|
+
border: var(--border-m) solid var(--color-border-primary);
|
|
1532
|
+
}
|
|
1566
1533
|
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
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
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
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
|
-
|
|
1599
|
-
|
|
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
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
}
|
|
1570
|
+
li.disabled {
|
|
1571
|
+
background-color: var(--color-container-disabled);
|
|
1572
|
+
}
|
|
1605
1573
|
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1574
|
+
li.disabled span {
|
|
1575
|
+
color: var(--color-content-disabled);
|
|
1576
|
+
}
|
|
1609
1577
|
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1578
|
+
li:hover:not(.disabled) {
|
|
1579
|
+
background-color: var(--color-container-action-secondary-hover);
|
|
1580
|
+
}
|
|
1613
1581
|
|
|
1614
|
-
|
|
1615
|
-
|
|
1582
|
+
li:active:not(.disabled) {
|
|
1583
|
+
background-color: var(--color-container-action-secondary-pressed);
|
|
1584
|
+
}
|
|
1616
1585
|
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1586
|
+
li[aria-selected="true"] {
|
|
1587
|
+
background-color: var(--color-container-action-tertiary-default);
|
|
1588
|
+
}
|
|
1620
1589
|
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1590
|
+
li[aria-selected="true"]:hover {
|
|
1591
|
+
background-color: var(--color-container-action-tertiary-hover);
|
|
1592
|
+
}
|
|
1624
1593
|
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
}
|
|
1594
|
+
li[aria-selected="true"]:active {
|
|
1595
|
+
background-color: var(--color-container-action-tertiary-pressed);
|
|
1596
|
+
}
|
|
1629
1597
|
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1598
|
+
li[aria-selected="true"].disabled {
|
|
1599
|
+
background-color: var(--color-container-disabled);
|
|
1600
|
+
}
|
|
1633
1601
|
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
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
|
-
|
|
1616
|
+
.check {
|
|
1647
1617
|
margin-left: var(--spacing-100);
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1618
|
+
width: 12px;
|
|
1619
|
+
height: auto;
|
|
1620
|
+
color: var(--color-content-action-secondary);
|
|
1621
|
+
}
|
|
1651
1622
|
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
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`
|
|
1623
|
+
input[type="hidden"] {
|
|
1624
|
+
display: none;
|
|
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`
|
|
1657
1627
|
:host {
|
|
1658
1628
|
display: flex;
|
|
1659
1629
|
align-items: center;
|
|
@@ -1695,7 +1665,7 @@
|
|
|
1695
1665
|
:host([aria-current="true"]:active) .dots {
|
|
1696
1666
|
background-color: var(--color-container-action-primary-pressed);
|
|
1697
1667
|
}
|
|
1698
|
-
`;Nt=ai([g("o-dots")],Nt);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,U=(o,t,e,
|
|
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`
|
|
1699
1669
|
<button
|
|
1700
1670
|
role="combobox"
|
|
1701
1671
|
aria-haspopup="listbox"
|
|
@@ -1733,14 +1703,14 @@
|
|
|
1733
1703
|
aria-activedescendant="${this.activeIndex>=0?"option-"+this.activeIndex:""}"
|
|
1734
1704
|
style=${`width: ${this.width};`}
|
|
1735
1705
|
>
|
|
1736
|
-
${this.options.map((e,
|
|
1706
|
+
${this.options.map((e,n)=>l`
|
|
1737
1707
|
<li
|
|
1738
|
-
id="option-${
|
|
1708
|
+
id="option-${n}"
|
|
1739
1709
|
role="option"
|
|
1740
1710
|
aria-selected="${e.value===this.value}"
|
|
1741
1711
|
aria-disabled="${e.disabled?"true":"false"}"
|
|
1742
|
-
tabindex="${
|
|
1743
|
-
class="${
|
|
1712
|
+
tabindex="${n===this.activeIndex?"0":"-1"}"
|
|
1713
|
+
class="${n===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
|
|
1744
1714
|
@click=${()=>this.selectOption(e)}
|
|
1745
1715
|
>
|
|
1746
1716
|
<a href="${P(e.url)}">
|
|
@@ -1758,191 +1728,191 @@
|
|
|
1758
1728
|
|
|
1759
1729
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1760
1730
|
`}};z.styles=f`
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1731
|
+
:host {
|
|
1732
|
+
display: inline-block;
|
|
1733
|
+
position: relative;
|
|
1734
|
+
width: 100%;
|
|
1735
|
+
}
|
|
1766
1736
|
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
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
|
+
}
|
|
1779
1750
|
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1751
|
+
.btn-dropdown:disabled {
|
|
1752
|
+
background-color: var(--color-container-disabled);
|
|
1753
|
+
pointer-events: none;
|
|
1754
|
+
}
|
|
1783
1755
|
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
}
|
|
1756
|
+
.btn-dropdown:disabled .label {
|
|
1757
|
+
color: var(--color-content-disabled);
|
|
1758
|
+
}
|
|
1788
1759
|
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1760
|
+
.btn-dropdown img {
|
|
1761
|
+
width: 40px;
|
|
1762
|
+
height: 50px;
|
|
1763
|
+
}
|
|
1793
1764
|
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1765
|
+
.btn-dropdown .right {
|
|
1766
|
+
display: flex;
|
|
1767
|
+
align-items: center;
|
|
1768
|
+
gap: var(--spacing-l);
|
|
1769
|
+
}
|
|
1799
1770
|
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1771
|
+
.btn-dropdown .arrow {
|
|
1772
|
+
margin-top: auto;
|
|
1773
|
+
margin-bottom: auto;
|
|
1774
|
+
margin-right: var(--spacing-l);
|
|
1775
|
+
}
|
|
1805
1776
|
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1777
|
+
.btn-dropdown:hover {
|
|
1778
|
+
border: var(--border-m) solid var(--color-border-primary);
|
|
1779
|
+
}
|
|
1809
1780
|
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
}
|
|
1781
|
+
.btn-dropdown[aria-expanded="true"] {
|
|
1782
|
+
border: var(--border-l) solid var(--color-border-primary);
|
|
1783
|
+
}
|
|
1814
1784
|
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
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
|
+
}
|
|
1826
1796
|
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
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
|
+
}
|
|
1841
1811
|
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
a {
|
|
1852
|
-
display: flex;
|
|
1853
|
-
width: 100%;
|
|
1854
|
-
gap: var(--spacing-l);
|
|
1855
|
-
align-items: center;
|
|
1856
|
-
text-decoration: none;
|
|
1857
|
-
|
|
1858
|
-
&:active {
|
|
1859
|
-
color: inherit;
|
|
1860
|
-
text-decoration: none;
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
img {
|
|
1864
|
-
width: 40px;
|
|
1865
|
-
height: 50px;
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
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
|
+
}
|
|
1868
1821
|
|
|
1869
|
-
|
|
1870
|
-
|
|
1822
|
+
li a {
|
|
1823
|
+
display: flex;
|
|
1824
|
+
width: 100%;
|
|
1825
|
+
gap: var(--spacing-l);
|
|
1826
|
+
align-items: center;
|
|
1827
|
+
text-decoration: none;
|
|
1828
|
+
}
|
|
1871
1829
|
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1830
|
+
li a:active {
|
|
1831
|
+
color: inherit;
|
|
1832
|
+
text-decoration: none;
|
|
1833
|
+
}
|
|
1876
1834
|
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1835
|
+
li a img {
|
|
1836
|
+
width: 40px;
|
|
1837
|
+
height: 50px;
|
|
1838
|
+
}
|
|
1880
1839
|
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1840
|
+
li.disabled {
|
|
1841
|
+
background-color: var(--color-container-disabled);
|
|
1842
|
+
}
|
|
1884
1843
|
|
|
1885
|
-
|
|
1886
|
-
|
|
1844
|
+
li.disabled .label {
|
|
1845
|
+
color: var(--color-content-disabled);
|
|
1846
|
+
}
|
|
1887
1847
|
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1848
|
+
li:hover:not(.disabled) {
|
|
1849
|
+
background-color: var(--color-container-action-secondary-hover);
|
|
1850
|
+
}
|
|
1891
1851
|
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1852
|
+
li:active:not(.disabled) {
|
|
1853
|
+
background-color: var(--color-container-action-secondary-pressed);
|
|
1854
|
+
}
|
|
1895
1855
|
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
}
|
|
1856
|
+
li[aria-selected="true"] {
|
|
1857
|
+
background-color: var(--color-container-action-tertiary-default);
|
|
1858
|
+
}
|
|
1900
1859
|
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1860
|
+
li[aria-selected="true"]:hover {
|
|
1861
|
+
background-color: var(--color-container-action-tertiary-hover);
|
|
1862
|
+
}
|
|
1904
1863
|
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
font-size: var(--font-size-150);
|
|
1909
|
-
line-height: var(--line-height-200);
|
|
1910
|
-
letter-spacing: var(--letter-spacing-000);
|
|
1911
|
-
height: auto;
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1864
|
+
li[aria-selected="true"]:active {
|
|
1865
|
+
background-color: var(--color-container-action-tertiary-pressed);
|
|
1866
|
+
}
|
|
1914
1867
|
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
font-size: var(--font-size-100);
|
|
1919
|
-
line-height: var(--line-height-160);
|
|
1920
|
-
letter-spacing: var(--letter-spacing-400);
|
|
1921
|
-
text-decoration: none;
|
|
1922
|
-
color: var(--color-content-description);
|
|
1923
|
-
}
|
|
1868
|
+
li[aria-selected="true"].disabled {
|
|
1869
|
+
background-color: var(--color-container-disabled);
|
|
1870
|
+
}
|
|
1924
1871
|
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
height: auto;
|
|
1929
|
-
color: var(--color-content-action-secondary);
|
|
1930
|
-
}
|
|
1872
|
+
li:last-child {
|
|
1873
|
+
border-bottom: none;
|
|
1874
|
+
}
|
|
1931
1875
|
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
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
|
+
}
|
|
1935
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);/**
|
|
1936
1906
|
* @license
|
|
1937
1907
|
* Copyright 2018 Google LLC
|
|
1938
1908
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1939
|
-
*/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
|
|
1940
|
-
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${P(
|
|
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)} />`:""}
|
|
1941
1911
|
<div class="m-reassurance-content">
|
|
1942
|
-
<h3 class="a-reassurance-text">${P(
|
|
1912
|
+
<h3 class="a-reassurance-text">${P(n)}</h3>
|
|
1943
1913
|
<p class="a-reassurance-description">${P(i)}</p>
|
|
1944
1914
|
</div>
|
|
1945
|
-
`;return t?l`<a href="${P(this.option.url)}" class="reassurance-item clickable">${
|
|
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`
|
|
1946
1916
|
:host {
|
|
1947
1917
|
display: inline-block;
|
|
1948
1918
|
position: relative;
|
|
@@ -1957,74 +1927,75 @@
|
|
|
1957
1927
|
background-color: var(--color-container-bg-white);
|
|
1958
1928
|
border-radius: var(--radius-m);
|
|
1959
1929
|
padding: var(--spacing-xl);
|
|
1930
|
+
}
|
|
1960
1931
|
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1932
|
+
.reassurance-item:has(img) {
|
|
1933
|
+
padding: 3px var(--spacing-s) 3px var(--spacing-2-xs);
|
|
1934
|
+
}
|
|
1964
1935
|
|
|
1965
|
-
|
|
1966
|
-
|
|
1936
|
+
.reassurance-item.clickable {
|
|
1937
|
+
text-decoration: none;
|
|
1938
|
+
}
|
|
1967
1939
|
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1940
|
+
.reassurance-item.clickable:disabled {
|
|
1941
|
+
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.06);
|
|
1942
|
+
}
|
|
1971
1943
|
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1944
|
+
.reassurance-item.clickable:hover {
|
|
1945
|
+
border: none;
|
|
1946
|
+
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.12);
|
|
1947
|
+
}
|
|
1976
1948
|
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
}
|
|
1949
|
+
.reassurance-item.clickable:active {
|
|
1950
|
+
border: none;
|
|
1951
|
+
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.32);
|
|
1952
|
+
}
|
|
1982
1953
|
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1954
|
+
.reassurance-item img {
|
|
1955
|
+
display: block;
|
|
1956
|
+
aspect-ratio: 1 / 1;
|
|
1957
|
+
border-radius: var(--radius-s);
|
|
1958
|
+
}
|
|
1988
1959
|
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
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
|
+
}
|
|
1995
1966
|
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
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
|
+
}
|
|
2011
1982
|
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
}
|
|
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;
|
|
2025
1995
|
}
|
|
2026
|
-
`;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,
|
|
2027
|
-
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}"
|
|
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`
|
|
1997
|
+
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}"
|
|
1998
|
+
aria-hidden="${this.inactive?"true":"false"}" aria-current="${this.selected?"true":d}">
|
|
2028
1999
|
${o?this.text:l`<slot></slot>`}
|
|
2029
2000
|
</a>
|
|
2030
2001
|
`:l`
|
|
@@ -2090,26 +2061,30 @@
|
|
|
2090
2061
|
text-decoration: none;
|
|
2091
2062
|
cursor: inherit;
|
|
2092
2063
|
box-sizing: border-box;
|
|
2064
|
+
}
|
|
2093
2065
|
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2066
|
+
.o-chip span,
|
|
2067
|
+
.button span {
|
|
2068
|
+
font-family: var(--font-family-loccitane-sans);
|
|
2069
|
+
font-size: var(--font-size-150);
|
|
2070
|
+
font-weight: var(--font-weight-400);
|
|
2071
|
+
line-height: var(--line-height-200);
|
|
2072
|
+
}
|
|
2100
2073
|
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2074
|
+
.o-chip:hover,
|
|
2075
|
+
.button:hover {
|
|
2076
|
+
background-color: var(--button-bg-hover);
|
|
2077
|
+
color: var(--button-text-hover);
|
|
2078
|
+
}
|
|
2105
2079
|
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2080
|
+
.o-chip:active,
|
|
2081
|
+
.button:active {
|
|
2082
|
+
background-color: var(--button-bg-pressed);
|
|
2083
|
+
}
|
|
2109
2084
|
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
}
|
|
2085
|
+
.o-chip:focus-visible,
|
|
2086
|
+
.button:focus-visible {
|
|
2087
|
+
${at};
|
|
2113
2088
|
}
|
|
2114
2089
|
|
|
2115
2090
|
span.text + span.text::before {
|
|
@@ -2121,7 +2096,7 @@
|
|
|
2121
2096
|
display: inline-flex;
|
|
2122
2097
|
align-items: center;
|
|
2123
2098
|
}
|
|
2124
|
-
`;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,
|
|
2099
|
+
`;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`
|
|
2125
2100
|
<slot></slot>
|
|
2126
2101
|
`}};_t.styles=f`
|
|
2127
2102
|
:host {
|
|
@@ -2130,7 +2105,7 @@
|
|
|
2130
2105
|
flex-wrap: wrap;
|
|
2131
2106
|
gap: var(--spacing-s);
|
|
2132
2107
|
}
|
|
2133
|
-
`;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,
|
|
2108
|
+
`;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`
|
|
2134
2109
|
<a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
2135
2110
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
2136
2111
|
${o?l`
|
|
@@ -2211,13 +2186,15 @@
|
|
|
2211
2186
|
text-decoration: none;
|
|
2212
2187
|
cursor: inherit;
|
|
2213
2188
|
box-sizing: border-box;
|
|
2189
|
+
}
|
|
2214
2190
|
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2191
|
+
.button span {
|
|
2192
|
+
font-family: var(--font-family-loccitane-sans);
|
|
2193
|
+
font-size: var(--font-size-150);
|
|
2194
|
+
font-weight: var(--font-weight-400);
|
|
2195
|
+
line-height: var(--line-height-200);
|
|
2196
|
+
display: inline-flex;
|
|
2197
|
+
align-items: center;
|
|
2221
2198
|
}
|
|
2222
2199
|
|
|
2223
2200
|
.button:hover:not([disabled]) {
|
|
@@ -2241,17 +2218,12 @@
|
|
|
2241
2218
|
.cross-icon {
|
|
2242
2219
|
display: inline-flex;
|
|
2243
2220
|
align-items: center;
|
|
2244
|
-
|
|
2245
|
-
svg {
|
|
2246
|
-
width: 8px;
|
|
2247
|
-
height: 8px;
|
|
2248
|
-
stroke: var(--color-content-action-primary);
|
|
2249
|
-
}
|
|
2250
2221
|
}
|
|
2251
2222
|
|
|
2252
|
-
.
|
|
2253
|
-
|
|
2254
|
-
|
|
2223
|
+
.cross-icon svg {
|
|
2224
|
+
width: 8px;
|
|
2225
|
+
height: 8px;
|
|
2226
|
+
stroke: var(--color-content-action-primary);
|
|
2255
2227
|
}
|
|
2256
2228
|
|
|
2257
2229
|
.button slot {
|
|
@@ -2268,14 +2240,14 @@
|
|
|
2268
2240
|
bottom: 0;
|
|
2269
2241
|
left: 0;
|
|
2270
2242
|
right: 0;
|
|
2243
|
+
}
|
|
2271
2244
|
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
}
|
|
2245
|
+
[part="strikethrough"] line {
|
|
2246
|
+
stroke: var(--button-strikethrough-stroke);
|
|
2247
|
+
stroke-width: 4px;
|
|
2248
|
+
stroke-linecap: round;
|
|
2277
2249
|
}
|
|
2278
|
-
`;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,
|
|
2250
|
+
`;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`
|
|
2279
2251
|
<o-icon-button
|
|
2280
2252
|
@click=${this.onClickIcons}
|
|
2281
2253
|
icon="chevronRight"
|
|
@@ -2339,10 +2311,10 @@
|
|
|
2339
2311
|
margin: 0;
|
|
2340
2312
|
border: 0 none;
|
|
2341
2313
|
box-sizing: content-box;
|
|
2314
|
+
}
|
|
2342
2315
|
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
}
|
|
2316
|
+
.tile o-icon-button {
|
|
2317
|
+
margin-left: var(--spacing-xl);
|
|
2346
2318
|
}
|
|
2347
2319
|
|
|
2348
2320
|
.tile.fullwidth {
|
|
@@ -2376,16 +2348,16 @@
|
|
|
2376
2348
|
display: -webkit-box;
|
|
2377
2349
|
-webkit-line-clamp: 2;
|
|
2378
2350
|
-webkit-box-orient: vertical;
|
|
2351
|
+
}
|
|
2379
2352
|
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
}
|
|
2353
|
+
.info .title + .details {
|
|
2354
|
+
padding-top: var(--spacing-s);
|
|
2355
|
+
overflow: hidden;
|
|
2356
|
+
text-overflow: ellipsis;
|
|
2357
|
+
display: -webkit-box;
|
|
2358
|
+
-webkit-line-clamp: 1;
|
|
2359
|
+
-webkit-box-orient: vertical;
|
|
2360
|
+
text-align: left;
|
|
2389
2361
|
}
|
|
2390
2362
|
|
|
2391
2363
|
.info .details {
|
|
@@ -2398,14 +2370,12 @@
|
|
|
2398
2370
|
color: var(--colors-noir-des-terres-500);
|
|
2399
2371
|
font-family: var(--font-family-loccitane-sans);
|
|
2400
2372
|
line-height: var(--line-height-160);
|
|
2373
|
+
}
|
|
2401
2374
|
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
color: var(--colors-noir-des-terres-500);
|
|
2407
|
-
}
|
|
2408
|
-
}
|
|
2375
|
+
.info .volume-info + .main-price::before {
|
|
2376
|
+
content: "•";
|
|
2377
|
+
padding: 0 var(--spacing-xs) 0 var(--spacing-2-xs);
|
|
2378
|
+
color: var(--colors-noir-des-terres-500);
|
|
2409
2379
|
}
|
|
2410
2380
|
|
|
2411
2381
|
.info o-tag {
|
|
@@ -2431,7 +2401,7 @@
|
|
|
2431
2401
|
.fullpointer {
|
|
2432
2402
|
cursor: pointer;
|
|
2433
2403
|
}
|
|
2434
|
-
`;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,
|
|
2404
|
+
`;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`
|
|
2435
2405
|
<span class="badge">
|
|
2436
2406
|
${this.text?this.text:l`<slot></slot>`}
|
|
2437
2407
|
</span>
|
|
@@ -2469,7 +2439,7 @@
|
|
|
2469
2439
|
color: var(--text-color);
|
|
2470
2440
|
}
|
|
2471
2441
|
|
|
2472
|
-
`;
|
|
2442
|
+
`;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`
|
|
2473
2443
|
<div class="o-toast">
|
|
2474
2444
|
<div class="o-toast-icon">
|
|
2475
2445
|
${S(t)}
|
|
@@ -2485,7 +2455,7 @@
|
|
|
2485
2455
|
</o-icon-button>
|
|
2486
2456
|
</div>
|
|
2487
2457
|
</div>
|
|
2488
|
-
`}};
|
|
2458
|
+
`}};L.styles=f`
|
|
2489
2459
|
:host {
|
|
2490
2460
|
--vertical-offset: 24px;
|
|
2491
2461
|
--horizontal-offset: 24px;
|
|
@@ -2562,7 +2532,7 @@
|
|
|
2562
2532
|
.o-toast-icon {
|
|
2563
2533
|
height: 16px;
|
|
2564
2534
|
}
|
|
2565
|
-
`;H([a({type:String,reflect:!0})],
|
|
2535
|
+
`;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`
|
|
2566
2536
|
<input
|
|
2567
2537
|
type="checkbox"
|
|
2568
2538
|
id=${this.inputId}
|
|
@@ -2570,7 +2540,7 @@
|
|
|
2570
2540
|
?disabled=${this.disabled}
|
|
2571
2541
|
name=${this.name}
|
|
2572
2542
|
value=${this.value}
|
|
2573
|
-
@change=${e=>{const
|
|
2543
|
+
@change=${e=>{const n=e.target;this.checked=n.checked,this.indeterminate=n.indeterminate,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}}
|
|
2574
2544
|
/>
|
|
2575
2545
|
|
|
2576
2546
|
<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}>
|
|
@@ -2578,7 +2548,7 @@
|
|
|
2578
2548
|
</div>
|
|
2579
2549
|
|
|
2580
2550
|
${this.showLabel?l`<label class="label" for=${this.inputId}>${this.label}</label>`:""}
|
|
2581
|
-
`}};
|
|
2551
|
+
`}};A.styles=f`
|
|
2582
2552
|
:host {
|
|
2583
2553
|
display: inline-flex;
|
|
2584
2554
|
align-items: center;
|
|
@@ -2608,17 +2578,16 @@
|
|
|
2608
2578
|
width: 16px;
|
|
2609
2579
|
height: 16px;
|
|
2610
2580
|
}
|
|
2611
|
-
:host([size="L"]) {
|
|
2612
|
-
.box {
|
|
2613
|
-
width: 24px;
|
|
2614
|
-
height: 24px;
|
|
2615
|
-
border: 2px solid var(--color-border-secondary);
|
|
2616
|
-
}
|
|
2617
2581
|
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2582
|
+
:host([size="L"]) .box {
|
|
2583
|
+
width: 24px;
|
|
2584
|
+
height: 24px;
|
|
2585
|
+
border: 2px solid var(--color-border-secondary);
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
:host([size="L"]) .label {
|
|
2589
|
+
line-height: var(--line-height-200);
|
|
2590
|
+
font-size: var(--font-size-200);
|
|
2622
2591
|
}
|
|
2623
2592
|
|
|
2624
2593
|
:host([checked]) .box,
|
|
@@ -2681,7 +2650,7 @@
|
|
|
2681
2650
|
svg path {
|
|
2682
2651
|
stroke: var(--color-border-white);
|
|
2683
2652
|
}
|
|
2684
|
-
`;j([a({type:Boolean,reflect:!0})],
|
|
2653
|
+
`;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`
|
|
2685
2654
|
<input type="radio" id=${this.inputId} ?checked=${this.checked} ?disabled=${this.disabled} name=${this.name} value=${this.value} />
|
|
2686
2655
|
|
|
2687
2656
|
<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}>
|
|
@@ -2778,7 +2747,7 @@
|
|
|
2778
2747
|
width: 0;
|
|
2779
2748
|
height: 0;
|
|
2780
2749
|
}
|
|
2781
|
-
`;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,
|
|
2750
|
+
`;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`
|
|
2782
2751
|
<nav aria-label="Breadcrumbs">
|
|
2783
2752
|
<ul>
|
|
2784
2753
|
<slot></slot>
|
|
@@ -2795,7 +2764,7 @@
|
|
|
2795
2764
|
margin: var(--spacing-4-xs);
|
|
2796
2765
|
padding: var(--spacing-4-xs);
|
|
2797
2766
|
}
|
|
2798
|
-
`;qt=Ii([g("o-breadcrumbs")],qt);var Di=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,
|
|
2767
|
+
`;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`
|
|
2799
2768
|
<li>
|
|
2800
2769
|
<a
|
|
2801
2770
|
href="${this.href}"
|
|
@@ -2844,7 +2813,7 @@
|
|
|
2844
2813
|
:host(.a--tabfocus) {
|
|
2845
2814
|
outline: none !important;
|
|
2846
2815
|
}
|
|
2847
|
-
`;
|
|
2816
|
+
`;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">
|
|
2848
2817
|
<svg aria-hidden="true">
|
|
2849
2818
|
<defs>
|
|
2850
2819
|
<clipPath id="arch-gift-finder" clipPathUnits="objectBoundingBox">
|
|
@@ -3007,7 +2976,7 @@
|
|
|
3007
2976
|
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
|
|
3008
2977
|
id="path52"
|
|
3009
2978
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
3010
|
-
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,
|
|
2979
|
+
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`
|
|
3011
2980
|
<o-icon-button
|
|
3012
2981
|
data-close-btn
|
|
3013
2982
|
icon="cross"
|
|
@@ -3194,7 +3163,7 @@
|
|
|
3194
3163
|
from { transform: translateY(10px) scale(.98); opacity: 0; }
|
|
3195
3164
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
3196
3165
|
}
|
|
3197
|
-
`;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,
|
|
3166
|
+
`;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`
|
|
3198
3167
|
<o-icon-button
|
|
3199
3168
|
@click=${this.onClickIcons}
|
|
3200
3169
|
icon=${this.type==="notifyme"?"notifyme":"cart"}
|