@florid-kit/components 0.9.29 → 0.9.30
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/popin.d.ts +14 -22
- package/index.js +55 -114
- package/index.mjs +230 -283
- package/package.json +1 -1
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:Ae,defineProperty:Le,getOwnPropertyDescriptor:
|
|
9
|
+
*/const{is:Ae,defineProperty:Le,getOwnPropertyDescriptor:Pe,getOwnPropertyNames:Be,getOwnPropertySymbols:Oe,getPrototypeOf:ze}=Object,X=globalThis,le=X.trustedTypes,Ie=le?le.emptyScript:"",It=X.reactiveElementPolyfillSupport,pt=(o,t)=>o,At={toAttribute(o,t){switch(t){case Boolean:o=o?Ie: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}},qt=(o,t)=>!Ae(o,t),ce={attribute:!0,type:String,converter:At,reflect:!1,useDefault:!1,hasChanged:qt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),X.litPropertyMetadata??(X.litPropertyMetadata=new WeakMap);let at=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=ce){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&&Le(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=Pe(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)??ce}static _$Ei(){if(this.hasOwnProperty(pt("elementProperties")))return;const t=ze(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pt("properties"))){const e=this.properties,n=[...Be(e),...Oe(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(ae(i))}else t!==void 0&&e.push(ae(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 Se(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:At).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:At;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??qt)(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){}};at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[pt("elementProperties")]=new Map,at[pt("finalized")]=new Map,It==null||It({ReactiveElement:at}),(X.reactiveElementVersions??(X.reactiveElementVersions=[])).push("2.1.0");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/const ut=globalThis,Lt=ut.trustedTypes,he=Lt?Lt.createPolicy("lit-html",{createHTML:o=>o}):void 0,me="$lit$",G=`lit$${Math.random().toFixed(9).slice(2)}$`,xe="?"+G,De=`<${xe}>`,it=document,ft=()=>it.createComment(""),gt=o=>o===null||typeof o!="object"&&typeof o!="function",Zt=Array.isArray,He=o=>Zt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Dt=`[
|
|
14
14
|
\f\r]`,dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,de=/-->/g,pe=/>/g,tt=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,ve=/"/g,we=/^(?:script|style|textarea|title)$/i,Me=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Me(1),Y=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),fe=new WeakMap,et=it.createTreeWalker(it,129);function $e(o,t){if(!Zt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return he!==void 0?he.createHTML(t):t}const Te=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=dt;for(let c=0;c<e;c++){const h=o[c];let m,w,f=-1,N=0;for(;N<h.length&&(s.lastIndex=N,w=s.exec(h),w!==null);)N=s.lastIndex,s===dt?w[1]==="!--"?s=de:w[1]!==void 0?s=pe:w[2]!==void 0?(we.test(w[2])&&(i=RegExp("</"+w[2],"g")),s=tt):w[3]!==void 0&&(s=tt):s===tt?w[0]===">"?(s=i??dt,f=-1):w[1]===void 0?f=-2:(f=s.lastIndex-w[2].length,m=w[1],s=w[3]===void 0?tt:w[3]==='"'?ve:ue):s===ve||s===ue?s=tt:s===de||s===pe?s=dt:(s=tt,i=void 0);const W=s===tt&&o[c+1].startsWith("/>")?" ":"";r+=s===dt?h+De:f>=0?(n.push(m),h.slice(0,f)+me+h.slice(f)+G+W):h+G+(f===-2?c:W)}return[$e(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class bt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,h=this.parts,[m,w]=Te(t,e);if(this.el=bt.createElement(m,n),et.currentNode=this.el.content,e===2||e===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=et.nextNode())!==null&&h.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const f of i.getAttributeNames())if(f.endsWith(me)){const N=w[s++],W=i.getAttribute(f).split(G),Et=/([.?@])?(.*)/.exec(N);h.push({type:1,index:r,name:Et[2],strings:W,ctor:Et[1]==="."?Fe:Et[1]==="?"?Re:Et[1]==="@"?Ue:
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,ve=/"/g,we=/^(?:script|style|textarea|title)$/i,Me=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Me(1),Y=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),fe=new WeakMap,et=it.createTreeWalker(it,129);function $e(o,t){if(!Zt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return he!==void 0?he.createHTML(t):t}const Te=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=dt;for(let c=0;c<e;c++){const h=o[c];let m,w,f=-1,N=0;for(;N<h.length&&(s.lastIndex=N,w=s.exec(h),w!==null);)N=s.lastIndex,s===dt?w[1]==="!--"?s=de:w[1]!==void 0?s=pe:w[2]!==void 0?(we.test(w[2])&&(i=RegExp("</"+w[2],"g")),s=tt):w[3]!==void 0&&(s=tt):s===tt?w[0]===">"?(s=i??dt,f=-1):w[1]===void 0?f=-2:(f=s.lastIndex-w[2].length,m=w[1],s=w[3]===void 0?tt:w[3]==='"'?ve:ue):s===ve||s===ue?s=tt:s===de||s===pe?s=dt:(s=tt,i=void 0);const W=s===tt&&o[c+1].startsWith("/>")?" ":"";r+=s===dt?h+De:f>=0?(n.push(m),h.slice(0,f)+me+h.slice(f)+G+W):h+G+(f===-2?c:W)}return[$e(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class bt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,h=this.parts,[m,w]=Te(t,e);if(this.el=bt.createElement(m,n),et.currentNode=this.el.content,e===2||e===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=et.nextNode())!==null&&h.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const f of i.getAttributeNames())if(f.endsWith(me)){const N=w[s++],W=i.getAttribute(f).split(G),Et=/([.?@])?(.*)/.exec(N);h.push({type:1,index:r,name:Et[2],strings:W,ctor:Et[1]==="."?Fe:Et[1]==="?"?Re:Et[1]==="@"?Ue:Bt}),i.removeAttribute(f)}else f.startsWith(G)&&(h.push({type:6,index:r}),i.removeAttribute(f));if(we.test(i.tagName)){const f=i.textContent.split(G),N=f.length-1;if(N>0){i.textContent=Lt?Lt.emptyScript:"";for(let W=0;W<N;W++)i.append(f[W],ft()),et.nextNode(),h.push({type:2,index:++r});i.append(f[N],ft())}}}else if(i.nodeType===8)if(i.data===xe)h.push({type:2,index:r});else{let f=-1;for(;(f=i.data.indexOf(G,f+1))!==-1;)h.push({type:7,index:r}),f+=G.length-1}r++}}static createElement(t,e){const n=it.createElement("template");return n.innerHTML=t,n}}function lt(o,t,e=o,n){var s,c;if(t===Y)return t;let i=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=gt(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=lt(o,i._$AS(o,t.values),i,n)),t}class je{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)??it).importNode(e,!0);et.currentNode=i;let r=et.nextNode(),s=0,c=0,h=n[0];for(;h!==void 0;){if(s===h.index){let m;h.type===2?m=new _t(r,r.nextSibling,this,t):h.type===1?m=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(m=new Ne(r,this,t)),this._$AV.push(m),h=n[++c]}s!==(h==null?void 0:h.index)&&(r=et.nextNode(),s++)}return et.currentNode=it,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 _t{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=lt(this,t,e),gt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==Y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):He(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&>(this._$AH)?this._$AA.nextSibling.data=t:this.T(it.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=bt.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 je(i,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=fe.get(t.strings);return e===void 0&&fe.set(t.strings,e=new bt(t)),e}k(t){Zt(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 _t(this.O(ft()),this.O(ft()),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 Bt{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=lt(this,t,e,0),s=!gt(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{const c=t;let h,m;for(t=r[0],h=0;h<r.length-1;h++)m=lt(this,c[n+h],e,h),m===Y&&(m=this._$AH[h]),s||(s=!gt(m)||m!==this._$AH[h]),m===d?t=d:t!==d&&(t+=(m??"")+r[h+1]),this._$AH[h]=m}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Fe extends Bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Re extends Bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Ue extends Bt{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=lt(this,t,e,0)??d)===Y)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 Ne{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){lt(this,t)}}const Ht=ut.litHtmlPolyfillSupport;Ht==null||Ht(bt,_t),(ut.litHtmlVersions??(ut.litHtmlVersions=[])).push("3.3.0");const Ve=(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 _t(t.insertBefore(ft(),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
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright 2017 Google LLC
|
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/function
|
|
39
|
+
*/function ke(o,t){return(e,n,i)=>{const r=s=>{var c;return((c=s.renderRoot)==null?void 0:c.querySelector(o))??null};return Ke(e,n,{get(){return r(this)}})}}const rt=v`
|
|
40
40
|
outline: 1px dashed var(--color-border-primary);
|
|
41
41
|
outline-offset: 2px;
|
|
42
42
|
`;v`
|
|
@@ -141,12 +141,12 @@
|
|
|
141
141
|
`,$o=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
142
142
|
<path d="M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM7.16602 6.1084V12H8.84668V6.1084H7.16602ZM8.00684 2.64062C7.45497 2.64062 7.01096 3.09591 7.01074 3.63574C7.01074 4.18774 7.45484 4.63184 8.00684 4.63184C8.55862 4.63159 9.00195 4.18759 9.00195 3.63574C9.00174 3.09606 8.55849 2.64088 8.00684 2.64062Z" fill="#4572A6"/>
|
|
143
143
|
</svg>
|
|
144
|
-
`,
|
|
144
|
+
`,ko=`<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
145
145
|
<path d="M16.0003 10.1648C16.0003 13.2904 13.4583 15.8332 10.3336 15.8332H7.00026C6.81617 15.8332 6.66693 15.6839 6.66693 15.4997C6.66693 15.3156 6.81617 15.1663 7.00026 15.1663H10.3336C13.0909 15.1663 15.3336 12.923 15.3336 10.1648C15.3336 7.40663 13.0909 5.16328 10.3336 5.16328H1.13826L3.90226 7.92812C4.0326 8.05831 4.03275 8.26955 3.9026 8.39993C3.77244 8.5303 3.56127 8.53045 3.43093 8.40026L0.0975955 5.06592C-0.0325318 4.93571 -0.0325318 4.72465 0.0975955 4.59444L3.43093 1.2601C3.56172 1.13374 3.76962 1.13555 3.8982 1.26416C4.02678 1.39278 4.02859 1.60075 3.90226 1.73158L1.13826 4.49641H10.3336C13.4583 4.49641 16.0003 7.03918 16.0003 10.1648Z" fill="#001022"/>
|
|
146
146
|
</svg>
|
|
147
|
-
`,
|
|
147
|
+
`,_o=`<svg xmlns="http://www.w3.org/2000/svg" width="10" height="8" viewBox="0 0 10 8" fill="none">
|
|
148
148
|
<path d="M1 4.5415L3 6.5415L9 0.541504" stroke="#FBF9F6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
149
|
-
</svg>`,V={wishlist:Ge,playerv:Xe,chevronRight:Ye,chevronLeft:Je,icoPlus:so,icoMinus:ao,"star-0":Qe,"star-25":to,"star-50":eo,"star-75":oo,"star-100":io,cross:no,search:ro,arrowLeft:lo,arrowTop:co,cart:ho,notifyme:po,triangledown:uo,triangleup:vo,checkstroke:fo,pause:go,mapDualArrow:bo,swipeDualArrow:mo,backToBag:
|
|
149
|
+
</svg>`,V={wishlist:Ge,playerv:Xe,chevronRight:Ye,chevronLeft:Je,icoPlus:so,icoMinus:ao,"star-0":Qe,"star-25":to,"star-50":eo,"star-75":oo,"star-100":io,cross:no,search:ro,arrowLeft:lo,arrowTop:co,cart:ho,notifyme:po,triangledown:uo,triangleup:vo,checkstroke:fo,pause:go,mapDualArrow:bo,swipeDualArrow:mo,backToBag:ko,checkbox:_o},Co={strikeDiagonal:yo},Eo={success:xo,error:wo,info:$o};/**
|
|
150
150
|
* @license
|
|
151
151
|
* Copyright 2017 Google LLC
|
|
152
152
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -166,11 +166,11 @@
|
|
|
166
166
|
* @license
|
|
167
167
|
* Copyright 2017 Google LLC
|
|
168
168
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
169
|
-
*/const vt=(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),vt(i,t);return!0},
|
|
169
|
+
*/const vt=(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),vt(i,t);return!0},Pt=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)},_e=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),Po(t)}};function Ao(o){this._$AN!==void 0?(Pt(this),this._$AM=o,_e(this)):this._$AM=o}function Lo(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++)vt(n[r],!1),Pt(n[r]);else n!=null&&(vt(n,!1),Pt(n));else vt(this,o)}const Po=o=>{o.type==Gt.CHILD&&(o._$AP??(o._$AP=Lo),o._$AQ??(o._$AQ=Ao))};class Bo extends Yt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),_e(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&&(vt(this,t),Pt(this))}setValue(t){if(So(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 Oo extends Bo{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 zo extends Oo{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 Io extends zo{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 ge=Xt(Io);/**
|
|
170
170
|
* @license
|
|
171
171
|
* Copyright 2018 Google LLC
|
|
172
172
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
173
|
-
*/const S=o=>o??d;var Do=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,
|
|
173
|
+
*/const S=o=>o??d;var Do=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,T=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ho(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&&Do(t,e,i),i};let A=class extends p{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="wishlist",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const o=V[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`
|
|
174
174
|
${this.type==="span"?l`
|
|
175
175
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
176
176
|
${$(e)}
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
.sr-only {
|
|
398
398
|
display: none;
|
|
399
399
|
}
|
|
400
|
-
`;
|
|
400
|
+
`;T([a({type:String,reflect:!0})],A.prototype,"bgstyle",2);T([a({type:String,reflect:!0})],A.prototype,"size",2);T([a({type:String,reflect:!0})],A.prototype,"status",2);T([a({type:String,reflect:!0})],A.prototype,"type",2);T([a({type:String})],A.prototype,"strokewidth",2);T([a({type:String})],A.prototype,"icon",2);T([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2);T([a({type:Boolean})],A.prototype,"showSrLabel",2);T([a({type:String})],A.prototype,"srLabel",2);A=T([g("o-icon-button")],A);var Mo=Object.defineProperty,To=Object.getOwnPropertyDescriptor,b=(o,t,e,n)=>{for(var i=n>1?void 0:n?To(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&&Mo(t,e,i),i};let u=class extends p{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.labelDialog="",this.closeButtonLabel="Close the modal",this.goBackButtonLabel="Go back to",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.firstButtonProps={},this.onFirstButtonClickClose=!1,this.secondButtonLabel="",this.secondButtonVariant="secondary",this.secondButtonProps={},this.onSecondButtonClickClose=!1,this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.showDetail=!1,this.isHidingDetail=!1,this.previousFocusedElement=null,this._onOpenDetail=async o=>{var e,n;const t=((e=o.detail)==null?void 0:e.origin)??document.activeElement;if(this._detailOriginEl=t,this._detailOriginClass=(t==null?void 0:t.className)??"",this.showDetail=!0,this.showHeaderStartIcon=!0,await this.updateComplete,this._detailOriginClass){const i=(n=this.shadowRoot)==null?void 0:n.querySelector(".detail-view");i&&i.setAttribute("fromelement",this._detailOriginClass)}this._setPriceTabindex(),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()},this._onDetailSlotChange=o=>{const n=o.target.assignedElements({flatten:!0}).flatMap(i=>Array.from(i.querySelectorAll("img")))[0];n&&(n.setAttribute("role","img"),n.hasAttribute("tabindex")||n.setAttribute("tabindex","-1"))}}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)}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)}_setPriceTabindex(){var n;const o=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="detail"]');if(!o)return;const e=o.assignedElements({flatten:!0}).flatMap(i=>Array.from(i.querySelectorAll(".m-product-price-standard")));for(const i of e)i.hasAttribute("tabindex")||i.setAttribute("tabindex","0")}_restoreFocusToOrigin(){var t,e;const o=this._detailOriginEl;!o||!document.contains(o)||((e=(t=document.activeElement)==null?void 0:t.blur)==null||e.call(t),requestAnimationFrame(()=>{var i;o.classList.add("a--tabfocus"),(((i=o.shadowRoot)==null?void 0:i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??o).focus({preventScroll:!0})}))}getDeepActiveElement(o=this.shadowRoot){let t=o.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(o){if(o.key!=="Tab")return;const t=this.getDeepActiveElement(),e=this.renderRoot.querySelector(".close-btn");if(!o.shiftKey&&e&&e.contains(t)){o.preventDefault();const n=this.renderRoot.querySelector(".o-whats-inside--content p");n==null||n.focus()}}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");if(!o)return[];function t(i){return!(i.disabled||i.hasAttribute("disabled")||i.hasAttribute("tabindex")&&i.getAttribute("tabindex")==="-1")}function e(i){var s;const r=[i.matches(u.focusablesSelector)?i:[]];if(!["o-icon-button","o-button"].includes(i.tagName.toLowerCase())){const c=Array.from(i instanceof HTMLSlotElement?i.assignedElements({flatten:!0}):[]).filter(t).flatMap(e),h=Array.from(((s=i.shadowRoot)==null?void 0:s.querySelectorAll("*"))||[]).filter(t).flatMap(e);r.push(...c,...h)}return r.flat()}return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e)}openPanel(){this.removeAttribute("hidden"),this.getBoundingClientRect(),this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open");const o=this.renderRoot.querySelector(".panel");o&&o.setAttribute("aria-modal","true"),this.updateComplete.then(()=>{var t,e,n,i;if(this.showHeader){const r=((t=this.shadowRoot)==null?void 0:t.querySelector(".panel .close-btn"))||null,s=((e=r==null?void 0:r.shadowRoot)==null?void 0:e.querySelector("button"))||null;s&&((n=s.focus)==null||n.call(s))}else{const r=this.getFocusableElements()[0];(i=r==null?void 0:r.focus)==null||i.call(r)}}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var t,e,n,i,r;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),((t=this.previousFocusedElement)==null?void 0:t.tagName.toLowerCase())==="o-button"?(i=(n=(e=this.previousFocusedElement.shadowRoot)==null?void 0:e.querySelector(".button"))==null?void 0:n.focus)==null||i.call(n):(r=this.previousFocusedElement)==null||r.focus();const o=this.renderRoot.querySelector(".panel");o&&o.removeAttribute("aria-modal"),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("firstbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:o.target}})))}handleSecondClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("secondbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:o.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`),this.open||setTimeout(()=>{this.setAttribute("hidden","hidden")},500)}render(){const o=this.showHeader?l`
|
|
401
401
|
<div tabindex="-1" class="header ${this.showDetail?"detail-view-header":""}">
|
|
402
402
|
${this.showHeaderStartIcon?l`
|
|
403
403
|
<o-icon-button
|
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
text-decoration: underline;
|
|
1132
1132
|
cursor: pointer;
|
|
1133
1133
|
}
|
|
1134
|
-
`;zt([a({type:Number})],ht.prototype,"rating",2);zt([a({type:String})],ht.prototype,"reviewCount",2);zt([a({type:String})],ht.prototype,"href",2);ht=zt([g("o-rating")],ht);var Wo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Q=(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
|
|
1134
|
+
`;zt([a({type:Number})],ht.prototype,"rating",2);zt([a({type:String})],ht.prototype,"reviewCount",2);zt([a({type:String})],ht.prototype,"href",2);ht=zt([g("o-rating")],ht);var Wo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Q=(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 M=class extends p{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
|
|
1135
1135
|
<o-icon-button
|
|
1136
1136
|
icon="playerv"
|
|
1137
1137
|
size="xsmall"
|
|
@@ -1160,7 +1160,7 @@
|
|
|
1160
1160
|
</li>
|
|
1161
1161
|
`})}
|
|
1162
1162
|
</ul>
|
|
1163
|
-
`}};
|
|
1163
|
+
`}};M.styles=v`
|
|
1164
1164
|
:host {
|
|
1165
1165
|
display: flex;
|
|
1166
1166
|
gap: 5px;
|
|
@@ -1265,7 +1265,7 @@
|
|
|
1265
1265
|
height: 0;
|
|
1266
1266
|
width: 0;
|
|
1267
1267
|
}
|
|
1268
|
-
`;Q([a({type:Array})],
|
|
1268
|
+
`;Q([a({type:Array})],M.prototype,"thumbnails",2);Q([a({type:Number})],M.prototype,"activeIndex",2);Q([a({type:Array})],M.prototype,"disabledIndexes",2);Q([a({type:String})],M.prototype,"maxWidth",2);Q([a({type:String})],M.prototype,"altressource",2);Q([a({type:Object})],M.prototype,"swiperInstance",2);Q([J()],M.prototype,"focusedIndex",2);M=Q([g("thumbnail-navigation")],M);var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Jt=(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 yt=class extends p{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
|
|
1269
1269
|
<span class="tag ${this.bgstyle}"><slot></slot></span>
|
|
1270
1270
|
`}};yt.styles=v`
|
|
1271
1271
|
.tag {
|
|
@@ -1659,7 +1659,7 @@
|
|
|
1659
1659
|
background-color: var(--color-container-action-primary-pressed);
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
`;Rt=ii([g("o-dots")],Rt);var ni=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,
|
|
1662
|
+
`;Rt=ii([g("o-dots")],Rt);var ni=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,j=(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 L=class extends p{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.additionaltext="+X variant(s)",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>this._focusActiveOption())}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(){this.options.length>0&&(this.options.some(t=>t.value===this.value)||(this.value=this.options[0].value))}render(){const o=V.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1663
1663
|
<button
|
|
1664
1664
|
role="combobox"
|
|
1665
1665
|
aria-haspopup="listbox"
|
|
@@ -1896,7 +1896,7 @@
|
|
|
1896
1896
|
input[type="hidden"] {
|
|
1897
1897
|
display: none;
|
|
1898
1898
|
}
|
|
1899
|
-
`;
|
|
1899
|
+
`;j([a({type:Array,reflect:!0})],L.prototype,"options",2);j([a({type:String,reflect:!0})],L.prototype,"value",2);j([a({type:String,reflect:!0})],L.prototype,"name",2);j([a({type:String,reflect:!0})],L.prototype,"additionaltext",2);j([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);j([a({type:String,reflect:!0})],L.prototype,"width",2);j([J()],L.prototype,"open",2);j([J()],L.prototype,"activeIndex",2);j([J()],L.prototype,"menuWidth",2);L=j([g("o-dropdown-variant")],L);/**
|
|
1900
1900
|
* @license
|
|
1901
1901
|
* Copyright 2018 Google LLC
|
|
1902
1902
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1987,7 +1987,7 @@
|
|
|
1987
1987
|
overflow: hidden;
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
|
-
`;te([a({type:Object,reflect:!0})],xt.prototype,"option",2);te([a({type:Number,reflect:!0})],xt.prototype,"imageSize",2);xt=te([g("o-reassurance")],xt);var hi=Object.defineProperty,di=Object.getOwnPropertyDescriptor,K=(o,t,e,n)=>{for(var i=n>1?void 0:n?di(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&&hi(t,e,i),i};const pi=Wt(p);let
|
|
1990
|
+
`;te([a({type:Object,reflect:!0})],xt.prototype,"option",2);te([a({type:Number,reflect:!0})],xt.prototype,"imageSize",2);xt=te([g("o-reassurance")],xt);var hi=Object.defineProperty,di=Object.getOwnPropertyDescriptor,K=(o,t,e,n)=>{for(var i=n>1?void 0:n?di(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&&hi(t,e,i),i};const pi=Wt(p);let P=class extends pi{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`
|
|
1991
1991
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
|
|
1992
1992
|
${o?this.text:l`<slot></slot>`}
|
|
1993
1993
|
</a>
|
|
@@ -1996,7 +1996,7 @@
|
|
|
1996
1996
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
1997
1997
|
${o?this.text:l`<slot></slot>`}
|
|
1998
1998
|
</button>
|
|
1999
|
-
`}};
|
|
1999
|
+
`}};P.styles=v`
|
|
2000
2000
|
:host {
|
|
2001
2001
|
cursor: pointer;
|
|
2002
2002
|
display: inline-flex;
|
|
@@ -2085,7 +2085,7 @@
|
|
|
2085
2085
|
display: inline-flex;
|
|
2086
2086
|
align-items: center;
|
|
2087
2087
|
}
|
|
2088
|
-
`;K([a({type:String,reflect:!0})],
|
|
2088
|
+
`;K([a({type:String,reflect:!0})],P.prototype,"link",2);K([a({reflect:!0})],P.prototype,"name",2);K([a({reflect:!0})],P.prototype,"value",2);K([a({type:String})],P.prototype,"text",2);K([a({type:String,reflect:!0})],P.prototype,"size",2);K([a({type:Boolean,reflect:!0})],P.prototype,"selected",2);K([a({type:Boolean,reflect:!0})],P.prototype,"fullwidth",2);K([a({type:Boolean,reflect:!0})],P.prototype,"inactive",2);P=K([g("o-chip")],P);var ui=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,ee=(o,t,e,n)=>{for(var i=n>1?void 0:n?vi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ui(t,e,i),i};let wt=class extends p{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof P?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`
|
|
2089
2089
|
<slot></slot>
|
|
2090
2090
|
`}};wt.styles=v`
|
|
2091
2091
|
:host {
|
|
@@ -2094,7 +2094,7 @@
|
|
|
2094
2094
|
flex-wrap: wrap;
|
|
2095
2095
|
gap: var(--spacing-s);
|
|
2096
2096
|
}
|
|
2097
|
-
`;ee([a({reflect:!0})],wt.prototype,"name",2);ee([a({reflect:!0})],wt.prototype,"value",2);wt=ee([g("o-chipset")],wt);var fi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,
|
|
2097
|
+
`;ee([a({reflect:!0})],wt.prototype,"name",2);ee([a({reflect:!0})],wt.prototype,"value",2);wt=ee([g("o-chipset")],wt);var fi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,F=(o,t,e,n)=>{for(var i=n>1?void 0:n?gi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&fi(t,e,i),i};const bi=Wt(p);let B=class extends bi{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=V[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${$(o)}</span>`}strikeThroughImg(){const o=Co[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return $(o)}render(){const o=this.text;return l`${this.type==="link"?l`
|
|
2098
2098
|
<a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
2099
2099
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
2100
2100
|
${o?l`
|
|
@@ -2114,7 +2114,7 @@
|
|
|
2114
2114
|
</button>
|
|
2115
2115
|
`}
|
|
2116
2116
|
${this.disabled?this.strikeThroughImg():d}
|
|
2117
|
-
`}};
|
|
2117
|
+
`}};B.styles=v`
|
|
2118
2118
|
:host {
|
|
2119
2119
|
cursor: pointer;
|
|
2120
2120
|
display: inline-flex;
|
|
@@ -2239,7 +2239,7 @@
|
|
|
2239
2239
|
stroke-linecap: round;
|
|
2240
2240
|
}
|
|
2241
2241
|
}
|
|
2242
|
-
`;
|
|
2242
|
+
`;F([a({reflect:!0})],B.prototype,"name",2);F([a({reflect:!0})],B.prototype,"value",2);F([a({type:String,reflect:!0})],B.prototype,"type",2);F([a({type:String,reflect:!0})],B.prototype,"href",2);F([a({type:String,reflect:!0,attribute:"data-href"})],B.prototype,"dataHref",2);F([a({type:String})],B.prototype,"text",2);F([a({type:Boolean,reflect:!0})],B.prototype,"selected",2);F([a({type:Boolean,reflect:!0})],B.prototype,"disabled",2);F([a({type:Boolean,reflect:!0})],B.prototype,"fullwidth",2);B=F([g("o-filter-chip")],B);var yi=Object.defineProperty,R=(o,t,e,n)=>{for(var i=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(t,e,i)||i);return i&&yi(t,e,i),i};const ne=class ne extends p{constructor(){super(...arguments),this.type="cart | chevron",this.titleProduct="",this.volume="",this.perLiter="",this.mainPrice="",this.imageUrl="https://placehold.co/56x70",this.altImage="",this.fullwidth=!1,this.tagText=""}onClick(){typeof this.onClickTile=="function"&&this.onClickTile()}get icons(){return this.type==="chevron"?l`
|
|
2243
2243
|
<o-icon-button
|
|
2244
2244
|
@click=${this.onClick}
|
|
2245
2245
|
icon="chevronRight"
|
|
@@ -2371,7 +2371,7 @@
|
|
|
2371
2371
|
.fullpointer {
|
|
2372
2372
|
cursor: pointer;
|
|
2373
2373
|
}
|
|
2374
|
-
`;let
|
|
2374
|
+
`;let C=ne;R([a({type:String})],C.prototype,"type");R([a({type:String})],C.prototype,"titleProduct");R([a({type:String})],C.prototype,"volume");R([a({type:String})],C.prototype,"perLiter");R([a({type:String})],C.prototype,"mainPrice");R([a({type:String})],C.prototype,"imageUrl");R([a({type:String})],C.prototype,"altImage");R([a({type:Boolean})],C.prototype,"fullwidth");R([a({type:String})],C.prototype,"tagText");R([a({type:Function})],C.prototype,"onClickTile");customElements.define("mini-tile",C);var mi=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,oe=(o,t,e,n)=>{for(var i=n>1?void 0:n?xi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&mi(t,e,i),i};let $t=class extends p{constructor(){super(...arguments),this.variant="cart",this.text=""}render(){return l`
|
|
2375
2375
|
<span class="badge">
|
|
2376
2376
|
${this.text?this.text:l`<slot></slot>`}
|
|
2377
2377
|
</span>
|
|
@@ -2409,7 +2409,7 @@
|
|
|
2409
2409
|
color: var(--text-color);
|
|
2410
2410
|
}
|
|
2411
2411
|
|
|
2412
|
-
`;oe([a({type:String,reflect:!0})],$t.prototype,"variant",2);oe([a({type:String})],$t.prototype,"text",2);$t=oe([g("o-badge")],$t);var wi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,z=(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
|
|
2412
|
+
`;oe([a({type:String,reflect:!0})],$t.prototype,"variant",2);oe([a({type:String})],$t.prototype,"text",2);$t=oe([g("o-badge")],$t);var wi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,z=(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 k=class extends p{constructor(){super(...arguments),this.icon="info",this.text="Sample text",this.verticalanchor="top",this.horizontalanchor="right",this.verticaloffset=24,this.horizontaloffset=24,this.animationduration=500,this.animationaxis="horizontal",this.animated=!0,this.lifeduration=5e3,this.multiline=!1}attributeChangedCallback(o,t,e){super.attributeChangedCallback(o,t,e),o=="verticaloffset"&&this.style.setProperty("--vertical-offset",e+"px"),o=="horizontaloffset"&&this.style.setProperty("--horizontal-offset",e+"px"),o=="animationduration"&&this.style.setProperty("--animation-duration",e+"ms")}selfCloseAfterDelay(){var o=this;setTimeout(function(){o.animated=!0,o.selfClose()},this.lifeduration)}selfClose(){var o=this;setTimeout(function(){o.remove()},this.animationduration+200)}connectedCallback(){var o=this;super.connectedCallback(),setTimeout(()=>{o.animated=!1,this.selfCloseAfterDelay()},600)}firstUpdated(){var n,i;var o=this;const t=(n=this.renderRoot)==null?void 0:n.querySelector("o-icon-button"),e=(i=this.renderRoot)==null?void 0:i.querySelector(".o-toast-text");if(e!=null){const r=window.getComputedStyle(e),s=parseInt(r.getPropertyValue("line-height").replace("px","")),c=parseInt(r.getPropertyValue("height").replace("px",""));!isNaN(s)&&!isNaN(c)&&c>s&&(this.multiline=!0)}t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=Eo[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`
|
|
2413
2413
|
<div class="o-toast">
|
|
2414
2414
|
<div class="o-toast-icon">
|
|
2415
2415
|
${$(t)}
|
|
@@ -2425,7 +2425,7 @@
|
|
|
2425
2425
|
</o-icon-button>
|
|
2426
2426
|
</div>
|
|
2427
2427
|
</div>
|
|
2428
|
-
`}};
|
|
2428
|
+
`}};k.styles=v`
|
|
2429
2429
|
:host {
|
|
2430
2430
|
--vertical-offset: 24px;
|
|
2431
2431
|
--horizontal-offset: 24px;
|
|
@@ -2502,7 +2502,7 @@
|
|
|
2502
2502
|
.o-toast-icon {
|
|
2503
2503
|
height: 16px;
|
|
2504
2504
|
}
|
|
2505
|
-
`;z([a({type:String,reflect:!0})],
|
|
2505
|
+
`;z([a({type:String,reflect:!0})],k.prototype,"icon",2);z([a({type:String,reflect:!0})],k.prototype,"text",2);z([a({type:String,reflect:!0})],k.prototype,"verticalanchor",2);z([a({type:String,reflect:!0})],k.prototype,"horizontalanchor",2);z([a({type:Number,reflect:!0})],k.prototype,"verticaloffset",2);z([a({type:Number,reflect:!0})],k.prototype,"horizontaloffset",2);z([a({type:Number,reflect:!0})],k.prototype,"animationduration",2);z([a({type:String,reflect:!0})],k.prototype,"animationaxis",2);z([a({type:Boolean,reflect:!0})],k.prototype,"animated",2);z([a({type:Number,reflect:!0})],k.prototype,"lifeduration",2);z([a({type:Boolean,reflect:!0})],k.prototype,"multiline",2);k=z([g("o-toast")],k);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,D=(o,t,e,n)=>{for(var i=n>1?void 0:n?_i(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ki(t,e,i),i};let Ci=0,E=class extends p{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Checkbox",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-checkbox-${++Ci}`)}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=$(V.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=$(V.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
|
|
2506
2506
|
<input
|
|
2507
2507
|
type="checkbox"
|
|
2508
2508
|
id=${this.inputId}
|
|
@@ -2518,7 +2518,7 @@
|
|
|
2518
2518
|
</div>
|
|
2519
2519
|
|
|
2520
2520
|
${this.showLabel?l`<label class="label" for=${this.inputId}>${this.label}</label>`:""}
|
|
2521
|
-
`}};
|
|
2521
|
+
`}};E.styles=v`
|
|
2522
2522
|
:host {
|
|
2523
2523
|
display: inline-flex;
|
|
2524
2524
|
align-items: center;
|
|
@@ -2621,7 +2621,7 @@
|
|
|
2621
2621
|
svg path {
|
|
2622
2622
|
stroke: var(--color-border-white);
|
|
2623
2623
|
}
|
|
2624
|
-
`;D([a({type:Boolean,reflect:!0})],
|
|
2624
|
+
`;D([a({type:Boolean,reflect:!0})],E.prototype,"checked",2);D([a({type:Boolean,reflect:!0})],E.prototype,"indeterminate",2);D([a({type:Boolean,reflect:!0})],E.prototype,"disabled",2);D([a({type:String,reflect:!0})],E.prototype,"size",2);D([a({type:Boolean})],E.prototype,"showLabel",2);D([a({type:String})],E.prototype,"label",2);D([a({type:String})],E.prototype,"name",2);D([a({type:String})],E.prototype,"value",2);D([a({type:String,reflect:!0})],E.prototype,"inputId",2);D([ke("input")],E.prototype,"inputEl",2);E=D([g("o-checkbox")],E);var Ei=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,U=(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&&Ei(t,e,i),i};let Ai=0,O=class extends p{constructor(){super(),this.checked=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Radio button",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-radio-${++Ai}`)}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`
|
|
2625
2625
|
<input type="radio" id=${this.inputId} ?checked=${this.checked} ?disabled=${this.disabled} name=${this.name} value=${this.value} />
|
|
2626
2626
|
|
|
2627
2627
|
<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}>
|
|
@@ -2718,7 +2718,7 @@
|
|
|
2718
2718
|
width: 0;
|
|
2719
2719
|
height: 0;
|
|
2720
2720
|
}
|
|
2721
|
-
`;
|
|
2721
|
+
`;U([a({type:Boolean,reflect:!0})],O.prototype,"checked",2);U([a({type:Boolean,reflect:!0})],O.prototype,"disabled",2);U([a({type:String,reflect:!0})],O.prototype,"size",2);U([a({type:Boolean})],O.prototype,"showLabel",2);U([a({type:String})],O.prototype,"label",2);U([a({type:String})],O.prototype,"name",2);U([a({type:String})],O.prototype,"value",2);U([a({type:String,reflect:!0})],O.prototype,"inputId",2);U([ke("input")],O.prototype,"inputEl",2);O=U([g("o-radio")],O);var Li=Object.getOwnPropertyDescriptor,Pi=(o,t,e,n)=>{for(var i=n>1?void 0:n?Li(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(i)||i);return i};let Ut=class extends p{render(){return l`
|
|
2722
2722
|
<nav aria-label="Breadcrumbs">
|
|
2723
2723
|
<ul>
|
|
2724
2724
|
<slot></slot>
|
|
@@ -2735,7 +2735,7 @@
|
|
|
2735
2735
|
margin: var(--spacing-4-xs);
|
|
2736
2736
|
padding: var(--spacing-4-xs);
|
|
2737
2737
|
}
|
|
2738
|
-
`;Ut=
|
|
2738
|
+
`;Ut=Pi([g("o-breadcrumbs")],Ut);var Bi=Object.defineProperty,Oi=Object.getOwnPropertyDescriptor,ie=(o,t,e,n)=>{for(var i=n>1?void 0:n?Oi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Bi(t,e,i),i};let kt=class extends p{constructor(){super(...arguments),this.href="",this.active=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){return this.active?l`<span aria-current="page"><slot></slot></span>`:l`
|
|
2739
2739
|
<li>
|
|
2740
2740
|
<a
|
|
2741
2741
|
href="${this.href}"
|
|
@@ -2745,7 +2745,7 @@
|
|
|
2745
2745
|
<slot></slot>
|
|
2746
2746
|
</a>
|
|
2747
2747
|
</li>
|
|
2748
|
-
`}};
|
|
2748
|
+
`}};kt.styles=v`
|
|
2749
2749
|
:host(:not([active]))::after {
|
|
2750
2750
|
content: "/";
|
|
2751
2751
|
margin: 0 0.5rem;
|
|
@@ -2784,7 +2784,7 @@
|
|
|
2784
2784
|
:host(.a--tabfocus) {
|
|
2785
2785
|
outline: none !important;
|
|
2786
2786
|
}
|
|
2787
|
-
`;ie([a({type:String})],
|
|
2787
|
+
`;ie([a({type:String})],kt.prototype,"href",2);ie([a({type:Boolean,reflect:!0})],kt.prototype,"active",2);kt=ie([g("o-breadcrumb")],kt);var zi=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,Ct=(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&&zi(t,e,i),i};let nt=class extends p{constructor(){super(...arguments),this.imageUrl="",this.imageAlt="",this.hoverUrl="",this.hoverAlt=""}render(){return l`<div class="card">
|
|
2788
2788
|
<svg aria-hidden="true">
|
|
2789
2789
|
<defs>
|
|
2790
2790
|
<clipPath id="arch-gift-finder" clipPathUnits="objectBoundingBox">
|
|
@@ -2911,7 +2911,7 @@
|
|
|
2911
2911
|
d="m 1237.15,72.3984 c -3.61,1.5625 -7.64,0.6211 -10.76,-1.5898 -3.47,-2.4688 -6.01,-6.207 -8.42,-9.6484 l -2.61,-3.7305 c -3.58,-5.1094 -9.55,-13.6992 -12.29,-16.1094 -5.74,-5.1289 -9.34,-6.6094 -53,-6.6094 -33.15,0 -37.81,0.9883 -43.8,4.1602 -5.52,2.7891 -7.77,10.7773 -7.77,13.6484 0,3.3594 -0.2,14.711 -0.45,28.7422 -0.39,22.6093 -0.93,52.2383 -0.93,66.5083 v 2.082 c 61.53,-0.032 57.15,-0.524 65,-2.762 2.14,-0.75 4.31,-3.918 6.04,-9.07 0,0 1.62,-4.02 1.63,-4.032 1.32,-3.277 2.66,-6.867 5.45,-9.207 3.1,-2.609 8.34,-2.961 11.82,-0.832 2.53,1.551 4.41,4.86 5.34,7.641 1.18,3.469 1.06,7.031 0.47,10.601 -0.42,2.528 -1.65,14.649 -0.88,22.661 0.36,3.359 0.91,7.339 1.4,11.039 0.81,5.937 1.45,11.25 1.45,13.039 0,10.769 -6.83,13.64 -10.87,13.64 -7.45,0 -10.98,-7.148 -12.29,-9.8 -5.17,-10.34 -7.99,-12.258 -8.92,-12.77 -1.75,-1.09 -4.81,-1.93 -26.44,-1.93 h -39.2 v 107.52 c 0,4.422 0.17,7.101 0.34,8.738 15.96,0.774 76.93,0.524 87.71,-1.476 3.62,-0.602 9.08,-1.5 17.68,-21.911 1.36,-3.211 3.03,-6.711 5.7,-9.043 3,-2.609 7.9,-3.558 11.48,-1.648 3.15,1.672 4.77,5.262 5.42,8.621 0.48,2.52 0.57,5.379 0.02,7.899 -1.68,7.71 -2.32,17.339 -2.74,23.718 l -0.42,5.41 c -1.6,9.993 -5.84,15.063 -12.6,15.063 -1.95,0 -3.97,-0.121 -6.59,-0.27 -4.29,-0.261 -10.36,-0.652 -21.14,-0.652 -8.99,0 -29.44,-0.219 -50.5,-0.437 -22.25,-0.231 -45.19,-0.493 -55.89,-0.493 -7.8,0 -14.28,0.411 -20.23,0.77 -5.38,0.32 -10.33,0.621 -15.39,0.621 -8.85,0 -15.02,-4.461 -15.02,-10.859 0,-3.692 1.73,-10.231 13.17,-12.532 11.25,-2.488 15.05,-3.339 15.05,-28.168 0,-97.863 -0.47,-142.242 -2.32,-215.7808 -0.34,-15.5196 -5.21,-19.0821 -18.87,-21.3594 C 1027,30.8984 1016.62,29 1016.62,19.6719 c 0,-1.9727 0.81,-11.80081 16.89,-11.80081 1.95,0 6.58,0.3086 12.45,0.71875 9.5,0.67969 22.45,1.60156 31.94,1.60156 17.71,0 38.65,-0.41015 60.92,-0.83984 25.46,-0.49218 52.62,-1.01172 78.73,-1.01172 4,0 9.62,1.69926 13.67,9.76956 2.26,4.4687 4.54,12.8906 7.15,22.6094 1.18,4.4218 2.39,8.9531 3.55,12.8203 0.89,2.9804 1.73,5.9726 1.57,9.1211 -0.2,3.9804 -2.49,7.9804 -6.34,9.7382" /><path
|
|
2912
2912
|
id="path52"
|
|
2913
2913
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
2914
|
-
d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;var Hi=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,
|
|
2914
|
+
d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;var Hi=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,H=(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&&Hi(t,e,i),i};const re=class re extends p{constructor(){super(...arguments),this.ispagedesigner=!1,this._classPopin="",this.open=!1,this.background="",this.backgroundUrl="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.lockScroll=!0,this.variant="fullscreen",this.maxWidth="640px",this._labelId=`title-${Math.random().toString(36).slice(2)}`,this._onBackdropClick=t=>{var n;if(!this.open||!this.closeOnBackdrop)return;const e=t.composedPath()[0];(n=e==null?void 0:e.classList)!=null&&n.contains("backdrop")&&this._requestClose("backdrop")}}get classPopin(){return this.ispagedesigner?"pagedesigner-popin "+this._classPopin:this._classPopin}set classPopin(t){this._classPopin=t}connectedCallback(){super.connectedCallback(),this._onKeydown=this._onKeydown.bind(this),document.addEventListener("keydown",this._onKeydown)}disconnectedCallback(){document.removeEventListener("keydown",this._onKeydown),super.disconnectedCallback()}updated(t){if(t.has("background")||t.has("backgroundUrl")){let e="";this.background&&this.background.trim()?e=this.background.trim():this.backgroundUrl&&this.backgroundUrl.trim()&&(e=`url('${this.backgroundUrl.trim()}') center/cover no-repeat`),this.style.setProperty("--_bg",e)}if(t.has("open")&&this.lockScroll){const e=document==null?void 0:document.body;e&&(e.style.overflow=this.open?"hidden":""),this.open?this.updateComplete.then(()=>{var i;(i=this.renderRoot.querySelector("[data-close-btn]")??this.renderRoot.querySelector('[role="dialog"]'))==null||i.focus(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}):this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}_onKeydown(t){this.open&&this.closeOnEsc&&t.key==="Escape"&&(t.preventDefault(),this._requestClose("esc"))}_requestClose(t){const e=new CustomEvent("request-close",{bubbles:!0,composed:!0,detail:{reason:t}});this.dispatchEvent(e),e.defaultPrevented||(this.open=!1)}_renderCloseButton(){return customElements.get("o-icon-button")?l`
|
|
2915
2915
|
<o-icon-button
|
|
2916
2916
|
data-close-btn
|
|
2917
2917
|
icon="cross"
|
|
@@ -2923,15 +2923,10 @@
|
|
|
2923
2923
|
@click=${()=>this._requestClose("button")}
|
|
2924
2924
|
></o-icon-button>
|
|
2925
2925
|
`:l`
|
|
2926
|
-
<button
|
|
2927
|
-
|
|
2928
|
-
data-close-btn
|
|
2929
|
-
aria-label="Close"
|
|
2930
|
-
@click=${()=>this._requestClose("button")}
|
|
2931
|
-
>×</button>
|
|
2932
|
-
`}render(){const t=this.backgroundUrl?`--_bg-image: url('${this.backgroundUrl}')`:"";return l`
|
|
2926
|
+
<button class="close" data-close-btn aria-label="Close" @click=${()=>this._requestClose("button")}>×</button>
|
|
2927
|
+
`}render(){return l`
|
|
2933
2928
|
${this.open?l`<div class="backdrop" part="backdrop" @click=${this._onBackdropClick}></div>`:null}
|
|
2934
|
-
<div class="dialog-wrapper ${this.ispagedesigner?"intro-pagedesigner":""}"
|
|
2929
|
+
<div class="dialog-wrapper ${this.ispagedesigner?"intro-pagedesigner":""}" @click=${this._onBackdropClick} aria-hidden=${this.open?"false":"true"}>
|
|
2935
2930
|
<section
|
|
2936
2931
|
class="dialog"
|
|
2937
2932
|
part="dialog"
|
|
@@ -2944,9 +2939,7 @@
|
|
|
2944
2939
|
<div class="brand">
|
|
2945
2940
|
<span slot="logo">${$(Di)}</span>
|
|
2946
2941
|
</div>
|
|
2947
|
-
<div part="close">
|
|
2948
|
-
${this._renderCloseButton()}
|
|
2949
|
-
</div>
|
|
2942
|
+
<div part="close">${this._renderCloseButton()}</div>
|
|
2950
2943
|
</header>
|
|
2951
2944
|
<main part="body">
|
|
2952
2945
|
<slot></slot>
|
|
@@ -2970,7 +2963,6 @@
|
|
|
2970
2963
|
position: relative;
|
|
2971
2964
|
display: block;
|
|
2972
2965
|
}
|
|
2973
|
-
|
|
2974
2966
|
:host([open]) { display: block; }
|
|
2975
2967
|
|
|
2976
2968
|
.backdrop {
|
|
@@ -2987,14 +2979,13 @@
|
|
|
2987
2979
|
place-items: center;
|
|
2988
2980
|
padding: 0;
|
|
2989
2981
|
}
|
|
2990
|
-
|
|
2991
2982
|
.dialog-wrapper.intro-pagedesigner {
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2983
|
+
height: 100vh;
|
|
2984
|
+
max-height: 900px;
|
|
2985
|
+
position: relative;
|
|
2995
2986
|
}
|
|
2996
2987
|
|
|
2997
|
-
/*
|
|
2988
|
+
/* FULLSCREEN */
|
|
2998
2989
|
.dialog {
|
|
2999
2990
|
position: relative;
|
|
3000
2991
|
width: 100%;
|
|
@@ -3009,12 +3000,12 @@
|
|
|
3009
3000
|
background: var(--color-container-bg-white, #fff);
|
|
3010
3001
|
}
|
|
3011
3002
|
|
|
3012
|
-
/*
|
|
3003
|
+
/* Calque de fond */
|
|
3013
3004
|
.dialog::before {
|
|
3014
3005
|
content: '';
|
|
3015
3006
|
position: absolute;
|
|
3016
3007
|
inset: 0;
|
|
3017
|
-
background
|
|
3008
|
+
background: var(--_bg, none); /* couleur / gradient / image */
|
|
3018
3009
|
background-size: cover;
|
|
3019
3010
|
background-position: center;
|
|
3020
3011
|
opacity: 1;
|
|
@@ -3035,76 +3026,27 @@
|
|
|
3035
3026
|
to bottom,
|
|
3036
3027
|
var(--popin-top-gradient-color, rgba(0, 0, 0, 1)) -168px,
|
|
3037
3028
|
rgba(0, 0, 0, 0)
|
|
3038
|
-
|
|
3029
|
+
);
|
|
3039
3030
|
z-index: 2;
|
|
3040
3031
|
}
|
|
3041
3032
|
|
|
3042
|
-
.brand {
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
}
|
|
3047
|
-
::slotted([slot="logo"]) {
|
|
3048
|
-
display: inline-flex;
|
|
3049
|
-
height: 28px; /* tweak as needed */
|
|
3050
|
-
line-height: 0;
|
|
3051
|
-
}
|
|
3033
|
+
.brand { display: inline-flex; align-items: center; gap: var(--spacing-s, 8px); }
|
|
3034
|
+
::slotted([slot="logo"]) { display: inline-flex; height: 28px; line-height: 0; }
|
|
3035
|
+
[slot="logo"] svg { width: 176px; height: auto; }
|
|
3036
|
+
[slot="logo"] svg path { fill: #fff !important; }
|
|
3052
3037
|
|
|
3053
|
-
[
|
|
3054
|
-
|
|
3055
|
-
height: auto;
|
|
3056
|
-
}
|
|
3038
|
+
[part="close"] { position: absolute; top: 16px; right: 36px; }
|
|
3039
|
+
@media (max-width: 767px) { [part="close"] { right: 8px; top: 22px; } }
|
|
3057
3040
|
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
}
|
|
3061
|
-
|
|
3062
|
-
[part="close"] {
|
|
3063
|
-
position: absolute;
|
|
3064
|
-
top: 16px;
|
|
3065
|
-
right: 36px;
|
|
3066
|
-
}
|
|
3067
|
-
|
|
3068
|
-
@media (max-width: 767px) {
|
|
3069
|
-
[part="close"] {
|
|
3070
|
-
right: 8px;
|
|
3071
|
-
top: 22px;
|
|
3072
|
-
}
|
|
3073
|
-
}
|
|
3074
|
-
|
|
3075
|
-
.close {
|
|
3076
|
-
font: inherit;
|
|
3077
|
-
border: 0;
|
|
3078
|
-
background: transparent;
|
|
3079
|
-
cursor: pointer;
|
|
3080
|
-
width: 36px; height: 36px;
|
|
3081
|
-
border-radius: 999px;
|
|
3082
|
-
display: grid; place-items: center;
|
|
3083
|
-
}
|
|
3041
|
+
.close { font: inherit; border: 0; background: transparent; cursor: pointer;
|
|
3042
|
+
width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; }
|
|
3084
3043
|
|
|
3085
|
-
main[part="body"] {
|
|
3086
|
-
position: relative;
|
|
3087
|
-
z-index: 1;
|
|
3088
|
-
padding: 0;
|
|
3089
|
-
overflow: auto;
|
|
3090
|
-
height: 100%;
|
|
3091
|
-
}
|
|
3044
|
+
main[part="body"] { position: relative; z-index: 1; padding: 0; overflow: auto; height: 100%; }
|
|
3092
3045
|
|
|
3093
3046
|
/* Variant: dialog */
|
|
3094
|
-
:host([variant="dialog"]) .dialog {
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
border-radius: var(--_radius);
|
|
3098
|
-
box-shadow: var(--_shadow);
|
|
3099
|
-
}
|
|
3100
|
-
|
|
3101
|
-
:host([variant="dialog"]) .dialog-wrapper {
|
|
3102
|
-
place-items: center;
|
|
3103
|
-
}
|
|
3104
|
-
|
|
3105
|
-
:host([variant="dialog"]) main[part="body"] {
|
|
3106
|
-
height: auto;
|
|
3107
|
-
}
|
|
3047
|
+
:host([variant="dialog"]) .dialog { width: min(var(--_max-width), calc(100vw - 2 * var(--spacing-l, 24px))); max-height: min(86vh, 100%); border-radius: var(--_radius); box-shadow: var(--_shadow); }
|
|
3048
|
+
:host([variant="dialog"]) .dialog-wrapper { place-items: center; }
|
|
3049
|
+
:host([variant="dialog"]) main[part="body"] { height: auto; }
|
|
3108
3050
|
|
|
3109
3051
|
/* Open animation */
|
|
3110
3052
|
:host([open]) .dialog { animation: popin-in .18s ease; }
|
|
@@ -3112,5 +3054,4 @@
|
|
|
3112
3054
|
from { transform: translateY(10px) scale(.98); opacity: 0; }
|
|
3113
3055
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
3114
3056
|
}
|
|
3115
|
-
|
|
3116
|
-
`;let E=re;U([a({type:Boolean,reflect:!0})],E.prototype,"ispagedesigner",2);U([a({type:String,reflect:!0})],E.prototype,"classPopin",1);U([a({type:Boolean,reflect:!0})],E.prototype,"open",2);U([a({type:String,attribute:"background-url"})],E.prototype,"backgroundUrl",2);U([a({type:Boolean,attribute:"close-on-esc"})],E.prototype,"closeOnEsc",2);U([a({type:Boolean,attribute:"close-on-backdrop"})],E.prototype,"closeOnBackdrop",2);U([a({type:Boolean,attribute:"lock-scroll"})],E.prototype,"lockScroll",2);U([a({type:String,reflect:!0})],E.prototype,"variant",2);U([a({type:String,attribute:"max-width"})],E.prototype,"maxWidth",2);U([J()],E.prototype,"_labelId",2);customElements.define("o-popin",E);
|
|
3057
|
+
`;let _=re;H([a({type:Boolean,reflect:!0})],_.prototype,"ispagedesigner",2);H([a({type:String,reflect:!0})],_.prototype,"classPopin",1);H([a({type:Boolean,reflect:!0})],_.prototype,"open",2);H([a({type:String,reflect:!0})],_.prototype,"background",2);H([a({type:String,attribute:"background-url",reflect:!0})],_.prototype,"backgroundUrl",2);H([a({type:Boolean,attribute:"close-on-esc"})],_.prototype,"closeOnEsc",2);H([a({type:Boolean,attribute:"close-on-backdrop"})],_.prototype,"closeOnBackdrop",2);H([a({type:Boolean,attribute:"lock-scroll"})],_.prototype,"lockScroll",2);H([a({type:String,reflect:!0})],_.prototype,"variant",2);H([a({type:String,attribute:"max-width"})],_.prototype,"maxWidth",2);H([J()],_.prototype,"_labelId",2);customElements.define("o-popin",_);
|