@florid-kit/components 0.10.40 → 0.10.41
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/components/arch-image.d.ts +1 -0
- package/index.js +44 -32
- package/index.mjs +116 -101
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:ze,defineProperty:Oe,getOwnPropertyDescriptor:Ie,getOwnPropertyNames:De,getOwnPropertySymbols:He,getPrototypeOf:Te}=Object,
|
|
9
|
+
*/const{is:ze,defineProperty:Oe,getOwnPropertyDescriptor:Ie,getOwnPropertyNames:De,getOwnPropertySymbols:He,getPrototypeOf:Te}=Object,Q=globalThis,de=Q.trustedTypes,Me=de?de.emptyScript:"",Tt=Q.reactiveElementPolyfillSupport,gt=(o,t)=>o,Pt={toAttribute(o,t){switch(t){case Boolean:o=o?Me: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}},Wt=(o,t)=>!ze(o,t),pe={attribute:!0,type:String,converter:Pt,reflect:!1,useDefault:!1,hasChanged:Wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Q.litPropertyMetadata??(Q.litPropertyMetadata=new WeakMap);let ht=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=pe){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&&Oe(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=Ie(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)??pe}static _$Ei(){if(this.hasOwnProperty(gt("elementProperties")))return;const t=Te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(gt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gt("properties"))){const e=this.properties,n=[...De(e),...He(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(he(i))}else t!==void 0&&e.push(he(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 Be(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??Wt)(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){}};ht.elementStyles=[],ht.shadowRootOptions={mode:"open"},ht[gt("elementProperties")]=new Map,ht[gt("finalized")]=new Map,Tt==null||Tt({ReactiveElement:ht}),(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
|
-
*/const bt=globalThis,Bt=bt.trustedTypes,ue=Bt?Bt.createPolicy("lit-html",{createHTML:o=>o}):void 0,$e="$lit$",
|
|
13
|
+
*/const bt=globalThis,Bt=bt.trustedTypes,ue=Bt?Bt.createPolicy("lit-html",{createHTML:o=>o}):void 0,$e="$lit$",J=`lit$${Math.random().toFixed(9).slice(2)}$`,ke="?"+J,je=`<${ke}>`,st=document,mt=()=>st.createComment(""),xt=o=>o===null||typeof o!="object"&&typeof o!="function",Gt=Array.isArray,Fe=o=>Gt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Mt=`[
|
|
14
14
|
\f\r]`,vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fe=/-->/g,ve=/>/g,it=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ge=/'/g,be=/"/g,_e=/^(?:script|style|textarea|title)$/i,Re=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Re(1),
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ge=/'/g,be=/"/g,_e=/^(?:script|style|textarea|title)$/i,Re=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Re(1),tt=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ye=new WeakMap,nt=st.createTreeWalker(st,129);function Ce(o,t){if(!Gt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ue!==void 0?ue.createHTML(t):t}const Ue=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=vt;for(let c=0;c<e;c++){const h=o[c];let v,w,g=-1,V=0;for(;V<h.length&&(s.lastIndex=V,w=s.exec(h),w!==null);)V=s.lastIndex,s===vt?w[1]==="!--"?s=fe:w[1]!==void 0?s=ve:w[2]!==void 0?(_e.test(w[2])&&(i=RegExp("</"+w[2],"g")),s=it):w[3]!==void 0&&(s=it):s===it?w[0]===">"?(s=i??vt,g=-1):w[1]===void 0?g=-2:(g=s.lastIndex-w[2].length,v=w[1],s=w[3]===void 0?it:w[3]==='"'?be:ge):s===be||s===ge?s=it:s===fe||s===ve?s=vt:(s=it,i=void 0);const Y=s===it&&o[c+1].startsWith("/>")?" ":"";r+=s===vt?h+je:g>=0?(n.push(v),h.slice(0,g)+$e+h.slice(g)+J+Y):h+J+(g===-2?c:Y)}return[Ce(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class wt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,h=this.parts,[v,w]=Ue(t,e);if(this.el=wt.createElement(v,n),nt.currentNode=this.el.content,e===2||e===3){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=nt.nextNode())!==null&&h.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const g of i.getAttributeNames())if(g.endsWith($e)){const V=w[s++],Y=i.getAttribute(g).split(J),At=/([.?@])?(.*)/.exec(V);h.push({type:1,index:r,name:At[2],strings:Y,ctor:At[1]==="."?qe:At[1]==="?"?Ve:At[1]==="@"?Ze:Ot}),i.removeAttribute(g)}else g.startsWith(J)&&(h.push({type:6,index:r}),i.removeAttribute(g));if(_e.test(i.tagName)){const g=i.textContent.split(J),V=g.length-1;if(V>0){i.textContent=Bt?Bt.emptyScript:"";for(let Y=0;Y<V;Y++)i.append(g[Y],mt()),nt.nextNode(),h.push({type:2,index:++r});i.append(g[V],mt())}}}else if(i.nodeType===8)if(i.data===ke)h.push({type:2,index:r});else{let g=-1;for(;(g=i.data.indexOf(J,g+1))!==-1;)h.push({type:7,index:r}),g+=J.length-1}r++}}static createElement(t,e){const n=st.createElement("template");return n.innerHTML=t,n}}function dt(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=xt(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=dt(o,i._$AS(o,t.values),i,n)),t}class Ne{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 v;h.type===2?v=new Et(r,r.nextSibling,this,t):h.type===1?v=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(v=new Ke(r,this,t)),this._$AV.push(v),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=dt(this,t,e),xt(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):Fe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&xt(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=wt.createElement(Ce(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 Ne(i,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=ye.get(t.strings);return e===void 0&&ye.set(t.strings,e=new wt(t)),e}k(t){Gt(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(mt()),this.O(mt()),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=dt(this,t,e,0),s=!xt(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{const c=t;let h,v;for(t=r[0],h=0;h<r.length-1;h++)v=dt(this,c[n+h],e,h),v===tt&&(v=this._$AH[h]),s||(s=!xt(v)||v!==this._$AH[h]),v===d?t=d:t!==d&&(t+=(v??"")+r[h+1]),this._$AH[h]=v}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qe extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Ve extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Ze extends Ot{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=dt(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 Ke{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){dt(this,t)}}const jt=bt.litHtmlPolyfillSupport;jt==null||jt(wt,Et),(bt.litHtmlVersions??(bt.litHtmlVersions=[])).push("3.3.0");const We=(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(mt(),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 rt=globalThis;let u=class extends
|
|
19
|
+
*/const rt=globalThis;let u=class extends ht{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=We(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 xe;u._$litElement$=!0,u.finalized=!0,(xe=rt.litElementHydrateSupport)==null||xe.call(rt,{LitElement:u});const Ft=rt.litElementPolyfillSupport;Ft==null||Ft({LitElement:u});(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
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function
|
|
31
|
+
*/function W(o){return a({...o,state:!0,attribute:!1})}/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2017 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
`,Po=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
165
165
|
<path d="M11.5 8L4.5 13L4.5 3L11.5 8Z" fill="#3F2B2E"/>
|
|
166
166
|
</svg>
|
|
167
|
-
`,Ee={wishlist:Qe,playerv:to,chevronRight:eo,chevronLeft:oo,icoPlus:ho,icoMinus:po,"star-0":io,"star-25":no,"star-50":ro,"star-75":so,"star-100":ao,cross:lo,search:co,arrowLeft:uo,arrowTop:fo,cart:vo,notifyme:go,triangledown:bo,triangleup:yo,checkstroke:mo,pause:xo,mapDualArrow:wo,swipeDualArrow:ko,backToBag:Eo,checkbox:Ao,sliderLeftArrow:Lo,sliderRightArrow:Po},Bo={xsmall:8,small:12,medium:16,large:24},zo=(o,{size:t,bgstyle:e})=>{const n=Bo[t],i=e==="none-light"||e==="none-contrast";return{svg:Ee[o]??"",pixelSize:n,shouldApplyLogicalSize:i}},
|
|
167
|
+
`,Ee={wishlist:Qe,playerv:to,chevronRight:eo,chevronLeft:oo,icoPlus:ho,icoMinus:po,"star-0":io,"star-25":no,"star-50":ro,"star-75":so,"star-100":ao,cross:lo,search:co,arrowLeft:uo,arrowTop:fo,cart:vo,notifyme:go,triangledown:bo,triangleup:yo,checkstroke:mo,pause:xo,mapDualArrow:wo,swipeDualArrow:ko,backToBag:Eo,checkbox:Ao,sliderLeftArrow:Lo,sliderRightArrow:Po},Bo={xsmall:8,small:12,medium:16,large:24},zo=(o,{size:t,bgstyle:e})=>{const n=Bo[t],i=e==="none-light"||e==="none-contrast";return{svg:Ee[o]??"",pixelSize:n,shouldApplyLogicalSize:i}},et=Ee,Oo={strikeDiagonal:$o},Io={success:_o,error:Co,info:So};/**
|
|
168
168
|
* @license
|
|
169
169
|
* Copyright 2017 Google LLC
|
|
170
170
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
* @license
|
|
173
173
|
* Copyright 2017 Google LLC
|
|
174
174
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
175
|
-
*/class Ut extends ee{constructor(t){if(super(t),this.it=d,t.type!==Qt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===d||t==null)return this._t=void 0,this.it=t;if(t===
|
|
175
|
+
*/class Ut extends ee{constructor(t){if(super(t),this.it=d,t.type!==Qt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===d||t==null)return this._t=void 0,this.it=t;if(t===tt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ut.directiveName="unsafeHTML",Ut.resultType=1;/**
|
|
176
176
|
* @license
|
|
177
177
|
* Copyright 2017 Google LLC
|
|
178
178
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
overflow: auto;
|
|
710
710
|
box-sizing: border-box;
|
|
711
711
|
}
|
|
712
|
-
`;p.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';p.focusablesCustomElementsSelector="o-icon-button, o-button";p.shadowRootOptions={...u.shadowRootOptions,delegatesFocus:!0};b([a({type:Boolean,reflect:!0})],p.prototype,"open",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],p.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],p.prototype,"labelAriaDialogPanel",2);b([a({type:String,reflect:!0})],p.prototype,"addToBagProductCount",2);b([a({type:String,reflect:!0})],p.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],p.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],p.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],p.prototype,"initialized",2);b([a({type:Boolean})],p.prototype,"showDetail",2);b([a({type:Boolean})],p.prototype,"isHidingDetail",2);p=b([y("o-side-panel")],p);var Ko=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,_=(o,t,e,n)=>{for(var i=n>1?void 0:n?Wo(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&&Ko(t,e,i),i};const Go=Jt(u);let m=class extends Go{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target="",this.underlined=!1,this.withbadge=!1,this.hideRoleButton=!1}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Yt].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof p&&(t!=null&&t.openPanel)&&typeof t.openPanel=="function"?(o.preventDefault(),t.openPanel()):console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`)}}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){const t=o==="start"?this.startIconModel:this.endIconModel;if(!t)return d;const e=
|
|
712
|
+
`;p.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';p.focusablesCustomElementsSelector="o-icon-button, o-button";p.shadowRootOptions={...u.shadowRootOptions,delegatesFocus:!0};b([a({type:Boolean,reflect:!0})],p.prototype,"open",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],p.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],p.prototype,"labelAriaDialogPanel",2);b([a({type:String,reflect:!0})],p.prototype,"addToBagProductCount",2);b([a({type:String,reflect:!0})],p.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],p.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],p.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],p.prototype,"initialized",2);b([a({type:Boolean})],p.prototype,"showDetail",2);b([a({type:Boolean})],p.prototype,"isHidingDetail",2);p=b([y("o-side-panel")],p);var Ko=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,_=(o,t,e,n)=>{for(var i=n>1?void 0:n?Wo(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&&Ko(t,e,i),i};const Go=Jt(u);let m=class extends Go{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target="",this.underlined=!1,this.withbadge=!1,this.hideRoleButton=!1}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Yt].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof p&&(t!=null&&t.openPanel)&&typeof t.openPanel=="function"?(o.preventDefault(),t.openPanel()):console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`)}}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){const t=o==="start"?this.startIconModel:this.endIconModel;if(!t)return d;const e=et[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`
|
|
713
713
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
714
714
|
aria-describedby=${this.getAttribute("aria-describedby")||d} >
|
|
715
715
|
${this.startIcon?this.renderIcon("start"):d}
|
|
@@ -944,12 +944,12 @@
|
|
|
944
944
|
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
945
945
|
transform: translateX(4px);
|
|
946
946
|
}
|
|
947
|
-
`;_([a()],m.prototype,"type",2);_([a()],m.prototype,"value",2);_([a({type:String,reflect:!0})],m.prototype,"variant",2);_([a({type:String})],m.prototype,"text",2);_([a({type:String})],m.prototype,"textsecond",2);_([a({type:Boolean,reflect:!0})],m.prototype,"fullwidth",2);_([a({type:Boolean,reflect:!0})],m.prototype,"disabled",2);_([a({type:String})],m.prototype,"startIconModel",2);_([a({type:String})],m.prototype,"endIconModel",2);_([a({type:Boolean,reflect:!0,attribute:"starticon"})],m.prototype,"startIcon",2);_([a({type:Boolean,reflect:!0,attribute:"endicon"})],m.prototype,"endIcon",2);_([a({type:String,attribute:"paneltarget"})],m.prototype,"panelTarget",2);_([a({type:String})],m.prototype,"href",2);_([a({type:String})],m.prototype,"target",2);_([a({type:Boolean,reflect:!0})],m.prototype,"underlined",2);_([a({type:Boolean,reflect:!0})],m.prototype,"withbadge",2);_([a({type:Boolean,reflect:!0})],m.prototype,"hideRoleButton",2);m=_([y("o-button")],m);var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,It=(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
|
|
947
|
+
`;_([a()],m.prototype,"type",2);_([a()],m.prototype,"value",2);_([a({type:String,reflect:!0})],m.prototype,"variant",2);_([a({type:String})],m.prototype,"text",2);_([a({type:String})],m.prototype,"textsecond",2);_([a({type:Boolean,reflect:!0})],m.prototype,"fullwidth",2);_([a({type:Boolean,reflect:!0})],m.prototype,"disabled",2);_([a({type:String})],m.prototype,"startIconModel",2);_([a({type:String})],m.prototype,"endIconModel",2);_([a({type:Boolean,reflect:!0,attribute:"starticon"})],m.prototype,"startIcon",2);_([a({type:Boolean,reflect:!0,attribute:"endicon"})],m.prototype,"endIcon",2);_([a({type:String,attribute:"paneltarget"})],m.prototype,"panelTarget",2);_([a({type:String})],m.prototype,"href",2);_([a({type:String})],m.prototype,"target",2);_([a({type:Boolean,reflect:!0})],m.prototype,"underlined",2);_([a({type:Boolean,reflect:!0})],m.prototype,"withbadge",2);_([a({type:Boolean,reflect:!0})],m.prototype,"hideRoleButton",2);m=_([y("o-button")],m);var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,It=(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 u{constructor(){super(...arguments),this.status="empty",this.ariaDescribedBy="a-product-name",this.label="Add to wishlist",this.toggleStatus=()=>{this.status=this.status==="empty"?"filled":"empty",this.setAttribute("aria-pressed",String(this.status==="filled")),this.dispatchEvent(new CustomEvent("wishlist-toggle",{detail:{status:this.status},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("aria-pressed",String(this.status==="filled"))}firstUpdated(){this.addEventListener("click",this.toggleStatus),this.addEventListener("keydown",this.handleKeydown)}handleKeydown(o){(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),this.toggleStatus())}render(){const o=et.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
|
|
948
948
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
949
949
|
<span class="sr-only">${this.label}</span>
|
|
950
950
|
${S(o)}
|
|
951
951
|
</button>
|
|
952
|
-
`}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};
|
|
952
|
+
`}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};pt.styles=f`
|
|
953
953
|
:host {
|
|
954
954
|
display: inline-flex;
|
|
955
955
|
justify-content: center;
|
|
@@ -1003,7 +1003,7 @@
|
|
|
1003
1003
|
.sr-only {
|
|
1004
1004
|
${Xt}
|
|
1005
1005
|
}
|
|
1006
|
-
`;It([a({type:String,reflect:!0})],
|
|
1006
|
+
`;It([a({type:String,reflect:!0})],pt.prototype,"status",2);It([a({type:String,reflect:!0})],pt.prototype,"ariaDescribedBy",2);It([a({type:String,reflect:!0})],pt.prototype,"label",2);pt=It([y("o-wishlist-button")],pt);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,lt=(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 Z=class extends u{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){const o=!!this.href,t=l`
|
|
1007
1007
|
${this.endIcon&&this.reverseEndIcon?l`
|
|
1008
1008
|
<o-icon-button
|
|
1009
1009
|
icon="chevronLeft"
|
|
@@ -1118,14 +1118,14 @@
|
|
|
1118
1118
|
transform: translateX(-4px);
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
`;lt([a({type:String})],Z.prototype,"href",2);lt([a({type:String})],Z.prototype,"target",2);lt([a({type:String,reflect:!0})],Z.prototype,"template",2);lt([a({type:Boolean,reflect:!0})],Z.prototype,"inverse",2);lt([a({type:Boolean,reflect:!0})],Z.prototype,"endIcon",2);lt([a({type:Boolean,reflect:!0})],Z.prototype,"reverseEndIcon",2);Z=lt([y("o-link")],Z);var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,Dt=(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
|
|
1121
|
+
`;lt([a({type:String})],Z.prototype,"href",2);lt([a({type:String})],Z.prototype,"target",2);lt([a({type:String,reflect:!0})],Z.prototype,"template",2);lt([a({type:Boolean,reflect:!0})],Z.prototype,"inverse",2);lt([a({type:Boolean,reflect:!0})],Z.prototype,"endIcon",2);lt([a({type:Boolean,reflect:!0})],Z.prototype,"reverseEndIcon",2);Z=lt([y("o-link")],Z);var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,Dt=(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 ut=class extends u{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let 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`
|
|
1122
1122
|
<div class="rating">
|
|
1123
1123
|
<div class="stars">
|
|
1124
|
-
${o.map(t=>l`<span class="star">${S(
|
|
1124
|
+
${o.map(t=>l`<span class="star">${S(et[t]??"")}</span>`)}
|
|
1125
1125
|
</div>
|
|
1126
1126
|
${this.reviewCount!=null&&this.href!=null?l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
|
|
1127
1127
|
</div>
|
|
1128
|
-
`}};
|
|
1128
|
+
`}};ut.styles=f`
|
|
1129
1129
|
svg {
|
|
1130
1130
|
width: 12px;
|
|
1131
1131
|
height: 12px;
|
|
@@ -1158,7 +1158,7 @@
|
|
|
1158
1158
|
text-decoration: underline;
|
|
1159
1159
|
cursor: pointer;
|
|
1160
1160
|
}
|
|
1161
|
-
`;Dt([a({type:Number})],
|
|
1161
|
+
`;Dt([a({type:Number})],ut.prototype,"rating",2);Dt([a({type:String})],ut.prototype,"reviewCount",2);Dt([a({type:String})],ut.prototype,"href",2);ut=Dt([y("o-rating")],ut);var oi=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ot=(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 F=class extends u{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
|
|
1162
1162
|
<o-icon-button
|
|
1163
1163
|
icon="playerv"
|
|
1164
1164
|
size="xsmall"
|
|
@@ -1291,7 +1291,7 @@
|
|
|
1291
1291
|
height: 0;
|
|
1292
1292
|
width: 0;
|
|
1293
1293
|
}
|
|
1294
|
-
`;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([
|
|
1294
|
+
`;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([y("thumbnail-navigation")],F);var ni=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,oe=(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 u{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
|
|
1295
1295
|
<p class="tag ${this.bgstyle}"><slot></slot></p>
|
|
1296
1296
|
`}};$t.styles=f`
|
|
1297
1297
|
.tag {
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
border-color: transparent var(--color-alpha-dark-strongest) transparent transparent;
|
|
1447
1447
|
}
|
|
1448
1448
|
|
|
1449
|
-
`;ie([a({type:String,reflect:!0})],kt.prototype,"type",2);ie([a({type:String,reflect:!0})],kt.prototype,"text",2);kt=ie([y("o-tooltip")],kt);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,
|
|
1449
|
+
`;ie([a({type:String,reflect:!0})],kt.prototype,"type",2);ie([a({type:String,reflect:!0})],kt.prototype,"text",2);kt=ie([y("o-tooltip")],kt);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,G=(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 T=class extends u{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=et.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1450
1450
|
<button
|
|
1451
1451
|
role="combobox"
|
|
1452
1452
|
aria-haspopup="listbox"
|
|
@@ -1632,7 +1632,7 @@
|
|
|
1632
1632
|
input[type="hidden"] {
|
|
1633
1633
|
display: none;
|
|
1634
1634
|
}
|
|
1635
|
-
`;
|
|
1635
|
+
`;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([y("o-dropdown")],T);var hi=Object.getOwnPropertyDescriptor,di=(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=s(i)||i);return i};let qt=class extends u{render(){return l` <span class="dots"></span> `}};qt.styles=f`
|
|
1636
1636
|
:host {
|
|
1637
1637
|
display: flex;
|
|
1638
1638
|
align-items: center;
|
|
@@ -1674,7 +1674,7 @@
|
|
|
1674
1674
|
:host([aria-current="true"]:active) .dots {
|
|
1675
1675
|
background-color: var(--color-container-action-primary-pressed);
|
|
1676
1676
|
}
|
|
1677
|
-
`;qt=di([y("o-dots")],qt);var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,U=(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 z=class extends u{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=
|
|
1677
|
+
`;qt=di([y("o-dots")],qt);var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,U=(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 z=class extends u{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=et.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1678
1678
|
<button
|
|
1679
1679
|
role="combobox"
|
|
1680
1680
|
aria-haspopup="listbox"
|
|
@@ -1912,11 +1912,11 @@
|
|
|
1912
1912
|
input[type="hidden"] {
|
|
1913
1913
|
display: none;
|
|
1914
1914
|
}
|
|
1915
|
-
`;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([
|
|
1915
|
+
`;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([y("o-dropdown-variant")],z);/**
|
|
1916
1916
|
* @license
|
|
1917
1917
|
* Copyright 2018 Google LLC
|
|
1918
1918
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1919
|
-
*/const Le="important",fi=" !"+Le,vi=te(class extends ee{constructor(o){var t;if(super(o),o.type!==Qt.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(fi);n.includes("-")||r?e.setProperty(n,r?i.slice(0,-11):i,r?Le:""):e[n]=i}}return
|
|
1919
|
+
*/const Le="important",fi=" !"+Le,vi=te(class extends ee{constructor(o){var t;if(super(o),o.type!==Qt.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(fi);n.includes("-")||r?e.setProperty(n,r?i.slice(0,-11):i,r?Le:""):e[n]=i}}return tt}});var gi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,ne=(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&&gi(t,e,i),i};let _t=class extends u{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`
|
|
1920
1920
|
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${P(n)}" aria-hidden="true" style=${vi(e)} />`:""}
|
|
1921
1921
|
<div class="m-reassurance-content">
|
|
1922
1922
|
<h3 class="a-reassurance-text">${P(n)}</h3>
|
|
@@ -2003,7 +2003,7 @@
|
|
|
2003
2003
|
-webkit-box-orient: vertical;
|
|
2004
2004
|
overflow: hidden;
|
|
2005
2005
|
}
|
|
2006
|
-
`;ne([a({type:Object,reflect:!0})],_t.prototype,"option",2);ne([a({type:Number,reflect:!0})],_t.prototype,"imageSize",2);_t=ne([y("o-reassurance")],_t);var yi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,
|
|
2006
|
+
`;ne([a({type:Object,reflect:!0})],_t.prototype,"option",2);ne([a({type:Number,reflect:!0})],_t.prototype,"imageSize",2);_t=ne([y("o-reassurance")],_t);var yi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,X=(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&&yi(t,e,i),i};const xi=Jt(u);let O=class extends xi{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`
|
|
2007
2007
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":d}"
|
|
2008
2008
|
aria-current="${this.selected?"true":d}">
|
|
2009
2009
|
${o?this.text:l`<slot></slot>`}
|
|
@@ -2106,7 +2106,7 @@
|
|
|
2106
2106
|
display: inline-flex;
|
|
2107
2107
|
align-items: center;
|
|
2108
2108
|
}
|
|
2109
|
-
`;
|
|
2109
|
+
`;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([y("o-chip")],O);var wi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,re=(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&&wi(t,e,i),i};let Ct=class extends u{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`
|
|
2110
2110
|
<slot></slot>
|
|
2111
2111
|
`}};Ct.styles=f`
|
|
2112
2112
|
:host {
|
|
@@ -2115,7 +2115,7 @@
|
|
|
2115
2115
|
flex-wrap: wrap;
|
|
2116
2116
|
gap: var(--spacing-s);
|
|
2117
2117
|
}
|
|
2118
|
-
`;re([a({reflect:!0})],Ct.prototype,"name",2);re([a({reflect:!0})],Ct.prototype,"value",2);Ct=re([y("o-chipset")],Ct);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,N=(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};const Ci=Jt(u);let I=class extends Ci{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=
|
|
2118
|
+
`;re([a({reflect:!0})],Ct.prototype,"name",2);re([a({reflect:!0})],Ct.prototype,"value",2);Ct=re([y("o-chipset")],Ct);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,N=(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};const Ci=Jt(u);let I=class extends Ci{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=et[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=Oo[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`
|
|
2119
2119
|
<a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
2120
2120
|
aria-label=${this.ariaLabel||d} aria-pressed=${this.selected}>
|
|
2121
2121
|
${o?l`
|
|
@@ -2411,11 +2411,11 @@
|
|
|
2411
2411
|
.fullpointer {
|
|
2412
2412
|
cursor: pointer;
|
|
2413
2413
|
}
|
|
2414
|
-
`;let E=ae;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 Ei=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Ht=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ai(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
|
|
2414
|
+
`;let E=ae;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 Ei=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Ht=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ai(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 ft=class extends u{constructor(){super(...arguments),this.variant="cart",this.text=0,this.srlabel=""}render(){return l`
|
|
2415
2415
|
<span class="badge">
|
|
2416
2416
|
${this.text?l`${this.text} <span class="sr-only">${this.srlabel}</span>`:l`<slot></slot>`}
|
|
2417
2417
|
</span>
|
|
2418
|
-
`}};
|
|
2418
|
+
`}};ft.styles=f`
|
|
2419
2419
|
:host([variant]) {
|
|
2420
2420
|
--badge-width: 19px;
|
|
2421
2421
|
display: inline-block;
|
|
@@ -2452,7 +2452,7 @@
|
|
|
2452
2452
|
.sr-only {
|
|
2453
2453
|
${Xt}
|
|
2454
2454
|
}
|
|
2455
|
-
`;Ht([a({type:String,reflect:!0})],
|
|
2455
|
+
`;Ht([a({type:String,reflect:!0})],ft.prototype,"variant",2);Ht([a({type:Number})],ft.prototype,"text",2);Ht([a({type:String})],ft.prototype,"srlabel",2);ft=Ht([y("o-badge")],ft);var Li=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,H=(o,t,e,n)=>{for(var i=n>1?void 0:n?Pi(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 A=class extends u{constructor(){super(...arguments),this.icon="info",this.text="Sample text",this.verticalanchor="top",this.horizontalanchor="right",this.verticaloffset=24,this.horizontaloffset=24,this.animationduration=500,this.animationaxis="horizontal",this.animated=!0,this.lifeduration=5e3,this.multiline=!1}attributeChangedCallback(o,t,e){super.attributeChangedCallback(o,t,e),o=="verticaloffset"&&this.style.setProperty("--vertical-offset",e+"px"),o=="horizontaloffset"&&this.style.setProperty("--horizontal-offset",e+"px"),o=="animationduration"&&this.style.setProperty("--animation-duration",e+"ms")}selfCloseAfterDelay(){var o=this;setTimeout(function(){o.animated=!0,o.selfClose()},this.lifeduration)}selfClose(){var o=this;setTimeout(function(){o.remove()},this.animationduration+200)}connectedCallback(){var o=this;super.connectedCallback(),setTimeout(()=>{o.animated=!1,this.selfCloseAfterDelay()},600)}firstUpdated(){var 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=Io[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`
|
|
2456
2456
|
<div class="o-toast">
|
|
2457
2457
|
<div class="o-toast-icon">
|
|
2458
2458
|
${S(t)}
|
|
@@ -2545,7 +2545,7 @@
|
|
|
2545
2545
|
.o-toast-icon {
|
|
2546
2546
|
height: 16px;
|
|
2547
2547
|
}
|
|
2548
|
-
`;H([a({type:String,reflect:!0})],A.prototype,"icon",2);H([a({type:String,reflect:!0})],A.prototype,"text",2);H([a({type:String,reflect:!0})],A.prototype,"verticalanchor",2);H([a({type:String,reflect:!0})],A.prototype,"horizontalanchor",2);H([a({type:Number,reflect:!0})],A.prototype,"verticaloffset",2);H([a({type:Number,reflect:!0})],A.prototype,"horizontaloffset",2);H([a({type:Number,reflect:!0})],A.prototype,"animationduration",2);H([a({type:String,reflect:!0})],A.prototype,"animationaxis",2);H([a({type:Boolean,reflect:!0})],A.prototype,"animated",2);H([a({type:Number,reflect:!0})],A.prototype,"lifeduration",2);H([a({type:Boolean,reflect:!0})],A.prototype,"multiline",2);A=H([y("o-toast")],A);var Bi=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,j=(o,t,e,n)=>{for(var i=n>1?void 0:n?zi(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 Oi=0,L=class extends u{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Checkbox",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-checkbox-${++Oi}`)}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(
|
|
2548
|
+
`;H([a({type:String,reflect:!0})],A.prototype,"icon",2);H([a({type:String,reflect:!0})],A.prototype,"text",2);H([a({type:String,reflect:!0})],A.prototype,"verticalanchor",2);H([a({type:String,reflect:!0})],A.prototype,"horizontalanchor",2);H([a({type:Number,reflect:!0})],A.prototype,"verticaloffset",2);H([a({type:Number,reflect:!0})],A.prototype,"horizontaloffset",2);H([a({type:Number,reflect:!0})],A.prototype,"animationduration",2);H([a({type:String,reflect:!0})],A.prototype,"animationaxis",2);H([a({type:Boolean,reflect:!0})],A.prototype,"animated",2);H([a({type:Number,reflect:!0})],A.prototype,"lifeduration",2);H([a({type:Boolean,reflect:!0})],A.prototype,"multiline",2);A=H([y("o-toast")],A);var Bi=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,j=(o,t,e,n)=>{for(var i=n>1?void 0:n?zi(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 Oi=0,L=class extends u{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Checkbox",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-checkbox-${++Oi}`)}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(et.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=S(et.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
|
|
2549
2549
|
<input
|
|
2550
2550
|
type="checkbox"
|
|
2551
2551
|
id=${this.inputId}
|
|
@@ -2828,7 +2828,7 @@
|
|
|
2828
2828
|
:host(.a--tabfocus) {
|
|
2829
2829
|
outline: none !important;
|
|
2830
2830
|
}
|
|
2831
|
-
`;se([a({type:String})],St.prototype,"href",2);se([a({type:Boolean,reflect:!0})],St.prototype,"active",2);St=se([y("o-breadcrumb")],St);var Ri=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,
|
|
2831
|
+
`;se([a({type:String})],St.prototype,"href",2);se([a({type:Boolean,reflect:!0})],St.prototype,"active",2);St=se([y("o-breadcrumb")],St);var Ri=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,ct=(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&&Ri(t,e,i),i};let K=class extends u{constructor(){super(...arguments),this.imageUrl="",this.imageAlt="",this.hoverUrl="",this.hoverAlt="",this.dimmed=!1,this.showHover=!1}render(){return l`<div class="card">
|
|
2832
2832
|
<svg aria-hidden="true">
|
|
2833
2833
|
<defs>
|
|
2834
2834
|
<clipPath id="arch-gift-finder" clipPathUnits="objectBoundingBox">
|
|
@@ -2839,7 +2839,7 @@
|
|
|
2839
2839
|
<img src="${this.imageUrl}" alt="${this.imageAlt}" class="card-img base" loading="lazy" />
|
|
2840
2840
|
${this.hoverUrl?l`<img src="${this.hoverUrl}" alt="${this.hoverAlt||this.imageAlt}" class="card-img hover" loading="lazy" />`:""}
|
|
2841
2841
|
<div class="overlay" part="overlay"></div>
|
|
2842
|
-
</div>`}};
|
|
2842
|
+
</div>`}};K.styles=f`
|
|
2843
2843
|
:host {
|
|
2844
2844
|
--card-width : 175px;
|
|
2845
2845
|
--card-height : 260px;
|
|
@@ -2886,6 +2886,18 @@
|
|
|
2886
2886
|
z-index: 2;
|
|
2887
2887
|
}
|
|
2888
2888
|
|
|
2889
|
+
.card-img.base {
|
|
2890
|
+
z-index: 1;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
:host([showhover]) .card-img.hover {
|
|
2894
|
+
opacity: 1;
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
:host([showhover]) .card-img.base {
|
|
2898
|
+
opacity: 0;
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2889
2901
|
@media (hover: hover) and (pointer: fine) {
|
|
2890
2902
|
.card:hover .card-img.hover {
|
|
2891
2903
|
opacity: 1;
|
|
@@ -2911,7 +2923,7 @@
|
|
|
2911
2923
|
:host([dimmed]) .overlay {
|
|
2912
2924
|
opacity: var(--overlay-opacity, 1);
|
|
2913
2925
|
}
|
|
2914
|
-
`;
|
|
2926
|
+
`;ct([a({type:String})],K.prototype,"imageUrl",2);ct([a({type:String})],K.prototype,"imageAlt",2);ct([a({type:String})],K.prototype,"hoverUrl",2);ct([a({type:String})],K.prototype,"hoverAlt",2);ct([a({type:Boolean,reflect:!0})],K.prototype,"dimmed",2);ct([a({type:Boolean,reflect:!0,attribute:"showhover"})],K.prototype,"showHover",2);K=ct([y("o-arch-image")],K);const Ni=`<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2915
2927
|
<svg
|
|
2916
2928
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
2917
2929
|
xmlns:cc="http://creativecommons.org/ns#"
|
|
@@ -3178,7 +3190,7 @@
|
|
|
3178
3190
|
from { transform: translateY(10px) scale(.98); opacity: 0; }
|
|
3179
3191
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
3180
3192
|
}
|
|
3181
|
-
`;let $=le;C([a({type:Boolean,reflect:!0})],$.prototype,"ispagedesigner",2);C([a({type:String,reflect:!0})],$.prototype,"classPopin",1);C([a({type:Boolean,reflect:!0})],$.prototype,"open",2);C([a({type:String,reflect:!0})],$.prototype,"background",2);C([a({type:String,attribute:"background-url",reflect:!0})],$.prototype,"backgroundUrl",2);C([a({type:Boolean,attribute:"close-on-esc"})],$.prototype,"closeOnEsc",2);C([a({type:Boolean,attribute:"close-on-backdrop"})],$.prototype,"closeOnBackdrop",2);C([a({type:Boolean,attribute:"lock-scroll"})],$.prototype,"lockScroll",2);C([a({type:String,reflect:!0})],$.prototype,"variant",2);C([a({type:String,attribute:"max-width"})],$.prototype,"maxWidth",2);C([a({type:Boolean,reflect:!0})],$.prototype,"showBackButton",2);C([a({type:Boolean,reflect:!0})],$.prototype,"contrast",2);C([a({type:String,reflect:!0})],$.prototype,"iconSize",2);C([a({type:Boolean,attribute:"hide-header-on-scroll"})],$.prototype,"hideHeaderOnScroll",2);C([
|
|
3193
|
+
`;let $=le;C([a({type:Boolean,reflect:!0})],$.prototype,"ispagedesigner",2);C([a({type:String,reflect:!0})],$.prototype,"classPopin",1);C([a({type:Boolean,reflect:!0})],$.prototype,"open",2);C([a({type:String,reflect:!0})],$.prototype,"background",2);C([a({type:String,attribute:"background-url",reflect:!0})],$.prototype,"backgroundUrl",2);C([a({type:Boolean,attribute:"close-on-esc"})],$.prototype,"closeOnEsc",2);C([a({type:Boolean,attribute:"close-on-backdrop"})],$.prototype,"closeOnBackdrop",2);C([a({type:Boolean,attribute:"lock-scroll"})],$.prototype,"lockScroll",2);C([a({type:String,reflect:!0})],$.prototype,"variant",2);C([a({type:String,attribute:"max-width"})],$.prototype,"maxWidth",2);C([a({type:Boolean,reflect:!0})],$.prototype,"showBackButton",2);C([a({type:Boolean,reflect:!0})],$.prototype,"contrast",2);C([a({type:String,reflect:!0})],$.prototype,"iconSize",2);C([a({type:Boolean,attribute:"hide-header-on-scroll"})],$.prototype,"hideHeaderOnScroll",2);C([W()],$.prototype,"_labelId",2);C([W()],$.prototype,"_headerHidden",2);customElements.define("o-popin",$);var Zi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,k=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ki(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&&Zi(t,e,i),i};let x=class extends u{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.outOfStockText="Out of stock",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`
|
|
3182
3194
|
<o-icon-button
|
|
3183
3195
|
@click=${this.onClickIcons}
|
|
3184
3196
|
icon=${this.type==="notifyme"?"notifyme":"cart"}
|
package/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ const Pe = (o) => new we(typeof o == "string" ? o : o + "", void 0, Kt), f = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: ze, defineProperty: Oe, getOwnPropertyDescriptor: Ie, getOwnPropertyNames: De, getOwnPropertySymbols: He, getPrototypeOf: Te } = Object,
|
|
48
|
+
const { is: ze, defineProperty: Oe, getOwnPropertyDescriptor: Ie, getOwnPropertyNames: De, getOwnPropertySymbols: He, getPrototypeOf: Te } = Object, Q = globalThis, de = Q.trustedTypes, Me = de ? de.emptyScript : "", Tt = Q.reactiveElementPolyfillSupport, gt = (o, t) => o, Pt = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
o = o ? Me : null;
|
|
@@ -74,8 +74,8 @@ const { is: ze, defineProperty: Oe, getOwnPropertyDescriptor: Ie, getOwnProperty
|
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
} }, Wt = (o, t) => !ze(o, t), pe = { attribute: !0, type: String, converter: Pt, reflect: !1, useDefault: !1, hasChanged: Wt };
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Q.litPropertyMetadata ?? (Q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let ht = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
81
81
|
}
|
|
@@ -276,15 +276,15 @@ let ct = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
|
|
279
|
+
ht.elementStyles = [], ht.shadowRootOptions = { mode: "open" }, ht[gt("elementProperties")] = /* @__PURE__ */ new Map(), ht[gt("finalized")] = /* @__PURE__ */ new Map(), Tt == null || Tt({ ReactiveElement: ht }), (Q.reactiveElementVersions ?? (Q.reactiveElementVersions = [])).push("2.1.0");
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const bt = globalThis, Bt = bt.trustedTypes, ue = Bt ? Bt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, $e = "$lit$",
|
|
285
|
+
const bt = globalThis, Bt = bt.trustedTypes, ue = Bt ? Bt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, $e = "$lit$", J = `lit$${Math.random().toFixed(9).slice(2)}$`, ke = "?" + J, je = `<${ke}>`, st = document, mt = () => st.createComment(""), xt = (o) => o === null || typeof o != "object" && typeof o != "function", Gt = Array.isArray, Fe = (o) => Gt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Mt = `[
|
|
286
286
|
\f\r]`, vt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, fe = /-->/g, ve = />/g, it = RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ge = /'/g, be = /"/g, _e = /^(?:script|style|textarea|title)$/i, Re = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Re(1),
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ge = /'/g, be = /"/g, _e = /^(?:script|style|textarea|title)$/i, Re = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Re(1), tt = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), ye = /* @__PURE__ */ new WeakMap(), nt = st.createTreeWalker(st, 129);
|
|
288
288
|
function Ce(o, t) {
|
|
289
289
|
if (!Gt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return ue !== void 0 ? ue.createHTML(t) : t;
|
|
@@ -296,8 +296,8 @@ const Ue = (o, t) => {
|
|
|
296
296
|
const h = o[c];
|
|
297
297
|
let v, w, g = -1, V = 0;
|
|
298
298
|
for (; V < h.length && (s.lastIndex = V, w = s.exec(h), w !== null); ) V = s.lastIndex, s === vt ? w[1] === "!--" ? s = fe : w[1] !== void 0 ? s = ve : w[2] !== void 0 ? (_e.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = it) : w[3] !== void 0 && (s = it) : s === it ? w[0] === ">" ? (s = i ?? vt, g = -1) : w[1] === void 0 ? g = -2 : (g = s.lastIndex - w[2].length, v = w[1], s = w[3] === void 0 ? it : w[3] === '"' ? be : ge) : s === be || s === ge ? s = it : s === fe || s === ve ? s = vt : (s = it, i = void 0);
|
|
299
|
-
const
|
|
300
|
-
r += s === vt ? h + je : g >= 0 ? (n.push(v), h.slice(0, g) + $e + h.slice(g) +
|
|
299
|
+
const Y = s === it && o[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
r += s === vt ? h + je : g >= 0 ? (n.push(v), h.slice(0, g) + $e + h.slice(g) + J + Y) : h + J + (g === -2 ? c : Y);
|
|
301
301
|
}
|
|
302
302
|
return [Ce(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
@@ -314,21 +314,21 @@ class wt {
|
|
|
314
314
|
for (; (i = nt.nextNode()) !== null && h.length < c; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const g of i.getAttributeNames()) if (g.endsWith($e)) {
|
|
317
|
-
const V = w[s++],
|
|
318
|
-
h.push({ type: 1, index: r, name: At[2], strings:
|
|
319
|
-
} else g.startsWith(
|
|
317
|
+
const V = w[s++], Y = i.getAttribute(g).split(J), At = /([.?@])?(.*)/.exec(V);
|
|
318
|
+
h.push({ type: 1, index: r, name: At[2], strings: Y, ctor: At[1] === "." ? qe : At[1] === "?" ? Ve : At[1] === "@" ? Ze : Ot }), i.removeAttribute(g);
|
|
319
|
+
} else g.startsWith(J) && (h.push({ type: 6, index: r }), i.removeAttribute(g));
|
|
320
320
|
if (_e.test(i.tagName)) {
|
|
321
|
-
const g = i.textContent.split(
|
|
321
|
+
const g = i.textContent.split(J), V = g.length - 1;
|
|
322
322
|
if (V > 0) {
|
|
323
323
|
i.textContent = Bt ? Bt.emptyScript : "";
|
|
324
|
-
for (let
|
|
324
|
+
for (let Y = 0; Y < V; Y++) i.append(g[Y], mt()), nt.nextNode(), h.push({ type: 2, index: ++r });
|
|
325
325
|
i.append(g[V], mt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
} else if (i.nodeType === 8) if (i.data === ke) h.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let g = -1;
|
|
331
|
-
for (; (g = i.data.indexOf(
|
|
331
|
+
for (; (g = i.data.indexOf(J, g + 1)) !== -1; ) h.push({ type: 7, index: r }), g += J.length - 1;
|
|
332
332
|
}
|
|
333
333
|
r++;
|
|
334
334
|
}
|
|
@@ -338,12 +338,12 @@ class wt {
|
|
|
338
338
|
return n.innerHTML = t, n;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function dt(o, t, e = o, n) {
|
|
342
342
|
var s, c;
|
|
343
|
-
if (t ===
|
|
343
|
+
if (t === tt) return t;
|
|
344
344
|
let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
345
345
|
const r = xt(t) ? void 0 : t._$litDirective$;
|
|
346
|
-
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 =
|
|
346
|
+
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 = dt(o, i._$AS(o, t.values), i, n)), t;
|
|
347
347
|
}
|
|
348
348
|
class Ne {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -393,7 +393,7 @@ class Et {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t =
|
|
396
|
+
t = dt(this, t, e), xt(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) : Fe(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -449,11 +449,11 @@ class Ot {
|
|
|
449
449
|
_$AI(t, e = this, n, i) {
|
|
450
450
|
const r = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (r === void 0) t =
|
|
452
|
+
if (r === void 0) t = dt(this, t, e, 0), s = !xt(t) || t !== this._$AH && t !== tt, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const c = t;
|
|
455
455
|
let h, v;
|
|
456
|
-
for (t = r[0], h = 0; h < r.length - 1; h++) v =
|
|
456
|
+
for (t = r[0], h = 0; h < r.length - 1; h++) v = dt(this, c[n + h], e, h), v === tt && (v = this._$AH[h]), s || (s = !xt(v) || v !== this._$AH[h]), v === d ? t = d : t !== d && (t += (v ?? "") + r[h + 1]), this._$AH[h] = v;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -482,7 +482,7 @@ class Ze extends Ot {
|
|
|
482
482
|
super(t, e, n, i, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t =
|
|
485
|
+
if ((t = dt(this, t, e, 0) ?? d) === tt) return;
|
|
486
486
|
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);
|
|
487
487
|
i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
@@ -499,7 +499,7 @@ class Ke {
|
|
|
499
499
|
return this._$AM._$AU;
|
|
500
500
|
}
|
|
501
501
|
_$AI(t) {
|
|
502
|
-
|
|
502
|
+
dt(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
const jt = bt.litHtmlPolyfillSupport;
|
|
@@ -519,7 +519,7 @@ const We = (o, t, e) => {
|
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
521
|
const rt = globalThis;
|
|
522
|
-
let u = class extends
|
|
522
|
+
let u = class extends ht {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -541,7 +541,7 @@ let u = class extends ct {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return tt;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var xe;
|
|
@@ -596,7 +596,7 @@ function a(o) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
function
|
|
599
|
+
function W(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
602
|
/**
|
|
@@ -831,7 +831,7 @@ const Qe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
831
831
|
pixelSize: n,
|
|
832
832
|
shouldApplyLogicalSize: i
|
|
833
833
|
};
|
|
834
|
-
},
|
|
834
|
+
}, et = Ee, Oo = {
|
|
835
835
|
strikeDiagonal: $o
|
|
836
836
|
}, Io = {
|
|
837
837
|
success: _o,
|
|
@@ -871,7 +871,7 @@ class Ut extends ee {
|
|
|
871
871
|
}
|
|
872
872
|
render(t) {
|
|
873
873
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
874
|
-
if (t ===
|
|
874
|
+
if (t === tt) return t;
|
|
875
875
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
876
876
|
if (t === this.it) return this._t;
|
|
877
877
|
this.it = t;
|
|
@@ -1978,7 +1978,7 @@ let m = class extends Go {
|
|
|
1978
1978
|
renderIcon(o) {
|
|
1979
1979
|
const t = o === "start" ? this.startIconModel : this.endIconModel;
|
|
1980
1980
|
if (!t) return d;
|
|
1981
|
-
const e =
|
|
1981
|
+
const e = et[t].replace(
|
|
1982
1982
|
"<svg",
|
|
1983
1983
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1984
1984
|
);
|
|
@@ -2290,7 +2290,7 @@ var Xo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, It = (o, t
|
|
|
2290
2290
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2291
2291
|
return n && i && Xo(t, e, i), i;
|
|
2292
2292
|
};
|
|
2293
|
-
let
|
|
2293
|
+
let pt = class extends u {
|
|
2294
2294
|
constructor() {
|
|
2295
2295
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
2296
2296
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -2310,7 +2310,7 @@ let dt = class extends u {
|
|
|
2310
2310
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
|
|
2311
2311
|
}
|
|
2312
2312
|
render() {
|
|
2313
|
-
const o =
|
|
2313
|
+
const o = et.wishlist.replace(
|
|
2314
2314
|
"<svg",
|
|
2315
2315
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2316
2316
|
);
|
|
@@ -2331,7 +2331,7 @@ let dt = class extends u {
|
|
|
2331
2331
|
this.label = o, this.requestUpdate();
|
|
2332
2332
|
}
|
|
2333
2333
|
};
|
|
2334
|
-
|
|
2334
|
+
pt.styles = f`
|
|
2335
2335
|
:host {
|
|
2336
2336
|
display: inline-flex;
|
|
2337
2337
|
justify-content: center;
|
|
@@ -2388,16 +2388,16 @@ dt.styles = f`
|
|
|
2388
2388
|
`;
|
|
2389
2389
|
It([
|
|
2390
2390
|
a({ type: String, reflect: !0 })
|
|
2391
|
-
],
|
|
2391
|
+
], pt.prototype, "status", 2);
|
|
2392
2392
|
It([
|
|
2393
2393
|
a({ type: String, reflect: !0 })
|
|
2394
|
-
],
|
|
2394
|
+
], pt.prototype, "ariaDescribedBy", 2);
|
|
2395
2395
|
It([
|
|
2396
2396
|
a({ type: String, reflect: !0 })
|
|
2397
|
-
],
|
|
2398
|
-
|
|
2397
|
+
], pt.prototype, "label", 2);
|
|
2398
|
+
pt = It([
|
|
2399
2399
|
y("o-wishlist-button")
|
|
2400
|
-
],
|
|
2400
|
+
], pt);
|
|
2401
2401
|
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, lt = (o, t, e, n) => {
|
|
2402
2402
|
for (var i = n > 1 ? void 0 : n ? Qo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2403
2403
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -2557,7 +2557,7 @@ var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Dt = (o, t
|
|
|
2557
2557
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2558
2558
|
return n && i && ti(t, e, i), i;
|
|
2559
2559
|
};
|
|
2560
|
-
let
|
|
2560
|
+
let ut = class extends u {
|
|
2561
2561
|
constructor() {
|
|
2562
2562
|
super(...arguments), this.rating = 0;
|
|
2563
2563
|
}
|
|
@@ -2576,7 +2576,7 @@ let pt = class extends u {
|
|
|
2576
2576
|
<div class="rating">
|
|
2577
2577
|
<div class="stars">
|
|
2578
2578
|
${o.map(
|
|
2579
|
-
(t) => l`<span class="star">${S(
|
|
2579
|
+
(t) => l`<span class="star">${S(et[t] ?? "")}</span>`
|
|
2580
2580
|
)}
|
|
2581
2581
|
</div>
|
|
2582
2582
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -2584,7 +2584,7 @@ let pt = class extends u {
|
|
|
2584
2584
|
`;
|
|
2585
2585
|
}
|
|
2586
2586
|
};
|
|
2587
|
-
|
|
2587
|
+
ut.styles = f`
|
|
2588
2588
|
svg {
|
|
2589
2589
|
width: 12px;
|
|
2590
2590
|
height: 12px;
|
|
@@ -2620,16 +2620,16 @@ pt.styles = f`
|
|
|
2620
2620
|
`;
|
|
2621
2621
|
Dt([
|
|
2622
2622
|
a({ type: Number })
|
|
2623
|
-
],
|
|
2623
|
+
], ut.prototype, "rating", 2);
|
|
2624
2624
|
Dt([
|
|
2625
2625
|
a({ type: String })
|
|
2626
|
-
],
|
|
2626
|
+
], ut.prototype, "reviewCount", 2);
|
|
2627
2627
|
Dt([
|
|
2628
2628
|
a({ type: String })
|
|
2629
|
-
],
|
|
2630
|
-
|
|
2629
|
+
], ut.prototype, "href", 2);
|
|
2630
|
+
ut = Dt([
|
|
2631
2631
|
y("o-rating")
|
|
2632
|
-
],
|
|
2632
|
+
], ut);
|
|
2633
2633
|
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, ot = (o, t, e, n) => {
|
|
2634
2634
|
for (var i = n > 1 ? void 0 : n ? ii(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2635
2635
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -2850,7 +2850,7 @@ ot([
|
|
|
2850
2850
|
a({ type: Object })
|
|
2851
2851
|
], F.prototype, "swiperInstance", 2);
|
|
2852
2852
|
ot([
|
|
2853
|
-
|
|
2853
|
+
W()
|
|
2854
2854
|
], F.prototype, "focusedIndex", 2);
|
|
2855
2855
|
F = ot([
|
|
2856
2856
|
y("thumbnail-navigation")
|
|
@@ -3056,7 +3056,7 @@ ie([
|
|
|
3056
3056
|
kt = ie([
|
|
3057
3057
|
y("o-tooltip")
|
|
3058
3058
|
], kt);
|
|
3059
|
-
var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor,
|
|
3059
|
+
var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, G = (o, t, e, n) => {
|
|
3060
3060
|
for (var i = n > 1 ? void 0 : n ? ci(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3061
3061
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3062
3062
|
return n && i && li(t, e, i), i;
|
|
@@ -3127,7 +3127,7 @@ let T = class extends u {
|
|
|
3127
3127
|
this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
|
|
3128
3128
|
}
|
|
3129
3129
|
render() {
|
|
3130
|
-
const o =
|
|
3130
|
+
const o = et.checkstroke.replace(
|
|
3131
3131
|
"<svg",
|
|
3132
3132
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3133
3133
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3323,31 +3323,31 @@ T.styles = f`
|
|
|
3323
3323
|
display: none;
|
|
3324
3324
|
}
|
|
3325
3325
|
`;
|
|
3326
|
-
|
|
3326
|
+
G([
|
|
3327
3327
|
a({ type: Array, reflect: !0 })
|
|
3328
3328
|
], T.prototype, "options", 2);
|
|
3329
|
-
|
|
3329
|
+
G([
|
|
3330
3330
|
a({ type: String, reflect: !0 })
|
|
3331
3331
|
], T.prototype, "value", 2);
|
|
3332
|
-
|
|
3332
|
+
G([
|
|
3333
3333
|
a({ type: String, reflect: !0 })
|
|
3334
3334
|
], T.prototype, "name", 2);
|
|
3335
|
-
|
|
3335
|
+
G([
|
|
3336
3336
|
a({ type: Boolean, reflect: !0 })
|
|
3337
3337
|
], T.prototype, "disabled", 2);
|
|
3338
|
-
|
|
3338
|
+
G([
|
|
3339
3339
|
a({ type: String, reflect: !0 })
|
|
3340
3340
|
], T.prototype, "width", 2);
|
|
3341
|
-
|
|
3342
|
-
|
|
3341
|
+
G([
|
|
3342
|
+
W()
|
|
3343
3343
|
], T.prototype, "open", 2);
|
|
3344
|
-
|
|
3345
|
-
|
|
3344
|
+
G([
|
|
3345
|
+
W()
|
|
3346
3346
|
], T.prototype, "activeIndex", 2);
|
|
3347
|
-
|
|
3348
|
-
|
|
3347
|
+
G([
|
|
3348
|
+
W()
|
|
3349
3349
|
], T.prototype, "menuWidth", 2);
|
|
3350
|
-
T =
|
|
3350
|
+
T = G([
|
|
3351
3351
|
y("o-dropdown")
|
|
3352
3352
|
], T);
|
|
3353
3353
|
var hi = Object.getOwnPropertyDescriptor, di = (o, t, e, n) => {
|
|
@@ -3477,7 +3477,7 @@ let z = class extends u {
|
|
|
3477
3477
|
this.options.length > 0 && (this.options.some((t) => t.value === this.value) || (this.value = this.options[0].value));
|
|
3478
3478
|
}
|
|
3479
3479
|
render() {
|
|
3480
|
-
const o =
|
|
3480
|
+
const o = et.checkstroke.replace(
|
|
3481
3481
|
"<svg",
|
|
3482
3482
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3483
3483
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3744,13 +3744,13 @@ U([
|
|
|
3744
3744
|
a({ type: String, reflect: !0 })
|
|
3745
3745
|
], z.prototype, "width", 2);
|
|
3746
3746
|
U([
|
|
3747
|
-
|
|
3747
|
+
W()
|
|
3748
3748
|
], z.prototype, "open", 2);
|
|
3749
3749
|
U([
|
|
3750
|
-
|
|
3750
|
+
W()
|
|
3751
3751
|
], z.prototype, "activeIndex", 2);
|
|
3752
3752
|
U([
|
|
3753
|
-
|
|
3753
|
+
W()
|
|
3754
3754
|
], z.prototype, "menuWidth", 2);
|
|
3755
3755
|
z = U([
|
|
3756
3756
|
y("o-dropdown-variant")
|
|
@@ -3783,7 +3783,7 @@ const Le = "important", fi = " !" + Le, vi = te(class extends ee {
|
|
|
3783
3783
|
n.includes("-") || r ? e.setProperty(n, r ? i.slice(0, -11) : i, r ? Le : "") : e[n] = i;
|
|
3784
3784
|
}
|
|
3785
3785
|
}
|
|
3786
|
-
return
|
|
3786
|
+
return tt;
|
|
3787
3787
|
}
|
|
3788
3788
|
});
|
|
3789
3789
|
var gi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, ne = (o, t, e, n) => {
|
|
@@ -3903,7 +3903,7 @@ ne([
|
|
|
3903
3903
|
_t = ne([
|
|
3904
3904
|
y("o-reassurance")
|
|
3905
3905
|
], _t);
|
|
3906
|
-
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor,
|
|
3906
|
+
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, X = (o, t, e, n) => {
|
|
3907
3907
|
for (var i = n > 1 ? void 0 : n ? mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3908
3908
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3909
3909
|
return n && i && yi(t, e, i), i;
|
|
@@ -4027,31 +4027,31 @@ O.styles = f`
|
|
|
4027
4027
|
align-items: center;
|
|
4028
4028
|
}
|
|
4029
4029
|
`;
|
|
4030
|
-
|
|
4030
|
+
X([
|
|
4031
4031
|
a({ type: String, reflect: !0 })
|
|
4032
4032
|
], O.prototype, "link", 2);
|
|
4033
|
-
|
|
4033
|
+
X([
|
|
4034
4034
|
a({ reflect: !0 })
|
|
4035
4035
|
], O.prototype, "name", 2);
|
|
4036
|
-
|
|
4036
|
+
X([
|
|
4037
4037
|
a({ reflect: !0 })
|
|
4038
4038
|
], O.prototype, "value", 2);
|
|
4039
|
-
|
|
4039
|
+
X([
|
|
4040
4040
|
a({ type: String })
|
|
4041
4041
|
], O.prototype, "text", 2);
|
|
4042
|
-
|
|
4042
|
+
X([
|
|
4043
4043
|
a({ type: String, reflect: !0 })
|
|
4044
4044
|
], O.prototype, "size", 2);
|
|
4045
|
-
|
|
4045
|
+
X([
|
|
4046
4046
|
a({ type: Boolean, reflect: !0 })
|
|
4047
4047
|
], O.prototype, "selected", 2);
|
|
4048
|
-
|
|
4048
|
+
X([
|
|
4049
4049
|
a({ type: Boolean, reflect: !0 })
|
|
4050
4050
|
], O.prototype, "fullwidth", 2);
|
|
4051
|
-
|
|
4051
|
+
X([
|
|
4052
4052
|
a({ type: Boolean, reflect: !0 })
|
|
4053
4053
|
], O.prototype, "inactive", 2);
|
|
4054
|
-
O =
|
|
4054
|
+
O = X([
|
|
4055
4055
|
y("o-chip")
|
|
4056
4056
|
], O);
|
|
4057
4057
|
var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, re = (o, t, e, n) => {
|
|
@@ -4110,7 +4110,7 @@ let I = class extends Ci {
|
|
|
4110
4110
|
this.dispatchEvent(e), e.defaultPrevented && o.preventDefault(), this.selected = t.selected;
|
|
4111
4111
|
}
|
|
4112
4112
|
crossIcon() {
|
|
4113
|
-
const o =
|
|
4113
|
+
const o = et[this.crossIconName].replace(
|
|
4114
4114
|
"<svg",
|
|
4115
4115
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
4116
4116
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
@@ -4525,7 +4525,7 @@ var Ei = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, Ht = (o, t
|
|
|
4525
4525
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4526
4526
|
return n && i && Ei(t, e, i), i;
|
|
4527
4527
|
};
|
|
4528
|
-
let
|
|
4528
|
+
let ft = class extends u {
|
|
4529
4529
|
constructor() {
|
|
4530
4530
|
super(...arguments), this.variant = "cart", this.text = 0, this.srlabel = "";
|
|
4531
4531
|
}
|
|
@@ -4537,7 +4537,7 @@ let ut = class extends u {
|
|
|
4537
4537
|
`;
|
|
4538
4538
|
}
|
|
4539
4539
|
};
|
|
4540
|
-
|
|
4540
|
+
ft.styles = f`
|
|
4541
4541
|
:host([variant]) {
|
|
4542
4542
|
--badge-width: 19px;
|
|
4543
4543
|
display: inline-block;
|
|
@@ -4577,16 +4577,16 @@ ut.styles = f`
|
|
|
4577
4577
|
`;
|
|
4578
4578
|
Ht([
|
|
4579
4579
|
a({ type: String, reflect: !0 })
|
|
4580
|
-
],
|
|
4580
|
+
], ft.prototype, "variant", 2);
|
|
4581
4581
|
Ht([
|
|
4582
4582
|
a({ type: Number })
|
|
4583
|
-
],
|
|
4583
|
+
], ft.prototype, "text", 2);
|
|
4584
4584
|
Ht([
|
|
4585
4585
|
a({ type: String })
|
|
4586
|
-
],
|
|
4587
|
-
|
|
4586
|
+
], ft.prototype, "srlabel", 2);
|
|
4587
|
+
ft = Ht([
|
|
4588
4588
|
y("o-badge")
|
|
4589
|
-
],
|
|
4589
|
+
], ft);
|
|
4590
4590
|
var Li = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
|
|
4591
4591
|
for (var i = n > 1 ? void 0 : n ? Pi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4592
4592
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -4792,7 +4792,7 @@ let Oi = 0, L = class extends u {
|
|
|
4792
4792
|
this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
|
|
4793
4793
|
}
|
|
4794
4794
|
render() {
|
|
4795
|
-
const o = S(
|
|
4795
|
+
const o = S(et.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = S(et.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
|
|
4796
4796
|
return l`
|
|
4797
4797
|
<input
|
|
4798
4798
|
type="checkbox"
|
|
@@ -5218,14 +5218,14 @@ se([
|
|
|
5218
5218
|
St = se([
|
|
5219
5219
|
y("o-breadcrumb")
|
|
5220
5220
|
], St);
|
|
5221
|
-
var Ri = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor,
|
|
5221
|
+
var Ri = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, ct = (o, t, e, n) => {
|
|
5222
5222
|
for (var i = n > 1 ? void 0 : n ? Ui(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5223
5223
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5224
5224
|
return n && i && Ri(t, e, i), i;
|
|
5225
5225
|
};
|
|
5226
|
-
let
|
|
5226
|
+
let K = class extends u {
|
|
5227
5227
|
constructor() {
|
|
5228
|
-
super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "", this.dimmed = !1;
|
|
5228
|
+
super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "", this.dimmed = !1, this.showHover = !1;
|
|
5229
5229
|
}
|
|
5230
5230
|
render() {
|
|
5231
5231
|
return l`<div class="card">
|
|
@@ -5242,7 +5242,7 @@ let et = class extends u {
|
|
|
5242
5242
|
</div>`;
|
|
5243
5243
|
}
|
|
5244
5244
|
};
|
|
5245
|
-
|
|
5245
|
+
K.styles = f`
|
|
5246
5246
|
:host {
|
|
5247
5247
|
--card-width : 175px;
|
|
5248
5248
|
--card-height : 260px;
|
|
@@ -5289,6 +5289,18 @@ et.styles = f`
|
|
|
5289
5289
|
z-index: 2;
|
|
5290
5290
|
}
|
|
5291
5291
|
|
|
5292
|
+
.card-img.base {
|
|
5293
|
+
z-index: 1;
|
|
5294
|
+
}
|
|
5295
|
+
|
|
5296
|
+
:host([showhover]) .card-img.hover {
|
|
5297
|
+
opacity: 1;
|
|
5298
|
+
}
|
|
5299
|
+
|
|
5300
|
+
:host([showhover]) .card-img.base {
|
|
5301
|
+
opacity: 0;
|
|
5302
|
+
}
|
|
5303
|
+
|
|
5292
5304
|
@media (hover: hover) and (pointer: fine) {
|
|
5293
5305
|
.card:hover .card-img.hover {
|
|
5294
5306
|
opacity: 1;
|
|
@@ -5315,24 +5327,27 @@ et.styles = f`
|
|
|
5315
5327
|
opacity: var(--overlay-opacity, 1);
|
|
5316
5328
|
}
|
|
5317
5329
|
`;
|
|
5318
|
-
|
|
5330
|
+
ct([
|
|
5319
5331
|
a({ type: String })
|
|
5320
|
-
],
|
|
5321
|
-
|
|
5332
|
+
], K.prototype, "imageUrl", 2);
|
|
5333
|
+
ct([
|
|
5322
5334
|
a({ type: String })
|
|
5323
|
-
],
|
|
5324
|
-
|
|
5335
|
+
], K.prototype, "imageAlt", 2);
|
|
5336
|
+
ct([
|
|
5325
5337
|
a({ type: String })
|
|
5326
|
-
],
|
|
5327
|
-
|
|
5338
|
+
], K.prototype, "hoverUrl", 2);
|
|
5339
|
+
ct([
|
|
5328
5340
|
a({ type: String })
|
|
5329
|
-
],
|
|
5330
|
-
|
|
5341
|
+
], K.prototype, "hoverAlt", 2);
|
|
5342
|
+
ct([
|
|
5331
5343
|
a({ type: Boolean, reflect: !0 })
|
|
5332
|
-
],
|
|
5333
|
-
|
|
5344
|
+
], K.prototype, "dimmed", 2);
|
|
5345
|
+
ct([
|
|
5346
|
+
a({ type: Boolean, reflect: !0, attribute: "showhover" })
|
|
5347
|
+
], K.prototype, "showHover", 2);
|
|
5348
|
+
K = ct([
|
|
5334
5349
|
y("o-arch-image")
|
|
5335
|
-
],
|
|
5350
|
+
], K);
|
|
5336
5351
|
const Ni = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
5337
5352
|
<svg
|
|
5338
5353
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
@@ -5728,10 +5743,10 @@ C([
|
|
|
5728
5743
|
a({ type: Boolean, attribute: "hide-header-on-scroll" })
|
|
5729
5744
|
], $.prototype, "hideHeaderOnScroll", 2);
|
|
5730
5745
|
C([
|
|
5731
|
-
|
|
5746
|
+
W()
|
|
5732
5747
|
], $.prototype, "_labelId", 2);
|
|
5733
5748
|
C([
|
|
5734
|
-
|
|
5749
|
+
W()
|
|
5735
5750
|
], $.prototype, "_headerHidden", 2);
|
|
5736
5751
|
customElements.define("o-popin", $);
|
|
5737
5752
|
var Zi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, k = (o, t, e, n) => {
|