@florid-kit/components 0.9.35 → 0.9.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/arch-image.d.ts +1 -0
- package/index.js +102 -81
- package/index.mjs +500 -476
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const St=globalThis,Nt=St.ShadowRoot&&(St.ShadyCSS===void 0||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vt=Symbol(),se=new WeakMap;let ye=class{constructor(t,e,
|
|
5
|
+
*/const St=globalThis,Nt=St.ShadowRoot&&(St.ShadyCSS===void 0||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vt=Symbol(),se=new WeakMap;let ye=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Nt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=se.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&se.set(e,t))}return t}toString(){return this.cssText}};const Ee=o=>new ye(typeof o=="string"?o:o+"",void 0,Vt),v=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((r,i,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[n+1],o[0]);return new ye(e,o,Vt)},Se=(o,t)=>{if(Nt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),i=St.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},ae=Nt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return Ee(e)})(o):o;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:Ae,defineProperty:Le,getOwnPropertyDescriptor:Be,getOwnPropertyNames:Pe,getOwnPropertySymbols:
|
|
9
|
+
*/const{is:Ae,defineProperty:Le,getOwnPropertyDescriptor:Be,getOwnPropertyNames:Pe,getOwnPropertySymbols:ze,getPrototypeOf:Oe}=Object,X=globalThis,le=X.trustedTypes,Ie=le?le.emptyScript:"",It=X.reactiveElementPolyfillSupport,ut=(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 r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&Le(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:n}=Be(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);n==null||n.call(this,s),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ce}static _$Ei(){if(this.hasOwnProperty(ut("elementProperties")))return;const t=Oe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ut("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ut("properties"))){const e=this.properties,r=[...Pe(e),...ze(e)];for(const i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)e.unshift(ae(i))}else t!==void 0&&e.push(ae(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r: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 r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);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 r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){var n;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:At).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var n,s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const c=r.getPropertyOptions(i),h=typeof c.converter=="function"?{fromAttribute:c.converter}:((n=c.converter)==null?void 0:n.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,r){var i;if(t!==void 0){const n=this.constructor,s=this[t];if(r??(r=n.getPropertyOptions(t)),!((r.hasChanged??qt)(s,e)||r.useDefault&&r.reflect&&s===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(n._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:i,wrapped:n},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),n!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(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 r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,s]of i){const{wrapped:c}=s,h=this[n];c!==!0||this._$AL.has(n)||h===void 0||this.C(n,void 0,s,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.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(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),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[ut("elementProperties")]=new Map,at[ut("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
|
-
*/const
|
|
14
|
-
\f\r]`,
|
|
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,
|
|
13
|
+
*/const vt=globalThis,Lt=vt.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}>`,rt=document,gt=()=>rt.createComment(""),bt=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
|
+
\f\r]`,pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,de=/-->/g,pe=/>/g,et=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,ot=rt.createTreeWalker(rt,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,r=[];let i,n=t===2?"<svg>":t===3?"<math>":"",s=pt;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===pt?w[1]==="!--"?s=de:w[1]!==void 0?s=pe:w[2]!==void 0?(we.test(w[2])&&(i=RegExp("</"+w[2],"g")),s=et):w[3]!==void 0&&(s=et):s===et?w[0]===">"?(s=i??pt,f=-1):w[1]===void 0?f=-2:(f=s.lastIndex-w[2].length,m=w[1],s=w[3]===void 0?et:w[3]==='"'?ve:ue):s===ve||s===ue?s=et:s===de||s===pe?s=pt:(s=et,i=void 0);const W=s===et&&o[c+1].startsWith("/>")?" ":"";n+=s===pt?h+De:f>=0?(r.push(m),h.slice(0,f)+me+h.slice(f)+G+W):h+G+(f===-2?c:W)}return[$e(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class yt{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0;const c=t.length-1,h=this.parts,[m,w]=Te(t,e);if(this.el=yt.createElement(m,r),ot.currentNode=this.el.content,e===2||e===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=ot.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:n,name:Et[2],strings:W,ctor:Et[1]==="."?je:Et[1]==="?"?Re:Et[1]==="@"?Ue:Pt}),i.removeAttribute(f)}else f.startsWith(G)&&(h.push({type:6,index:n}),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],gt()),ot.nextNode(),h.push({type:2,index:++n});i.append(f[N],gt())}}}else if(i.nodeType===8)if(i.data===xe)h.push({type:2,index:n});else{let f=-1;for(;(f=i.data.indexOf(G,f+1))!==-1;)h.push({type:7,index:n}),f+=G.length-1}n++}}static createElement(t,e){const r=rt.createElement("template");return r.innerHTML=t,r}}function lt(o,t,e=o,r){var s,c;if(t===Y)return t;let i=r!==void 0?(s=e._$Co)==null?void 0:s[r]:e._$Cl;const n=bt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=i:e._$Cl=i),i!==void 0&&(t=lt(o,i._$AS(o,t.values),i,r)),t}class Fe{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:r}=this._$AD,i=((t==null?void 0:t.creationScope)??rt).importNode(e,!0);ot.currentNode=i;let n=ot.nextNode(),s=0,c=0,h=r[0];for(;h!==void 0;){if(s===h.index){let m;h.type===2?m=new Ct(n,n.nextSibling,this,t):h.type===1?m=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(m=new Ne(n,this,t)),this._$AV.push(m),h=r[++c]}s!==(h==null?void 0:h.index)&&(n=ot.nextNode(),s++)}return ot.currentNode=rt,i}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class Ct{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,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),bt(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&&bt(this._$AH)?this._$AA.nextSibling.data=t:this.T(rt.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=yt.createElement($e(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const s=new Fe(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 yt(t)),e}k(t){Zt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const n of t)i===e.length?e.push(r=new Ct(this.O(gt()),this.O(gt()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.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 Pt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,i){const n=this.strings;let s=!1;if(n===void 0)t=lt(this,t,e,0),s=!bt(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{const c=t;let h,m;for(t=n[0],h=0;h<n.length-1;h++)m=lt(this,c[r+h],e,h),m===Y&&(m=this._$AH[h]),s||(s=!bt(m)||m!==this._$AH[h]),m===d?t=d:t!==d&&(t+=(m??"")+n[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 je extends Pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Re extends Pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Ue extends Pt{constructor(t,e,r,i,n){super(t,e,r,i,n),this.type=5}_$AI(t,e=this){if((t=lt(this,t,e,0)??d)===Y)return;const r=this._$AH,i=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==d&&(r===d||i);i&&this.element.removeEventListener(this.name,this,r),n&&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,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){lt(this,t)}}const Ht=vt.litHtmlPolyfillSupport;Ht==null||Ht(yt,Ct),(vt.litHtmlVersions??(vt.litHtmlVersions=[])).push("3.3.0");const Ve=(o,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new Ct(t.insertBefore(gt(),n),n,void 0,e??{})}return i._$AI(o),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const
|
|
19
|
+
*/const it=globalThis;let p=class extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ve(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Y}};var be;p._$litElement$=!0,p.finalized=!0,(be=it.litElementHydrateSupport)==null||be.call(it,{LitElement:p});const Mt=it.litElementPolyfillSupport;Mt==null||Mt({LitElement:p});(it.litElementVersions??(it.litElementVersions=[])).push("4.2.0");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const qe={attribute:!0,type:String,converter:At,reflect:!1,hasChanged:qt},Ze=(o=qe,t,e)=>{const{kind:
|
|
27
|
+
*/const qe={attribute:!0,type:String,converter:At,reflect:!1,hasChanged:qt},Ze=(o=qe,t,e)=>{const{kind:r,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),n.set(e.name,o),r==="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(r==="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: "+r)};function a(o){return(t,e)=>typeof e=="object"?Ze(o,t,e):((r,i,n)=>{const s=i.hasOwnProperty(n);return i.constructor.createProperty(n,r),s?Object.getOwnPropertyDescriptor(i,n):void 0})(o,t,e)}/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function
|
|
31
|
+
*/function Q(o){return a({...o,state:!0,attribute:!1})}/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2017 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright 2017 Google LLC
|
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/function ke(o,t){return(e,
|
|
39
|
+
*/function ke(o,t){return(e,r,i)=>{const n=s=>{var c;return((c=s.renderRoot)==null?void 0:c.querySelector(o))??null};return Ke(e,r,{get(){return n(this)}})}}const nt=v`
|
|
40
40
|
outline: 1px dashed var(--color-border-primary);
|
|
41
41
|
outline-offset: 2px;
|
|
42
42
|
`;v`
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2023 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: Apache-2.0
|
|
54
|
-
*/function We(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async
|
|
54
|
+
*/function We(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async r=>{const{type:i,[Kt]:n}=e,{form:s}=n;if(!(!s||i==="button")&&(await new Promise(c=>{setTimeout(c)}),!r.defaultPrevented)){if(i==="reset"){s.reset();return}s.addEventListener("submit",c=>{Object.defineProperty(c,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),n.setFormValue(e.value),s.requestSubmit()}})})}const Ge=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
55
55
|
<path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
|
|
56
56
|
</svg>
|
|
57
57
|
`,Xe=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
`,io=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
79
79
|
<path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
|
|
80
80
|
</svg>
|
|
81
|
-
`,
|
|
81
|
+
`,ro=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
82
82
|
<path d="M2 2L14 14" stroke="#3F2B2E"/>
|
|
83
83
|
<path d="M14 2L2 14" stroke="#3F2B2E"/>
|
|
84
84
|
</svg>
|
|
85
|
-
`,
|
|
85
|
+
`,no=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
86
86
|
<path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
|
|
87
87
|
</svg>
|
|
88
88
|
`,so=`<?xml version="1.0" encoding="utf-8"?>
|
|
@@ -152,11 +152,11 @@
|
|
|
152
152
|
`,Eo=`<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
|
-
`,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:
|
|
155
|
+
`,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:ro,search:no,arrowLeft:lo,arrowTop:co,cart:ho,notifyme:po,triangledown:uo,triangleup:vo,checkstroke:fo,pause:go,mapDualArrow:bo,swipeDualArrow:mo,backToBag:ko,checkbox:_o,sliderLeftArrow:Co,sliderRightArrow:Eo},So={strikeDiagonal:yo},Ao={success:xo,error:wo,info:$o};/**
|
|
156
156
|
* @license
|
|
157
157
|
* Copyright 2017 Google LLC
|
|
158
158
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
159
|
-
*/const Gt={ATTRIBUTE:1,CHILD:2},Xt=o=>(...t)=>({_$litDirective$:o,values:t});let Yt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,
|
|
159
|
+
*/const Gt={ATTRIBUTE:1,CHILD:2},Xt=o=>(...t)=>({_$litDirective$:o,values:t});let Yt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
|
|
160
160
|
* @license
|
|
161
161
|
* Copyright 2017 Google LLC
|
|
162
162
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -172,11 +172,11 @@
|
|
|
172
172
|
* @license
|
|
173
173
|
* Copyright 2017 Google LLC
|
|
174
174
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
175
|
-
*/const
|
|
175
|
+
*/const ft=(o,t)=>{var r;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(r=i._$AO)==null||r.call(i,t,!1),ft(i,t);return!0},Bt=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),zo(t)}};function Bo(o){this._$AN!==void 0?(Bt(this),this._$AM=o,_e(this)):this._$AM=o}function Po(o,t=!1,e=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let n=e;n<r.length;n++)ft(r[n],!1),Bt(r[n]);else r!=null&&(ft(r,!1),Bt(r));else ft(this,o)}const zo=o=>{o.type==Gt.CHILD&&(o._$AP??(o._$AP=Po),o._$AQ??(o._$AQ=Bo))};class Oo extends Yt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),_e(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(ft(this,t),Bt(this))}setValue(t){if(Lo(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 Io extends Oo{constructor(){super(...arguments),this.prevData={}}render(t){return d}update(t,[e]){var r;this.element!==t.element&&(this.element=t.element),this.host=((r=t.options)===null||r===void 0?void 0:r.host)||this.element,this.apply(e),this.groom(e),this.prevData={...e}}apply(t){if(!t)return;const{prevData:e,element:r}=this;for(const i in t){const n=t[i];n!==e[i]&&(r[i]=n)}}groom(t){const{prevData:e,element:r}=this;if(e)for(const i in e)(!t||!(i in t)&&r[i]===e[i])&&(r[i]=void 0)}}class Do extends Io{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const e in t){const r=t[e];r!==this.eventData[e]&&this.applyEvent(e,r)}}applyEvent(t,e){const{prevData:r,element:i}=this;this.eventData[t]=e,r[t]&&i.removeEventListener(t,this,e),i.addEventListener(t,this,e)}groom(t){const{prevData:e,element:r}=this;if(e)for(const i in e)(!t||!(i in t)&&r[i]===e[i])&&this.groomEvent(i,e[i])}groomEvent(t,e){const{element:r}=this;delete this.eventData[t],r.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 r in t){const i=r.slice(1),n=t[r];e.removeEventListener(i,this,n)}}reconnected(){const{eventData:t,element:e}=this;for(const r in t){const i=r.slice(1),n=t[r];e.addEventListener(i,this,n)}}}class Ho extends Do{apply(t){if(!t)return;const{prevData:e,element:r}=this;for(const i in t){const n=t[i];if(n===e[i])continue;const s=i.slice(1);switch(i[0]){case"@":this.eventData[s]=n,this.applyEvent(s,n);break;case".":r[s]=n;break;case"?":n?r.setAttribute(s,""):r.removeAttribute(s);break;default:n!=null?r.setAttribute(i,String(n)):r.removeAttribute(i);break}}}groom(t){const{prevData:e,element:r}=this;if(e)for(const i in e){const n=i.slice(1);if(!t||!(i in t)&&r[n]===e[i])switch(i[0]){case"@":this.groomEvent(n,e[i]);break;case".":r[n]=void 0;break;case"?":r.removeAttribute(n);break;default:r.removeAttribute(i);break}}}}const ge=Xt(Ho);/**
|
|
176
176
|
* @license
|
|
177
177
|
* Copyright 2018 Google LLC
|
|
178
178
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
179
|
-
*/const A=o=>o??d;var Mo=Object.defineProperty,To=Object.getOwnPropertyDescriptor,T=(o,t,e,
|
|
179
|
+
*/const A=o=>o??d;var Mo=Object.defineProperty,To=Object.getOwnPropertyDescriptor,T=(o,t,e,r)=>{for(var i=r>1?void 0:r?To(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Mo(t,e,i),i};let L=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"'),r=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
|
${k(e)}
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
?disabled="${this.disabled}"
|
|
190
190
|
>
|
|
191
191
|
${k(e)}
|
|
192
|
-
${
|
|
192
|
+
${r}
|
|
193
193
|
</button>
|
|
194
194
|
`}
|
|
195
195
|
`}};L.styles=v`
|
|
@@ -397,13 +397,13 @@
|
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
.icon-button:focus-visible {
|
|
400
|
-
${
|
|
400
|
+
${nt}
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
.sr-only {
|
|
404
404
|
display: none;
|
|
405
405
|
}
|
|
406
|
-
`;T([a({type:String,reflect:!0})],L.prototype,"bgstyle",2);T([a({type:String,reflect:!0})],L.prototype,"size",2);T([a({type:String,reflect:!0})],L.prototype,"status",2);T([a({type:String,reflect:!0})],L.prototype,"type",2);T([a({type:String})],L.prototype,"strokewidth",2);T([a({type:String})],L.prototype,"icon",2);T([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);T([a({type:Boolean})],L.prototype,"showSrLabel",2);T([a({type:String})],L.prototype,"srLabel",2);L=T([g("o-icon-button")],L);var Fo=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,b=(o,t,e,
|
|
406
|
+
`;T([a({type:String,reflect:!0})],L.prototype,"bgstyle",2);T([a({type:String,reflect:!0})],L.prototype,"size",2);T([a({type:String,reflect:!0})],L.prototype,"status",2);T([a({type:String,reflect:!0})],L.prototype,"type",2);T([a({type:String})],L.prototype,"strokewidth",2);T([a({type:String})],L.prototype,"icon",2);T([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);T([a({type:Boolean})],L.prototype,"showSrLabel",2);T([a({type:String})],L.prototype,"srLabel",2);L=T([g("o-icon-button")],L);var Fo=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,b=(o,t,e,r)=>{for(var i=r>1?void 0:r?jo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Fo(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,r;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=(r=this.shadowRoot)==null?void 0:r.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 r=this.renderRoot.querySelector(".content"),i=async()=>{this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1,await this.updateComplete,this._restoreFocusToOrigin()};if(r){this.showHeaderStartIcon=!1;const n=()=>{this.showDetail=!1,this.isHidingDetail=!1,r.removeEventListener("animationend",n),i()};r.addEventListener("animationend",n)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}focusFirstInPanel(){var t,e,r;(r=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||r.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,n,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=((n=t.shadowRoot)==null?void 0:n.querySelector("button"))??t)==null?void 0:s.focus)==null||c.call(s,{preventScroll:!0});const r=(h=this.shadowRoot)==null?void 0:h.querySelector('.panel[role="dialog"]');r&&r.setAttribute("aria-label",this.headerTitle)}_restoreFocusToOrigin(){var t,e;const o=this._detailOriginEl;!o||!document.contains(o)||((e=(t=document.activeElement)==null?void 0:t.blur)==null||e.call(t),requestAnimationFrame(()=>{var i;o.classList.add("a--tabfocus"),(((i=o.shadowRoot)==null?void 0:i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??o).focus({preventScroll:!0})}))}getDeepActiveElement(o=this.shadowRoot){let t=o.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(o){if(o.key!=="Tab")return;const t=this.getDeepActiveElement(),e=this.renderRoot.querySelector(".close-btn");if(!o.shiftKey&&e&&e.contains(t)){o.preventDefault();const r=this.renderRoot.querySelector(".o-whats-inside--content p");r==null||r.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 n=[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);n.push(...c,...h)}return n.flat()}return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e)}openPanel(){this.removeAttribute("hidden"),this.getBoundingClientRect(),this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open");const o=this.renderRoot.querySelector(".panel");o&&o.setAttribute("aria-modal","true"),this.updateComplete.then(()=>{var t,e;if(this.showHeader){const r=(t=this.shadowRoot)==null?void 0:t.querySelector(".panel .close-btn"),i=this.resolveFocusable(r);(e=i==null?void 0:i.focus)==null||e.call(i,{preventScroll:!0})}else this.focusFirstInPanel()}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var t,e,r,i,n;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=(r=(e=this.previousFocusedElement.shadowRoot)==null?void 0:e.querySelector(".button"))==null?void 0:r.focus)==null||i.call(r):(n=this.previousFocusedElement)==null||n.focus();const o=this.renderRoot.querySelector(".panel");o&&o.removeAttribute("aria-modal"),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("firstbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:o.target}})))}handleSecondClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("secondbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:o.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`),this.open||setTimeout(()=>{this.setAttribute("hidden","hidden")},500)}render(){const o=this.showHeader?l`
|
|
407
407
|
<div tabindex="-1" class="header ${this.showDetail?"detail-view-header":""}">
|
|
408
408
|
${this.showHeaderStartIcon?l`
|
|
409
409
|
<o-icon-button
|
|
@@ -600,7 +600,7 @@
|
|
|
600
600
|
|
|
601
601
|
.panel:focus-visible,
|
|
602
602
|
.close-btn:focus-visible {
|
|
603
|
-
${
|
|
603
|
+
${nt}
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
[role="document"] {
|
|
@@ -693,7 +693,7 @@
|
|
|
693
693
|
overflow: auto;
|
|
694
694
|
box-sizing: border-box;
|
|
695
695
|
}
|
|
696
|
-
`;u.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';u.focusablesCustomElementsSelector="o-icon-button, o-button";u.shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};b([a({type:Boolean,reflect:!0})],u.prototype,"open",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],u.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],u.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],u.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],u.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],u.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],u.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],u.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],u.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],u.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],u.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],u.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],u.prototype,"initialized",2);b([a({type:Boolean})],u.prototype,"showDetail",2);b([a({type:Boolean})],u.prototype,"isHidingDetail",2);u=b([g("o-side-panel")],u);var Ro=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,x=(o,t,e,
|
|
696
|
+
`;u.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';u.focusablesCustomElementsSelector="o-icon-button, o-button";u.shadowRootOptions={...p.shadowRootOptions,delegatesFocus:!0};b([a({type:Boolean,reflect:!0})],u.prototype,"open",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],u.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],u.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],u.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],u.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],u.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],u.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],u.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],u.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],u.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],u.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],u.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],u.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],u.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],u.prototype,"initialized",2);b([a({type:Boolean})],u.prototype,"showDetail",2);b([a({type:Boolean})],u.prototype,"isHidingDetail",2);u=b([g("o-side-panel")],u);var Ro=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,x=(o,t,e,r)=>{for(var i=r>1?void 0:r?Uo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Ro(t,e,i),i};const No=Wt(p);let y=class extends No{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target="",this.underlined=!1,this.withbadge=!1}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Kt].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof u&&(t!=null&&t.openPanel)&&typeof t.openPanel=="function"?(o.preventDefault(),t.openPanel()):console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`)}}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){const t=o==="start"?this.startIconModel:this.endIconModel;if(!t)return d;const e=V[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${k(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
|
|
697
697
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}>
|
|
698
698
|
${this.startIcon?this.renderIcon("start"):d}
|
|
699
699
|
${o?l`
|
|
@@ -838,7 +838,7 @@
|
|
|
838
838
|
}
|
|
839
839
|
|
|
840
840
|
.button:focus-visible {
|
|
841
|
-
${
|
|
841
|
+
${nt};
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
span.text + span.text::before {
|
|
@@ -922,7 +922,7 @@
|
|
|
922
922
|
transform: translateX(4px);
|
|
923
923
|
}
|
|
924
924
|
//End icon movment on hover
|
|
925
|
-
`;x([a()],y.prototype,"type",2);x([a()],y.prototype,"value",2);x([a({type:String,reflect:!0})],y.prototype,"variant",2);x([a({type:String})],y.prototype,"text",2);x([a({type:String})],y.prototype,"textsecond",2);x([a({type:Boolean,reflect:!0})],y.prototype,"fullwidth",2);x([a({type:Boolean,reflect:!0})],y.prototype,"disabled",2);x([a({type:String})],y.prototype,"startIconModel",2);x([a({type:String})],y.prototype,"endIconModel",2);x([a({type:Boolean,reflect:!0,attribute:"starticon"})],y.prototype,"startIcon",2);x([a({type:Boolean,reflect:!0,attribute:"endicon"})],y.prototype,"endIcon",2);x([a({type:String,attribute:"paneltarget"})],y.prototype,"panelTarget",2);x([a({type:String})],y.prototype,"href",2);x([a({type:String})],y.prototype,"target",2);x([a({type:Boolean,reflect:!0})],y.prototype,"underlined",2);x([a({type:Boolean,reflect:!0})],y.prototype,"withbadge",2);y=x([g("o-button")],y);var Vo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,
|
|
925
|
+
`;x([a()],y.prototype,"type",2);x([a()],y.prototype,"value",2);x([a({type:String,reflect:!0})],y.prototype,"variant",2);x([a({type:String})],y.prototype,"text",2);x([a({type:String})],y.prototype,"textsecond",2);x([a({type:Boolean,reflect:!0})],y.prototype,"fullwidth",2);x([a({type:Boolean,reflect:!0})],y.prototype,"disabled",2);x([a({type:String})],y.prototype,"startIconModel",2);x([a({type:String})],y.prototype,"endIconModel",2);x([a({type:Boolean,reflect:!0,attribute:"starticon"})],y.prototype,"startIcon",2);x([a({type:Boolean,reflect:!0,attribute:"endicon"})],y.prototype,"endIcon",2);x([a({type:String,attribute:"paneltarget"})],y.prototype,"panelTarget",2);x([a({type:String})],y.prototype,"href",2);x([a({type:String})],y.prototype,"target",2);x([a({type:Boolean,reflect:!0})],y.prototype,"underlined",2);x([a({type:Boolean,reflect:!0})],y.prototype,"withbadge",2);y=x([g("o-button")],y);var Vo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,zt=(o,t,e,r)=>{for(var i=r>1?void 0:r?qo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Vo(t,e,i),i};let ct=class extends p{constructor(){super(...arguments),this.status="empty",this.ariaDescribedBy="a-product-name",this.label="Add to wishlist",this.toggleStatus=()=>{this.status=this.status==="empty"?"filled":"empty",this.setAttribute("aria-pressed",String(this.status==="filled")),this.dispatchEvent(new CustomEvent("wishlist-toggle",{detail:{status:this.status},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("aria-pressed",String(this.status==="filled"))}firstUpdated(){this.addEventListener("click",this.toggleStatus),this.addEventListener("keydown",this.handleKeydown)}handleKeydown(o){(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),this.toggleStatus())}render(){const o=V.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
|
|
926
926
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
927
927
|
<span class="sr-only">${this.label}</span>
|
|
928
928
|
${k(o)}
|
|
@@ -957,7 +957,7 @@
|
|
|
957
957
|
}
|
|
958
958
|
|
|
959
959
|
.wishlist-button:focus-visible {
|
|
960
|
-
${
|
|
960
|
+
${nt};
|
|
961
961
|
}
|
|
962
962
|
|
|
963
963
|
.wishlist-button:hover svg path {
|
|
@@ -991,7 +991,7 @@
|
|
|
991
991
|
width: 0.1rem !important;
|
|
992
992
|
white-space: nowrap !important;
|
|
993
993
|
}
|
|
994
|
-
`;
|
|
994
|
+
`;zt([a({type:String,reflect:!0})],ct.prototype,"status",2);zt([a({type:String,reflect:!0})],ct.prototype,"ariaDescribedBy",2);zt([a({type:String,reflect:!0})],ct.prototype,"label",2);ct=zt([g("o-wishlist-button")],ct);var Zo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,st=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ko(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Zo(t,e,i),i};let q=class extends p{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault(),this.dispatchEvent(new CustomEvent("click",{detail:{href:this.href},bubbles:!0,composed:!0}))}render(){const o=this.href||"#";return l`
|
|
995
995
|
<a
|
|
996
996
|
href="${o}"
|
|
997
997
|
target="${A(this.target||void 0)}"
|
|
@@ -1104,7 +1104,7 @@
|
|
|
1104
1104
|
height: 1px;
|
|
1105
1105
|
}
|
|
1106
1106
|
/* End of underline effect */
|
|
1107
|
-
`;st([a({type:String})],q.prototype,"href",2);st([a({type:String})],q.prototype,"target",2);st([a({type:String,reflect:!0})],q.prototype,"template",2);st([a({type:Boolean,reflect:!0})],q.prototype,"inverse",2);st([a({type:Boolean,reflect:!0})],q.prototype,"endIcon",2);st([a({type:Boolean,reflect:!0})],q.prototype,"reverseEndIcon",2);q=st([g("o-link")],q);var Wo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,
|
|
1107
|
+
`;st([a({type:String})],q.prototype,"href",2);st([a({type:String})],q.prototype,"target",2);st([a({type:String,reflect:!0})],q.prototype,"template",2);st([a({type:Boolean,reflect:!0})],q.prototype,"inverse",2);st([a({type:Boolean,reflect:!0})],q.prototype,"endIcon",2);st([a({type:Boolean,reflect:!0})],q.prototype,"reverseEndIcon",2);q=st([g("o-link")],q);var Wo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Ot=(o,t,e,r)=>{for(var i=r>1?void 0:r?Go(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Wo(t,e,i),i};let ht=class extends p{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let r;e>=1?r=100:e<=0?r=0:r=Math.round(e*100/25)*25,o.push(`star-${r}`)}return o}render(){const o=this.getStarKeys();return l`
|
|
1108
1108
|
<div class="rating">
|
|
1109
1109
|
<div class="stars">
|
|
1110
1110
|
${o.map(t=>l`<span class="star">${k(V[t]??"")}</span>`)}
|
|
@@ -1144,7 +1144,7 @@
|
|
|
1144
1144
|
text-decoration: underline;
|
|
1145
1145
|
cursor: pointer;
|
|
1146
1146
|
}
|
|
1147
|
-
`;
|
|
1147
|
+
`;Ot([a({type:Number})],ht.prototype,"rating",2);Ot([a({type:String})],ht.prototype,"reviewCount",2);Ot([a({type:String})],ht.prototype,"href",2);ht=Ot([g("o-rating")],ht);var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,tt=(o,t,e,r)=>{for(var i=r>1?void 0:r?Yo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Xo(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`
|
|
1148
1148
|
<o-icon-button
|
|
1149
1149
|
icon="playerv"
|
|
1150
1150
|
size="xsmall"
|
|
@@ -1153,21 +1153,21 @@
|
|
|
1153
1153
|
status="filled"
|
|
1154
1154
|
strokewidth="0"
|
|
1155
1155
|
></o-icon-button>
|
|
1156
|
-
`}get lastIndex(){return Math.max(0,this.thumbnails.length-1)}handleKeyDown(o){o.key==="ArrowRight"?(o.preventDefault(),this.focusNext()):o.key==="ArrowLeft"?(o.preventDefault(),this.focusPrevious()):o.key==="Enter"||o.key===" "?(o.preventDefault(),this.selectThumbnail(this.focusedIndex)):o.key==="Tab"&&(!o.shiftKey&&this.focusedIndex===this.lastIndex&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"last",direction:"forward"},bubbles:!0,composed:!0})),o.shiftKey&&this.focusedIndex===0&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"first",direction:"backward"},bubbles:!0,composed:!0})))}focusNext(){let o=this.focusedIndex+1;for(;this.disabledIndexes.includes(o)&&o<this.thumbnails.length;)o++;o<this.thumbnails.length&&(this.focusedIndex=o,this.focusThumbnail(o))}focusPrevious(){let o=this.focusedIndex-1;for(;this.disabledIndexes.includes(o)&&o>=0;)o--;o>=0&&(this.focusedIndex=o,this.focusThumbnail(o))}focusThumbnail(o){const t=this.renderRoot.querySelector(`[data-index="${o}"]`);t==null||t.focus()}selectThumbnail(o){this.disabledIndexes.includes(o)||(this.activeIndex=o,this.swiperInstance&&typeof this.swiperInstance.slideTo=="function"&&this.swiperInstance.slideTo(o),this.dispatchEvent(new CustomEvent("thumbnail-select",{detail:{index:o}})))}onFocus(o){const t=o.currentTarget,e=Number(t.dataset.index);this.focusedIndex=e,this.renderRoot.querySelectorAll(".thumb").forEach(i=>{i.classList.remove("a--tabfocus")}),t.classList.add("a--tabfocus"),this.requestUpdate()}onFocusOut(o){const t=o.currentTarget,e=Number(t.dataset.index),
|
|
1156
|
+
`}get lastIndex(){return Math.max(0,this.thumbnails.length-1)}handleKeyDown(o){o.key==="ArrowRight"?(o.preventDefault(),this.focusNext()):o.key==="ArrowLeft"?(o.preventDefault(),this.focusPrevious()):o.key==="Enter"||o.key===" "?(o.preventDefault(),this.selectThumbnail(this.focusedIndex)):o.key==="Tab"&&(!o.shiftKey&&this.focusedIndex===this.lastIndex&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"last",direction:"forward"},bubbles:!0,composed:!0})),o.shiftKey&&this.focusedIndex===0&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"first",direction:"backward"},bubbles:!0,composed:!0})))}focusNext(){let o=this.focusedIndex+1;for(;this.disabledIndexes.includes(o)&&o<this.thumbnails.length;)o++;o<this.thumbnails.length&&(this.focusedIndex=o,this.focusThumbnail(o))}focusPrevious(){let o=this.focusedIndex-1;for(;this.disabledIndexes.includes(o)&&o>=0;)o--;o>=0&&(this.focusedIndex=o,this.focusThumbnail(o))}focusThumbnail(o){const t=this.renderRoot.querySelector(`[data-index="${o}"]`);t==null||t.focus()}selectThumbnail(o){this.disabledIndexes.includes(o)||(this.activeIndex=o,this.swiperInstance&&typeof this.swiperInstance.slideTo=="function"&&this.swiperInstance.slideTo(o),this.dispatchEvent(new CustomEvent("thumbnail-select",{detail:{index:o}})))}onFocus(o){const t=o.currentTarget,e=Number(t.dataset.index);this.focusedIndex=e,this.renderRoot.querySelectorAll(".thumb").forEach(i=>{i.classList.remove("a--tabfocus")}),t.classList.add("a--tabfocus"),this.requestUpdate()}onFocusOut(o){const t=o.currentTarget,e=Number(t.dataset.index),r=o.relatedTarget;(!r||this.shadowRoot&&!this.shadowRoot.contains(r))&&(this.renderRoot.querySelectorAll(".thumb").forEach(s=>s.classList.remove("a--tabfocus")),e===this.lastIndex?this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"last",direction:"unspecified"},bubbles:!0,composed:!0})):e===0&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"first",direction:"unspecified"},bubbles:!0,composed:!0})))}render(){return l`
|
|
1157
1157
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
1158
|
-
${this.thumbnails.map((o,t)=>{const e=this.disabledIndexes.includes(t),
|
|
1158
|
+
${this.thumbnails.map((o,t)=>{const e=this.disabledIndexes.includes(t),r=this.activeIndex===t,i=o.type==="video",n=i?`video ${t}`:`${this.altressource} ${t+1}`;return l`
|
|
1159
1159
|
<li class="thumb-wrapper">
|
|
1160
1160
|
<button
|
|
1161
1161
|
class="thumb"
|
|
1162
1162
|
data-index="${t}"
|
|
1163
1163
|
?disabled=${e}
|
|
1164
|
-
aria-current=${
|
|
1164
|
+
aria-current=${r?"true":"false"}
|
|
1165
1165
|
@click=${()=>this.selectThumbnail(t)}
|
|
1166
1166
|
@keydown=${this.handleKeyDown}
|
|
1167
1167
|
@focus=${s=>this.onFocus(s)}
|
|
1168
1168
|
@focusout=${s=>this.onFocusOut(s)}
|
|
1169
1169
|
>
|
|
1170
|
-
<img alt="${
|
|
1170
|
+
<img alt="${n}" src="${o.src}" />
|
|
1171
1171
|
</button>
|
|
1172
1172
|
${i?l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>`:null}
|
|
1173
1173
|
</li>
|
|
@@ -1278,9 +1278,9 @@
|
|
|
1278
1278
|
height: 0;
|
|
1279
1279
|
width: 0;
|
|
1280
1280
|
}
|
|
1281
|
-
`;
|
|
1281
|
+
`;tt([a({type:Array})],M.prototype,"thumbnails",2);tt([a({type:Number})],M.prototype,"activeIndex",2);tt([a({type:Array})],M.prototype,"disabledIndexes",2);tt([a({type:String})],M.prototype,"maxWidth",2);tt([a({type:String})],M.prototype,"altressource",2);tt([a({type:Object})],M.prototype,"swiperInstance",2);tt([Q()],M.prototype,"focusedIndex",2);M=tt([g("thumbnail-navigation")],M);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,Jt=(o,t,e,r)=>{for(var i=r>1?void 0:r?Qo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Jo(t,e,i),i};let mt=class extends p{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
|
|
1282
1282
|
<span class="tag ${this.bgstyle}"><slot></slot></span>
|
|
1283
|
-
`}};
|
|
1283
|
+
`}};mt.styles=v`
|
|
1284
1284
|
.tag {
|
|
1285
1285
|
display: inline-block;
|
|
1286
1286
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -1337,12 +1337,12 @@
|
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
1339
|
|
|
1340
|
-
`;Jt([a({type:String,reflect:!0})],
|
|
1340
|
+
`;Jt([a({type:String,reflect:!0})],mt.prototype,"type",2);Jt([a({type:String,reflect:!0})],mt.prototype,"bgstyle",2);mt=Jt([g("o-tag")],mt);var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,Qt=(o,t,e,r)=>{for(var i=r>1?void 0:r?ei(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&ti(t,e,i),i};let xt=class extends p{constructor(){super(...arguments),this.type="top",this.text=""}render(){return l`
|
|
1341
1341
|
<div class="tooltip">
|
|
1342
1342
|
<span class="tooltiptext">${this.text}</span>
|
|
1343
1343
|
<slot></slot>
|
|
1344
1344
|
</div>
|
|
1345
|
-
`}};
|
|
1345
|
+
`}};xt.styles=v`
|
|
1346
1346
|
.tooltip {
|
|
1347
1347
|
position: relative;
|
|
1348
1348
|
display: inline-block;
|
|
@@ -1434,7 +1434,7 @@
|
|
|
1434
1434
|
border-color: transparent var(--color-alpha-dark-strongest) transparent transparent;
|
|
1435
1435
|
}
|
|
1436
1436
|
|
|
1437
|
-
`;Qt([a({type:String,reflect:!0})],
|
|
1437
|
+
`;Qt([a({type:String,reflect:!0})],xt.prototype,"type",2);Qt([a({type:String,reflect:!0})],xt.prototype,"text",2);xt=Qt([g("o-tooltip")],xt);var oi=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,Z=(o,t,e,r)=>{for(var i=r>1?void 0:r?ii(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&oi(t,e,i),i};let D=class extends p{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>{this._focusActiveOption()})}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(o){this.options.length>0&&(this.options.some(e=>e.value===this.value)||(this.value=this.options[0].value))}render(){const o=V.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1438
1438
|
<button
|
|
1439
1439
|
role="combobox"
|
|
1440
1440
|
aria-haspopup="listbox"
|
|
@@ -1462,13 +1462,13 @@
|
|
|
1462
1462
|
aria-activedescendant="${this.activeIndex>=0?"option-"+this.activeIndex:""}"
|
|
1463
1463
|
style=${`width: ${this.width};`}
|
|
1464
1464
|
>
|
|
1465
|
-
${this.options.map((e,
|
|
1465
|
+
${this.options.map((e,r)=>l`
|
|
1466
1466
|
<li
|
|
1467
|
-
id="option-${
|
|
1467
|
+
id="option-${r}"
|
|
1468
1468
|
role="option"
|
|
1469
1469
|
aria-selected="${e.value===this.value}"
|
|
1470
|
-
tabindex="${
|
|
1471
|
-
class="${
|
|
1470
|
+
tabindex="${r===this.activeIndex?"0":"-1"}"
|
|
1471
|
+
class="${r===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
|
|
1472
1472
|
@click=${()=>this.selectOption(e)}
|
|
1473
1473
|
>
|
|
1474
1474
|
${e.url?l`
|
|
@@ -1621,7 +1621,7 @@
|
|
|
1621
1621
|
input[type="hidden"] {
|
|
1622
1622
|
display: none;
|
|
1623
1623
|
}
|
|
1624
|
-
`;Z([a({type:Array,reflect:!0})],D.prototype,"options",2);Z([a({type:String,reflect:!0})],D.prototype,"value",2);Z([a({type:String,reflect:!0})],D.prototype,"name",2);Z([a({type:Boolean,reflect:!0})],D.prototype,"disabled",2);Z([a({type:String,reflect:!0})],D.prototype,"width",2);Z([
|
|
1624
|
+
`;Z([a({type:Array,reflect:!0})],D.prototype,"options",2);Z([a({type:String,reflect:!0})],D.prototype,"value",2);Z([a({type:String,reflect:!0})],D.prototype,"name",2);Z([a({type:Boolean,reflect:!0})],D.prototype,"disabled",2);Z([a({type:String,reflect:!0})],D.prototype,"width",2);Z([Q()],D.prototype,"open",2);Z([Q()],D.prototype,"activeIndex",2);Z([Q()],D.prototype,"menuWidth",2);D=Z([g("o-dropdown")],D);var ri=Object.getOwnPropertyDescriptor,ni=(o,t,e,r)=>{for(var i=r>1?void 0:r?ri(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=s(i)||i);return i};let Rt=class extends p{render(){return l` <span class="dots"></span> `}};Rt.styles=v`
|
|
1625
1625
|
:host {
|
|
1626
1626
|
display: flex;
|
|
1627
1627
|
align-items: center;
|
|
@@ -1672,7 +1672,7 @@
|
|
|
1672
1672
|
background-color: var(--color-container-action-primary-pressed);
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
|
-
`;Rt=
|
|
1675
|
+
`;Rt=ni([g("o-dots")],Rt);var si=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,F=(o,t,e,r)=>{for(var i=r>1?void 0:r?ai(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&si(t,e,i),i};let B=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`
|
|
1676
1676
|
<button
|
|
1677
1677
|
role="combobox"
|
|
1678
1678
|
aria-haspopup="listbox"
|
|
@@ -1710,14 +1710,14 @@
|
|
|
1710
1710
|
aria-activedescendant="${this.activeIndex>=0?"option-"+this.activeIndex:""}"
|
|
1711
1711
|
style=${`width: ${this.width};`}
|
|
1712
1712
|
>
|
|
1713
|
-
${this.options.map((e,
|
|
1713
|
+
${this.options.map((e,r)=>l`
|
|
1714
1714
|
<li
|
|
1715
|
-
id="option-${
|
|
1715
|
+
id="option-${r}"
|
|
1716
1716
|
role="option"
|
|
1717
1717
|
aria-selected="${e.value===this.value}"
|
|
1718
1718
|
aria-disabled="${e.disabled?"true":"false"}"
|
|
1719
|
-
tabindex="${
|
|
1720
|
-
class="${
|
|
1719
|
+
tabindex="${r===this.activeIndex?"0":"-1"}"
|
|
1720
|
+
class="${r===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
|
|
1721
1721
|
@click=${()=>this.selectOption(e)}
|
|
1722
1722
|
>
|
|
1723
1723
|
<a href="${A(e.url)}">
|
|
@@ -1909,17 +1909,17 @@
|
|
|
1909
1909
|
input[type="hidden"] {
|
|
1910
1910
|
display: none;
|
|
1911
1911
|
}
|
|
1912
|
-
`;F([a({type:Array,reflect:!0})],B.prototype,"options",2);F([a({type:String,reflect:!0})],B.prototype,"value",2);F([a({type:String,reflect:!0})],B.prototype,"name",2);F([a({type:String,reflect:!0})],B.prototype,"additionaltext",2);F([a({type:Boolean,reflect:!0})],B.prototype,"disabled",2);F([a({type:String,reflect:!0})],B.prototype,"width",2);F([
|
|
1912
|
+
`;F([a({type:Array,reflect:!0})],B.prototype,"options",2);F([a({type:String,reflect:!0})],B.prototype,"value",2);F([a({type:String,reflect:!0})],B.prototype,"name",2);F([a({type:String,reflect:!0})],B.prototype,"additionaltext",2);F([a({type:Boolean,reflect:!0})],B.prototype,"disabled",2);F([a({type:String,reflect:!0})],B.prototype,"width",2);F([Q()],B.prototype,"open",2);F([Q()],B.prototype,"activeIndex",2);F([Q()],B.prototype,"menuWidth",2);B=F([g("o-dropdown-variant")],B);/**
|
|
1913
1913
|
* @license
|
|
1914
1914
|
* Copyright 2018 Google LLC
|
|
1915
1915
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1916
|
-
*/const Ce="important",li=" !"+Ce,ci=Xt(class extends Yt{constructor(o){var t;if(super(o),o.type!==Gt.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
|
|
1917
|
-
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${A(
|
|
1916
|
+
*/const Ce="important",li=" !"+Ce,ci=Xt(class extends Yt{constructor(o){var t;if(super(o),o.type!==Gt.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 r=o[e];return r==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}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 r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?e.removeProperty(r):e[r]=null);for(const r in t){const i=t[r];if(i!=null){this.ft.add(r);const n=typeof i=="string"&&i.endsWith(li);r.includes("-")||n?e.setProperty(r,n?i.slice(0,-11):i,n?Ce:""):e[r]=i}}return Y}});var hi=Object.defineProperty,di=Object.getOwnPropertyDescriptor,te=(o,t,e,r)=>{for(var i=r>1?void 0:r?di(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&hi(t,e,i),i};let wt=class extends p{constructor(){super(...arguments),this.option={},this.imageSize=64}render(){const o=s=>{const c=document.createElement("textarea");return c.innerHTML=s,c.value},t=this.option&&this.option.clickable,e={width:`${this.imageSize}px`,height:`${this.imageSize}px`},r=this.option&&this.option.title?o(this.option.title):"",i=this.option&&this.option.description?o(this.option.description):"",n=l`
|
|
1917
|
+
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${A(r)}" aria-hidden="true" style=${ci(e)} />`:""}
|
|
1918
1918
|
<div class="m-reassurance-content">
|
|
1919
|
-
<h3 class="a-reassurance-text">${A(
|
|
1919
|
+
<h3 class="a-reassurance-text">${A(r)}</h3>
|
|
1920
1920
|
<p class="a-reassurance-description">${A(i)}</p>
|
|
1921
1921
|
</div>
|
|
1922
|
-
`;return t?l`<a href="${A(this.option.url)}" class="reassurance-item clickable">${
|
|
1922
|
+
`;return t?l`<a href="${A(this.option.url)}" class="reassurance-item clickable">${n}</a>`:l`<div class="reassurance-item">${n}</div>`}};wt.styles=v`
|
|
1923
1923
|
:host {
|
|
1924
1924
|
display: inline-block;
|
|
1925
1925
|
position: relative;
|
|
@@ -2000,7 +2000,7 @@
|
|
|
2000
2000
|
overflow: hidden;
|
|
2001
2001
|
}
|
|
2002
2002
|
}
|
|
2003
|
-
`;te([a({type:Object,reflect:!0})],
|
|
2003
|
+
`;te([a({type:Object,reflect:!0})],wt.prototype,"option",2);te([a({type:Number,reflect:!0})],wt.prototype,"imageSize",2);wt=te([g("o-reassurance")],wt);var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,K=(o,t,e,r)=>{for(var i=r>1?void 0:r?ui(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&pi(t,e,i),i};const vi=Wt(p);let P=class extends vi{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`
|
|
2004
2004
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
|
|
2005
2005
|
${o?this.text:l`<slot></slot>`}
|
|
2006
2006
|
</a>
|
|
@@ -2085,7 +2085,7 @@
|
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
2087
|
&:focus-visible {
|
|
2088
|
-
${
|
|
2088
|
+
${nt};
|
|
2089
2089
|
}
|
|
2090
2090
|
}
|
|
2091
2091
|
|
|
@@ -2098,16 +2098,16 @@
|
|
|
2098
2098
|
display: inline-flex;
|
|
2099
2099
|
align-items: center;
|
|
2100
2100
|
}
|
|
2101
|
-
`;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 fi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,ee=(o,t,e,
|
|
2101
|
+
`;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 fi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,ee=(o,t,e,r)=>{for(var i=r>1?void 0:r?gi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&fi(t,e,i),i};let $t=class extends p{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof 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`
|
|
2102
2102
|
<slot></slot>
|
|
2103
|
-
`}}
|
|
2103
|
+
`}};$t.styles=v`
|
|
2104
2104
|
:host {
|
|
2105
2105
|
display: flex;
|
|
2106
2106
|
flex-direction: row;
|
|
2107
2107
|
flex-wrap: wrap;
|
|
2108
2108
|
gap: var(--spacing-s);
|
|
2109
2109
|
}
|
|
2110
|
-
`;ee([a({reflect:!0})]
|
|
2110
|
+
`;ee([a({reflect:!0})],$t.prototype,"name",2);ee([a({reflect:!0})],$t.prototype,"value",2);$t=ee([g("o-chipset")],$t);var bi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,j=(o,t,e,r)=>{for(var i=r>1?void 0:r?yi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&bi(t,e,i),i};const mi=Wt(p);let z=class extends mi{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">${k(o)}</span>`}strikeThroughImg(){const o=So[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return k(o)}render(){const o=this.text;return l`${this.type==="link"?l`
|
|
2111
2111
|
<a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
2112
2112
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
2113
2113
|
${o?l`
|
|
@@ -2127,7 +2127,7 @@
|
|
|
2127
2127
|
</button>
|
|
2128
2128
|
`}
|
|
2129
2129
|
${this.disabled?this.strikeThroughImg():d}
|
|
2130
|
-
`}};
|
|
2130
|
+
`}};z.styles=v`
|
|
2131
2131
|
:host {
|
|
2132
2132
|
cursor: pointer;
|
|
2133
2133
|
display: inline-flex;
|
|
@@ -2207,7 +2207,7 @@
|
|
|
2207
2207
|
}
|
|
2208
2208
|
|
|
2209
2209
|
.button:focus-visible {
|
|
2210
|
-
${
|
|
2210
|
+
${nt};
|
|
2211
2211
|
}
|
|
2212
2212
|
|
|
2213
2213
|
span.text + span.text::before {
|
|
@@ -2252,7 +2252,7 @@
|
|
|
2252
2252
|
stroke-linecap: round;
|
|
2253
2253
|
}
|
|
2254
2254
|
}
|
|
2255
|
-
`;j([a({reflect:!0})],
|
|
2255
|
+
`;j([a({reflect:!0})],z.prototype,"name",2);j([a({reflect:!0})],z.prototype,"value",2);j([a({type:String,reflect:!0})],z.prototype,"type",2);j([a({type:String,reflect:!0})],z.prototype,"href",2);j([a({type:String,reflect:!0,attribute:"data-href"})],z.prototype,"dataHref",2);j([a({type:String})],z.prototype,"text",2);j([a({type:Boolean,reflect:!0})],z.prototype,"selected",2);j([a({type:Boolean,reflect:!0})],z.prototype,"disabled",2);j([a({type:Boolean,reflect:!0})],z.prototype,"fullwidth",2);z=j([g("o-filter-chip")],z);var xi=Object.defineProperty,R=(o,t,e,r)=>{for(var i=void 0,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=s(t,e,i)||i);return i&&xi(t,e,i),i};const re=class re 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`
|
|
2256
2256
|
<o-icon-button
|
|
2257
2257
|
@click=${this.onClick}
|
|
2258
2258
|
icon="chevronRight"
|
|
@@ -2288,7 +2288,7 @@
|
|
|
2288
2288
|
</div>
|
|
2289
2289
|
${this.icons}
|
|
2290
2290
|
</button>
|
|
2291
|
-
`}};
|
|
2291
|
+
`}};re.styles=v`
|
|
2292
2292
|
:host {
|
|
2293
2293
|
display: block;
|
|
2294
2294
|
max-width: 100%;
|
|
@@ -2384,11 +2384,11 @@
|
|
|
2384
2384
|
.fullpointer {
|
|
2385
2385
|
cursor: pointer;
|
|
2386
2386
|
}
|
|
2387
|
-
`;let C=
|
|
2387
|
+
`;let C=re;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 wi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,oe=(o,t,e,r)=>{for(var i=r>1?void 0:r?$i(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&wi(t,e,i),i};let kt=class extends p{constructor(){super(...arguments),this.variant="cart",this.text=""}render(){return l`
|
|
2388
2388
|
<span class="badge">
|
|
2389
2389
|
${this.text?this.text:l`<slot></slot>`}
|
|
2390
2390
|
</span>
|
|
2391
|
-
`}}
|
|
2391
|
+
`}};kt.styles=v`
|
|
2392
2392
|
:host([variant]) {
|
|
2393
2393
|
--badge-width: 19px;
|
|
2394
2394
|
display: inline-block;
|
|
@@ -2422,7 +2422,7 @@
|
|
|
2422
2422
|
color: var(--text-color);
|
|
2423
2423
|
}
|
|
2424
2424
|
|
|
2425
|
-
`;oe([a({type:String,reflect:!0})]
|
|
2425
|
+
`;oe([a({type:String,reflect:!0})],kt.prototype,"variant",2);oe([a({type:String})],kt.prototype,"text",2);kt=oe([g("o-badge")],kt);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,I=(o,t,e,r)=>{for(var i=r>1?void 0:r?_i(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&ki(t,e,i),i};let _=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 r,i;var o=this;const t=(r=this.renderRoot)==null?void 0:r.querySelector("o-icon-button"),e=(i=this.renderRoot)==null?void 0:i.querySelector(".o-toast-text");if(e!=null){const n=window.getComputedStyle(e),s=parseInt(n.getPropertyValue("line-height").replace("px","")),c=parseInt(n.getPropertyValue("height").replace("px",""));!isNaN(s)&&!isNaN(c)&&c>s&&(this.multiline=!0)}t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=Ao[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`
|
|
2426
2426
|
<div class="o-toast">
|
|
2427
2427
|
<div class="o-toast-icon">
|
|
2428
2428
|
${k(t)}
|
|
@@ -2515,7 +2515,7 @@
|
|
|
2515
2515
|
.o-toast-icon {
|
|
2516
2516
|
height: 16px;
|
|
2517
2517
|
}
|
|
2518
|
-
`;I([a({type:String,reflect:!0})],_.prototype,"icon",2);I([a({type:String,reflect:!0})],_.prototype,"text",2);I([a({type:String,reflect:!0})],_.prototype,"verticalanchor",2);I([a({type:String,reflect:!0})],_.prototype,"horizontalanchor",2);I([a({type:Number,reflect:!0})],_.prototype,"verticaloffset",2);I([a({type:Number,reflect:!0})],_.prototype,"horizontaloffset",2);I([a({type:Number,reflect:!0})],_.prototype,"animationduration",2);I([a({type:String,reflect:!0})],_.prototype,"animationaxis",2);I([a({type:Boolean,reflect:!0})],_.prototype,"animated",2);I([a({type:Number,reflect:!0})],_.prototype,"lifeduration",2);I([a({type:Boolean,reflect:!0})],_.prototype,"multiline",2);_=I([g("o-toast")],_);var Ci=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,H=(o,t,e,
|
|
2518
|
+
`;I([a({type:String,reflect:!0})],_.prototype,"icon",2);I([a({type:String,reflect:!0})],_.prototype,"text",2);I([a({type:String,reflect:!0})],_.prototype,"verticalanchor",2);I([a({type:String,reflect:!0})],_.prototype,"horizontalanchor",2);I([a({type:Number,reflect:!0})],_.prototype,"verticaloffset",2);I([a({type:Number,reflect:!0})],_.prototype,"horizontaloffset",2);I([a({type:Number,reflect:!0})],_.prototype,"animationduration",2);I([a({type:String,reflect:!0})],_.prototype,"animationaxis",2);I([a({type:Boolean,reflect:!0})],_.prototype,"animated",2);I([a({type:Number,reflect:!0})],_.prototype,"lifeduration",2);I([a({type:Boolean,reflect:!0})],_.prototype,"multiline",2);_=I([g("o-toast")],_);var Ci=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,H=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ei(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Ci(t,e,i),i};let Si=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-${++Si}`)}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=k(V.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=k(V.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
|
|
2519
2519
|
<input
|
|
2520
2520
|
type="checkbox"
|
|
2521
2521
|
id=${this.inputId}
|
|
@@ -2523,7 +2523,7 @@
|
|
|
2523
2523
|
?disabled=${this.disabled}
|
|
2524
2524
|
name=${this.name}
|
|
2525
2525
|
value=${this.value}
|
|
2526
|
-
@change=${e=>{const
|
|
2526
|
+
@change=${e=>{const r=e.target;this.checked=r.checked,this.indeterminate=r.indeterminate,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}}
|
|
2527
2527
|
/>
|
|
2528
2528
|
|
|
2529
2529
|
<div class="box" role="checkbox" tabindex=${this.disabled?-1:0} aria-checked=${this.indeterminate?"mixed":String(this.checked)} aria-disabled=${String(this.disabled)} @click=${this.toggle} @keydown=${this.handleKeyDown}>
|
|
@@ -2634,7 +2634,7 @@
|
|
|
2634
2634
|
svg path {
|
|
2635
2635
|
stroke: var(--color-border-white);
|
|
2636
2636
|
}
|
|
2637
|
-
`;H([a({type:Boolean,reflect:!0})],E.prototype,"checked",2);H([a({type:Boolean,reflect:!0})],E.prototype,"indeterminate",2);H([a({type:Boolean,reflect:!0})],E.prototype,"disabled",2);H([a({type:String,reflect:!0})],E.prototype,"size",2);H([a({type:Boolean})],E.prototype,"showLabel",2);H([a({type:String})],E.prototype,"label",2);H([a({type:String})],E.prototype,"name",2);H([a({type:String})],E.prototype,"value",2);H([a({type:String,reflect:!0})],E.prototype,"inputId",2);H([ke("input")],E.prototype,"inputEl",2);E=H([g("o-checkbox")],E);var Ai=Object.defineProperty,Li=Object.getOwnPropertyDescriptor,U=(o,t,e,
|
|
2637
|
+
`;H([a({type:Boolean,reflect:!0})],E.prototype,"checked",2);H([a({type:Boolean,reflect:!0})],E.prototype,"indeterminate",2);H([a({type:Boolean,reflect:!0})],E.prototype,"disabled",2);H([a({type:String,reflect:!0})],E.prototype,"size",2);H([a({type:Boolean})],E.prototype,"showLabel",2);H([a({type:String})],E.prototype,"label",2);H([a({type:String})],E.prototype,"name",2);H([a({type:String})],E.prototype,"value",2);H([a({type:String,reflect:!0})],E.prototype,"inputId",2);H([ke("input")],E.prototype,"inputEl",2);E=H([g("o-checkbox")],E);var Ai=Object.defineProperty,Li=Object.getOwnPropertyDescriptor,U=(o,t,e,r)=>{for(var i=r>1?void 0:r?Li(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Ai(t,e,i),i};let Bi=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-${++Bi}`)}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(r=>{r!==this&&(r.checked=!1)})}this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.handleClick())}render(){return l`
|
|
2638
2638
|
<input type="radio" id=${this.inputId} ?checked=${this.checked} ?disabled=${this.disabled} name=${this.name} value=${this.value} />
|
|
2639
2639
|
|
|
2640
2640
|
<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}>
|
|
@@ -2642,7 +2642,7 @@
|
|
|
2642
2642
|
</div>
|
|
2643
2643
|
|
|
2644
2644
|
${this.showLabel?l`<label class="label" for=${this.inputId}>${this.label}</label>`:""}
|
|
2645
|
-
`}};
|
|
2645
|
+
`}};O.styles=v`
|
|
2646
2646
|
:host {
|
|
2647
2647
|
display: inline-flex;
|
|
2648
2648
|
align-items: center;
|
|
@@ -2731,7 +2731,7 @@
|
|
|
2731
2731
|
width: 0;
|
|
2732
2732
|
height: 0;
|
|
2733
2733
|
}
|
|
2734
|
-
`;U([a({type:Boolean,reflect:!0})],
|
|
2734
|
+
`;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 Pi=Object.getOwnPropertyDescriptor,zi=(o,t,e,r)=>{for(var i=r>1?void 0:r?Pi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=s(i)||i);return i};let Ut=class extends p{render(){return l`
|
|
2735
2735
|
<nav aria-label="Breadcrumbs">
|
|
2736
2736
|
<ul>
|
|
2737
2737
|
<slot></slot>
|
|
@@ -2748,7 +2748,7 @@
|
|
|
2748
2748
|
margin: var(--spacing-4-xs);
|
|
2749
2749
|
padding: var(--spacing-4-xs);
|
|
2750
2750
|
}
|
|
2751
|
-
`;Ut=
|
|
2751
|
+
`;Ut=zi([g("o-breadcrumbs")],Ut);var Oi=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,ie=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ii(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Oi(t,e,i),i};let _t=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`
|
|
2752
2752
|
<li>
|
|
2753
2753
|
<a
|
|
2754
2754
|
href="${this.href}"
|
|
@@ -2758,7 +2758,7 @@
|
|
|
2758
2758
|
<slot></slot>
|
|
2759
2759
|
</a>
|
|
2760
2760
|
</li>
|
|
2761
|
-
`}};
|
|
2761
|
+
`}};_t.styles=v`
|
|
2762
2762
|
:host(:not([active]))::after {
|
|
2763
2763
|
content: "/";
|
|
2764
2764
|
margin: 0 0.5rem;
|
|
@@ -2791,13 +2791,13 @@
|
|
|
2791
2791
|
}
|
|
2792
2792
|
|
|
2793
2793
|
a:focus-visible {
|
|
2794
|
-
${
|
|
2794
|
+
${nt};
|
|
2795
2795
|
}
|
|
2796
2796
|
|
|
2797
2797
|
:host(.a--tabfocus) {
|
|
2798
2798
|
outline: none !important;
|
|
2799
2799
|
}
|
|
2800
|
-
`;ie([a({type:String})],
|
|
2800
|
+
`;ie([a({type:String})],_t.prototype,"href",2);ie([a({type:Boolean,reflect:!0})],_t.prototype,"active",2);_t=ie([g("o-breadcrumb")],_t);var Di=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,dt=(o,t,e,r)=>{for(var i=r>1?void 0:r?Hi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Di(t,e,i),i};let J=class extends p{constructor(){super(...arguments),this.imageUrl="",this.imageAlt="",this.hoverUrl="",this.hoverAlt="",this.dimmed=!1}render(){return l`<div class="card">
|
|
2801
2801
|
<svg aria-hidden="true">
|
|
2802
2802
|
<defs>
|
|
2803
2803
|
<clipPath id="arch-gift-finder" clipPathUnits="objectBoundingBox">
|
|
@@ -2807,20 +2807,28 @@
|
|
|
2807
2807
|
</svg>
|
|
2808
2808
|
<img src="${this.imageUrl}" alt="${this.imageAlt}" class="card-img base" loading="lazy" />
|
|
2809
2809
|
${this.hoverUrl?l`<img src="${this.hoverUrl}" alt="${this.hoverAlt||this.imageAlt}" class="card-img hover" loading="lazy" />`:""}
|
|
2810
|
-
|
|
2810
|
+
<div class="overlay" part="overlay"></div>
|
|
2811
|
+
</div>`}};J.styles=v`
|
|
2811
2812
|
:host {
|
|
2813
|
+
--card-width : 175px;
|
|
2814
|
+
--card-height : 260px;
|
|
2815
|
+
--card-width-mobile: 100px;
|
|
2816
|
+
--card-height-mobile: 153px;
|
|
2817
|
+
--overlay-bg: rgba(0,0,0,0.56);
|
|
2818
|
+
--overlay-opacity: 1;
|
|
2819
|
+
|
|
2812
2820
|
.card {
|
|
2813
2821
|
position: relative;
|
|
2814
|
-
width:
|
|
2815
|
-
height:
|
|
2822
|
+
width: var(--card-width);
|
|
2823
|
+
height: var(--card-height);
|
|
2816
2824
|
overflow: hidden;
|
|
2817
2825
|
background-color: var(--colors-noir-des-terres-500);
|
|
2818
2826
|
clip-path: url(#arch-gift-finder);
|
|
2819
2827
|
-webkit-clip-path: url(#arch-gift-finder);
|
|
2820
2828
|
|
|
2821
2829
|
@media (max-width: 1024px) {
|
|
2822
|
-
width:
|
|
2823
|
-
height:
|
|
2830
|
+
width: var(--card-width-mobile);
|
|
2831
|
+
height: var(--card-height-mobile);
|
|
2824
2832
|
}
|
|
2825
2833
|
}
|
|
2826
2834
|
|
|
@@ -2843,8 +2851,21 @@
|
|
|
2843
2851
|
.card:hover .card-img.hover {
|
|
2844
2852
|
opacity: 1;
|
|
2845
2853
|
}
|
|
2854
|
+
|
|
2855
|
+
.overlay {
|
|
2856
|
+
position: absolute; inset: 0;
|
|
2857
|
+
background: var(--overlay-bg);
|
|
2858
|
+
opacity: 0;
|
|
2859
|
+
transition: opacity .2s ease;
|
|
2860
|
+
pointer-events: none;
|
|
2861
|
+
z-index: 3;
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
:host([dimmed]) .overlay {
|
|
2866
|
+
opacity: var(--overlay-opacity, 1);
|
|
2846
2867
|
}
|
|
2847
|
-
`;
|
|
2868
|
+
`;dt([a({type:String})],J.prototype,"imageUrl",2);dt([a({type:String})],J.prototype,"imageAlt",2);dt([a({type:String})],J.prototype,"hoverUrl",2);dt([a({type:String})],J.prototype,"hoverAlt",2);dt([a({type:Boolean,reflect:!0})],J.prototype,"dimmed",2);J=dt([g("o-arch-image")],J);const Mi=`<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2848
2869
|
<svg
|
|
2849
2870
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
2850
2871
|
xmlns:cc="http://creativecommons.org/ns#"
|
|
@@ -2924,7 +2945,7 @@
|
|
|
2924
2945
|
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
|
|
2925
2946
|
id="path52"
|
|
2926
2947
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
2927
|
-
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 Ti=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,S=(o,t,e,
|
|
2948
|
+
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 Ti=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,S=(o,t,e,r)=>{for(var i=r>1?void 0:r?Fi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Ti(t,e,i),i};const ne=class ne extends p{constructor(){super(...arguments),this.ispagedesigner=!1,this._classPopin="",this.open=!1,this.background="",this.backgroundUrl="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.lockScroll=!0,this.variant="fullscreen",this.maxWidth="640px",this.showBackButton=!1,this.contrast=!1,this._labelId=`title-${Math.random().toString(36).slice(2)}`,this._onBackdropClick=t=>{var r;if(!this.open||!this.closeOnBackdrop)return;const e=t.composedPath()[0];(r=e==null?void 0:e.classList)!=null&&r.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"))}_onBackClick(){this.dispatchEvent(new CustomEvent("back",{bubbles:!0,composed:!0}))}_requestClose(t){const e=new CustomEvent("request-close",{bubbles:!0,composed:!0,detail:{reason:t}});this.dispatchEvent(e),e.defaultPrevented||(this.open=!1)}_renderCloseButton(){return customElements.get("o-icon-button")?l`
|
|
2928
2949
|
<o-icon-button
|
|
2929
2950
|
data-close-btn
|
|
2930
2951
|
icon="cross"
|
|
@@ -2976,7 +2997,7 @@
|
|
|
2976
2997
|
</main>
|
|
2977
2998
|
</section>
|
|
2978
2999
|
</div>
|
|
2979
|
-
`}};
|
|
3000
|
+
`}};ne.styles=v`
|
|
2980
3001
|
:host {
|
|
2981
3002
|
position: fixed;
|
|
2982
3003
|
inset: 0;
|
|
@@ -3085,4 +3106,4 @@
|
|
|
3085
3106
|
from { transform: translateY(10px) scale(.98); opacity: 0; }
|
|
3086
3107
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
3087
3108
|
}
|
|
3088
|
-
`;let $=
|
|
3109
|
+
`;let $=ne;S([a({type:Boolean,reflect:!0})],$.prototype,"ispagedesigner",2);S([a({type:String,reflect:!0})],$.prototype,"classPopin",1);S([a({type:Boolean,reflect:!0})],$.prototype,"open",2);S([a({type:String,reflect:!0})],$.prototype,"background",2);S([a({type:String,attribute:"background-url",reflect:!0})],$.prototype,"backgroundUrl",2);S([a({type:Boolean,attribute:"close-on-esc"})],$.prototype,"closeOnEsc",2);S([a({type:Boolean,attribute:"close-on-backdrop"})],$.prototype,"closeOnBackdrop",2);S([a({type:Boolean,attribute:"lock-scroll"})],$.prototype,"lockScroll",2);S([a({type:String,reflect:!0})],$.prototype,"variant",2);S([a({type:String,attribute:"max-width"})],$.prototype,"maxWidth",2);S([a({type:Boolean,reflect:!0})],$.prototype,"showBackButton",2);S([a({type:Boolean,reflect:!0})],$.prototype,"contrast",2);S([Q()],$.prototype,"_labelId",2);customElements.define("o-popin",$);
|