@florid-kit/components 0.9.0 → 0.9.2
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/thumbnail-navigation.d.ts +2 -1
- package/index.js +82 -84
- package/index.mjs +457 -443
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,36 +2,36 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const yt=globalThis,zt=yt.ShadowRoot&&(yt.ShadyCSS===void 0||yt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bt=Symbol(),
|
|
5
|
+
*/const yt=globalThis,zt=yt.ShadowRoot&&(yt.ShadyCSS===void 0||yt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bt=Symbol(),Wt=new WeakMap;let se=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==Bt)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(zt&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=Wt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Wt.set(e,t))}return t}toString(){return this.cssText}};const ue=o=>new se(typeof o=="string"?o:o+"",void 0,Bt),g=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((n,i,r)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+1],o[0]);return new se(e,o,Bt)},ve=(o,t)=>{if(zt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),i=yt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=e.cssText,o.appendChild(n)}},Gt=zt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return ue(e)})(o):o;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:fe,defineProperty:
|
|
9
|
+
*/const{is:fe,defineProperty:be,getOwnPropertyDescriptor:ge,getOwnPropertyNames:ye,getOwnPropertySymbols:me,getPrototypeOf:xe}=Object,U=globalThis,Xt=U.trustedTypes,we=Xt?Xt.emptyScript:"",kt=U.reactiveElementPolyfillSupport,nt=(o,t)=>o,mt={toAttribute(o,t){switch(t){case Boolean:o=o?we: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}},Dt=(o,t)=>!fe(o,t),Jt={attribute:!0,type:String,converter:mt,reflect:!1,useDefault:!1,hasChanged:Dt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),U.litPropertyMetadata??(U.litPropertyMetadata=new WeakMap);let Y=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=Jt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);i!==void 0&&be(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=ge(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:i,set(s){const h=i==null?void 0:i.call(this);r==null||r.call(this,s),this.requestUpdate(t,h,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Jt}static _$Ei(){if(this.hasOwnProperty(nt("elementProperties")))return;const t=xe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(nt("properties"))){const e=this.properties,n=[...ye(e),...me(e)];for(const i of n)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,i]of e)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const i=this._$Eu(e,n);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const i of n)e.unshift(Gt(i))}else t!==void 0&&e.push(Gt(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ve(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){var r;const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){const s=(((r=n.converter)==null?void 0:r.toAttribute)!==void 0?n.converter:mt).toAttribute(e,n.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var r,s;const n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const h=n.getPropertyOptions(i),c=typeof h.converter=="function"?{fromAttribute:h.converter}:((r=h.converter)==null?void 0:r.fromAttribute)!==void 0?h.converter:mt;this._$Em=i,this[i]=c.fromAttribute(e,h.type)??((s=this._$Ej)==null?void 0:s.get(i))??null,this._$Em=null}}requestUpdate(t,e,n){var i;if(t!==void 0){const r=this.constructor,s=this[t];if(n??(n=r.getPropertyOptions(t)),!((n.hasChanged??Dt)(s,e)||n.useDefault&&n.reflect&&s===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(r._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:i,wrapped:r},s){n&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),r!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[r,s]of i){const{wrapped:h}=s,c=this[r];h!==!0||this._$AL.has(r)||c===void 0||this.C(r,void 0,s,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostUpdate)==null?void 0:r.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};Y.elementStyles=[],Y.shadowRootOptions={mode:"open"},Y[nt("elementProperties")]=new Map,Y[nt("finalized")]=new Map,kt==null||kt({ReactiveElement:Y}),(U.reactiveElementVersions??(U.reactiveElementVersions=[])).push("2.1.0");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
13
|
+
*/const rt=globalThis,xt=rt.trustedTypes,Qt=xt?xt.createPolicy("lit-html",{createHTML:o=>o}):void 0,ae="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,le="?"+R,$e=`<${le}>`,G=document,at=()=>G.createComment(""),lt=o=>o===null||typeof o!="object"&&typeof o!="function",Ht=Array.isArray,Ce=o=>Ht(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",At=`[
|
|
14
14
|
\f\r]`,it=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yt=/-->/g,te=/>/g,q=RegExp(`>|${At}(?:([^\\s"'>=/]+)(${At}*=${At}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,oe=/"/g,ce=/^(?:script|style|textarea|title)$/i,_e=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=_e(1),V=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ie=new WeakMap,
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,oe=/"/g,ce=/^(?:script|style|textarea|title)$/i,_e=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=_e(1),V=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ie=new WeakMap,K=G.createTreeWalker(G,129);function he(o,t){if(!Ht(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qt!==void 0?Qt.createHTML(t):t}const ke=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=it;for(let h=0;h<e;h++){const c=o[h];let f,m,p=-1,C=0;for(;C<c.length&&(s.lastIndex=C,m=s.exec(c),m!==null);)C=s.lastIndex,s===it?m[1]==="!--"?s=Yt:m[1]!==void 0?s=te:m[2]!==void 0?(ce.test(m[2])&&(i=RegExp("</"+m[2],"g")),s=q):m[3]!==void 0&&(s=q):s===q?m[0]===">"?(s=i??it,p=-1):m[1]===void 0?p=-2:(p=s.lastIndex-m[2].length,f=m[1],s=m[3]===void 0?q:m[3]==='"'?oe:ee):s===oe||s===ee?s=q:s===Yt||s===te?s=it:(s=q,i=void 0);const P=s===q&&o[h+1].startsWith("/>")?" ":"";r+=s===it?c+$e:p>=0?(n.push(f),c.slice(0,p)+ae+c.slice(p)+R+P):c+R+(p===-2?h:P)}return[he(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class ct{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const h=t.length-1,c=this.parts,[f,m]=ke(t,e);if(this.el=ct.createElement(f,n),K.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=K.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(ae)){const C=m[s++],P=i.getAttribute(p).split(R),gt=/([.?@])?(.*)/.exec(C);c.push({type:1,index:r,name:gt[2],strings:P,ctor:gt[1]==="."?Ee:gt[1]==="?"?Se:gt[1]==="@"?Le:$t}),i.removeAttribute(p)}else p.startsWith(R)&&(c.push({type:6,index:r}),i.removeAttribute(p));if(ce.test(i.tagName)){const p=i.textContent.split(R),C=p.length-1;if(C>0){i.textContent=xt?xt.emptyScript:"";for(let P=0;P<C;P++)i.append(p[P],at()),K.nextNode(),c.push({type:2,index:++r});i.append(p[C],at())}}}else if(i.nodeType===8)if(i.data===le)c.push({type:2,index:r});else{let p=-1;for(;(p=i.data.indexOf(R,p+1))!==-1;)c.push({type:7,index:r}),p+=R.length-1}r++}}static createElement(t,e){const n=G.createElement("template");return n.innerHTML=t,n}}function tt(o,t,e=o,n){var s,h;if(t===V)return t;let i=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=lt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=i:e._$Cl=i),i!==void 0&&(t=tt(o,i._$AS(o,t.values),i,n)),t}class Ae{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,i=((t==null?void 0:t.creationScope)??G).importNode(e,!0);K.currentNode=i;let r=K.nextNode(),s=0,h=0,c=n[0];for(;c!==void 0;){if(s===c.index){let f;c.type===2?f=new ft(r,r.nextSibling,this,t):c.type===1?f=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(f=new Pe(r,this,t)),this._$AV.push(f),c=n[++h]}s!==(c==null?void 0:c.index)&&(r=K.nextNode(),s++)}return K.currentNode=G,i}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class ft{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),lt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==V&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ce(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&<(this._$AH)?this._$AA.nextSibling.data=t:this.T(G.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ct.createElement(he(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{const s=new Ae(i,this),h=s.u(this.options);s.p(e),this.T(h),this._$AH=s}}_$AC(t){let e=ie.get(t.strings);return e===void 0&&ie.set(t.strings,e=new ct(t)),e}k(t){Ht(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new ft(this.O(at()),this.O(at()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class $t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(t,e=this,n,i){const r=this.strings;let s=!1;if(r===void 0)t=tt(this,t,e,0),s=!lt(t)||t!==this._$AH&&t!==V,s&&(this._$AH=t);else{const h=t;let c,f;for(t=r[0],c=0;c<r.length-1;c++)f=tt(this,h[n+c],e,c),f===V&&(f=this._$AH[c]),s||(s=!lt(f)||f!==this._$AH[c]),f===d?t=d:t!==d&&(t+=(f??"")+r[c+1]),this._$AH[c]=f}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ee extends $t{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Se extends $t{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Le extends $t{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=tt(this,t,e,0)??d)===V)return;const n=this._$AH,i=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==d&&(n===d||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Pe{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const Et=rt.litHtmlPolyfillSupport;Et==null||Et(ct,ft),(rt.litHtmlVersions??(rt.litHtmlVersions=[])).push("3.3.0");const Oe=(o,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let i=n._$litPart$;if(i===void 0){const r=(e==null?void 0:e.renderBefore)??null;n._$litPart$=i=new ft(t.insertBefore(at(),r),r,void 0,e??{})}return i._$AI(o),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const
|
|
19
|
+
*/const W=globalThis;let v=class extends Y{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=Oe(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 V}};var re;v._$litElement$=!0,v.finalized=!0,(re=W.litElementHydrateSupport)==null||re.call(W,{LitElement:v});const St=W.litElementPolyfillSupport;St==null||St({LitElement:v});(W.litElementVersions??(W.litElementVersions=[])).push("4.2.0");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const
|
|
23
|
+
*/const x=o=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(o,t)}):customElements.define(o,t)};/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const Ie={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:Dt},ze=(o=Ie,t,e)=>{const{kind:
|
|
27
|
+
*/const Ie={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:Dt},ze=(o=Ie,t,e)=>{const{kind:n,metadata:i}=e;let r=globalThis.litPropertyMetadata.get(i);if(r===void 0&&globalThis.litPropertyMetadata.set(i,r=new Map),n==="setter"&&((o=Object.create(o)).wrapped=!0),r.set(e.name,o),n==="accessor"){const{name:s}=e;return{set(h){const c=t.get.call(this);t.set.call(this,h),this.requestUpdate(s,c,o)},init(h){return h!==void 0&&this.C(s,void 0,o,h),h}}}if(n==="setter"){const{name:s}=e;return function(h){const c=this[s];t.call(this,h),this.requestUpdate(s,c,o)}}throw Error("Unsupported decorator location: "+n)};function a(o){return(t,e)=>typeof e=="object"?ze(o,t,e):((n,i,r)=>{const s=i.hasOwnProperty(r);return i.constructor.createProperty(r,n),s?Object.getOwnPropertyDescriptor(i,r):void 0})(o,t,e)}/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function X(o){return a({...o,state:!0,attribute:!1})}const
|
|
31
|
+
*/function X(o){return a({...o,state:!0,attribute:!1})}const bt=g`
|
|
32
32
|
outline: 1px dashed var(--color-border-primary);
|
|
33
33
|
outline-offset: 2px;
|
|
34
|
-
`;
|
|
34
|
+
`;g`
|
|
35
35
|
:host * {
|
|
36
36
|
box-sizing: border-box;
|
|
37
37
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* @license
|
|
44
44
|
* Copyright 2023 Google LLC
|
|
45
45
|
* SPDX-License-Identifier: Apache-2.0
|
|
46
|
-
*/function Be(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async
|
|
46
|
+
*/function Be(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async n=>{const{type:i,[Mt]:r}=e,{form:s}=r;if(!(!s||i==="button")&&(await new Promise(h=>{setTimeout(h)}),!n.defaultPrevented)){if(i==="reset"){s.reset();return}s.addEventListener("submit",h=>{Object.defineProperty(h,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),r.setFormValue(e.value),s.requestSubmit()}})})}const De=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
47
47
|
<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"/>
|
|
48
48
|
</svg>
|
|
49
49
|
`,He=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
<path class="st0" d="M40,20c0,0.7-0.6,1.2-1.2,1.2H21.2v17.5c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2V21.2H1.2C0.6,21.2,0,20.7,0,20
|
|
85
85
|
s0.6-1.2,1.2-1.2h17.5V1.2C18.8,0.6,19.3,0,20,0s1.2,0.6,1.2,1.2v17.5h17.5C39.4,18.8,40,19.3,40,20z"/>
|
|
86
86
|
</svg>
|
|
87
|
-
`,
|
|
87
|
+
`,Ke=`<?xml version="1.0" encoding="utf-8"?>
|
|
88
88
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
89
89
|
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
90
90
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
91
91
|
<path class="st0" d="M38.8,20.5H1.2c-0.7,0-1.2-0.6-1.2-1.2S0.6,18,1.2,18h37.5c0.7,0,1.2,0.6,1.2,1.2S39.4,20.5,38.8,20.5z"/>
|
|
92
92
|
</svg>
|
|
93
|
-
`,
|
|
93
|
+
`,We=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
94
94
|
<path d="M15.0009 8.12175C15.0009 8.36347 14.805 8.55943 14.5634 8.55943H2.49495L7.43502 13.5017C7.60609 13.6726 7.60628 13.9499 7.43546 14.1211C7.26464 14.2922 6.98749 14.2924 6.81642 14.1215L1.13 8.43163C1.04685 8.34998 1 8.23831 1 8.12175C1 8.00518 1.04685 7.89351 1.13 7.81187L6.81642 2.12286C6.98808 1.95699 7.26094 1.95937 7.4297 2.12819C7.59845 2.29702 7.60082 2.57001 7.43502 2.74175L2.49495 7.68406H14.5634C14.805 7.68406 15.0009 7.88002 15.0009 8.12175Z" fill="#3F2B2E"/>
|
|
95
95
|
</svg>
|
|
96
96
|
`,Ge=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -120,11 +120,11 @@
|
|
|
120
120
|
</svg>
|
|
121
121
|
`,io=`<svg viewBox="0 0 200 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
|
|
122
122
|
<line x1="0" y1="0" x2="200" y2="200" />
|
|
123
|
-
</svg>`,
|
|
123
|
+
</svg>`,no=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
124
124
|
<path d="M2.31202e-08 7.85218C0.974855 6.83983 3.01741 4.44477 6.12766 0.666992L6.54545 0.926252C5.54739 3.04971 4.35203 5.40773 2.95938 8.00033C4.35203 10.5929 5.54739 12.9509 6.54545 15.0744L6.12766 15.3337C3.01741 11.5559 0.974855 9.16082 0 8.14847L2.31202e-08 7.85218Z" fill="#3F2B2E"/>
|
|
125
125
|
<path d="M16 8.14847C15.0251 9.16082 12.9826 11.5559 9.87234 15.3337L9.45455 15.0744C10.4526 12.9509 11.648 10.5929 13.0406 8.00033C11.648 5.40773 10.4526 3.04971 9.45455 0.92625L9.87234 0.666992C12.9826 4.44477 15.0251 6.83983 16 7.85218V8.14847Z" fill="#3F2B2E"/>
|
|
126
126
|
</svg>
|
|
127
|
-
`,
|
|
127
|
+
`,ro=`<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
128
128
|
<path d="M8 0.458496C12.4183 0.458496 16 4.04022 16 8.4585C16 12.8768 12.4183 16.4585 8 16.4585C3.58172 16.4585 0 12.8768 0 8.4585C0 4.04022 3.58172 0.458496 8 0.458496ZM11.8115 5.56787C11.5953 5.39556 11.2797 5.43075 11.1074 5.64697L7.45801 10.2104L4.85254 7.60596C4.65647 7.41684 4.34516 7.41943 4.15234 7.61182C3.95956 7.8046 3.95626 8.11678 4.14551 8.31299L7.14551 11.313C7.23977 11.4062 7.36741 11.4592 7.5 11.4595L7.52832 11.4585C7.67017 11.4503 7.80168 11.3818 7.89062 11.271L11.8906 6.271C12.0629 6.05485 12.0275 5.74022 11.8115 5.56787Z" fill="#3B7902"/>
|
|
129
129
|
</svg>
|
|
130
130
|
`,so=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -138,11 +138,11 @@
|
|
|
138
138
|
</svg>
|
|
139
139
|
`,co=`<svg xmlns="http://www.w3.org/2000/svg" width="10" height="8" viewBox="0 0 10 8" fill="none">
|
|
140
140
|
<path d="M1 4.5415L3 6.5415L9 0.541504" stroke="#FBF9F6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
141
|
-
</svg>`,J={wishlist:De,playerv:He,chevronRight:Me,chevronLeft:Te,icoPlus:qe,icoMinus:
|
|
141
|
+
</svg>`,J={wishlist:De,playerv:He,chevronRight:Me,chevronLeft:Te,icoPlus:qe,icoMinus:Ke,"star-0":je,"star-25":Fe,"star-50":Ne,"star-75":Re,"star-100":Ue,cross:Ve,search:Ze,arrowLeft:We,arrowTop:Ge,cart:Xe,notifyme:Je,triangledown:Qe,triangleup:Ye,checkstroke:to,pause:eo,mapDualArrow:oo,swipeDualArrow:no,backToBag:lo,checkbox:co},ho={strikeDiagonal:io},po={success:ro,error:so,info:ao};/**
|
|
142
142
|
* @license
|
|
143
143
|
* Copyright 2017 Google LLC
|
|
144
144
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
145
|
-
*/const jt={ATTRIBUTE:1,CHILD:2},Ft=o=>(...t)=>({_$litDirective$:o,values:t});let Nt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,
|
|
145
|
+
*/const jt={ATTRIBUTE:1,CHILD:2},Ft=o=>(...t)=>({_$litDirective$:o,values:t});let Nt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
|
|
146
146
|
* @license
|
|
147
147
|
* Copyright 2017 Google LLC
|
|
148
148
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
* @license
|
|
151
151
|
* Copyright 2017 Google LLC
|
|
152
152
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
153
|
-
*/class Ot extends Pt{}Ot.directiveName="unsafeSVG",Ot.resultType=2;const O=Ft(Ot);var uo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,
|
|
153
|
+
*/class Ot extends Pt{}Ot.directiveName="unsafeSVG",Ot.resultType=2;const O=Ft(Ot);var uo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,w=(o,t,e,n)=>{for(var i=n>1?void 0:n?vo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&uo(t,e,i),i};const fo=Tt(v);let b=class extends fo{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[Mt].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);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=J[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${O(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
|
|
154
154
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}>
|
|
155
155
|
${this.startIcon?this.renderIcon("start"):d}
|
|
156
156
|
${o?l`
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
`:l`<slot></slot>`}
|
|
175
175
|
${this.endIcon?this.renderIcon("end"):d}
|
|
176
176
|
</a>
|
|
177
|
-
`}};Be(
|
|
177
|
+
`}};Be(b);b.formAssociated=!0;b.styles=g`
|
|
178
178
|
:host {
|
|
179
179
|
--button-border: transparent;
|
|
180
180
|
--badge-outer-width: 19px;
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.button:focus-visible {
|
|
294
|
-
${
|
|
294
|
+
${bt};
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
span.text + span.text::before {
|
|
@@ -375,12 +375,12 @@
|
|
|
375
375
|
transform: translateX(4px);
|
|
376
376
|
}
|
|
377
377
|
//End icon movment on hover
|
|
378
|
-
`;
|
|
378
|
+
`;w([a()],b.prototype,"type",2);w([a({reflect:!0})],b.prototype,"value",2);w([a({type:String,reflect:!0})],b.prototype,"variant",2);w([a({type:String})],b.prototype,"text",2);w([a({type:String})],b.prototype,"textsecond",2);w([a({type:Boolean,reflect:!0})],b.prototype,"fullwidth",2);w([a({type:Boolean,reflect:!0})],b.prototype,"disabled",2);w([a({type:String,reflect:!0})],b.prototype,"startIconModel",2);w([a({type:String,reflect:!0})],b.prototype,"endIconModel",2);w([a({type:Boolean,reflect:!0,attribute:"starticon"})],b.prototype,"startIcon",2);w([a({type:Boolean,reflect:!0,attribute:"endicon"})],b.prototype,"endIcon",2);w([a({type:String,attribute:"paneltarget",reflect:!0})],b.prototype,"panelTarget",2);w([a({type:String})],b.prototype,"href",2);w([a({type:String})],b.prototype,"target",2);w([a({type:Boolean,reflect:!0})],b.prototype,"underlined",2);w([a({type:Boolean,reflect:!0})],b.prototype,"withbadge",2);b=w([x("o-button")],b);var bo=Object.defineProperty,go=Object.getOwnPropertyDescriptor,Ct=(o,t,e,n)=>{for(var i=n>1?void 0:n?go(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&bo(t,e,i),i};let et=class extends v{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("tabindex","0"),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=J.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
|
|
379
379
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
380
380
|
<span class="sr-only">${this.label}</span>
|
|
381
381
|
${O(o)}
|
|
382
382
|
</button>
|
|
383
|
-
`}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};et.styles=
|
|
383
|
+
`}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};et.styles=g`
|
|
384
384
|
:host {
|
|
385
385
|
display: inline-flex;
|
|
386
386
|
justify-content: center;
|
|
@@ -445,11 +445,11 @@
|
|
|
445
445
|
width: 0.1rem !important;
|
|
446
446
|
white-space: nowrap !important;
|
|
447
447
|
}
|
|
448
|
-
`;Ct([a({type:String,reflect:!0})],et.prototype,"status",2);Ct([a({type:String,reflect:!0})],et.prototype,"ariaDescribedBy",2);Ct([a({type:String,reflect:!0})],et.prototype,"label",2);et=Ct([
|
|
448
|
+
`;Ct([a({type:String,reflect:!0})],et.prototype,"status",2);Ct([a({type:String,reflect:!0})],et.prototype,"ariaDescribedBy",2);Ct([a({type:String,reflect:!0})],et.prototype,"label",2);et=Ct([x("o-wishlist-button")],et);/**
|
|
449
449
|
* @license
|
|
450
450
|
* Copyright 2018 Google LLC
|
|
451
451
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
452
|
-
*/const _=o=>o??d;var yo=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,D=(o,t,e,
|
|
452
|
+
*/const _=o=>o??d;var yo=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,D=(o,t,e,n)=>{for(var i=n>1?void 0:n?mo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&yo(t,e,i),i};let k=class extends v{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=J[this.icon]??"",t=`icon-${this.icon}`,e=o.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"'),n=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,i=this.showSrLabel?null:"icon";return l`
|
|
453
453
|
${this.type==="span"?l`
|
|
454
454
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
455
455
|
${O(e)}
|
|
@@ -462,10 +462,10 @@
|
|
|
462
462
|
?disabled="${this.disabled}"
|
|
463
463
|
>
|
|
464
464
|
${O(e)}
|
|
465
|
-
${
|
|
465
|
+
${n}
|
|
466
466
|
</button>
|
|
467
467
|
`}
|
|
468
|
-
`}};k.styles=
|
|
468
|
+
`}};k.styles=g`
|
|
469
469
|
:host {
|
|
470
470
|
display: inline-flex;
|
|
471
471
|
justify-content: center;
|
|
@@ -670,13 +670,13 @@
|
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
.icon-button:focus-visible {
|
|
673
|
-
${
|
|
673
|
+
${bt}
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
.sr-only {
|
|
677
677
|
display: none;
|
|
678
678
|
}
|
|
679
|
-
`;D([a({type:String,reflect:!0})],k.prototype,"bgstyle",2);D([a({type:String,reflect:!0})],k.prototype,"size",2);D([a({type:String,reflect:!0})],k.prototype,"status",2);D([a({type:String,reflect:!0})],k.prototype,"type",2);D([a({type:String})],k.prototype,"strokewidth",2);D([a({type:String})],k.prototype,"icon",2);D([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);D([a({type:Boolean})],k.prototype,"showSrLabel",2);D([a({type:String})],k.prototype,"srLabel",2);k=D([
|
|
679
|
+
`;D([a({type:String,reflect:!0})],k.prototype,"bgstyle",2);D([a({type:String,reflect:!0})],k.prototype,"size",2);D([a({type:String,reflect:!0})],k.prototype,"status",2);D([a({type:String,reflect:!0})],k.prototype,"type",2);D([a({type:String})],k.prototype,"strokewidth",2);D([a({type:String})],k.prototype,"icon",2);D([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);D([a({type:Boolean})],k.prototype,"showSrLabel",2);D([a({type:String})],k.prototype,"srLabel",2);k=D([x("o-icon-button")],k);var xo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,Q=(o,t,e,n)=>{for(var i=n>1?void 0:n?wo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&xo(t,e,i),i};let T=class extends v{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){const o=this.href||"#";return l`
|
|
680
680
|
<a
|
|
681
681
|
href="${o}"
|
|
682
682
|
target="${_(this.target||void 0)}"
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
></o-icon-button>
|
|
703
703
|
`:null}
|
|
704
704
|
</a>
|
|
705
|
-
`}};T.styles=
|
|
705
|
+
`}};T.styles=g`
|
|
706
706
|
:host([template="standard"]) a {
|
|
707
707
|
color: var(--color-content-action-secondary);
|
|
708
708
|
font-size: var(--font-size-200);
|
|
@@ -789,14 +789,14 @@
|
|
|
789
789
|
height: 1px;
|
|
790
790
|
}
|
|
791
791
|
/* End of underline effect */
|
|
792
|
-
`;Q([a({type:String})],T.prototype,"href",2);Q([a({type:String})],T.prototype,"target",2);Q([a({type:String,reflect:!0})],T.prototype,"template",2);Q([a({type:Boolean,reflect:!0})],T.prototype,"inverse",2);Q([a({type:Boolean,reflect:!0})],T.prototype,"endIcon",2);Q([a({type:Boolean,reflect:!0})],T.prototype,"reverseEndIcon",2);T=Q([
|
|
792
|
+
`;Q([a({type:String})],T.prototype,"href",2);Q([a({type:String})],T.prototype,"target",2);Q([a({type:String,reflect:!0})],T.prototype,"template",2);Q([a({type:Boolean,reflect:!0})],T.prototype,"inverse",2);Q([a({type:Boolean,reflect:!0})],T.prototype,"endIcon",2);Q([a({type:Boolean,reflect:!0})],T.prototype,"reverseEndIcon",2);T=Q([x("o-link")],T);var $o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,_t=(o,t,e,n)=>{for(var i=n>1?void 0:n?Co(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&$o(t,e,i),i};let ot=class extends v{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let n;e>=1?n=100:e<=0?n=0:n=Math.round(e*100/25)*25,o.push(`star-${n}`)}return o}render(){const o=this.getStarKeys();return l`
|
|
793
793
|
<div class="rating">
|
|
794
794
|
<div class="stars">
|
|
795
795
|
${o.map(t=>l`<span class="star">${O(J[t]??"")}</span>`)}
|
|
796
796
|
</div>
|
|
797
797
|
${this.reviewCount!=null&&this.href!=null?l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
|
|
798
798
|
</div>
|
|
799
|
-
`}};ot.styles=
|
|
799
|
+
`}};ot.styles=g`
|
|
800
800
|
svg {
|
|
801
801
|
width: 12px;
|
|
802
802
|
height: 12px;
|
|
@@ -829,7 +829,7 @@
|
|
|
829
829
|
text-decoration: underline;
|
|
830
830
|
cursor: pointer;
|
|
831
831
|
}
|
|
832
|
-
`;_t([a({type:Number})],ot.prototype,"rating",2);_t([a({type:String})],ot.prototype,"reviewCount",2);_t([a({type:String})],ot.prototype,"href",2);ot=_t([
|
|
832
|
+
`;_t([a({type:Number})],ot.prototype,"rating",2);_t([a({type:String})],ot.prototype,"reviewCount",2);_t([a({type:String})],ot.prototype,"href",2);ot=_t([x("o-rating")],ot);/**
|
|
833
833
|
* @license
|
|
834
834
|
* Copyright 2020 Google LLC
|
|
835
835
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
* @license
|
|
838
838
|
* Copyright 2017 Google LLC
|
|
839
839
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
840
|
-
*/const st=(o,t)=>{var
|
|
840
|
+
*/const st=(o,t)=>{var n;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(n=i._$AO)==null||n.call(i,t,!1),st(i,t);return!0},wt=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)},de=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),Eo(t)}};function ko(o){this._$AN!==void 0?(wt(this),this._$AM=o,de(this)):this._$AM=o}function Ao(o,t=!1,e=0){const n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let r=e;r<n.length;r++)st(n[r],!1),wt(n[r]);else n!=null&&(st(n,!1),wt(n));else st(this,o)}const Eo=o=>{o.type==jt.CHILD&&(o._$AP??(o._$AP=Ao),o._$AQ??(o._$AQ=ko))};class So extends Nt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),de(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,i;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(i=this.disconnected)==null||i.call(this)),e&&(st(this,t),wt(this))}setValue(t){if(_o(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 Lo extends So{constructor(){super(...arguments),this.prevData={}}render(t){return d}update(t,[e]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(e),this.groom(e),this.prevData={...e}}apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];r!==e[i]&&(n[i]=r)}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&(n[i]=void 0)}}class Po extends Lo{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const e in t){const n=t[e];n!==this.eventData[e]&&this.applyEvent(e,n)}}applyEvent(t,e){const{prevData:n,element:i}=this;this.eventData[t]=e,n[t]&&i.removeEventListener(t,this,e),i.addEventListener(t,this,e)}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&this.groomEvent(i,e[i])}groomEvent(t,e){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,e)}handleEvent(t){const e=this.eventData[t.type];typeof e=="function"?e.call(this.host,t):e.handleEvent(t)}disconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.removeEventListener(i,this,r)}}reconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.addEventListener(i,this,r)}}}class Oo extends Po{apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];if(r===e[i])continue;const s=i.slice(1);switch(i[0]){case"@":this.eventData[s]=r,this.applyEvent(s,r);break;case".":n[s]=r;break;case"?":r?n.setAttribute(s,""):n.removeAttribute(s);break;default:r!=null?n.setAttribute(i,String(r)):n.removeAttribute(i);break}}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e){const r=i.slice(1);if(!t||!(i in t)&&n[r]===e[i])switch(i[0]){case"@":this.groomEvent(r,e[i]);break;case".":n[r]=void 0;break;case"?":n.removeAttribute(r);break;default:n.removeAttribute(i);break}}}}const ne=Ft(Oo);var Io=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,y=(o,t,e,n)=>{for(var i=n>1?void 0:n?zo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Io(t,e,i),i};let u=class extends v{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.closeButtonLabel="Close the modal",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.innerFocusedElement=null,this._onOpenDetail=()=>{this.showDetail=!0,this.showHeaderStartIcon=!0},this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))},this.handleClosePanel=o=>{if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;o.preventDefault(),o.stopPropagation();const t=o.currentTarget,e=(t==null?void 0:t.getAttribute("data-role"))==="back";if(this.showDetail&&e){this.isHidingDetail=!0;const n=this.renderRoot.querySelector(".content");if(n){this.showHeaderStartIcon=!1;const i=()=>{this.showDetail=!1,this.isHidingDetail=!1,n.removeEventListener("animationend",i)};n.addEventListener("animationend",i)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),this.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0}),this.addEventListener("open-detail",this._onOpenDetail)}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback(),this.removeEventListener("open-detail",this._onOpenDetail)}trapFocus(o){var i,r,s,h,c,f,m,p,C,P;this.innerFocusedElement=document.activeElement||null,this.innerFocusedElement=((r=(i=this.innerFocusedElement)==null?void 0:i.shadowRoot)==null?void 0:r.activeElement)||this.innerFocusedElement;const t=this.getFocusableElements();if(t.length===0)return;const e=t[0],n=t[t.length-1];o.shiftKey&&this.innerFocusedElement===e?(o.preventDefault(),n.shadowRoot?(c=(h=(s=n.shadowRoot)==null?void 0:s.querySelector(u.focusablesSelector))==null?void 0:h.focus)==null||c.call(h):(f=n.focus)==null||f.call(n)):!o.shiftKey&&this.innerFocusedElement===n&&(o.preventDefault(),e.shadowRoot?(C=(p=(m=e.shadowRoot)==null?void 0:m.querySelector(u.focusablesSelector))==null?void 0:p.focus)==null||C.call(p):(P=e.focus)==null||P.call(e))}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");if(!o)return[];function t(i){return!(i.disabled||i.hasAttribute("disabled")||i.hasAttribute("tabindex")&&i.getAttribute("tabindex")==="-1")}function e(i){var s;const r=[i.matches(u.focusablesSelector)?i:[]];if(!["o-icon-button","o-button"].includes(i.tagName.toLowerCase())){const h=Array.from(i instanceof HTMLSlotElement?i.assignedElements({flatten:!0}):[]).filter(t).flatMap(e),c=Array.from(((s=i.shadowRoot)==null?void 0:s.querySelectorAll("*"))||[]).filter(t).flatMap(e);r.push(...h,...c)}return r.flat()}return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e)}openPanel(){this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open"),this.updateComplete.then(()=>{var o,t,e,n;if(this.showHeader){const i=((o=this.shadowRoot)==null?void 0:o.querySelector(".panel .close-btn"))||null,r=((t=i==null?void 0:i.shadowRoot)==null?void 0:t.querySelector("button"))||null;r&&((e=r.focus)==null||e.call(r))}else{const i=this.getFocusableElements()[0];(n=i==null?void 0:i.focus)==null||n.call(i)}}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var o,t,e,n,i;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),((o=this.previousFocusedElement)==null?void 0:o.tagName.toLowerCase())==="o-button"?(n=(e=(t=this.previousFocusedElement.shadowRoot)==null?void 0:t.querySelector(".button"))==null?void 0:e.focus)==null||n.call(e):(i=this.previousFocusedElement)==null||i.focus(),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}`)}render(){const o=this.showHeader?l`
|
|
841
841
|
<div class="header">
|
|
842
842
|
${this.showHeaderStartIcon?l`
|
|
843
843
|
<o-icon-button
|
|
@@ -897,7 +897,7 @@
|
|
|
897
897
|
variant="${this.firstButtonVariant}"
|
|
898
898
|
@click=${this.handleFirstClick}
|
|
899
899
|
@keydown=${this.handleFirstClick}
|
|
900
|
-
${
|
|
900
|
+
${ne(this.firstButtonProps)}
|
|
901
901
|
>
|
|
902
902
|
${this.firstButtonLabel}
|
|
903
903
|
</o-button>
|
|
@@ -908,7 +908,7 @@
|
|
|
908
908
|
variant="${this.secondButtonVariant}"
|
|
909
909
|
@click=${this.handleSecondClick}
|
|
910
910
|
@keydown=${this.handleSecondClick}
|
|
911
|
-
${
|
|
911
|
+
${ne(this.secondButtonProps)}
|
|
912
912
|
>
|
|
913
913
|
${this.secondButtonLabel}
|
|
914
914
|
</o-button>
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
</div>
|
|
917
917
|
`:null}
|
|
918
918
|
</div>
|
|
919
|
-
`}};u.styles=
|
|
919
|
+
`}};u.styles=g`
|
|
920
920
|
:host {
|
|
921
921
|
--z-overlay: 99;
|
|
922
922
|
--z-panel: 100;
|
|
@@ -1020,7 +1020,7 @@
|
|
|
1020
1020
|
.panel:focus-visible,
|
|
1021
1021
|
.close-btn:focus,
|
|
1022
1022
|
.close-btn:focus-visible {
|
|
1023
|
-
${
|
|
1023
|
+
${bt}
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
1026
|
.content {
|
|
@@ -1104,7 +1104,7 @@
|
|
|
1104
1104
|
.detail-content {
|
|
1105
1105
|
padding: var(--spacing-xl);
|
|
1106
1106
|
}
|
|
1107
|
-
`;u.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';u.focusablesCustomElementsSelector="o-icon-button, o-button";y([a({type:Boolean,reflect:!0})],u.prototype,"open",2);y([a({type:Boolean,reflect:!0})],u.prototype,"showHeader",2);y([a({type:Boolean,reflect:!0})],u.prototype,"showFooter",2);y([a({type:Boolean,reflect:!0})],u.prototype,"showHeaderStartIcon",2);y([a({type:String,reflect:!0})],u.prototype,"headerTitle",2);y([a({type:String,reflect:!0})],u.prototype,"headerTitleClassName",2);y([a({type:String,reflect:!0})],u.prototype,"closeButtonLabel",2);y([a({type:String,reflect:!0})],u.prototype,"firstButtonLabel",2);y([a({type:String,reflect:!0})],u.prototype,"firstButtonVariant",2);y([a({type:Object,reflect:!0})],u.prototype,"firstButtonProps",2);y([a({type:Boolean,reflect:!0})],u.prototype,"onFirstButtonClickClose",2);y([a({type:String,reflect:!0})],u.prototype,"secondButtonLabel",2);y([a({type:String,reflect:!0})],u.prototype,"secondButtonVariant",2);y([a({type:Object,reflect:!0})],u.prototype,"secondButtonProps",2);y([a({type:Boolean,reflect:!0})],u.prototype,"onSecondButtonClickClose",2);y([a({type:Boolean,reflect:!0})],u.prototype,"disablePortal",2);y([a({type:Number,reflect:!0})],u.prototype,"zIndex",2);y([a({type:Boolean,reflect:!0})],u.prototype,"initialized",2);y([a({type:Boolean})],u.prototype,"showDetail",2);y([a({type:Boolean})],u.prototype,"isHidingDetail",2);u=y([
|
|
1107
|
+
`;u.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';u.focusablesCustomElementsSelector="o-icon-button, o-button";y([a({type:Boolean,reflect:!0})],u.prototype,"open",2);y([a({type:Boolean,reflect:!0})],u.prototype,"showHeader",2);y([a({type:Boolean,reflect:!0})],u.prototype,"showFooter",2);y([a({type:Boolean,reflect:!0})],u.prototype,"showHeaderStartIcon",2);y([a({type:String,reflect:!0})],u.prototype,"headerTitle",2);y([a({type:String,reflect:!0})],u.prototype,"headerTitleClassName",2);y([a({type:String,reflect:!0})],u.prototype,"closeButtonLabel",2);y([a({type:String,reflect:!0})],u.prototype,"firstButtonLabel",2);y([a({type:String,reflect:!0})],u.prototype,"firstButtonVariant",2);y([a({type:Object,reflect:!0})],u.prototype,"firstButtonProps",2);y([a({type:Boolean,reflect:!0})],u.prototype,"onFirstButtonClickClose",2);y([a({type:String,reflect:!0})],u.prototype,"secondButtonLabel",2);y([a({type:String,reflect:!0})],u.prototype,"secondButtonVariant",2);y([a({type:Object,reflect:!0})],u.prototype,"secondButtonProps",2);y([a({type:Boolean,reflect:!0})],u.prototype,"onSecondButtonClickClose",2);y([a({type:Boolean,reflect:!0})],u.prototype,"disablePortal",2);y([a({type:Number,reflect:!0})],u.prototype,"zIndex",2);y([a({type:Boolean,reflect:!0})],u.prototype,"initialized",2);y([a({type:Boolean})],u.prototype,"showDetail",2);y([a({type:Boolean})],u.prototype,"isHidingDetail",2);u=y([x("o-side-panel")],u);var Bo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,Z=(o,t,e,n)=>{for(var i=n>1?void 0:n?Do(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Bo(t,e,i),i};let B=class extends v{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
|
|
1108
1108
|
<o-icon-button
|
|
1109
1109
|
icon="playerv"
|
|
1110
1110
|
size="xsmall"
|
|
@@ -1113,29 +1113,27 @@
|
|
|
1113
1113
|
status="filled"
|
|
1114
1114
|
strokewidth="0"
|
|
1115
1115
|
></o-icon-button>
|
|
1116
|
-
`}handleKeyDown(o){o.key==="ArrowRight"?(o.preventDefault(),this.focusNext()):o.key==="ArrowLeft"?(o.preventDefault(),this.focusPrevious()):
|
|
1116
|
+
`}get lastIndex(){return Math.max(0,this.thumbnails.length-1)}handleKeyDown(o){o.key==="ArrowRight"?(o.preventDefault(),this.focusNext()):o.key==="ArrowLeft"?(o.preventDefault(),this.focusPrevious()):o.key==="Enter"||o.key===" "?(o.preventDefault(),this.selectThumbnail(this.focusedIndex)):o.key==="Tab"&&(!o.shiftKey&&this.focusedIndex===this.lastIndex&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"last",direction:"forward"},bubbles:!0,composed:!0})),o.shiftKey&&this.focusedIndex===0&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"first",direction:"backward"},bubbles:!0,composed:!0})))}focusNext(){let o=this.focusedIndex+1;for(;this.disabledIndexes.includes(o)&&o<this.thumbnails.length;)o++;o<this.thumbnails.length&&(this.focusedIndex=o,this.focusThumbnail(o))}focusPrevious(){let o=this.focusedIndex-1;for(;this.disabledIndexes.includes(o)&&o>=0;)o--;o>=0&&(this.focusedIndex=o,this.focusThumbnail(o))}focusThumbnail(o){const t=this.renderRoot.querySelector(`[data-index="${o}"]`);t==null||t.focus()}selectThumbnail(o){this.disabledIndexes.includes(o)||(this.activeIndex=o,this.swiperInstance&&typeof this.swiperInstance.slideTo=="function"&&this.swiperInstance.slideTo(o),this.dispatchEvent(new CustomEvent("thumbnail-select",{detail:{index:o}})))}onFocus(o){const t=o.currentTarget,e=Number(t.dataset.index);this.focusedIndex=e,this.renderRoot.querySelectorAll(".thumb").forEach(i=>{i.classList.remove("a--tabfocus")}),t.classList.add("a--tabfocus"),this.requestUpdate()}onFocusOut(o){const t=o.currentTarget,e=Number(t.dataset.index),n=o.relatedTarget;(!n||this.shadowRoot&&!this.shadowRoot.contains(n))&&(this.renderRoot.querySelectorAll(".thumb").forEach(s=>s.classList.remove("a--tabfocus")),e===this.lastIndex?this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"last",direction:"unspecified"},bubbles:!0,composed:!0})):e===0&&this.dispatchEvent(new CustomEvent("thumb-exit",{detail:{from:"first",direction:"unspecified"},bubbles:!0,composed:!0})))}render(){return l`
|
|
1117
1117
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
1118
|
-
${this.thumbnails.map((o,t)=>{const e=this.disabledIndexes.includes(t),
|
|
1118
|
+
${this.thumbnails.map((o,t)=>{const e=this.disabledIndexes.includes(t),n=this.activeIndex===t,i=o.type==="video",r=i?`video ${t}`:`${this.altressource} ${t+1}`;return l`
|
|
1119
1119
|
<li class="thumb-wrapper">
|
|
1120
1120
|
<button
|
|
1121
1121
|
class="thumb"
|
|
1122
1122
|
data-index="${t}"
|
|
1123
1123
|
?disabled=${e}
|
|
1124
|
-
aria-
|
|
1125
|
-
aria-current=${r?"true":"false"}
|
|
1126
|
-
tabindex="${this.disabledIndexes.includes(t)?-1:0}"
|
|
1124
|
+
aria-current=${n?"true":"false"}
|
|
1127
1125
|
@click=${()=>this.selectThumbnail(t)}
|
|
1128
1126
|
@keydown=${this.handleKeyDown}
|
|
1129
1127
|
@focus=${s=>this.onFocus(s)}
|
|
1130
|
-
@
|
|
1128
|
+
@focusout=${s=>this.onFocusOut(s)}
|
|
1131
1129
|
>
|
|
1132
|
-
<img alt="${
|
|
1130
|
+
<img alt="${r}" src="${o.src}" />
|
|
1133
1131
|
</button>
|
|
1134
1132
|
${i?l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>`:null}
|
|
1135
1133
|
</li>
|
|
1136
1134
|
`})}
|
|
1137
1135
|
</ul>
|
|
1138
|
-
`}};B.styles=
|
|
1136
|
+
`}};B.styles=g`
|
|
1139
1137
|
:host {
|
|
1140
1138
|
display: flex;
|
|
1141
1139
|
gap: 5px;
|
|
@@ -1240,9 +1238,9 @@
|
|
|
1240
1238
|
height: 0;
|
|
1241
1239
|
width: 0;
|
|
1242
1240
|
}
|
|
1243
|
-
`;Z([a({type:Array})],B.prototype,"thumbnails",2);Z([a({type:Number})],B.prototype,"activeIndex",2);Z([a({type:Array})],B.prototype,"disabledIndexes",2);Z([a({type:String})],B.prototype,"maxWidth",2);Z([a({type:String})],B.prototype,"altressource",2);Z([a({type:Object})],B.prototype,"swiperInstance",2);Z([X()],B.prototype,"focusedIndex",2);B=Z([
|
|
1241
|
+
`;Z([a({type:Array})],B.prototype,"thumbnails",2);Z([a({type:Number})],B.prototype,"activeIndex",2);Z([a({type:Array})],B.prototype,"disabledIndexes",2);Z([a({type:String})],B.prototype,"maxWidth",2);Z([a({type:String})],B.prototype,"altressource",2);Z([a({type:Object})],B.prototype,"swiperInstance",2);Z([X()],B.prototype,"focusedIndex",2);B=Z([x("thumbnail-navigation")],B);var Ho=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,Rt=(o,t,e,n)=>{for(var i=n>1?void 0:n?Mo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ho(t,e,i),i};let ht=class extends v{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
|
|
1244
1242
|
<span class="tag ${this.bgstyle}"><slot></slot></span>
|
|
1245
|
-
`}};ht.styles=
|
|
1243
|
+
`}};ht.styles=g`
|
|
1246
1244
|
.tag {
|
|
1247
1245
|
display: inline-block;
|
|
1248
1246
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -1299,12 +1297,12 @@
|
|
|
1299
1297
|
}
|
|
1300
1298
|
}
|
|
1301
1299
|
|
|
1302
|
-
`;Rt([a({type:String,reflect:!0})],ht.prototype,"type",2);Rt([a({type:String,reflect:!0})],ht.prototype,"bgstyle",2);ht=Rt([
|
|
1300
|
+
`;Rt([a({type:String,reflect:!0})],ht.prototype,"type",2);Rt([a({type:String,reflect:!0})],ht.prototype,"bgstyle",2);ht=Rt([x("o-tag")],ht);var To=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,Ut=(o,t,e,n)=>{for(var i=n>1?void 0:n?jo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&To(t,e,i),i};let dt=class extends v{constructor(){super(...arguments),this.type="top",this.text=""}render(){return l`
|
|
1303
1301
|
<div class="tooltip">
|
|
1304
1302
|
<span class="tooltiptext">${this.text}</span>
|
|
1305
1303
|
<slot></slot>
|
|
1306
1304
|
</div>
|
|
1307
|
-
`}};dt.styles=
|
|
1305
|
+
`}};dt.styles=g`
|
|
1308
1306
|
.tooltip {
|
|
1309
1307
|
position: relative;
|
|
1310
1308
|
display: inline-block;
|
|
@@ -1396,7 +1394,7 @@
|
|
|
1396
1394
|
border-color: transparent var(--color-alpha-dark-strongest) transparent transparent;
|
|
1397
1395
|
}
|
|
1398
1396
|
|
|
1399
|
-
`;Ut([a({type:String,reflect:!0})],dt.prototype,"type",2);Ut([a({type:String,reflect:!0})],dt.prototype,"text",2);dt=Ut([
|
|
1397
|
+
`;Ut([a({type:String,reflect:!0})],dt.prototype,"type",2);Ut([a({type:String,reflect:!0})],dt.prototype,"text",2);dt=Ut([x("o-tooltip")],dt);var Fo=Object.defineProperty,No=Object.getOwnPropertyDescriptor,j=(o,t,e,n)=>{for(var i=n>1?void 0:n?No(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Fo(t,e,i),i};let I=class extends v{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=J.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1400
1398
|
<button
|
|
1401
1399
|
role="combobox"
|
|
1402
1400
|
aria-haspopup="listbox"
|
|
@@ -1424,13 +1422,13 @@
|
|
|
1424
1422
|
aria-activedescendant="${this.activeIndex>=0?"option-"+this.activeIndex:""}"
|
|
1425
1423
|
style=${`width: ${this.width};`}
|
|
1426
1424
|
>
|
|
1427
|
-
${this.options.map((e,
|
|
1425
|
+
${this.options.map((e,n)=>l`
|
|
1428
1426
|
<li
|
|
1429
|
-
id="option-${
|
|
1427
|
+
id="option-${n}"
|
|
1430
1428
|
role="option"
|
|
1431
1429
|
aria-selected="${e.value===this.value}"
|
|
1432
|
-
tabindex="${
|
|
1433
|
-
class="${
|
|
1430
|
+
tabindex="${n===this.activeIndex?"0":"-1"}"
|
|
1431
|
+
class="${n===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
|
|
1434
1432
|
@click=${()=>this.selectOption(e)}
|
|
1435
1433
|
>
|
|
1436
1434
|
${e.url?l`
|
|
@@ -1444,7 +1442,7 @@
|
|
|
1444
1442
|
</ul>`:null}
|
|
1445
1443
|
|
|
1446
1444
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1447
|
-
`}};I.styles=
|
|
1445
|
+
`}};I.styles=g`
|
|
1448
1446
|
:host {
|
|
1449
1447
|
display: inline-block;
|
|
1450
1448
|
position: relative;
|
|
@@ -1583,7 +1581,7 @@
|
|
|
1583
1581
|
input[type="hidden"] {
|
|
1584
1582
|
display: none;
|
|
1585
1583
|
}
|
|
1586
|
-
`;j([a({type:Array,reflect:!0})],I.prototype,"options",2);j([a({type:String,reflect:!0})],I.prototype,"value",2);j([a({type:String,reflect:!0})],I.prototype,"name",2);j([a({type:Boolean,reflect:!0})],I.prototype,"disabled",2);j([a({type:String,reflect:!0})],I.prototype,"width",2);j([X()],I.prototype,"open",2);j([X()],I.prototype,"activeIndex",2);j([X()],I.prototype,"menuWidth",2);I=j([
|
|
1584
|
+
`;j([a({type:Array,reflect:!0})],I.prototype,"options",2);j([a({type:String,reflect:!0})],I.prototype,"value",2);j([a({type:String,reflect:!0})],I.prototype,"name",2);j([a({type:Boolean,reflect:!0})],I.prototype,"disabled",2);j([a({type:String,reflect:!0})],I.prototype,"width",2);j([X()],I.prototype,"open",2);j([X()],I.prototype,"activeIndex",2);j([X()],I.prototype,"menuWidth",2);I=j([x("o-dropdown")],I);var Ro=Object.getOwnPropertyDescriptor,Uo=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ro(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(i)||i);return i};let It=class extends v{render(){return l` <span class="dots"></span> `}};It.styles=g`
|
|
1587
1585
|
:host {
|
|
1588
1586
|
display: flex;
|
|
1589
1587
|
align-items: center;
|
|
@@ -1634,7 +1632,7 @@
|
|
|
1634
1632
|
background-color: var(--color-container-action-primary-pressed);
|
|
1635
1633
|
}
|
|
1636
1634
|
}
|
|
1637
|
-
`;It=Uo([
|
|
1635
|
+
`;It=Uo([x("o-dots")],It);var Vo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,H=(o,t,e,n)=>{for(var i=n>1?void 0:n?Zo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Vo(t,e,i),i};let A=class extends v{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=J.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1638
1636
|
<button
|
|
1639
1637
|
role="combobox"
|
|
1640
1638
|
aria-haspopup="listbox"
|
|
@@ -1672,14 +1670,14 @@
|
|
|
1672
1670
|
aria-activedescendant="${this.activeIndex>=0?"option-"+this.activeIndex:""}"
|
|
1673
1671
|
style=${`width: ${this.width};`}
|
|
1674
1672
|
>
|
|
1675
|
-
${this.options.map((e,
|
|
1673
|
+
${this.options.map((e,n)=>l`
|
|
1676
1674
|
<li
|
|
1677
|
-
id="option-${
|
|
1675
|
+
id="option-${n}"
|
|
1678
1676
|
role="option"
|
|
1679
1677
|
aria-selected="${e.value===this.value}"
|
|
1680
1678
|
aria-disabled="${e.disabled?"true":"false"}"
|
|
1681
|
-
tabindex="${
|
|
1682
|
-
class="${
|
|
1679
|
+
tabindex="${n===this.activeIndex?"0":"-1"}"
|
|
1680
|
+
class="${n===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
|
|
1683
1681
|
@click=${()=>this.selectOption(e)}
|
|
1684
1682
|
>
|
|
1685
1683
|
<a href="${_(e.url)}">
|
|
@@ -1696,7 +1694,7 @@
|
|
|
1696
1694
|
</ul>`:null}
|
|
1697
1695
|
|
|
1698
1696
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1699
|
-
`}};A.styles=
|
|
1697
|
+
`}};A.styles=g`
|
|
1700
1698
|
:host {
|
|
1701
1699
|
display: inline-block;
|
|
1702
1700
|
position: relative;
|
|
@@ -1871,17 +1869,17 @@
|
|
|
1871
1869
|
input[type="hidden"] {
|
|
1872
1870
|
display: none;
|
|
1873
1871
|
}
|
|
1874
|
-
`;H([a({type:Array,reflect:!0})],A.prototype,"options",2);H([a({type:String,reflect:!0})],A.prototype,"value",2);H([a({type:String,reflect:!0})],A.prototype,"name",2);H([a({type:String,reflect:!0})],A.prototype,"additionaltext",2);H([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2);H([a({type:String,reflect:!0})],A.prototype,"width",2);H([X()],A.prototype,"open",2);H([X()],A.prototype,"activeIndex",2);H([X()],A.prototype,"menuWidth",2);A=H([
|
|
1872
|
+
`;H([a({type:Array,reflect:!0})],A.prototype,"options",2);H([a({type:String,reflect:!0})],A.prototype,"value",2);H([a({type:String,reflect:!0})],A.prototype,"name",2);H([a({type:String,reflect:!0})],A.prototype,"additionaltext",2);H([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2);H([a({type:String,reflect:!0})],A.prototype,"width",2);H([X()],A.prototype,"open",2);H([X()],A.prototype,"activeIndex",2);H([X()],A.prototype,"menuWidth",2);A=H([x("o-dropdown-variant")],A);/**
|
|
1875
1873
|
* @license
|
|
1876
1874
|
* Copyright 2018 Google LLC
|
|
1877
1875
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1878
|
-
*/const pe="important",qo=" !"+pe,
|
|
1879
|
-
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${_(this.option.title)}" aria-hidden="true" style=${
|
|
1876
|
+
*/const pe="important",qo=" !"+pe,Ko=Ft(class extends Nt{constructor(o){var t;if(super(o),o.type!==jt.ATTRIBUTE||o.name!=="style"||((t=o.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{const n=o[e];return n==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[t]){const{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?e.removeProperty(n):e[n]=null);for(const n in t){const i=t[n];if(i!=null){this.ft.add(n);const r=typeof i=="string"&&i.endsWith(qo);n.includes("-")||r?e.setProperty(n,r?i.slice(0,-11):i,r?pe:""):e[n]=i}}return V}});var Wo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Vt=(o,t,e,n)=>{for(var i=n>1?void 0:n?Go(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Wo(t,e,i),i};let pt=class extends v{constructor(){super(...arguments),this.option={},this.imageSize=64}render(){const o=this.option.clickable,t={width:`${this.imageSize}px`,height:`${this.imageSize}px`},e=l`
|
|
1877
|
+
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${_(this.option.title)}" aria-hidden="true" style=${Ko(t)} />`:""}
|
|
1880
1878
|
<div class="m-reassurance-content">
|
|
1881
1879
|
<h3 class="a-reassurance-text">${_(this.option.title)}</h3>
|
|
1882
1880
|
<p class="a-reassurance-description">${_(this.option.description)}</p>
|
|
1883
1881
|
</div>
|
|
1884
|
-
`;return o?l`<a href="${_(this.option.url)}" class="reassurance-item clickable">${e}</a>`:l`<div class="reassurance-item">${e}</div>`}};pt.styles=
|
|
1882
|
+
`;return o?l`<a href="${_(this.option.url)}" class="reassurance-item clickable">${e}</a>`:l`<div class="reassurance-item">${e}</div>`}};pt.styles=g`
|
|
1885
1883
|
:host {
|
|
1886
1884
|
display: inline-block;
|
|
1887
1885
|
position: relative;
|
|
@@ -1962,7 +1960,7 @@
|
|
|
1962
1960
|
overflow: hidden;
|
|
1963
1961
|
}
|
|
1964
1962
|
}
|
|
1965
|
-
`;Vt([a({type:Object,reflect:!0})],pt.prototype,"option",2);Vt([a({type:Number,reflect:!0})],pt.prototype,"imageSize",2);pt=Vt([
|
|
1963
|
+
`;Vt([a({type:Object,reflect:!0})],pt.prototype,"option",2);Vt([a({type:Number,reflect:!0})],pt.prototype,"imageSize",2);pt=Vt([x("o-reassurance")],pt);var Xo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,F=(o,t,e,n)=>{for(var i=n>1?void 0:n?Jo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Xo(t,e,i),i};const Qo=Tt(v);let E=class extends Qo{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`
|
|
1966
1964
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
|
|
1967
1965
|
${o?this.text:l`<slot></slot>`}
|
|
1968
1966
|
</a>
|
|
@@ -1971,7 +1969,7 @@
|
|
|
1971
1969
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
1972
1970
|
${o?this.text:l`<slot></slot>`}
|
|
1973
1971
|
</button>
|
|
1974
|
-
`}};
|
|
1972
|
+
`}};E.styles=g`
|
|
1975
1973
|
:host {
|
|
1976
1974
|
cursor: pointer;
|
|
1977
1975
|
display: inline-flex;
|
|
@@ -2047,7 +2045,7 @@
|
|
|
2047
2045
|
}
|
|
2048
2046
|
|
|
2049
2047
|
&:focus-visible {
|
|
2050
|
-
${
|
|
2048
|
+
${bt};
|
|
2051
2049
|
}
|
|
2052
2050
|
}
|
|
2053
2051
|
|
|
@@ -2060,16 +2058,16 @@
|
|
|
2060
2058
|
display: inline-flex;
|
|
2061
2059
|
align-items: center;
|
|
2062
2060
|
}
|
|
2063
|
-
`;F([a({type:String,reflect:!0})],
|
|
2061
|
+
`;F([a({type:String,reflect:!0})],E.prototype,"link",2);F([a({reflect:!0})],E.prototype,"name",2);F([a({reflect:!0})],E.prototype,"value",2);F([a({type:String})],E.prototype,"text",2);F([a({type:String,reflect:!0})],E.prototype,"size",2);F([a({type:Boolean,reflect:!0})],E.prototype,"selected",2);F([a({type:Boolean,reflect:!0})],E.prototype,"fullwidth",2);F([a({type:Boolean,reflect:!0})],E.prototype,"inactive",2);E=F([x("o-chip")],E);var Yo=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,Zt=(o,t,e,n)=>{for(var i=n>1?void 0:n?ti(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Yo(t,e,i),i};let ut=class extends v{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof E?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`
|
|
2064
2062
|
<slot></slot>
|
|
2065
|
-
`}};ut.styles=
|
|
2063
|
+
`}};ut.styles=g`
|
|
2066
2064
|
:host {
|
|
2067
2065
|
display: flex;
|
|
2068
2066
|
flex-direction: row;
|
|
2069
2067
|
flex-wrap: wrap;
|
|
2070
2068
|
gap: var(--spacing-s);
|
|
2071
2069
|
}
|
|
2072
|
-
`;Zt([a({reflect:!0})],ut.prototype,"name",2);Zt([a({reflect:!0})],ut.prototype,"value",2);ut=Zt([
|
|
2070
|
+
`;Zt([a({reflect:!0})],ut.prototype,"name",2);Zt([a({reflect:!0})],ut.prototype,"value",2);ut=Zt([x("o-chipset")],ut);var ei=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,M=(o,t,e,n)=>{for(var i=n>1?void 0:n?oi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ei(t,e,i),i};const ii=Tt(v);let S=class extends ii{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=J[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${O(o)}</span>`}strikeThroughImg(){const o=ho[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return O(o)}render(){const o=this.text;return l`${this.type==="link"?l`
|
|
2073
2071
|
<a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
2074
2072
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
2075
2073
|
${o?l`
|
|
@@ -2089,7 +2087,7 @@
|
|
|
2089
2087
|
</button>
|
|
2090
2088
|
`}
|
|
2091
2089
|
${this.disabled?this.strikeThroughImg():d}
|
|
2092
|
-
`}};
|
|
2090
|
+
`}};S.styles=g`
|
|
2093
2091
|
:host {
|
|
2094
2092
|
cursor: pointer;
|
|
2095
2093
|
display: inline-flex;
|
|
@@ -2169,7 +2167,7 @@
|
|
|
2169
2167
|
}
|
|
2170
2168
|
|
|
2171
2169
|
.button:focus-visible {
|
|
2172
|
-
${
|
|
2170
|
+
${bt};
|
|
2173
2171
|
}
|
|
2174
2172
|
|
|
2175
2173
|
span.text + span.text::before {
|
|
@@ -2214,7 +2212,7 @@
|
|
|
2214
2212
|
stroke-linecap: round;
|
|
2215
2213
|
}
|
|
2216
2214
|
}
|
|
2217
|
-
`;M([a({reflect:!0})],
|
|
2215
|
+
`;M([a({reflect:!0})],S.prototype,"name",2);M([a({reflect:!0})],S.prototype,"value",2);M([a({type:String,reflect:!0})],S.prototype,"type",2);M([a({type:String,reflect:!0})],S.prototype,"href",2);M([a({type:String,reflect:!0,attribute:"data-href"})],S.prototype,"dataHref",2);M([a({type:String})],S.prototype,"text",2);M([a({type:Boolean,reflect:!0})],S.prototype,"selected",2);M([a({type:Boolean,reflect:!0})],S.prototype,"disabled",2);M([a({type:Boolean,reflect:!0})],S.prototype,"fullwidth",2);S=M([x("o-filter-chip")],S);var ni=Object.defineProperty,N=(o,t,e,n)=>{for(var i=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(t,e,i)||i);return i&&ni(t,e,i),i};const Kt=class Kt extends v{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}onClick(){typeof this.onClickTile=="function"&&this.onClickTile()}get icons(){return this.type==="chevron"?l`
|
|
2218
2216
|
<o-icon-button
|
|
2219
2217
|
@click=${this.onClick}
|
|
2220
2218
|
icon="chevronRight"
|
|
@@ -2246,7 +2244,7 @@
|
|
|
2246
2244
|
</div>
|
|
2247
2245
|
${this.icons}
|
|
2248
2246
|
</div>
|
|
2249
|
-
`}};
|
|
2247
|
+
`}};Kt.styles=g`
|
|
2250
2248
|
:host {
|
|
2251
2249
|
display: block;
|
|
2252
2250
|
max-width: 100%;
|
|
@@ -2333,11 +2331,11 @@
|
|
|
2333
2331
|
.fullpointer {
|
|
2334
2332
|
cursor: pointer;
|
|
2335
2333
|
}
|
|
2336
|
-
`;let L=
|
|
2334
|
+
`;let L=Kt;N([a({type:String})],L.prototype,"type");N([a({type:String})],L.prototype,"titleProduct");N([a({type:String})],L.prototype,"volume");N([a({type:String})],L.prototype,"perLiter");N([a({type:String})],L.prototype,"mainPrice");N([a({type:String})],L.prototype,"imageUrl");N([a({type:String})],L.prototype,"altImage");N([a({type:Boolean})],L.prototype,"fullwidth");N([a({type:Function})],L.prototype,"onClickTile");customElements.define("mini-tile",L);var ri=Object.defineProperty,si=Object.getOwnPropertyDescriptor,qt=(o,t,e,n)=>{for(var i=n>1?void 0:n?si(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ri(t,e,i),i};let vt=class extends v{constructor(){super(...arguments),this.variant="cart",this.text=""}render(){return l`
|
|
2337
2335
|
<span class="badge">
|
|
2338
2336
|
${this.text?this.text:l`<slot></slot>`}
|
|
2339
2337
|
</span>
|
|
2340
|
-
`}};vt.styles=
|
|
2338
|
+
`}};vt.styles=g`
|
|
2341
2339
|
:host([variant]) {
|
|
2342
2340
|
--badge-width: 19px;
|
|
2343
2341
|
display: inline-block;
|
|
@@ -2371,7 +2369,7 @@
|
|
|
2371
2369
|
color: var(--text-color);
|
|
2372
2370
|
}
|
|
2373
2371
|
|
|
2374
|
-
`;qt([a({type:String,reflect:!0})],vt.prototype,"variant",2);qt([a({type:String})],vt.prototype,"text",2);vt=qt([
|
|
2372
|
+
`;qt([a({type:String,reflect:!0})],vt.prototype,"variant",2);qt([a({type:String})],vt.prototype,"text",2);vt=qt([x("o-badge")],vt);var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,z=(o,t,e,n)=>{for(var i=n>1?void 0:n?li(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ai(t,e,i),i};let $=class extends v{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}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()},300)}firstUpdated(){var e;var o=this;const t=(e=this.renderRoot)==null?void 0:e.querySelector("o-icon-button");t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=po[this.icon].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"');return l`
|
|
2375
2373
|
<div class="o-toast">
|
|
2376
2374
|
<div class="o-toast-icon">
|
|
2377
2375
|
${O(t)}
|
|
@@ -2387,13 +2385,13 @@
|
|
|
2387
2385
|
</o-icon-button>
|
|
2388
2386
|
</div>
|
|
2389
2387
|
</div>
|
|
2390
|
-
`}};$.styles=
|
|
2388
|
+
`}};$.styles=g`
|
|
2391
2389
|
:host {
|
|
2392
2390
|
--vertical-offset: 24px;
|
|
2393
2391
|
--horizontal-offset: 24px;
|
|
2394
2392
|
--animation-duration: 500ms;
|
|
2395
2393
|
position: fixed;
|
|
2396
|
-
z-index:
|
|
2394
|
+
z-index: 105;
|
|
2397
2395
|
transition: all var(--animation-duration) ease-in-out;
|
|
2398
2396
|
}
|
|
2399
2397
|
|
|
@@ -2446,13 +2444,13 @@
|
|
|
2446
2444
|
|
|
2447
2445
|
.o-toast-text {
|
|
2448
2446
|
color: var(--color-content-body);
|
|
2449
|
-
padding: 0
|
|
2447
|
+
padding: 0 12px;
|
|
2450
2448
|
width: max-content;
|
|
2451
2449
|
text-align: center;
|
|
2452
|
-
max-width:
|
|
2450
|
+
max-width: 65vw;
|
|
2453
2451
|
}
|
|
2454
2452
|
|
|
2455
2453
|
.o-toast-icon {
|
|
2456
2454
|
height: 16px;
|
|
2457
2455
|
}
|
|
2458
|
-
`;z([a({type:String,reflect:!0})],$.prototype,"icon",2);z([a({type:String,reflect:!0})],$.prototype,"text",2);z([a({type:String,reflect:!0})],$.prototype,"verticalanchor",2);z([a({type:String,reflect:!0})],$.prototype,"horizontalanchor",2);z([a({type:Number,reflect:!0})],$.prototype,"verticaloffset",2);z([a({type:Number,reflect:!0})],$.prototype,"horizontaloffset",2);z([a({type:Number,reflect:!0})],$.prototype,"animationduration",2);z([a({type:String,reflect:!0})],$.prototype,"animationaxis",2);z([a({type:Boolean,reflect:!0})],$.prototype,"animated",2);z([a({type:Number,reflect:!0})],$.prototype,"lifeduration",2);$=z([
|
|
2456
|
+
`;z([a({type:String,reflect:!0})],$.prototype,"icon",2);z([a({type:String,reflect:!0})],$.prototype,"text",2);z([a({type:String,reflect:!0})],$.prototype,"verticalanchor",2);z([a({type:String,reflect:!0})],$.prototype,"horizontalanchor",2);z([a({type:Number,reflect:!0})],$.prototype,"verticaloffset",2);z([a({type:Number,reflect:!0})],$.prototype,"horizontaloffset",2);z([a({type:Number,reflect:!0})],$.prototype,"animationduration",2);z([a({type:String,reflect:!0})],$.prototype,"animationaxis",2);z([a({type:Boolean,reflect:!0})],$.prototype,"animated",2);z([a({type:Number,reflect:!0})],$.prototype,"lifeduration",2);$=z([x("o-toast")],$);
|