@florid-kit/components 0.10.27 → 0.10.28
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/button.d.ts +1 -0
- package/index.js +27 -27
- package/index.mjs +81 -78
- package/package.json +1 -1
package/components/button.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare class OccitaneButton extends buttonBaseClass implements FormSubmi
|
|
|
26
26
|
target: "_blank" | "_self" | "_top" | "_parent" | "";
|
|
27
27
|
underlined: boolean;
|
|
28
28
|
withbadge: boolean;
|
|
29
|
+
hideRoleButton: boolean;
|
|
29
30
|
private handleClick;
|
|
30
31
|
protected render(): import('lit').TemplateResult<1>;
|
|
31
32
|
private renderIcon;
|
package/index.js
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:Be,defineProperty:Pe,getOwnPropertyDescriptor:ze,getOwnPropertyNames:Oe,getOwnPropertySymbols:Ie,getPrototypeOf:De}=Object,Q=globalThis,he=Q.trustedTypes,He=he?he.emptyScript:"",Ht=Q.reactiveElementPolyfillSupport,vt=(o,t)=>o,Bt={toAttribute(o,t){switch(t){case Boolean:o=o?He:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Kt=(o,t)=>!Be(o,t),de={attribute:!0,type:String,converter:Bt,reflect:!1,useDefault:!1,hasChanged:Kt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Q.litPropertyMetadata??(Q.litPropertyMetadata=new WeakMap);let ct=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=de){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);i!==void 0&&Pe(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=ze(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:i,set(s){const c=i==null?void 0:i.call(this);r==null||r.call(this,s),this.requestUpdate(t,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??de}static _$Ei(){if(this.hasOwnProperty(vt("elementProperties")))return;const t=De(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vt("properties"))){const e=this.properties,n=[...Oe(e),...Ie(e)];for(const i of n)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,i]of e)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const i=this._$Eu(e,n);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const i of n)e.unshift(ce(i))}else t!==void 0&&e.push(ce(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Le(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var 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:Bt).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:Bt;this._$Em=i,this[i]=h.fromAttribute(e,c.type)??((s=this._$Ej)==null?void 0:s.get(i))??null,this._$Em=null}}requestUpdate(t,e,n){var i;if(t!==void 0){const r=this.constructor,s=this[t];if(n??(n=r.getPropertyOptions(t)),!((n.hasChanged??Kt)(s,e)||n.useDefault&&n.reflect&&s===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(r._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:i,wrapped:r},s){n&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),r!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[r,s]of i){const{wrapped:c}=s,h=this[r];c!==!0||this._$AL.has(r)||h===void 0||this.C(r,void 0,s,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostUpdate)==null?void 0:r.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[vt("elementProperties")]=new Map,ct[vt("finalized")]=new Map,Ht==null||Ht({ReactiveElement:ct}),(Q.reactiveElementVersions??(Q.reactiveElementVersions=[])).push("2.1.0");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const gt=globalThis,
|
|
13
|
+
*/const gt=globalThis,Pt=gt.trustedTypes,pe=Pt?Pt.createPolicy("lit-html",{createHTML:o=>o}):void 0,we="$lit$",J=`lit$${Math.random().toFixed(9).slice(2)}$`,$e="?"+J,Te=`<${$e}>`,st=document,yt=()=>st.createComment(""),mt=o=>o===null||typeof o!="object"&&typeof o!="function",Wt=Array.isArray,Me=o=>Wt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Tt=`[
|
|
14
14
|
\f\r]`,ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ue=/-->/g,fe=/>/g,it=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,ge=/"/g,ke=/^(?:script|style|textarea|title)$/i,je=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=je(1),tt=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),be=new WeakMap,nt=st.createTreeWalker(st,129);function _e(o,t){if(!Wt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return pe!==void 0?pe.createHTML(t):t}const Fe=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=ft;for(let c=0;c<e;c++){const h=o[c];let f,x,g=-1,V=0;for(;V<h.length&&(s.lastIndex=V,x=s.exec(h),x!==null);)V=s.lastIndex,s===ft?x[1]==="!--"?s=ue:x[1]!==void 0?s=fe:x[2]!==void 0?(ke.test(x[2])&&(i=RegExp("</"+x[2],"g")),s=it):x[3]!==void 0&&(s=it):s===it?x[0]===">"?(s=i??ft,g=-1):x[1]===void 0?g=-2:(g=s.lastIndex-x[2].length,f=x[1],s=x[3]===void 0?it:x[3]==='"'?ge:ve):s===ge||s===ve?s=it:s===ue||s===fe?s=ft:(s=it,i=void 0);const Y=s===it&&o[c+1].startsWith("/>")?" ":"";r+=s===ft?h+Te:g>=0?(n.push(f),h.slice(0,g)+we+h.slice(g)+J+Y):h+J+(g===-2?c:Y)}return[_e(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class xt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,h=this.parts,[f,x]=Fe(t,e);if(this.el=xt.createElement(f,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(we)){const V=x[s++],Y=i.getAttribute(g).split(J),At=/([.?@])?(.*)/.exec(V);h.push({type:1,index:r,name:At[2],strings:Y,ctor:At[1]==="."?Ue:At[1]==="?"?Ne:At[1]==="@"?qe:Ot}),i.removeAttribute(g)}else g.startsWith(J)&&(h.push({type:6,index:r}),i.removeAttribute(g));if(ke.test(i.tagName)){const g=i.textContent.split(J),V=g.length-1;if(V>0){i.textContent=
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,ge=/"/g,ke=/^(?:script|style|textarea|title)$/i,je=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=je(1),tt=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),be=new WeakMap,nt=st.createTreeWalker(st,129);function _e(o,t){if(!Wt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return pe!==void 0?pe.createHTML(t):t}const Fe=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=ft;for(let c=0;c<e;c++){const h=o[c];let f,x,g=-1,V=0;for(;V<h.length&&(s.lastIndex=V,x=s.exec(h),x!==null);)V=s.lastIndex,s===ft?x[1]==="!--"?s=ue:x[1]!==void 0?s=fe:x[2]!==void 0?(ke.test(x[2])&&(i=RegExp("</"+x[2],"g")),s=it):x[3]!==void 0&&(s=it):s===it?x[0]===">"?(s=i??ft,g=-1):x[1]===void 0?g=-2:(g=s.lastIndex-x[2].length,f=x[1],s=x[3]===void 0?it:x[3]==='"'?ge:ve):s===ge||s===ve?s=it:s===ue||s===fe?s=ft:(s=it,i=void 0);const Y=s===it&&o[c+1].startsWith("/>")?" ":"";r+=s===ft?h+Te:g>=0?(n.push(f),h.slice(0,g)+we+h.slice(g)+J+Y):h+J+(g===-2?c:Y)}return[_e(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class xt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,h=this.parts,[f,x]=Fe(t,e);if(this.el=xt.createElement(f,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(we)){const V=x[s++],Y=i.getAttribute(g).split(J),At=/([.?@])?(.*)/.exec(V);h.push({type:1,index:r,name:At[2],strings:Y,ctor:At[1]==="."?Ue:At[1]==="?"?Ne:At[1]==="@"?qe:Ot}),i.removeAttribute(g)}else g.startsWith(J)&&(h.push({type:6,index:r}),i.removeAttribute(g));if(ke.test(i.tagName)){const g=i.textContent.split(J),V=g.length-1;if(V>0){i.textContent=Pt?Pt.emptyScript:"";for(let Y=0;Y<V;Y++)i.append(g[Y],yt()),nt.nextNode(),h.push({type:2,index:++r});i.append(g[V],yt())}}}else if(i.nodeType===8)if(i.data===$e)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 ht(o,t,e=o,n){var s,c;if(t===tt)return t;let i=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=mt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=i:e._$Cl=i),i!==void 0&&(t=ht(o,i._$AS(o,t.values),i,n)),t}class Re{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,i=((t==null?void 0:t.creationScope)??st).importNode(e,!0);nt.currentNode=i;let r=nt.nextNode(),s=0,c=0,h=n[0];for(;h!==void 0;){if(s===h.index){let f;h.type===2?f=new Et(r,r.nextSibling,this,t):h.type===1?f=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(f=new Ve(r,this,t)),this._$AV.push(f),h=n[++c]}s!==(h==null?void 0:h.index)&&(r=nt.nextNode(),s++)}return nt.currentNode=st,i}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class Et{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ht(this,t,e),mt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==tt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Me(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&mt(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=xt.createElement(_e(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{const s=new Re(i,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=be.get(t.strings);return e===void 0&&be.set(t.strings,e=new xt(t)),e}k(t){Wt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new Et(this.O(yt()),this.O(yt()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(t,e=this,n,i){const r=this.strings;let s=!1;if(r===void 0)t=ht(this,t,e,0),s=!mt(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{const c=t;let h,f;for(t=r[0],h=0;h<r.length-1;h++)f=ht(this,c[n+h],e,h),f===tt&&(f=this._$AH[h]),s||(s=!mt(f)||f!==this._$AH[h]),f===d?t=d:t!==d&&(t+=(f??"")+r[h+1]),this._$AH[h]=f}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ue extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Ne extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class qe extends Ot{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=ht(this,t,e,0)??d)===tt)return;const n=this._$AH,i=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==d&&(n===d||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Ve{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}}const Mt=gt.litHtmlPolyfillSupport;Mt==null||Mt(xt,Et),(gt.litHtmlVersions??(gt.litHtmlVersions=[])).push("3.3.0");const Ze=(o,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let i=n._$litPart$;if(i===void 0){const r=(e==null?void 0:e.renderBefore)??null;n._$litPart$=i=new Et(t.insertBefore(yt(),r),r,void 0,e??{})}return i._$AI(o),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const Ke={attribute:!0,type:String,converter:
|
|
27
|
+
*/const Ke={attribute:!0,type:String,converter:Bt,reflect:!1,hasChanged:Kt},We=(o=Ke,t,e)=>{const{kind:n,metadata:i}=e;let r=globalThis.litPropertyMetadata.get(i);if(r===void 0&&globalThis.litPropertyMetadata.set(i,r=new Map),n==="setter"&&((o=Object.create(o)).wrapped=!0),r.set(e.name,o),n==="accessor"){const{name:s}=e;return{set(c){const h=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,h,o)},init(c){return c!==void 0&&this.C(s,void 0,o,c),c}}}if(n==="setter"){const{name:s}=e;return function(c){const h=this[s];t.call(this,c),this.requestUpdate(s,h,o)}}throw Error("Unsupported decorator location: "+n)};function a(o){return(t,e)=>typeof e=="object"?We(o,t,e):((n,i,r)=>{const s=i.hasOwnProperty(r);return i.constructor.createProperty(r,n),s?Object.getOwnPropertyDescriptor(i,r):void 0})(o,t,e)}/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
`,Ao=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
153
153
|
<path d="M11.5 8L4.5 13L4.5 3L11.5 8Z" fill="#3F2B2E"/>
|
|
154
154
|
</svg>
|
|
155
|
-
`,Z={wishlist:Ye,playerv:Je,chevronRight:Qe,chevronLeft:to,icoPlus:lo,icoMinus:co,"star-0":eo,"star-25":oo,"star-50":io,"star-75":no,"star-100":ro,cross:so,search:ao,arrowLeft:ho,arrowTop:po,cart:uo,notifyme:fo,triangledown:vo,triangleup:go,checkstroke:bo,pause:yo,mapDualArrow:mo,swipeDualArrow:wo,backToBag:Co,checkbox:So,sliderLeftArrow:Eo,sliderRightArrow:Ao},Lo={strikeDiagonal:xo},
|
|
155
|
+
`,Z={wishlist:Ye,playerv:Je,chevronRight:Qe,chevronLeft:to,icoPlus:lo,icoMinus:co,"star-0":eo,"star-25":oo,"star-50":io,"star-75":no,"star-100":ro,cross:so,search:ao,arrowLeft:ho,arrowTop:po,cart:uo,notifyme:fo,triangledown:vo,triangleup:go,checkstroke:bo,pause:yo,mapDualArrow:mo,swipeDualArrow:wo,backToBag:Co,checkbox:So,sliderLeftArrow:Eo,sliderRightArrow:Ao},Lo={strikeDiagonal:xo},Bo={success:$o,error:ko,info:_o};/**
|
|
156
156
|
* @license
|
|
157
157
|
* Copyright 2017 Google LLC
|
|
158
158
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -168,15 +168,15 @@
|
|
|
168
168
|
* @license
|
|
169
169
|
* Copyright 2020 Google LLC
|
|
170
170
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
171
|
-
*/const
|
|
171
|
+
*/const Po=o=>o.strings===void 0;/**
|
|
172
172
|
* @license
|
|
173
173
|
* Copyright 2017 Google LLC
|
|
174
174
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
175
|
-
*/const bt=(o,t)=>{var n;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(n=i._$AO)==null||n.call(i,t,!1),bt(i,t);return!0},zt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Se=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Io(t)}};function zo(o){this._$AN!==void 0?(zt(this),this._$AM=o,Se(this)):this._$AM=o}function Oo(o,t=!1,e=0){const n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let r=e;r<n.length;r++)bt(n[r],!1),zt(n[r]);else n!=null&&(bt(n,!1),zt(n));else bt(this,o)}const Io=o=>{o.type==Yt.CHILD&&(o._$AP??(o._$AP=Oo),o._$AQ??(o._$AQ=zo))};class Do extends Qt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Se(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,i;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(i=this.disconnected)==null||i.call(this)),e&&(bt(this,t),zt(this))}setValue(t){if(
|
|
175
|
+
*/const bt=(o,t)=>{var n;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(n=i._$AO)==null||n.call(i,t,!1),bt(i,t);return!0},zt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Se=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Io(t)}};function zo(o){this._$AN!==void 0?(zt(this),this._$AM=o,Se(this)):this._$AM=o}function Oo(o,t=!1,e=0){const n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let r=e;r<n.length;r++)bt(n[r],!1),zt(n[r]);else n!=null&&(bt(n,!1),zt(n));else bt(this,o)}const Io=o=>{o.type==Yt.CHILD&&(o._$AP??(o._$AP=Oo),o._$AQ??(o._$AQ=zo))};class Do extends Qt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Se(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,i;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(i=this.disconnected)==null||i.call(this)),e&&(bt(this,t),zt(this))}setValue(t){if(Po(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Ho extends Do{constructor(){super(...arguments),this.prevData={}}render(t){return d}update(t,[e]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(e),this.groom(e),this.prevData={...e}}apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];r!==e[i]&&(n[i]=r)}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&(n[i]=void 0)}}class To extends Ho{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const e in t){const n=t[e];n!==this.eventData[e]&&this.applyEvent(e,n)}}applyEvent(t,e){const{prevData:n,element:i}=this;this.eventData[t]=e,n[t]&&i.removeEventListener(t,this,e),i.addEventListener(t,this,e)}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&this.groomEvent(i,e[i])}groomEvent(t,e){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,e)}handleEvent(t){const e=this.eventData[t.type];typeof e=="function"?e.call(this.host,t):e.handleEvent(t)}disconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.removeEventListener(i,this,r)}}reconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.addEventListener(i,this,r)}}}class Mo extends To{apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];if(r===e[i])continue;const s=i.slice(1);switch(i[0]){case"@":this.eventData[s]=r,this.applyEvent(s,r);break;case".":n[s]=r;break;case"?":r?n.setAttribute(s,""):n.removeAttribute(s);break;default:r!=null?n.setAttribute(i,String(r)):n.removeAttribute(i);break}}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e){const r=i.slice(1);if(!t||!(i in t)&&n[r]===e[i])switch(i[0]){case"@":this.groomEvent(r,e[i]);break;case".":n[r]=void 0;break;case"?":n.removeAttribute(r);break;default:n.removeAttribute(i);break}}}}const ye=Jt(Mo);/**
|
|
176
176
|
* @license
|
|
177
177
|
* Copyright 2018 Google LLC
|
|
178
178
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
179
|
-
*/const
|
|
179
|
+
*/const B=o=>o??d;var jo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,R=(o,t,e,n)=>{for(var i=n>1?void 0:n?Fo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&jo(t,e,i),i};let P=class extends u{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="wishlist",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const o=Z[this.icon]??"",t=`icon-${this.icon}`,e=o.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"'),n=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,i=this.showSrLabel?null:"icon";return l`
|
|
180
180
|
${this.type==="span"?l`
|
|
181
181
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
182
182
|
${S(e)}
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
`:l`
|
|
185
185
|
<button
|
|
186
186
|
type="button"
|
|
187
|
-
aria-label=${
|
|
187
|
+
aria-label=${B(i)}
|
|
188
188
|
aria-describedby=${this.getAttribute("aria-describedby")||d}
|
|
189
189
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
190
190
|
?disabled="${this.disabled}"
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
${n}
|
|
194
194
|
</button>
|
|
195
195
|
`}
|
|
196
|
-
`}};
|
|
196
|
+
`}};P.styles=v`
|
|
197
197
|
:host {
|
|
198
198
|
display: inline-flex;
|
|
199
199
|
justify-content: center;
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
.sr-only {
|
|
376
376
|
display: none;
|
|
377
377
|
}
|
|
378
|
-
`;R([a({type:String,reflect:!0})],
|
|
378
|
+
`;R([a({type:String,reflect:!0})],P.prototype,"bgstyle",2);R([a({type:String,reflect:!0})],P.prototype,"size",2);R([a({type:String,reflect:!0})],P.prototype,"status",2);R([a({type:String,reflect:!0})],P.prototype,"type",2);R([a({type:String})],P.prototype,"strokewidth",2);R([a({type:String})],P.prototype,"icon",2);R([a({type:Boolean,reflect:!0})],P.prototype,"disabled",2);R([a({type:Boolean})],P.prototype,"showSrLabel",2);R([a({type:String})],P.prototype,"srLabel",2);P=R([b("o-icon-button")],P);var Ro=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,y=(o,t,e,n)=>{for(var i=n>1?void 0:n?Uo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ro(t,e,i),i};let p=class extends u{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.labelDialog="",this.addToBagProductCount="",this.closeButtonLabel="Close the modal",this.goBackButtonLabel="Go back to",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.firstButtonProps={},this.onFirstButtonClickClose=!1,this.secondButtonLabel="",this.secondButtonVariant="secondary",this.secondButtonProps={},this.onSecondButtonClickClose=!1,this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.showDetail=!1,this.isHidingDetail=!1,this.previousFocusedElement=null,this.previousFocusedSelector=null,this._onOpenDetail=async o=>{var e,n;const t=((e=o.detail)==null?void 0:e.origin)??document.activeElement;if(this._detailOriginEl=t,this._detailOriginClass=(t==null?void 0:t.className)??"",this.showDetail=!0,this.showHeaderStartIcon=!0,await this.updateComplete,this._detailOriginClass){const i=(n=this.shadowRoot)==null?void 0:n.querySelector(".detail-view");i&&i.setAttribute("fromelement",this._detailOriginClass)}await this.focusDetailReturnBtn()},this._detailOriginEl=null,this._detailOriginClass="",this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))},this.handleClosePanel=o=>{if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;o.preventDefault(),o.stopPropagation();const t=o.currentTarget,e=(t==null?void 0:t.getAttribute("data-role"))==="back";if(this.showDetail&&e){this.isHidingDetail=!0;const n=this.renderRoot.querySelector(".content"),i=async()=>{this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1,await this.updateComplete,this._restoreFocusToOrigin()};if(n){this.showHeaderStartIcon=!1;const r=()=>{this.showDetail=!1,this.isHidingDetail=!1,n.removeEventListener("animationend",r),i()};n.addEventListener("animationend",r)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}focusFirstInPanel(){var t,e,n;(n=this.getFocusableElements().map(i=>this.resolveFocusable(i)).filter(i=>!!i&&!i.hasAttribute("disabled"))[0]??((t=this.shadowRoot)==null?void 0:t.querySelector(".close-btn"))??((e=this.shadowRoot)==null?void 0:e.querySelector(".panel")))==null||n.focus({preventScroll:!0})}resolveFocusable(o){var e;const t=o.tagName.toLowerCase();return t==="o-icon-button"||t==="o-button"?((e=o.shadowRoot)==null?void 0:e.querySelector("button, .button"))??o:o}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),this.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0}),this.addEventListener("open-detail",this._onOpenDetail),this.addEventListener("focusin",o=>{o.composedPath()[0]===this&&this.focusFirstInPanel()})}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback(),this.removeEventListener("open-detail",this._onOpenDetail)}async focusDetailReturnBtn(){var i,r,s,c,h;await this.updateComplete;const o=this.getDeepActiveElement(document);if(o&&o!==document.body)try{o.blur()}catch{}await new Promise(requestAnimationFrame);const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".detail-view .return-btn");if(!t)return;t.updateComplete&&await t.updateComplete,(c=(s=((r=t.shadowRoot)==null?void 0:r.querySelector("button"))??t)==null?void 0:s.focus)==null||c.call(s,{preventScroll:!0});const n=(h=this.shadowRoot)==null?void 0:h.querySelector('.panel[role="dialog"]');n&&n.setAttribute("aria-label",this.headerTitle)}_restoreFocusToOrigin(){var t,e;const o=this._detailOriginEl;!o||!document.contains(o)||((e=(t=document.activeElement)==null?void 0:t.blur)==null||e.call(t),requestAnimationFrame(()=>{var i;o.classList.add("a--tabfocus"),(((i=o.shadowRoot)==null?void 0:i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??o).focus({preventScroll:!0})}))}getDeepActiveElement(o=this.shadowRoot){let t=o.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(o){var r;if(o.key!=="Tab")return;const t=this.shadowRoot;if(!t)return;const e=this.getDeepActiveElement();if(this.showDetail){const s=t.querySelector(".detail-view .return-btn"),c=t.querySelector(".detail-view .close-btn"),h=s?this.resolveFocusable(s):null,f=c?this.resolveFocusable(c):null;if(o.shiftKey&&h&&e===h&&f){o.preventDefault(),o.stopPropagation(),f.focus({preventScroll:!0});return}if(!o.shiftKey&&f&&e===f){o.preventDefault(),o.stopPropagation(),(((r=t.querySelector(".detail-scroller"))==null?void 0:r.querySelector(p.focusablesSelector))??h??f).focus({preventScroll:!0});return}}if(document.querySelector("#refineandsortpopin")){const s=t.querySelector(".close-btn"),c=s?this.resolveFocusable(s):null,h=t.querySelector(".js-clear-refinements"),f=h?this.resolveFocusable(h):null,x=g=>{o.preventDefault(),o.stopPropagation(),g.focus()};if(c&&f){if(!o.shiftKey&&e===f)return x(c);if(o.shiftKey&&e===c)return x(f)}}const i=this.renderRoot.querySelector(".close-btn");if(!o.shiftKey&&i&&i.contains(e)){o.preventDefault();const s=this.renderRoot.querySelector(".o-whats-inside--content p");s==null||s.focus()}}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");if(!o)return[];function t(i){return!(i.disabled||i.hasAttribute("disabled")||i.hasAttribute("tabindex")&&i.getAttribute("tabindex")==="-1")}function e(i){var s;const r=[i.matches(p.focusablesSelector)?i:[]];if(!["o-icon-button","o-button"].includes(i.tagName.toLowerCase())){const c=Array.from(i instanceof HTMLSlotElement?i.assignedElements({flatten:!0}):[]).filter(t).flatMap(e),h=Array.from(((s=i.shadowRoot)==null?void 0:s.querySelectorAll("*"))||[]).filter(t).flatMap(e);r.push(...c,...h)}return r.flat()}return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e)}openPanel(){var t;this.removeAttribute("hidden"),this.getBoundingClientRect(),this.previousFocusedElement=document.activeElement,this.previousFocusedSelector=(t=this.previousFocusedElement)==null?void 0:t.getAttribute("paneltarget"),this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open");const o=this.renderRoot.querySelector(".panel");o&&o.setAttribute("aria-modal","true"),this.updateComplete.then(()=>{var e,n;if(this.showHeader){const i=(e=this.shadowRoot)==null?void 0:e.querySelector(".panel .close-btn"),r=this.resolveFocusable(i);(n=r==null?void 0:r.focus)==null||n.call(r,{preventScroll:!0})}else this.focusFirstInPanel()}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var e,n,i;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel");let o=this.previousFocusedElement;o!=null&&o.isConnected||(o=document.querySelector(`[paneltarget="${this.previousFocusedSelector}"]`)),(o==null?void 0:o.tagName.toLowerCase())==="o-button"?(i=(n=(e=o.shadowRoot)==null?void 0:e.querySelector(".button"))==null?void 0:n.focus)==null||i.call(n):o==null||o.focus();const t=this.renderRoot.querySelector(".panel");t&&t.removeAttribute("aria-modal"),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("firstbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:o.target}})))}handleSecondClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("secondbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:o.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`),this.open||setTimeout(()=>{this.setAttribute("hidden","hidden")},500)}render(){const o=this.showHeader?l`
|
|
379
379
|
<div tabindex="-1" class="header ${this.showDetail?"detail-view-header":""}">
|
|
380
380
|
${this.showHeaderStartIcon?l`
|
|
381
381
|
<o-icon-button
|
|
@@ -697,7 +697,7 @@
|
|
|
697
697
|
overflow: auto;
|
|
698
698
|
box-sizing: border-box;
|
|
699
699
|
}
|
|
700
|
-
`;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};y([a({type:Boolean,reflect:!0})],p.prototype,"open",2);y([a({type:Boolean,reflect:!0})],p.prototype,"showHeader",2);y([a({type:Boolean,reflect:!0})],p.prototype,"showFooter",2);y([a({type:Boolean,reflect:!0})],p.prototype,"showHeaderStartIcon",2);y([a({type:String,reflect:!0})],p.prototype,"headerTitle",2);y([a({type:String,reflect:!0})],p.prototype,"headerTitleClassName",2);y([a({type:String,reflect:!0})],p.prototype,"labelDialog",2);y([a({type:String,reflect:!0})],p.prototype,"addToBagProductCount",2);y([a({type:String,reflect:!0})],p.prototype,"closeButtonLabel",2);y([a({type:String,reflect:!0})],p.prototype,"goBackButtonLabel",2);y([a({type:String,reflect:!0})],p.prototype,"firstButtonLabel",2);y([a({type:String,reflect:!0})],p.prototype,"firstButtonVariant",2);y([a({type:Object,reflect:!0})],p.prototype,"firstButtonProps",2);y([a({type:Boolean,reflect:!0})],p.prototype,"onFirstButtonClickClose",2);y([a({type:String,reflect:!0})],p.prototype,"secondButtonLabel",2);y([a({type:String,reflect:!0})],p.prototype,"secondButtonVariant",2);y([a({type:Object,reflect:!0})],p.prototype,"secondButtonProps",2);y([a({type:Boolean,reflect:!0})],p.prototype,"onSecondButtonClickClose",2);y([a({type:Boolean,reflect:!0})],p.prototype,"disablePortal",2);y([a({type:Number,reflect:!0})],p.prototype,"zIndex",2);y([a({type:Boolean,reflect:!0})],p.prototype,"initialized",2);y([a({type:Boolean})],p.prototype,"showDetail",2);y([a({type:Boolean})],p.prototype,"isHidingDetail",2);p=y([b("o-side-panel")],p);var No=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,
|
|
700
|
+
`;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};y([a({type:Boolean,reflect:!0})],p.prototype,"open",2);y([a({type:Boolean,reflect:!0})],p.prototype,"showHeader",2);y([a({type:Boolean,reflect:!0})],p.prototype,"showFooter",2);y([a({type:Boolean,reflect:!0})],p.prototype,"showHeaderStartIcon",2);y([a({type:String,reflect:!0})],p.prototype,"headerTitle",2);y([a({type:String,reflect:!0})],p.prototype,"headerTitleClassName",2);y([a({type:String,reflect:!0})],p.prototype,"labelDialog",2);y([a({type:String,reflect:!0})],p.prototype,"addToBagProductCount",2);y([a({type:String,reflect:!0})],p.prototype,"closeButtonLabel",2);y([a({type:String,reflect:!0})],p.prototype,"goBackButtonLabel",2);y([a({type:String,reflect:!0})],p.prototype,"firstButtonLabel",2);y([a({type:String,reflect:!0})],p.prototype,"firstButtonVariant",2);y([a({type:Object,reflect:!0})],p.prototype,"firstButtonProps",2);y([a({type:Boolean,reflect:!0})],p.prototype,"onFirstButtonClickClose",2);y([a({type:String,reflect:!0})],p.prototype,"secondButtonLabel",2);y([a({type:String,reflect:!0})],p.prototype,"secondButtonVariant",2);y([a({type:Object,reflect:!0})],p.prototype,"secondButtonProps",2);y([a({type:Boolean,reflect:!0})],p.prototype,"onSecondButtonClickClose",2);y([a({type:Boolean,reflect:!0})],p.prototype,"disablePortal",2);y([a({type:Number,reflect:!0})],p.prototype,"zIndex",2);y([a({type:Boolean,reflect:!0})],p.prototype,"initialized",2);y([a({type:Boolean})],p.prototype,"showDetail",2);y([a({type:Boolean})],p.prototype,"isHidingDetail",2);p=y([b("o-side-panel")],p);var No=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,k=(o,t,e,n)=>{for(var i=n>1?void 0:n?qo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&No(t,e,i),i};const Vo=Xt(u);let m=class extends Vo{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target="",this.underlined=!1,this.withbadge=!1,this.hideRoleButton=!1}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Gt].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof 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=Z[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${S(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
|
|
701
701
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
702
702
|
aria-describedby=${this.getAttribute("aria-describedby")||d} >
|
|
703
703
|
${this.startIcon?this.renderIcon("start"):d}
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
target=${this.target||d}
|
|
715
715
|
class="button"
|
|
716
716
|
?disabled=${this.disabled}
|
|
717
|
-
role
|
|
717
|
+
role=${this.hideRoleButton?d:"button"}
|
|
718
718
|
@click=${this.handleClick}
|
|
719
719
|
@keydown=${this.handleClick}
|
|
720
720
|
aria-describedby=${this.getAttribute("aria-describedby")||d}
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
933
933
|
transform: translateX(4px);
|
|
934
934
|
}
|
|
935
|
-
`;
|
|
935
|
+
`;k([a()],m.prototype,"type",2);k([a()],m.prototype,"value",2);k([a({type:String,reflect:!0})],m.prototype,"variant",2);k([a({type:String})],m.prototype,"text",2);k([a({type:String})],m.prototype,"textsecond",2);k([a({type:Boolean,reflect:!0})],m.prototype,"fullwidth",2);k([a({type:Boolean,reflect:!0})],m.prototype,"disabled",2);k([a({type:String})],m.prototype,"startIconModel",2);k([a({type:String})],m.prototype,"endIconModel",2);k([a({type:Boolean,reflect:!0,attribute:"starticon"})],m.prototype,"startIcon",2);k([a({type:Boolean,reflect:!0,attribute:"endicon"})],m.prototype,"endIcon",2);k([a({type:String,attribute:"paneltarget"})],m.prototype,"panelTarget",2);k([a({type:String})],m.prototype,"href",2);k([a({type:String})],m.prototype,"target",2);k([a({type:Boolean,reflect:!0})],m.prototype,"underlined",2);k([a({type:Boolean,reflect:!0})],m.prototype,"withbadge",2);k([a({type:Boolean,reflect:!0})],m.prototype,"hideRoleButton",2);m=k([b("o-button")],m);var Zo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,It=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ko(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Zo(t,e,i),i};let dt=class extends 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=Z.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
|
|
936
936
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
937
937
|
<span class="sr-only">${this.label}</span>
|
|
938
938
|
${S(o)}
|
|
@@ -1004,7 +1004,7 @@
|
|
|
1004
1004
|
`;It([a({type:String,reflect:!0})],dt.prototype,"status",2);It([a({type:String,reflect:!0})],dt.prototype,"ariaDescribedBy",2);It([a({type:String,reflect:!0})],dt.prototype,"label",2);dt=It([b("o-wishlist-button")],dt);var Wo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,lt=(o,t,e,n)=>{for(var i=n>1?void 0:n?Go(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Wo(t,e,i),i};let K=class extends 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||"#";return l`
|
|
1005
1005
|
<a
|
|
1006
1006
|
href="${o}"
|
|
1007
|
-
target="${
|
|
1007
|
+
target="${B(this.target||void 0)}"
|
|
1008
1008
|
@click="${this._handleClick}"
|
|
1009
1009
|
>
|
|
1010
1010
|
${this.endIcon&&this.reverseEndIcon?l`
|
|
@@ -1684,7 +1684,7 @@
|
|
|
1684
1684
|
?disabled=${this.disabled}
|
|
1685
1685
|
class="btn-dropdown"
|
|
1686
1686
|
>
|
|
1687
|
-
<img alt="${
|
|
1687
|
+
<img alt="${B(t==null?void 0:t.label)}" src="${B(t==null?void 0:t.imgurl)}" />
|
|
1688
1688
|
<span id="dropdown-label" class="label">
|
|
1689
1689
|
${t?t.label:"Select an option"}
|
|
1690
1690
|
</span>
|
|
@@ -1718,11 +1718,11 @@
|
|
|
1718
1718
|
class="${n===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
|
|
1719
1719
|
@click=${()=>this.selectOption(e)}
|
|
1720
1720
|
>
|
|
1721
|
-
<a href="${
|
|
1722
|
-
<img alt="${
|
|
1721
|
+
<a href="${B(e.url)}">
|
|
1722
|
+
<img alt="${B(e.label)}" src="${B(e.imgurl)}" />
|
|
1723
1723
|
<span class="label">${e.label}</span>
|
|
1724
1724
|
<div class="right">
|
|
1725
|
-
<span class="additional-text">${
|
|
1725
|
+
<span class="additional-text">${B(e.additionaltext)}</span>
|
|
1726
1726
|
${e.value===this.value&&!e.additionaltext?l`
|
|
1727
1727
|
<span class="check">${S(o)}</span>`:null}
|
|
1728
1728
|
</div>
|
|
@@ -1912,12 +1912,12 @@
|
|
|
1912
1912
|
* Copyright 2018 Google LLC
|
|
1913
1913
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1914
1914
|
*/const Ee="important",hi=" !"+Ee,di=Jt(class extends Qt{constructor(o){var t;if(super(o),o.type!==Yt.ATTRIBUTE||o.name!=="style"||((t=o.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{const n=o[e];return n==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[t]){const{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?e.removeProperty(n):e[n]=null);for(const n in t){const i=t[n];if(i!=null){this.ft.add(n);const r=typeof i=="string"&&i.endsWith(hi);n.includes("-")||r?e.setProperty(n,r?i.slice(0,-11):i,r?Ee:""):e[n]=i}}return tt}});var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,oe=(o,t,e,n)=>{for(var i=n>1?void 0:n?ui(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&pi(t,e,i),i};let kt=class extends 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`
|
|
1915
|
-
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${
|
|
1915
|
+
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${B(n)}" aria-hidden="true" style=${di(e)} />`:""}
|
|
1916
1916
|
<div class="m-reassurance-content">
|
|
1917
|
-
<h3 class="a-reassurance-text">${
|
|
1918
|
-
<p class="a-reassurance-description">${
|
|
1917
|
+
<h3 class="a-reassurance-text">${B(n)}</h3>
|
|
1918
|
+
<p class="a-reassurance-description">${B(i)}</p>
|
|
1919
1919
|
</div>
|
|
1920
|
-
`;return t?l`<a href="${
|
|
1920
|
+
`;return t?l`<a href="${B(this.option.url)}" class="reassurance-item clickable">${r}</a>`:l`<div class="reassurance-item">${r}</div>`}};kt.styles=v`
|
|
1921
1921
|
:host {
|
|
1922
1922
|
display: inline-block;
|
|
1923
1923
|
position: relative;
|
|
@@ -2444,7 +2444,7 @@
|
|
|
2444
2444
|
color: var(--text-color);
|
|
2445
2445
|
}
|
|
2446
2446
|
|
|
2447
|
-
`;ne([a({type:String,reflect:!0})],Ct.prototype,"variant",2);ne([a({type:String})],Ct.prototype,"text",2);Ct=ne([b("o-badge")],Ct);var Ci=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,H=(o,t,e,n)=>{for(var i=n>1?void 0:n?Si(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ci(t,e,i),i};let 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=
|
|
2447
|
+
`;ne([a({type:String,reflect:!0})],Ct.prototype,"variant",2);ne([a({type:String})],Ct.prototype,"text",2);Ct=ne([b("o-badge")],Ct);var Ci=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,H=(o,t,e,n)=>{for(var i=n>1?void 0:n?Si(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ci(t,e,i),i};let 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=Bo[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`
|
|
2448
2448
|
<div class="o-toast">
|
|
2449
2449
|
<div class="o-toast-icon">
|
|
2450
2450
|
${S(t)}
|
|
@@ -2655,7 +2655,7 @@
|
|
|
2655
2655
|
svg path {
|
|
2656
2656
|
stroke: var(--color-border-white);
|
|
2657
2657
|
}
|
|
2658
|
-
`;j([a({type:Boolean,reflect:!0})],L.prototype,"checked",2);j([a({type:Boolean,reflect:!0})],L.prototype,"indeterminate",2);j([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);j([a({type:String,reflect:!0})],L.prototype,"size",2);j([a({type:Boolean})],L.prototype,"showLabel",2);j([a({type:String})],L.prototype,"label",2);j([a({type:String})],L.prototype,"name",2);j([a({type:String})],L.prototype,"value",2);j([a({type:String,reflect:!0})],L.prototype,"inputId",2);j([Ce("input")],L.prototype,"inputEl",2);L=j([b("o-checkbox")],L);var
|
|
2658
|
+
`;j([a({type:Boolean,reflect:!0})],L.prototype,"checked",2);j([a({type:Boolean,reflect:!0})],L.prototype,"indeterminate",2);j([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);j([a({type:String,reflect:!0})],L.prototype,"size",2);j([a({type:Boolean})],L.prototype,"showLabel",2);j([a({type:String})],L.prototype,"label",2);j([a({type:String})],L.prototype,"name",2);j([a({type:String})],L.prototype,"value",2);j([a({type:String,reflect:!0})],L.prototype,"inputId",2);j([Ce("input")],L.prototype,"inputEl",2);L=j([b("o-checkbox")],L);var Bi=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,q=(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&&Bi(t,e,i),i};let zi=0,D=class extends u{constructor(){super(),this.checked=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Radio button",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-radio-${++zi}`)}handleClick(){this.disabled||this.checked||(this.checked=!0,this.syncInput(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){this.inputEl&&(this.inputEl.checked=this.checked)}updated(o){if(o.has("checked")&&this.checked){const t=this.parentElement;t&&Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach(n=>{n!==this&&(n.checked=!1)})}this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.handleClick())}render(){return l`
|
|
2659
2659
|
<input type="radio" id=${this.inputId} ?checked=${this.checked} ?disabled=${this.disabled} name=${this.name} value=${this.value} />
|
|
2660
2660
|
|
|
2661
2661
|
<div class="box" role="radio" tabindex=${this.disabled?-1:0} aria-checked=${String(this.checked)} aria-disabled=${String(this.disabled)} @click=${this.handleClick} @keydown=${this.handleKeyDown}>
|
|
@@ -3170,7 +3170,7 @@
|
|
|
3170
3170
|
from { transform: translateY(10px) scale(.98); opacity: 0; }
|
|
3171
3171
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
3172
3172
|
}
|
|
3173
|
-
`;let $=ae;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 Ui=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,
|
|
3173
|
+
`;let $=ae;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 Ui=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,_=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ni(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ui(t,e,i),i};let w=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.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`
|
|
3174
3174
|
<o-icon-button
|
|
3175
3175
|
@click=${this.onClickIcons}
|
|
3176
3176
|
icon=${this.type==="notifyme"?"notifyme":"cart"}
|
|
@@ -3383,4 +3383,4 @@
|
|
|
3383
3383
|
.fullpointer {
|
|
3384
3384
|
cursor: pointer;
|
|
3385
3385
|
}
|
|
3386
|
-
`;
|
|
3386
|
+
`;_([a({type:String})],w.prototype,"type",2);_([a({type:String})],w.prototype,"titleProduct",2);_([a({type:String})],w.prototype,"descriptionProduct",2);_([a({type:String})],w.prototype,"volume",2);_([a({type:String})],w.prototype,"perLiter",2);_([a({type:String})],w.prototype,"mainPrice",2);_([a({type:String})],w.prototype,"salesPercentage",2);_([a({type:String})],w.prototype,"oldPrice",2);_([a({type:String})],w.prototype,"imageUrl",2);_([a({type:Boolean})],w.prototype,"outOfStock",2);_([a({type:String})],w.prototype,"altImage",2);_([a({type:Boolean})],w.prototype,"fullwidth",2);_([a({type:Boolean})],w.prototype,"current",2);_([a({type:Boolean})],w.prototype,"hideIcon",2);_([a({type:String})],w.prototype,"tagText",2);_([a({attribute:!1})],w.prototype,"onClickTile",2);_([a({attribute:!1})],w.prototype,"onClickIcon",2);w=_([b("o-medium-tile")],w);
|
package/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ const Ae = (o) => new xe(typeof o == "string" ? o : o + "", void 0, Zt), v = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: Be, defineProperty: Pe, getOwnPropertyDescriptor: ze, getOwnPropertyNames: Oe, getOwnPropertySymbols: Ie, getPrototypeOf: De } = Object, Q = globalThis, he = Q.trustedTypes, He = he ? he.emptyScript : "", Ht = Q.reactiveElementPolyfillSupport, vt = (o, t) => o, Bt = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
o = o ? He : null;
|
|
@@ -73,7 +73,7 @@ const { is: Pe, defineProperty: Be, getOwnPropertyDescriptor: ze, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} }, Kt = (o, t) => !
|
|
76
|
+
} }, Kt = (o, t) => !Be(o, t), de = { attribute: !0, type: String, converter: Bt, reflect: !1, useDefault: !1, hasChanged: Kt };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Q.litPropertyMetadata ?? (Q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let ct = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
@@ -85,7 +85,7 @@ let ct = class extends HTMLElement {
|
|
|
85
85
|
static createProperty(t, e = de) {
|
|
86
86
|
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) {
|
|
87
87
|
const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && Pe(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, n) {
|
|
@@ -184,7 +184,7 @@ let ct = class extends HTMLElement {
|
|
|
184
184
|
var r;
|
|
185
185
|
const n = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, n);
|
|
186
186
|
if (i !== void 0 && n.reflect === !0) {
|
|
187
|
-
const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter :
|
|
187
|
+
const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : Bt).toAttribute(e, n.type);
|
|
188
188
|
this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ let ct = class extends HTMLElement {
|
|
|
192
192
|
var r, s;
|
|
193
193
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
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 :
|
|
195
|
+
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 : Bt;
|
|
196
196
|
this._$Em = i, this[i] = h.fromAttribute(e, c.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -282,7 +282,7 @@ ct.elementStyles = [], ct.shadowRootOptions = { mode: "open" }, ct[vt("elementPr
|
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const gt = globalThis,
|
|
285
|
+
const gt = globalThis, Pt = gt.trustedTypes, pe = Pt ? Pt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, we = "$lit$", J = `lit$${Math.random().toFixed(9).slice(2)}$`, $e = "?" + J, Te = `<${$e}>`, st = document, yt = () => st.createComment(""), mt = (o) => o === null || typeof o != "object" && typeof o != "function", Wt = Array.isArray, Me = (o) => Wt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Tt = `[
|
|
286
286
|
\f\r]`, ft = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ue = /-->/g, fe = />/g, it = RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
|
|
287
287
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), ve = /'/g, ge = /"/g, ke = /^(?:script|style|textarea|title)$/i, je = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = je(1), tt = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), be = /* @__PURE__ */ new WeakMap(), nt = st.createTreeWalker(st, 129);
|
|
288
288
|
function _e(o, t) {
|
|
@@ -320,7 +320,7 @@ class xt {
|
|
|
320
320
|
if (ke.test(i.tagName)) {
|
|
321
321
|
const g = i.textContent.split(J), V = g.length - 1;
|
|
322
322
|
if (V > 0) {
|
|
323
|
-
i.textContent =
|
|
323
|
+
i.textContent = Pt ? Pt.emptyScript : "";
|
|
324
324
|
for (let Y = 0; Y < V; Y++) i.append(g[Y], yt()), nt.nextNode(), h.push({ type: 2, index: ++r });
|
|
325
325
|
i.append(g[V], yt());
|
|
326
326
|
}
|
|
@@ -564,7 +564,7 @@ const b = (o) => (t, e) => {
|
|
|
564
564
|
* Copyright 2017 Google LLC
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
|
-
const Ke = { attribute: !0, type: String, converter:
|
|
567
|
+
const Ke = { attribute: !0, type: String, converter: Bt, reflect: !1, hasChanged: Kt }, We = (o = Ke, t, e) => {
|
|
568
568
|
const { kind: n, metadata: i } = e;
|
|
569
569
|
let r = globalThis.litPropertyMetadata.get(i);
|
|
570
570
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), r.set(e.name, o), n === "accessor") {
|
|
@@ -808,7 +808,7 @@ const Ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
808
808
|
sliderRightArrow: Ao
|
|
809
809
|
}, Lo = {
|
|
810
810
|
strikeDiagonal: xo
|
|
811
|
-
},
|
|
811
|
+
}, Bo = {
|
|
812
812
|
success: $o,
|
|
813
813
|
error: ko,
|
|
814
814
|
info: _o
|
|
@@ -869,7 +869,7 @@ const S = Jt(Ut);
|
|
|
869
869
|
* Copyright 2020 Google LLC
|
|
870
870
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
871
871
|
*/
|
|
872
|
-
const
|
|
872
|
+
const Po = (o) => o.strings === void 0;
|
|
873
873
|
/**
|
|
874
874
|
* @license
|
|
875
875
|
* Copyright 2017 Google LLC
|
|
@@ -919,7 +919,7 @@ class Do extends Qt {
|
|
|
919
919
|
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (bt(this, t), zt(this));
|
|
920
920
|
}
|
|
921
921
|
setValue(t) {
|
|
922
|
-
if (
|
|
922
|
+
if (Po(this._$Ct)) this._$Ct._$AI(t, this);
|
|
923
923
|
else {
|
|
924
924
|
const e = [...this._$Ct._$AH];
|
|
925
925
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1056,13 +1056,13 @@ const ye = Jt(Mo);
|
|
|
1056
1056
|
* Copyright 2018 Google LLC
|
|
1057
1057
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1058
1058
|
*/
|
|
1059
|
-
const
|
|
1059
|
+
const B = (o) => o ?? d;
|
|
1060
1060
|
var jo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, R = (o, t, e, n) => {
|
|
1061
1061
|
for (var i = n > 1 ? void 0 : n ? Fo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1062
1062
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1063
1063
|
return n && i && jo(t, e, i), i;
|
|
1064
1064
|
};
|
|
1065
|
-
let
|
|
1065
|
+
let P = class extends u {
|
|
1066
1066
|
constructor() {
|
|
1067
1067
|
super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1, this.showSrLabel = !1, this.srLabel = "";
|
|
1068
1068
|
}
|
|
@@ -1079,7 +1079,7 @@ let B = class extends u {
|
|
|
1079
1079
|
` : l`
|
|
1080
1080
|
<button
|
|
1081
1081
|
type="button"
|
|
1082
|
-
aria-label=${
|
|
1082
|
+
aria-label=${B(i)}
|
|
1083
1083
|
aria-describedby=${this.getAttribute("aria-describedby") || d}
|
|
1084
1084
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1085
1085
|
?disabled="${this.disabled}"
|
|
@@ -1091,7 +1091,7 @@ let B = class extends u {
|
|
|
1091
1091
|
`;
|
|
1092
1092
|
}
|
|
1093
1093
|
};
|
|
1094
|
-
|
|
1094
|
+
P.styles = v`
|
|
1095
1095
|
:host {
|
|
1096
1096
|
display: inline-flex;
|
|
1097
1097
|
justify-content: center;
|
|
@@ -1276,34 +1276,34 @@ B.styles = v`
|
|
|
1276
1276
|
`;
|
|
1277
1277
|
R([
|
|
1278
1278
|
a({ type: String, reflect: !0 })
|
|
1279
|
-
],
|
|
1279
|
+
], P.prototype, "bgstyle", 2);
|
|
1280
1280
|
R([
|
|
1281
1281
|
a({ type: String, reflect: !0 })
|
|
1282
|
-
],
|
|
1282
|
+
], P.prototype, "size", 2);
|
|
1283
1283
|
R([
|
|
1284
1284
|
a({ type: String, reflect: !0 })
|
|
1285
|
-
],
|
|
1285
|
+
], P.prototype, "status", 2);
|
|
1286
1286
|
R([
|
|
1287
1287
|
a({ type: String, reflect: !0 })
|
|
1288
|
-
],
|
|
1288
|
+
], P.prototype, "type", 2);
|
|
1289
1289
|
R([
|
|
1290
1290
|
a({ type: String })
|
|
1291
|
-
],
|
|
1291
|
+
], P.prototype, "strokewidth", 2);
|
|
1292
1292
|
R([
|
|
1293
1293
|
a({ type: String })
|
|
1294
|
-
],
|
|
1294
|
+
], P.prototype, "icon", 2);
|
|
1295
1295
|
R([
|
|
1296
1296
|
a({ type: Boolean, reflect: !0 })
|
|
1297
|
-
],
|
|
1297
|
+
], P.prototype, "disabled", 2);
|
|
1298
1298
|
R([
|
|
1299
1299
|
a({ type: Boolean })
|
|
1300
|
-
],
|
|
1300
|
+
], P.prototype, "showSrLabel", 2);
|
|
1301
1301
|
R([
|
|
1302
1302
|
a({ type: String })
|
|
1303
|
-
],
|
|
1304
|
-
|
|
1303
|
+
], P.prototype, "srLabel", 2);
|
|
1304
|
+
P = R([
|
|
1305
1305
|
b("o-icon-button")
|
|
1306
|
-
],
|
|
1306
|
+
], P);
|
|
1307
1307
|
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, y = (o, t, e, n) => {
|
|
1308
1308
|
for (var i = n > 1 ? void 0 : n ? Uo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1309
1309
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -1914,7 +1914,7 @@ y([
|
|
|
1914
1914
|
p = y([
|
|
1915
1915
|
b("o-side-panel")
|
|
1916
1916
|
], p);
|
|
1917
|
-
var No = Object.defineProperty, qo = Object.getOwnPropertyDescriptor,
|
|
1917
|
+
var No = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, k = (o, t, e, n) => {
|
|
1918
1918
|
for (var i = n > 1 ? void 0 : n ? qo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1919
1919
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1920
1920
|
return n && i && No(t, e, i), i;
|
|
@@ -1922,7 +1922,7 @@ var No = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, _ = (o, t,
|
|
|
1922
1922
|
const Vo = Xt(u);
|
|
1923
1923
|
let m = class extends Vo {
|
|
1924
1924
|
constructor() {
|
|
1925
|
-
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;
|
|
1925
|
+
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;
|
|
1926
1926
|
}
|
|
1927
1927
|
get name() {
|
|
1928
1928
|
return this.getAttribute("name") ?? "";
|
|
@@ -1974,7 +1974,7 @@ let m = class extends Vo {
|
|
|
1974
1974
|
target=${this.target || d}
|
|
1975
1975
|
class="button"
|
|
1976
1976
|
?disabled=${this.disabled}
|
|
1977
|
-
role
|
|
1977
|
+
role=${this.hideRoleButton ? d : "button"}
|
|
1978
1978
|
@click=${this.handleClick}
|
|
1979
1979
|
@keydown=${this.handleClick}
|
|
1980
1980
|
aria-describedby=${this.getAttribute("aria-describedby") || d}
|
|
@@ -2198,55 +2198,58 @@ m.styles = v`
|
|
|
2198
2198
|
transform: translateX(4px);
|
|
2199
2199
|
}
|
|
2200
2200
|
`;
|
|
2201
|
-
|
|
2201
|
+
k([
|
|
2202
2202
|
a()
|
|
2203
2203
|
], m.prototype, "type", 2);
|
|
2204
|
-
|
|
2204
|
+
k([
|
|
2205
2205
|
a()
|
|
2206
2206
|
], m.prototype, "value", 2);
|
|
2207
|
-
|
|
2207
|
+
k([
|
|
2208
2208
|
a({ type: String, reflect: !0 })
|
|
2209
2209
|
], m.prototype, "variant", 2);
|
|
2210
|
-
|
|
2210
|
+
k([
|
|
2211
2211
|
a({ type: String })
|
|
2212
2212
|
], m.prototype, "text", 2);
|
|
2213
|
-
|
|
2213
|
+
k([
|
|
2214
2214
|
a({ type: String })
|
|
2215
2215
|
], m.prototype, "textsecond", 2);
|
|
2216
|
-
|
|
2216
|
+
k([
|
|
2217
2217
|
a({ type: Boolean, reflect: !0 })
|
|
2218
2218
|
], m.prototype, "fullwidth", 2);
|
|
2219
|
-
|
|
2219
|
+
k([
|
|
2220
2220
|
a({ type: Boolean, reflect: !0 })
|
|
2221
2221
|
], m.prototype, "disabled", 2);
|
|
2222
|
-
|
|
2222
|
+
k([
|
|
2223
2223
|
a({ type: String })
|
|
2224
2224
|
], m.prototype, "startIconModel", 2);
|
|
2225
|
-
|
|
2225
|
+
k([
|
|
2226
2226
|
a({ type: String })
|
|
2227
2227
|
], m.prototype, "endIconModel", 2);
|
|
2228
|
-
|
|
2228
|
+
k([
|
|
2229
2229
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
2230
2230
|
], m.prototype, "startIcon", 2);
|
|
2231
|
-
|
|
2231
|
+
k([
|
|
2232
2232
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
2233
2233
|
], m.prototype, "endIcon", 2);
|
|
2234
|
-
|
|
2234
|
+
k([
|
|
2235
2235
|
a({ type: String, attribute: "paneltarget" })
|
|
2236
2236
|
], m.prototype, "panelTarget", 2);
|
|
2237
|
-
|
|
2237
|
+
k([
|
|
2238
2238
|
a({ type: String })
|
|
2239
2239
|
], m.prototype, "href", 2);
|
|
2240
|
-
|
|
2240
|
+
k([
|
|
2241
2241
|
a({ type: String })
|
|
2242
2242
|
], m.prototype, "target", 2);
|
|
2243
|
-
|
|
2243
|
+
k([
|
|
2244
2244
|
a({ type: Boolean, reflect: !0 })
|
|
2245
2245
|
], m.prototype, "underlined", 2);
|
|
2246
|
-
|
|
2246
|
+
k([
|
|
2247
2247
|
a({ type: Boolean, reflect: !0 })
|
|
2248
2248
|
], m.prototype, "withbadge", 2);
|
|
2249
|
-
|
|
2249
|
+
k([
|
|
2250
|
+
a({ type: Boolean, reflect: !0 })
|
|
2251
|
+
], m.prototype, "hideRoleButton", 2);
|
|
2252
|
+
m = k([
|
|
2250
2253
|
b("o-button")
|
|
2251
2254
|
], m);
|
|
2252
2255
|
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, It = (o, t, e, n) => {
|
|
@@ -2389,7 +2392,7 @@ let K = class extends u {
|
|
|
2389
2392
|
return l`
|
|
2390
2393
|
<a
|
|
2391
2394
|
href="${o}"
|
|
2392
|
-
target="${
|
|
2395
|
+
target="${B(this.target || void 0)}"
|
|
2393
2396
|
@click="${this._handleClick}"
|
|
2394
2397
|
>
|
|
2395
2398
|
${this.endIcon && this.reverseEndIcon ? l`
|
|
@@ -3467,7 +3470,7 @@ let z = class extends u {
|
|
|
3467
3470
|
?disabled=${this.disabled}
|
|
3468
3471
|
class="btn-dropdown"
|
|
3469
3472
|
>
|
|
3470
|
-
<img alt="${
|
|
3473
|
+
<img alt="${B(t == null ? void 0 : t.label)}" src="${B(t == null ? void 0 : t.imgurl)}" />
|
|
3471
3474
|
<span id="dropdown-label" class="label">
|
|
3472
3475
|
${t ? t.label : "Select an option"}
|
|
3473
3476
|
</span>
|
|
@@ -3502,11 +3505,11 @@ let z = class extends u {
|
|
|
3502
3505
|
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3503
3506
|
@click=${() => this.selectOption(e)}
|
|
3504
3507
|
>
|
|
3505
|
-
<a href="${
|
|
3506
|
-
<img alt="${
|
|
3508
|
+
<a href="${B(e.url)}">
|
|
3509
|
+
<img alt="${B(e.label)}" src="${B(e.imgurl)}" />
|
|
3507
3510
|
<span class="label">${e.label}</span>
|
|
3508
3511
|
<div class="right">
|
|
3509
|
-
<span class="additional-text">${
|
|
3512
|
+
<span class="additional-text">${B(e.additionaltext)}</span>
|
|
3510
3513
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3511
3514
|
<span class="check">${S(o)}</span>` : null}
|
|
3512
3515
|
</div>
|
|
@@ -3774,13 +3777,13 @@ let kt = class extends u {
|
|
|
3774
3777
|
width: `${this.imageSize}px`,
|
|
3775
3778
|
height: `${this.imageSize}px`
|
|
3776
3779
|
}, n = this.option && this.option.title ? o(this.option.title) : "", i = this.option && this.option.description ? o(this.option.description) : "", r = l`
|
|
3777
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${
|
|
3780
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${B(n)}" aria-hidden="true" style=${di(e)} />` : ""}
|
|
3778
3781
|
<div class="m-reassurance-content">
|
|
3779
|
-
<h3 class="a-reassurance-text">${
|
|
3780
|
-
<p class="a-reassurance-description">${
|
|
3782
|
+
<h3 class="a-reassurance-text">${B(n)}</h3>
|
|
3783
|
+
<p class="a-reassurance-description">${B(i)}</p>
|
|
3781
3784
|
</div>
|
|
3782
3785
|
`;
|
|
3783
|
-
return t ? l`<a href="${
|
|
3786
|
+
return t ? l`<a href="${B(this.option.url)}" class="reassurance-item clickable">${r}</a>` : l`<div class="reassurance-item">${r}</div>`;
|
|
3784
3787
|
}
|
|
3785
3788
|
};
|
|
3786
3789
|
kt.styles = v`
|
|
@@ -4601,7 +4604,7 @@ let A = class extends u {
|
|
|
4601
4604
|
});
|
|
4602
4605
|
}
|
|
4603
4606
|
render() {
|
|
4604
|
-
const t =
|
|
4607
|
+
const t = Bo[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"');
|
|
4605
4608
|
return l`
|
|
4606
4609
|
<div class="o-toast">
|
|
4607
4610
|
<div class="o-toast-icon">
|
|
@@ -4916,10 +4919,10 @@ j([
|
|
|
4916
4919
|
L = j([
|
|
4917
4920
|
b("o-checkbox")
|
|
4918
4921
|
], L);
|
|
4919
|
-
var
|
|
4920
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
4922
|
+
var Bi = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, q = (o, t, e, n) => {
|
|
4923
|
+
for (var i = n > 1 ? void 0 : n ? Pi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4921
4924
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4922
|
-
return n && i &&
|
|
4925
|
+
return n && i && Bi(t, e, i), i;
|
|
4923
4926
|
};
|
|
4924
4927
|
let zi = 0, D = class extends u {
|
|
4925
4928
|
constructor() {
|
|
@@ -5699,7 +5702,7 @@ C([
|
|
|
5699
5702
|
W()
|
|
5700
5703
|
], $.prototype, "_headerHidden", 2);
|
|
5701
5704
|
customElements.define("o-popin", $);
|
|
5702
|
-
var Ui = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor,
|
|
5705
|
+
var Ui = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, _ = (o, t, e, n) => {
|
|
5703
5706
|
for (var i = n > 1 ? void 0 : n ? Ni(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5704
5707
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5705
5708
|
return n && i && Ui(t, e, i), i;
|
|
@@ -5942,57 +5945,57 @@ w.styles = v`
|
|
|
5942
5945
|
cursor: pointer;
|
|
5943
5946
|
}
|
|
5944
5947
|
`;
|
|
5945
|
-
|
|
5948
|
+
_([
|
|
5946
5949
|
a({ type: String })
|
|
5947
5950
|
], w.prototype, "type", 2);
|
|
5948
|
-
|
|
5951
|
+
_([
|
|
5949
5952
|
a({ type: String })
|
|
5950
5953
|
], w.prototype, "titleProduct", 2);
|
|
5951
|
-
|
|
5954
|
+
_([
|
|
5952
5955
|
a({ type: String })
|
|
5953
5956
|
], w.prototype, "descriptionProduct", 2);
|
|
5954
|
-
|
|
5957
|
+
_([
|
|
5955
5958
|
a({ type: String })
|
|
5956
5959
|
], w.prototype, "volume", 2);
|
|
5957
|
-
|
|
5960
|
+
_([
|
|
5958
5961
|
a({ type: String })
|
|
5959
5962
|
], w.prototype, "perLiter", 2);
|
|
5960
|
-
|
|
5963
|
+
_([
|
|
5961
5964
|
a({ type: String })
|
|
5962
5965
|
], w.prototype, "mainPrice", 2);
|
|
5963
|
-
|
|
5966
|
+
_([
|
|
5964
5967
|
a({ type: String })
|
|
5965
5968
|
], w.prototype, "salesPercentage", 2);
|
|
5966
|
-
|
|
5969
|
+
_([
|
|
5967
5970
|
a({ type: String })
|
|
5968
5971
|
], w.prototype, "oldPrice", 2);
|
|
5969
|
-
|
|
5972
|
+
_([
|
|
5970
5973
|
a({ type: String })
|
|
5971
5974
|
], w.prototype, "imageUrl", 2);
|
|
5972
|
-
|
|
5975
|
+
_([
|
|
5973
5976
|
a({ type: Boolean })
|
|
5974
5977
|
], w.prototype, "outOfStock", 2);
|
|
5975
|
-
|
|
5978
|
+
_([
|
|
5976
5979
|
a({ type: String })
|
|
5977
5980
|
], w.prototype, "altImage", 2);
|
|
5978
|
-
|
|
5981
|
+
_([
|
|
5979
5982
|
a({ type: Boolean })
|
|
5980
5983
|
], w.prototype, "fullwidth", 2);
|
|
5981
|
-
|
|
5984
|
+
_([
|
|
5982
5985
|
a({ type: Boolean })
|
|
5983
5986
|
], w.prototype, "current", 2);
|
|
5984
|
-
|
|
5987
|
+
_([
|
|
5985
5988
|
a({ type: Boolean })
|
|
5986
5989
|
], w.prototype, "hideIcon", 2);
|
|
5987
|
-
|
|
5990
|
+
_([
|
|
5988
5991
|
a({ type: String })
|
|
5989
5992
|
], w.prototype, "tagText", 2);
|
|
5990
|
-
|
|
5993
|
+
_([
|
|
5991
5994
|
a({ attribute: !1 })
|
|
5992
5995
|
], w.prototype, "onClickTile", 2);
|
|
5993
|
-
|
|
5996
|
+
_([
|
|
5994
5997
|
a({ attribute: !1 })
|
|
5995
5998
|
], w.prototype, "onClickIcon", 2);
|
|
5996
|
-
w =
|
|
5999
|
+
w = _([
|
|
5997
6000
|
b("o-medium-tile")
|
|
5998
6001
|
], w);
|