@florid-kit/components 0.4.30 → 0.4.32
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/link.d.ts +1 -0
- package/index.js +33 -22
- package/index.mjs +114 -96
- package/package.json +1 -1
package/components/link.d.ts
CHANGED
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 X=globalThis,dt=X.ShadowRoot&&(X.ShadyCSS===void 0||X.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pt=Symbol(),
|
|
5
|
+
*/const X=globalThis,dt=X.ShadowRoot&&(X.ShadyCSS===void 0||X.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pt=Symbol(),vt=new WeakMap;let Et=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==pt)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(dt&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=vt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&vt.set(e,t))}return t}toString(){return this.cssText}};const zt=n=>new Et(typeof n=="string"?n:n+"",void 0,pt),$=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,o,r)=>i+(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.")})(o)+n[r+1],n[0]);return new Et(e,n,pt)},Ot=(n,t)=>{if(dt)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=X.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,n.appendChild(i)}},bt=dt?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return zt(e)})(n):n;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:Ht,defineProperty:Mt,getOwnPropertyDescriptor:Tt,getOwnPropertyNames:Dt,getOwnPropertySymbols:Ut,getPrototypeOf:Nt}=Object,
|
|
9
|
+
*/const{is:Ht,defineProperty:Mt,getOwnPropertyDescriptor:Tt,getOwnPropertyNames:Dt,getOwnPropertySymbols:Ut,getPrototypeOf:Nt}=Object,E=globalThis,yt=E.trustedTypes,jt=yt?yt.emptyScript:"",it=E.reactiveElementPolyfillSupport,V=(n,t)=>n,J={toAttribute(n,t){switch(t){case Boolean:n=n?jt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},ut=(n,t)=>!Ht(n,t),mt={attribute:!0,type:String,converter:J,reflect:!1,useDefault:!1,hasChanged:ut};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),E.litPropertyMetadata??(E.litPropertyMetadata=new WeakMap);let T=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=mt){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 i=Symbol(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Mt(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=Tt(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:o,set(s){const c=o==null?void 0:o.call(this);r==null||r.call(this,s),this.requestUpdate(t,c,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??mt}static _$Ei(){if(this.hasOwnProperty(V("elementProperties")))return;const t=Nt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(V("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(V("properties"))){const e=this.properties,i=[...Dt(e),...Ut(e)];for(const o of i)this.createProperty(o,e[o])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(bt(o))}else t!==void 0&&e.push(bt(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i: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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ot(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 i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const s=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:J).toAttribute(e,i.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var r,s;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const c=i.getPropertyOptions(o),l=typeof c.converter=="function"?{fromAttribute:c.converter}:((r=c.converter)==null?void 0:r.fromAttribute)!==void 0?c.converter:J;this._$Em=o,this[o]=l.fromAttribute(e,c.type)??((s=this._$Ej)==null?void 0:s.get(o))??null,this._$Em=null}}requestUpdate(t,e,i){var o;if(t!==void 0){const r=this.constructor,s=this[t];if(i??(i=r.getPropertyOptions(t)),!((i.hasChanged??ut)(s,e)||i.useDefault&&i.reflect&&s===((o=this._$Ej)==null?void 0:o.get(t))&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:r},s){i&&!(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||i||(e=void 0),this._$AL.set(t,e)),o===!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 i;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 o=this.constructor.elementProperties;if(o.size>0)for(const[r,s]of o){const{wrapped:c}=s,l=this[r];c!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,s,l)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),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){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[V("elementProperties")]=new Map,T[V("finalized")]=new Map,it==null||it({ReactiveElement:T}),(E.reactiveElementVersions??(E.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 R=globalThis,Y=R.trustedTypes,wt=Y?Y.createPolicy("lit-html",{createHTML:n=>n}):void 0,Lt="$lit$",S=`lit$${Math.random().toFixed(9).slice(2)}$`,kt="?"+S,Vt=`<${kt}>`,z=document,F=()=>z.createComment(""),Z=n=>n===null||typeof n!="object"&&typeof n!="function",gt=Array.isArray,Rt=n=>gt(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",st=`[
|
|
14
14
|
\f\r]`,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$t=/-->/g,xt=/>/g,P=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,Ct=/"/g,Pt=/^(?:script|style|textarea|title)$/i,Ft=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),h=Ft(1),O=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),At=new WeakMap,I=z.createTreeWalker(z,129);function It(n,t){if(!gt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return wt!==void 0?wt.createHTML(t):t}const Zt=(n,t)=>{const e=n.length-1,i=[];let o,r=t===2?"<svg>":t===3?"<math>":"",s=j;for(let c=0;c<e;c++){const l=n[c];let g,v,p=-1,x=0;for(;x<l.length&&(s.lastIndex=x,v=s.exec(l),v!==null);)x=s.lastIndex,s===j?v[1]==="!--"?s=$t:v[1]!==void 0?s=xt:v[2]!==void 0?(Pt.test(v[2])&&(o=RegExp("</"+v[2],"g")),s=P):v[3]!==void 0&&(s=P):s===P?v[0]===">"?(s=o??j,p=-1):v[1]===void 0?p=-2:(p=s.lastIndex-v[2].length,g=v[1],s=v[3]===void 0?P:v[3]==='"'?Ct:_t):s===Ct||s===_t?s=P:s===$t||s===xt?s=j:(s=P,o=void 0);const A=s===P&&n[c+1].startsWith("/>")?" ":"";r+=s===j?l+Vt:p>=0?(i.push(g),l.slice(0,p)+Lt+l.slice(p)+S+A):l+S+(p===-2?c:A)}return[It(n,r+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const c=t.length-1,l=this.parts,[g,v]=Zt(t,e);if(this.el=q.createElement(g,i),I.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=I.nextNode())!==null&&l.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(const p of o.getAttributeNames())if(p.endsWith(Lt)){const x=v[s++],A=o.getAttribute(p).split(S),K=/([.?@])?(.*)/.exec(x);l.push({type:1,index:r,name:K[2],strings:A,ctor:K[1]==="."?Wt:K[1]==="?"?Gt:K[1]==="@"?Kt:tt}),o.removeAttribute(p)}else p.startsWith(S)&&(l.push({type:6,index:r}),o.removeAttribute(p));if(Pt.test(o.tagName)){const p=o.textContent.split(S),x=p.length-1;if(x>0){o.textContent=Y?Y.emptyScript:"";for(let A=0;A<x;A++)o.append(p[A],F()),I.nextNode(),l.push({type:2,index:++r});o.append(p[x],F())}}}else if(o.nodeType===8)if(o.data===kt)l.push({type:2,index:r});else{let p=-1;for(;(p=o.data.indexOf(S,p+1))!==-1;)l.push({type:7,index:r}),p+=S.length-1}r++}}static createElement(t,e){const i=z.createElement("template");return i.innerHTML=t,i}}function D(n,t,e=n,i){var s,c;if(t===O)return t;let o=i!==void 0?(s=e._$Co)==null?void 0:s[i]:e._$Cl;const r=Z(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==r&&((c=o==null?void 0:o._$AO)==null||c.call(o,!1),r===void 0?o=void 0:(o=new r(n),o._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=o:e._$Cl=o),o!==void 0&&(t=D(n,o._$AS(n,t.values),o,i)),t}class qt{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:i}=this._$AD,o=((t==null?void 0:t.creationScope)??z).importNode(e,!0);I.currentNode=o;let r=I.nextNode(),s=0,c=0,l=i[0];for(;l!==void 0;){if(s===l.index){let g;l.type===2?g=new G(r,r.nextSibling,this,t):l.type===1?g=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(g=new Xt(r,this,t)),this._$AV.push(g),l=i[++c]}s!==(l==null?void 0:l.index)&&(r=I.nextNode(),s++)}return I.currentNode=z,o}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class G{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=(o==null?void 0:o.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=D(this,t,e),Z(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==O&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Rt(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&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=q.createElement(It(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else{const s=new qt(o,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=At.get(t.strings);return e===void 0&&At.set(t.strings,e=new q(t)),e}k(t){gt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new G(this.O(F()),this.O(F()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=d}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(r===void 0)t=D(this,t,e,0),s=!Z(t)||t!==this._$AH&&t!==O,s&&(this._$AH=t);else{const c=t;let l,g;for(t=r[0],l=0;l<r.length-1;l++)g=D(this,c[i+l],e,l),g===O&&(g=this._$AH[l]),s||(s=!Z(g)||g!==this._$AH[l]),g===d?t=d:t!==d&&(t+=(g??"")+r[l+1]),this._$AH[l]=g}s&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Wt extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Gt extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Kt extends tt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=D(this,t,e,0)??d)===O)return;const i=this._$AH,o=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==d&&(i===d||o);o&&this.element.removeEventListener(this.name,this,i),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 Xt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const rt=R.litHtmlPolyfillSupport;rt==null||rt(q,G),(R.litHtmlVersions??(R.litHtmlVersions=[])).push("3.3.0");const Jt=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let o=i._$litPart$;if(o===void 0){const r=(e==null?void 0:e.renderBefore)??null;i._$litPart$=o=new G(t.insertBefore(F(),r),r,void 0,e??{})}return o._$AI(n),o};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const B=globalThis;let m=class extends T{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=Jt(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 O}};var
|
|
19
|
+
*/const B=globalThis;let m=class extends T{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=Jt(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 O}};var St;m._$litElement$=!0,m.finalized=!0,(St=B.litElementHydrateSupport)==null||St.call(B,{LitElement:m});const at=B.litElementPolyfillSupport;at==null||at({LitElement:m});(B.litElementVersions??(B.litElementVersions=[])).push("4.2.0");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2023 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: Apache-2.0
|
|
43
|
-
*/const
|
|
43
|
+
*/const ft=Symbol("internals"),lt=Symbol("privateInternals");function ne(n){var t;class e extends n{get[(t=ft,t)](){return this[lt]||(this[lt]=this.attachInternals()),this[lt]}}return e}/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2023 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: Apache-2.0
|
|
47
|
-
*/function oe(n){n.addInitializer(t=>{const e=t;e.addEventListener("click",async i=>{const{type:o,[
|
|
47
|
+
*/function oe(n){n.addInitializer(t=>{const e=t;e.addEventListener("click",async i=>{const{type:o,[ft]:r}=e,{form:s}=r;if(!(!s||o==="button")&&(await new Promise(c=>{setTimeout(c)}),!i.defaultPrevented)){if(o==="reset"){s.reset();return}s.addEventListener("submit",c=>{Object.defineProperty(c,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),r.setFormValue(e.value),s.requestSubmit()}})})}const ie=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
48
48
|
<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"/>
|
|
49
49
|
</svg>
|
|
50
50
|
`,se=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
`,ge=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
79
79
|
<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"/>
|
|
80
80
|
</svg>
|
|
81
|
-
`,
|
|
81
|
+
`,fe=`<?xml version="1.0" encoding="utf-8"?>
|
|
82
82
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
83
83
|
<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"
|
|
84
84
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
<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
|
|
89
89
|
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"/>
|
|
90
90
|
</svg>
|
|
91
|
-
`,
|
|
91
|
+
`,ve=`<?xml version="1.0" encoding="utf-8"?>
|
|
92
92
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
93
93
|
<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"
|
|
94
94
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -103,19 +103,22 @@
|
|
|
103
103
|
`,ye=`<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
104
104
|
<path d="M6.33317 8.00033C6.33317 3.95024 7.52708 0.666992 8.99984 0.666992C10.4726 0.666992 11.6665 3.95024 11.6665 8.00033M5.33317 15.3337H12.6665L16.3332 6.20033C14.9582 5.76699 12.2998 5.33366 8.99984 5.33366C5.69984 5.33366 3.49984 5.76699 1.6665 6.20033L5.33317 15.3337Z" stroke="#3F2B2E"/>
|
|
105
105
|
</svg>
|
|
106
|
-
`,
|
|
106
|
+
`,me=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
107
|
+
<path d="M7.99376 14.4486C7.46684 14.4486 6.93991 14.251 6.54472 13.8558C6.14953 13.4606 5.8202 12.9995 5.68847 12.4067H3.77837C2.98798 12.4067 2.59279 12.4067 2.32933 12.1433C2.13173 12.0116 2 11.7481 2 11.5505C2 11.2212 2.13173 10.826 2.52692 10.1673L2.92212 9.4428C3.31731 8.78415 3.51491 8.05963 3.64664 7.3351L3.84423 5.68847C3.97596 4.63462 4.43702 3.7125 5.22741 3.05385C6.01779 2.39519 7.00578 2 7.99376 2C8.98174 2 10.0356 2.39519 10.7601 3.05385C11.5505 3.7125 12.0116 4.70049 12.1433 5.68847L12.3409 7.26924C12.4067 8.05963 12.6702 8.78415 13.0654 9.37693L13.4606 10.1015C13.8558 10.7601 14.0534 11.0894 13.9875 11.4846C13.9875 11.7481 13.8558 11.9457 13.6582 12.0774C13.3947 12.3409 12.9995 12.3409 12.2092 12.3409H10.2991C10.1673 12.9337 9.83799 13.4606 9.4428 13.7899C9.04761 14.1851 8.52068 14.3827 7.99376 14.3827V14.4486ZM6.28126 12.4067C6.41299 12.8019 6.61058 13.1971 6.93991 13.4606C7.5327 13.9875 8.45482 13.9875 9.11347 13.4606C9.4428 13.1971 9.6404 12.8019 9.77213 12.4067H6.28126ZM7.99376 2.65865C7.13751 2.65865 6.28126 2.98798 5.6226 3.58077C4.96395 4.17356 4.56875 4.96395 4.43702 5.88606L4.23943 7.46684C4.1077 8.32309 3.84423 9.11347 3.44904 9.83799L3.05385 10.5625C2.72452 11.0894 2.59279 11.3529 2.59279 11.5505C2.59279 11.6164 2.59279 11.7481 2.72452 11.814C2.85625 11.8798 3.25144 11.8798 3.77837 11.8798H12.2092C12.7361 11.8798 13.1971 11.8798 13.263 11.814C13.3289 11.814 13.3947 11.6822 13.3947 11.5505C13.3947 11.4188 13.1971 11.0894 12.9337 10.5625L12.5385 9.83799C12.0774 9.11347 11.814 8.32309 11.7481 7.5327L11.5505 5.88606C11.4846 5.02981 11.0236 4.17356 10.3649 3.58077C9.70626 2.98798 8.85001 2.65865 7.99376 2.65865Z" fill="#3F2B2E"/>
|
|
108
|
+
</svg>
|
|
109
|
+
`,et={wishlist:ie,playerv:se,chevronRight:re,chevronLeft:ae,icoPlus:fe,icoMinus:ve,"star-0":le,"star-25":ce,"star-50":he,"star-75":de,"star-100":pe,cross:ue,search:ge,arrowLeft:be,cart:ye,notifyme:me};/**
|
|
107
110
|
* @license
|
|
108
111
|
* Copyright 2017 Google LLC
|
|
109
112
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/const
|
|
113
|
+
*/const we={CHILD:2},$e=n=>(...t)=>({_$litDirective$:n,values:t});class xe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
|
111
114
|
* @license
|
|
112
115
|
* Copyright 2017 Google LLC
|
|
113
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
114
|
-
*/class ct extends
|
|
117
|
+
*/class ct extends xe{constructor(t){if(super(t),this.it=d,t.type!==we.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===d||t==null)return this._t=void 0,this.it=t;if(t===O)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ct.directiveName="unsafeHTML",ct.resultType=1;/**
|
|
115
118
|
* @license
|
|
116
119
|
* Copyright 2017 Google LLC
|
|
117
120
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
|
-
*/class ht extends ct{}ht.directiveName="unsafeSVG",ht.resultType=2;const W
|
|
121
|
+
*/class ht extends ct{}ht.directiveName="unsafeSVG",ht.resultType=2;const W=$e(ht);var _e=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,y=(n,t,e,i)=>{for(var o=i>1?void 0:i?Ce(t,e):t,r=n.length-1,s;r>=0;r--)(s=n[r])&&(o=(i?s(t,e,o):s(o))||o);return i&&o&&_e(t,e,o),o};const Ae=ne(m);let u=class extends Ae{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="search",this.endIconModel="chevronRight",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target=""}get name(){return this.getAttribute("name")??""}set name(n){this.setAttribute("name",n)}get form(){return this[ft].form}handleClick(){if(this.panelTarget){const n=document.getElementById(this.panelTarget);n!=null&&n.openPanel&&typeof n.openPanel=="function"?n.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(n){const t=n==="start"?this.startIconModel:this.endIconModel;if(!t)return d;const e=et[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return h`<span class="${n==="start"?"icon-start":"icon-end"}">${W(e)}</span>`}renderButton(){const n=this.text||this.textsecond;return h`
|
|
119
122
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
|
|
120
123
|
${this.startIcon?this.renderIcon("start"):d}
|
|
121
124
|
${n?h`
|
|
@@ -359,7 +362,7 @@
|
|
|
359
362
|
width: 0.1rem !important;
|
|
360
363
|
white-space: nowrap !important;
|
|
361
364
|
}
|
|
362
|
-
`;nt([a({type:String,reflect:!0})],U.prototype,"status",2);nt([a({type:String,reflect:!0})],U.prototype,"ariaDescribedBy",2);nt([a({type:String,reflect:!0})],U.prototype,"label",2);U=nt([L("o-wishlist-button")],U);var
|
|
365
|
+
`;nt([a({type:String,reflect:!0})],U.prototype,"status",2);nt([a({type:String,reflect:!0})],U.prototype,"ariaDescribedBy",2);nt([a({type:String,reflect:!0})],U.prototype,"label",2);U=nt([L("o-wishlist-button")],U);var Le=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,k=(n,t,e,i)=>{for(var o=i>1?void 0:i?ke(t,e):t,r=n.length-1,s;r>=0;r--)(s=n[r])&&(o=(i?s(t,e,o):s(o))||o);return i&&o&&Le(t,e,o),o};let w=class extends m{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}updated(n){super.updated(n),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const n=et[this.icon]??"",t=`icon-${this.icon}`,e=n.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return h`
|
|
363
366
|
${this.type==="span"?h`
|
|
364
367
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
365
368
|
${W(e)}
|
|
@@ -573,8 +576,16 @@
|
|
|
573
576
|
}
|
|
574
577
|
|
|
575
578
|
}
|
|
576
|
-
`;k([a({type:String,reflect:!0})],w.prototype,"bgstyle",2);k([a({type:String,reflect:!0})],w.prototype,"size",2);k([a({type:String,reflect:!0})],w.prototype,"status",2);k([a({type:String,reflect:!0})],w.prototype,"type",2);k([a({type:String})],w.prototype,"strokewidth",2);k([a({type:String})],w.prototype,"icon",2);k([a({type:Boolean,reflect:!0})],w.prototype,"disabled",2);w=k([L("o-icon-button")],w)
|
|
577
|
-
|
|
579
|
+
`;k([a({type:String,reflect:!0})],w.prototype,"bgstyle",2);k([a({type:String,reflect:!0})],w.prototype,"size",2);k([a({type:String,reflect:!0})],w.prototype,"status",2);k([a({type:String,reflect:!0})],w.prototype,"type",2);k([a({type:String})],w.prototype,"strokewidth",2);k([a({type:String})],w.prototype,"icon",2);k([a({type:Boolean,reflect:!0})],w.prototype,"disabled",2);w=k([L("o-icon-button")],w);/**
|
|
580
|
+
* @license
|
|
581
|
+
* Copyright 2018 Google LLC
|
|
582
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
583
|
+
*/const Pe=n=>n??d;var Ie=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,H=(n,t,e,i)=>{for(var o=i>1?void 0:i?Be(t,e):t,r=n.length-1,s;r>=0;r--)(s=n[r])&&(o=(i?s(t,e,o):s(o))||o);return i&&o&&Ie(t,e,o),o};let _=class extends m{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(n){(!this.href||this.href==="#")&&n.preventDefault()}render(){const n=this.href||"#";return h`
|
|
584
|
+
<a
|
|
585
|
+
href="${n}"
|
|
586
|
+
target="${Pe(this.target||void 0)}"
|
|
587
|
+
@click="${this._handleClick}"
|
|
588
|
+
>
|
|
578
589
|
${this.endIcon&&this.reverseEndIcon?h`
|
|
579
590
|
<o-icon-button
|
|
580
591
|
icon="chevronLeft"
|
|
@@ -682,7 +693,7 @@
|
|
|
682
693
|
height: 1px;
|
|
683
694
|
}
|
|
684
695
|
/* End of underline effect */
|
|
685
|
-
`;H([a({type:String})],_.prototype,"href",2);H([a({type:String})],_.prototype,"target",2);H([a({type:String,reflect:!0})],_.prototype,"template",2);H([a({type:Boolean,reflect:!0})],_.prototype,"inverse",2);H([a({type:Boolean,reflect:!0})],_.prototype,"endIcon",2);H([a({type:Boolean,reflect:!0})],_.prototype,"reverseEndIcon",2);_=H([L("o-link")],_);var
|
|
696
|
+
`;H([a({type:String})],_.prototype,"href",2);H([a({type:String})],_.prototype,"target",2);H([a({type:String,reflect:!0})],_.prototype,"template",2);H([a({type:Boolean,reflect:!0})],_.prototype,"inverse",2);H([a({type:Boolean,reflect:!0})],_.prototype,"endIcon",2);H([a({type:Boolean,reflect:!0})],_.prototype,"reverseEndIcon",2);_=H([L("o-link")],_);var ze=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,ot=(n,t,e,i)=>{for(var o=i>1?void 0:i?Oe(t,e):t,r=n.length-1,s;r>=0;r--)(s=n[r])&&(o=(i?s(t,e,o):s(o))||o);return i&&o&&ze(t,e,o),o};let N=class extends m{constructor(){super(...arguments),this.rating=0}getStarKeys(){const n=[];for(let t=0;t<5;t++){const e=this.rating-t;let i;e>=1?i=100:e<=0?i=0:i=Math.round(e*100/25)*25,n.push(`star-${i}`)}return n}render(){const n=this.getStarKeys();return h`
|
|
686
697
|
<div class="rating">
|
|
687
698
|
<div class="stars">
|
|
688
699
|
${n.map(t=>h`<span class="star">${W(et[t]??"")}</span>`)}
|
|
@@ -722,7 +733,7 @@
|
|
|
722
733
|
text-decoration: underline;
|
|
723
734
|
cursor: pointer;
|
|
724
735
|
}
|
|
725
|
-
`;ot([a({type:Number})],N.prototype,"rating",2);ot([a({type:String})],N.prototype,"reviewCount",2);ot([a({type:String})],N.prototype,"href",2);N=ot([L("o-rating")],N);var
|
|
736
|
+
`;ot([a({type:Number})],N.prototype,"rating",2);ot([a({type:String})],N.prototype,"reviewCount",2);ot([a({type:String})],N.prototype,"href",2);N=ot([L("o-rating")],N);var He=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,b=(n,t,e,i)=>{for(var o=i>1?void 0:i?Me(t,e):t,r=n.length-1,s;r>=0;r--)(s=n[r])&&(o=(i?s(t,e,o):s(o))||o);return i&&o&&He(t,e,o),o};let f=class extends m{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.closeButtonLabel="Close the modal",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.secondaryButtonLabel="",this.secondaryButtonVariant="secondary",this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.previousFocusedElement=null,this.handleKeyDown=n=>{this.open&&(n.key==="Escape"?this.closePanel():n.key==="Tab"&&this.trapFocus(n))}}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),window.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0})}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),window.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}trapFocus(n){const t=this.getFocusableElements();if(t.length===0)return;const e=t[0],i=t[t.length-1];n.shiftKey&&document.activeElement===e?(n.preventDefault(),i.focus()):!n.shiftKey&&document.activeElement===i&&(n.preventDefault(),e.focus())}getFocusableElements(){const n=this.renderRoot.querySelector(".panel");return n?Array.from(n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(t=>!t.hasAttribute("disabled")):[]}openPanel(){this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open"),this.updateComplete.then(()=>{const n=this.getFocusableElements()[0];n==null||n.focus()})}closePanel(){var n;this.open=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),(n=this.previousFocusedElement)==null||n.focus(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(){typeof this.onFirstButtonClick=="function"&&this.onFirstButtonClick(),this.closePanel()}handleSecondaryClick(){typeof this.onSecondaryButtonClick=="function"&&this.onSecondaryButtonClick(),this.closePanel()}updated(){this.style.setProperty("--z-overlay",`${this.zIndex}`),this.style.setProperty("--z-panel",`${this.zIndex+1}`)}render(){return h`
|
|
726
737
|
<div class="overlay" style="z-index: ${this.zIndex}" @click=${this.closePanel}></div>
|
|
727
738
|
<div
|
|
728
739
|
class="panel"
|
|
@@ -768,7 +779,7 @@
|
|
|
768
779
|
</div>
|
|
769
780
|
`:null}
|
|
770
781
|
</div>
|
|
771
|
-
`}};
|
|
782
|
+
`}};f.styles=$`
|
|
772
783
|
:host {
|
|
773
784
|
--z-overlay: 99;
|
|
774
785
|
--z-panel: 100;
|
|
@@ -911,7 +922,7 @@
|
|
|
911
922
|
--line-height: var(--line-height-280);
|
|
912
923
|
}
|
|
913
924
|
}
|
|
914
|
-
`;b([a({type:Boolean,reflect:!0})],
|
|
925
|
+
`;b([a({type:Boolean,reflect:!0})],f.prototype,"open",2);b([a({type:Boolean,reflect:!0})],f.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],f.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],f.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],f.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],f.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],f.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],f.prototype,"firstButtonVariant",2);b([a({type:Function})],f.prototype,"onFirstButtonClick",2);b([a({type:String,reflect:!0})],f.prototype,"secondaryButtonLabel",2);b([a({type:String,reflect:!0})],f.prototype,"secondaryButtonVariant",2);b([a({type:Function})],f.prototype,"onSecondaryButtonClick",2);b([a({type:Boolean,reflect:!0})],f.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],f.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],f.prototype,"initialized",2);f=b([L("o-side-panel")],f);var Te=Object.defineProperty,De=Object.getOwnPropertyDescriptor,M=(n,t,e,i)=>{for(var o=i>1?void 0:i?De(t,e):t,r=n.length-1,s;r>=0;r--)(s=n[r])&&(o=(i?s(t,e,o):s(o))||o);return i&&o&&Te(t,e,o),o};let C=class extends m{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.focusedIndex=0,this.playerIconTemplate=h`
|
|
915
926
|
<o-icon-button
|
|
916
927
|
icon="playerv"
|
|
917
928
|
size="xsmall"
|
|
@@ -939,7 +950,7 @@
|
|
|
939
950
|
</div>
|
|
940
951
|
`})}
|
|
941
952
|
</div>
|
|
942
|
-
`}};
|
|
953
|
+
`}};C.styles=$`
|
|
943
954
|
:host {
|
|
944
955
|
display: flex;
|
|
945
956
|
gap: 5px;
|
|
@@ -1042,7 +1053,7 @@
|
|
|
1042
1053
|
height: 0;
|
|
1043
1054
|
width: 0;
|
|
1044
1055
|
}
|
|
1045
|
-
`;M([a({type:Array})],
|
|
1056
|
+
`;M([a({type:Array})],C.prototype,"thumbnails",2);M([a({type:Number})],C.prototype,"activeIndex",2);M([a({type:Array})],C.prototype,"disabledIndexes",2);M([a({type:String})],C.prototype,"maxWidth",2);M([a({type:Object})],C.prototype,"swiperInstance",2);M([te()],C.prototype,"focusedIndex",2);C=M([L("thumbnail-navigation")],C);var Ue=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,Bt=(n,t,e,i)=>{for(var o=i>1?void 0:i?Ne(t,e):t,r=n.length-1,s;r>=0;r--)(s=n[r])&&(o=(i?s(t,e,o):s(o))||o);return i&&o&&Ue(t,e,o),o};let Q=class extends m{constructor(){super(...arguments),this.type=""}render(){return h`
|
|
1046
1057
|
<span class="tag"><slot></slot></span>
|
|
1047
1058
|
`}};Q.styles=$`
|
|
1048
1059
|
.tag {
|
package/index.mjs
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const X = globalThis, dt = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, pt = Symbol(),
|
|
7
|
-
let
|
|
6
|
+
const X = globalThis, dt = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, pt = Symbol(), vt = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Et = class {
|
|
8
8
|
constructor(t, e, i) {
|
|
9
9
|
if (this._$cssResult$ = !0, i !== pt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = e;
|
|
@@ -14,7 +14,7 @@ let Ct = class {
|
|
|
14
14
|
const e = this.t;
|
|
15
15
|
if (dt && t === void 0) {
|
|
16
16
|
const i = e !== void 0 && e.length === 1;
|
|
17
|
-
i && (t =
|
|
17
|
+
i && (t = vt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && vt.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,13 +22,13 @@ let Ct = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const zt = (n) => new
|
|
25
|
+
const zt = (n) => new Et(typeof n == "string" ? n : n + "", void 0, pt), $ = (n, ...t) => {
|
|
26
26
|
const e = n.length === 1 ? n[0] : t.reduce((i, o, r) => i + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
29
29
|
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.");
|
|
30
30
|
})(o) + n[r + 1], n[0]);
|
|
31
|
-
return new
|
|
31
|
+
return new Et(e, n, pt);
|
|
32
32
|
}, Ot = (n, t) => {
|
|
33
33
|
if (dt) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
@@ -45,7 +45,7 @@ const zt = (n) => new Ct(typeof n == "string" ? n : n + "", void 0, pt), $ = (n,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Ht, defineProperty: Mt, getOwnPropertyDescriptor: Tt, getOwnPropertyNames: Dt, getOwnPropertySymbols: Ut, getPrototypeOf: Nt } = Object,
|
|
48
|
+
const { is: Ht, defineProperty: Mt, getOwnPropertyDescriptor: Tt, getOwnPropertyNames: Dt, getOwnPropertySymbols: Ut, getPrototypeOf: Nt } = Object, E = globalThis, yt = E.trustedTypes, jt = yt ? yt.emptyScript : "", it = E.reactiveElementPolyfillSupport, V = (n, t) => n, J = { toAttribute(n, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
n = n ? jt : null;
|
|
@@ -74,7 +74,7 @@ const { is: Ht, defineProperty: Mt, getOwnPropertyDescriptor: Tt, getOwnProperty
|
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
} }, ut = (n, t) => !Ht(n, t), mt = { attribute: !0, type: String, converter: J, reflect: !1, useDefault: !1, hasChanged: ut };
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let T = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -103,13 +103,13 @@ let T = class extends HTMLElement {
|
|
|
103
103
|
return this.elementProperties.get(t) ?? mt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
106
|
+
if (this.hasOwnProperty(V("elementProperties"))) return;
|
|
107
107
|
const t = Nt(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
111
|
+
if (this.hasOwnProperty(V("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(V("properties"))) {
|
|
113
113
|
const e = this.properties, i = [...Dt(e), ...Ut(e)];
|
|
114
114
|
for (const o of i) this.createProperty(o, e[o]);
|
|
115
115
|
}
|
|
@@ -276,15 +276,15 @@ let T = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[
|
|
279
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[V("elementProperties")] = /* @__PURE__ */ new Map(), T[V("finalized")] = /* @__PURE__ */ new Map(), it == null || it({ ReactiveElement: T }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.1.0");
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const
|
|
285
|
+
const R = globalThis, Y = R.trustedTypes, wt = Y ? Y.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Lt = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, kt = "?" + S, Vt = `<${kt}>`, z = document, F = () => z.createComment(""), Z = (n) => n === null || typeof n != "object" && typeof n != "function", gt = Array.isArray, Rt = (n) => gt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", st = `[
|
|
286
286
|
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, xt = />/g, P = RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), _t = /'/g,
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), _t = /'/g, Ct = /"/g, Pt = /^(?:script|style|textarea|title)$/i, Ft = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), h = Ft(1), O = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), I = z.createTreeWalker(z, 129);
|
|
288
288
|
function It(n, t) {
|
|
289
289
|
if (!gt(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return wt !== void 0 ? wt.createHTML(t) : t;
|
|
@@ -294,10 +294,10 @@ const Zt = (n, t) => {
|
|
|
294
294
|
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = j;
|
|
295
295
|
for (let c = 0; c < e; c++) {
|
|
296
296
|
const l = n[c];
|
|
297
|
-
let g,
|
|
298
|
-
for (; x < l.length && (s.lastIndex = x,
|
|
299
|
-
const
|
|
300
|
-
r += s === j ? l +
|
|
297
|
+
let g, v, p = -1, x = 0;
|
|
298
|
+
for (; x < l.length && (s.lastIndex = x, v = s.exec(l), v !== null); ) x = s.lastIndex, s === j ? v[1] === "!--" ? s = $t : v[1] !== void 0 ? s = xt : v[2] !== void 0 ? (Pt.test(v[2]) && (o = RegExp("</" + v[2], "g")), s = P) : v[3] !== void 0 && (s = P) : s === P ? v[0] === ">" ? (s = o ?? j, p = -1) : v[1] === void 0 ? p = -2 : (p = s.lastIndex - v[2].length, g = v[1], s = v[3] === void 0 ? P : v[3] === '"' ? Ct : _t) : s === Ct || s === _t ? s = P : s === $t || s === xt ? s = j : (s = P, o = void 0);
|
|
299
|
+
const A = s === P && n[c + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
r += s === j ? l + Vt : p >= 0 ? (i.push(g), l.slice(0, p) + Lt + l.slice(p) + S + A) : l + S + (p === -2 ? c : A);
|
|
301
301
|
}
|
|
302
302
|
return [It(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
303
303
|
};
|
|
@@ -306,7 +306,7 @@ class q {
|
|
|
306
306
|
let o;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let r = 0, s = 0;
|
|
309
|
-
const c = t.length - 1, l = this.parts, [g,
|
|
309
|
+
const c = t.length - 1, l = this.parts, [g, v] = Zt(t, e);
|
|
310
310
|
if (this.el = q.createElement(g, i), I.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const p = this.el.content.firstChild;
|
|
312
312
|
p.replaceWith(...p.childNodes);
|
|
@@ -314,21 +314,21 @@ class q {
|
|
|
314
314
|
for (; (o = I.nextNode()) !== null && l.length < c; ) {
|
|
315
315
|
if (o.nodeType === 1) {
|
|
316
316
|
if (o.hasAttributes()) for (const p of o.getAttributeNames()) if (p.endsWith(Lt)) {
|
|
317
|
-
const x =
|
|
318
|
-
l.push({ type: 1, index: r, name: K[2], strings:
|
|
319
|
-
} else p.startsWith(
|
|
317
|
+
const x = v[s++], A = o.getAttribute(p).split(S), K = /([.?@])?(.*)/.exec(x);
|
|
318
|
+
l.push({ type: 1, index: r, name: K[2], strings: A, ctor: K[1] === "." ? Wt : K[1] === "?" ? Gt : K[1] === "@" ? Kt : tt }), o.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(S) && (l.push({ type: 6, index: r }), o.removeAttribute(p));
|
|
320
320
|
if (Pt.test(o.tagName)) {
|
|
321
|
-
const p = o.textContent.split(
|
|
321
|
+
const p = o.textContent.split(S), x = p.length - 1;
|
|
322
322
|
if (x > 0) {
|
|
323
323
|
o.textContent = Y ? Y.emptyScript : "";
|
|
324
|
-
for (let
|
|
324
|
+
for (let A = 0; A < x; A++) o.append(p[A], F()), I.nextNode(), l.push({ type: 2, index: ++r });
|
|
325
325
|
o.append(p[x], F());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
} else if (o.nodeType === 8) if (o.data === kt) l.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
|
-
for (; (p = o.data.indexOf(
|
|
331
|
+
for (; (p = o.data.indexOf(S, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += S.length - 1;
|
|
332
332
|
}
|
|
333
333
|
r++;
|
|
334
334
|
}
|
|
@@ -393,7 +393,7 @@ class G {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = D(this, t, e), Z(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
396
|
+
t = D(this, t, e), Z(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Rt(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -414,8 +414,8 @@ class G {
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
417
|
-
let e =
|
|
418
|
-
return e === void 0 &&
|
|
417
|
+
let e = At.get(t.strings);
|
|
418
|
+
return e === void 0 && At.set(t.strings, e = new q(t)), e;
|
|
419
419
|
}
|
|
420
420
|
k(t) {
|
|
421
421
|
gt(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -502,8 +502,8 @@ class Xt {
|
|
|
502
502
|
D(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const rt =
|
|
506
|
-
rt == null || rt(q, G), (
|
|
505
|
+
const rt = R.litHtmlPolyfillSupport;
|
|
506
|
+
rt == null || rt(q, G), (R.litHtmlVersions ?? (R.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const Jt = (n, t, e) => {
|
|
508
508
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
509
|
let o = i._$litPart$;
|
|
@@ -544,8 +544,8 @@ let m = class extends T {
|
|
|
544
544
|
return O;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
|
-
var
|
|
548
|
-
m._$litElement$ = !0, m.finalized = !0, (
|
|
547
|
+
var St;
|
|
548
|
+
m._$litElement$ = !0, m.finalized = !0, (St = B.litElementHydrateSupport) == null || St.call(B, { LitElement: m });
|
|
549
549
|
const at = B.litElementPolyfillSupport;
|
|
550
550
|
at == null || at({ LitElement: m });
|
|
551
551
|
(B.litElementVersions ?? (B.litElementVersions = [])).push("4.2.0");
|
|
@@ -614,11 +614,11 @@ $`
|
|
|
614
614
|
* Copyright 2023 Google LLC
|
|
615
615
|
* SPDX-License-Identifier: Apache-2.0
|
|
616
616
|
*/
|
|
617
|
-
const
|
|
617
|
+
const ft = Symbol("internals"), lt = Symbol("privateInternals");
|
|
618
618
|
function ne(n) {
|
|
619
619
|
var t;
|
|
620
620
|
class e extends n {
|
|
621
|
-
get [(t =
|
|
621
|
+
get [(t = ft, t)]() {
|
|
622
622
|
return this[lt] || (this[lt] = this.attachInternals()), this[lt];
|
|
623
623
|
}
|
|
624
624
|
}
|
|
@@ -633,7 +633,7 @@ function oe(n) {
|
|
|
633
633
|
n.addInitializer((t) => {
|
|
634
634
|
const e = t;
|
|
635
635
|
e.addEventListener("click", async (i) => {
|
|
636
|
-
const { type: o, [
|
|
636
|
+
const { type: o, [ft]: r } = e, { form: s } = r;
|
|
637
637
|
if (!(!s || o === "button") && (await new Promise((c) => {
|
|
638
638
|
setTimeout(c);
|
|
639
639
|
}), !i.defaultPrevented)) {
|
|
@@ -690,7 +690,7 @@ const ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
690
690
|
`, ge = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
691
691
|
<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"/>
|
|
692
692
|
</svg>
|
|
693
|
-
`,
|
|
693
|
+
`, fe = `<?xml version="1.0" encoding="utf-8"?>
|
|
694
694
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
695
695
|
<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"
|
|
696
696
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -700,7 +700,7 @@ const ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
700
700
|
<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
|
|
701
701
|
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"/>
|
|
702
702
|
</svg>
|
|
703
|
-
`,
|
|
703
|
+
`, ve = `<?xml version="1.0" encoding="utf-8"?>
|
|
704
704
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
705
705
|
<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"
|
|
706
706
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -715,13 +715,16 @@ const ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
715
715
|
`, ye = `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
716
716
|
<path d="M6.33317 8.00033C6.33317 3.95024 7.52708 0.666992 8.99984 0.666992C10.4726 0.666992 11.6665 3.95024 11.6665 8.00033M5.33317 15.3337H12.6665L16.3332 6.20033C14.9582 5.76699 12.2998 5.33366 8.99984 5.33366C5.69984 5.33366 3.49984 5.76699 1.6665 6.20033L5.33317 15.3337Z" stroke="#3F2B2E"/>
|
|
717
717
|
</svg>
|
|
718
|
+
`, me = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
719
|
+
<path d="M7.99376 14.4486C7.46684 14.4486 6.93991 14.251 6.54472 13.8558C6.14953 13.4606 5.8202 12.9995 5.68847 12.4067H3.77837C2.98798 12.4067 2.59279 12.4067 2.32933 12.1433C2.13173 12.0116 2 11.7481 2 11.5505C2 11.2212 2.13173 10.826 2.52692 10.1673L2.92212 9.4428C3.31731 8.78415 3.51491 8.05963 3.64664 7.3351L3.84423 5.68847C3.97596 4.63462 4.43702 3.7125 5.22741 3.05385C6.01779 2.39519 7.00578 2 7.99376 2C8.98174 2 10.0356 2.39519 10.7601 3.05385C11.5505 3.7125 12.0116 4.70049 12.1433 5.68847L12.3409 7.26924C12.4067 8.05963 12.6702 8.78415 13.0654 9.37693L13.4606 10.1015C13.8558 10.7601 14.0534 11.0894 13.9875 11.4846C13.9875 11.7481 13.8558 11.9457 13.6582 12.0774C13.3947 12.3409 12.9995 12.3409 12.2092 12.3409H10.2991C10.1673 12.9337 9.83799 13.4606 9.4428 13.7899C9.04761 14.1851 8.52068 14.3827 7.99376 14.3827V14.4486ZM6.28126 12.4067C6.41299 12.8019 6.61058 13.1971 6.93991 13.4606C7.5327 13.9875 8.45482 13.9875 9.11347 13.4606C9.4428 13.1971 9.6404 12.8019 9.77213 12.4067H6.28126ZM7.99376 2.65865C7.13751 2.65865 6.28126 2.98798 5.6226 3.58077C4.96395 4.17356 4.56875 4.96395 4.43702 5.88606L4.23943 7.46684C4.1077 8.32309 3.84423 9.11347 3.44904 9.83799L3.05385 10.5625C2.72452 11.0894 2.59279 11.3529 2.59279 11.5505C2.59279 11.6164 2.59279 11.7481 2.72452 11.814C2.85625 11.8798 3.25144 11.8798 3.77837 11.8798H12.2092C12.7361 11.8798 13.1971 11.8798 13.263 11.814C13.3289 11.814 13.3947 11.6822 13.3947 11.5505C13.3947 11.4188 13.1971 11.0894 12.9337 10.5625L12.5385 9.83799C12.0774 9.11347 11.814 8.32309 11.7481 7.5327L11.5505 5.88606C11.4846 5.02981 11.0236 4.17356 10.3649 3.58077C9.70626 2.98798 8.85001 2.65865 7.99376 2.65865Z" fill="#3F2B2E"/>
|
|
720
|
+
</svg>
|
|
718
721
|
`, et = {
|
|
719
722
|
wishlist: ie,
|
|
720
723
|
playerv: se,
|
|
721
724
|
chevronRight: re,
|
|
722
725
|
chevronLeft: ae,
|
|
723
|
-
icoPlus:
|
|
724
|
-
icoMinus:
|
|
726
|
+
icoPlus: fe,
|
|
727
|
+
icoMinus: ve,
|
|
725
728
|
"star-0": le,
|
|
726
729
|
"star-25": ce,
|
|
727
730
|
"star-50": he,
|
|
@@ -730,15 +733,16 @@ const ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
730
733
|
cross: ue,
|
|
731
734
|
search: ge,
|
|
732
735
|
arrowLeft: be,
|
|
733
|
-
cart: ye
|
|
736
|
+
cart: ye,
|
|
737
|
+
notifyme: me
|
|
734
738
|
};
|
|
735
739
|
/**
|
|
736
740
|
* @license
|
|
737
741
|
* Copyright 2017 Google LLC
|
|
738
742
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
739
743
|
*/
|
|
740
|
-
const
|
|
741
|
-
class
|
|
744
|
+
const we = { CHILD: 2 }, $e = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
745
|
+
class xe {
|
|
742
746
|
constructor(t) {
|
|
743
747
|
}
|
|
744
748
|
get _$AU() {
|
|
@@ -759,9 +763,9 @@ class $e {
|
|
|
759
763
|
* Copyright 2017 Google LLC
|
|
760
764
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
761
765
|
*/
|
|
762
|
-
class ct extends
|
|
766
|
+
class ct extends xe {
|
|
763
767
|
constructor(t) {
|
|
764
|
-
if (super(t), this.it = d, t.type !==
|
|
768
|
+
if (super(t), this.it = d, t.type !== we.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
765
769
|
}
|
|
766
770
|
render(t) {
|
|
767
771
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
@@ -782,11 +786,11 @@ ct.directiveName = "unsafeHTML", ct.resultType = 1;
|
|
|
782
786
|
class ht extends ct {
|
|
783
787
|
}
|
|
784
788
|
ht.directiveName = "unsafeSVG", ht.resultType = 2;
|
|
785
|
-
const W =
|
|
786
|
-
var
|
|
787
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
789
|
+
const W = $e(ht);
|
|
790
|
+
var _e = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, y = (n, t, e, i) => {
|
|
791
|
+
for (var o = i > 1 ? void 0 : i ? Ce(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
788
792
|
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
789
|
-
return i && o &&
|
|
793
|
+
return i && o && _e(t, e, o), o;
|
|
790
794
|
};
|
|
791
795
|
const Ae = ne(m);
|
|
792
796
|
let u = class extends Ae {
|
|
@@ -800,7 +804,7 @@ let u = class extends Ae {
|
|
|
800
804
|
this.setAttribute("name", n);
|
|
801
805
|
}
|
|
802
806
|
get form() {
|
|
803
|
-
return this[
|
|
807
|
+
return this[ft].form;
|
|
804
808
|
}
|
|
805
809
|
handleClick() {
|
|
806
810
|
if (this.panelTarget) {
|
|
@@ -1175,10 +1179,10 @@ nt([
|
|
|
1175
1179
|
U = nt([
|
|
1176
1180
|
L("o-wishlist-button")
|
|
1177
1181
|
], U);
|
|
1178
|
-
var
|
|
1179
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
1182
|
+
var Le = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, k = (n, t, e, i) => {
|
|
1183
|
+
for (var o = i > 1 ? void 0 : i ? ke(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1180
1184
|
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1181
|
-
return i && o &&
|
|
1185
|
+
return i && o && Le(t, e, o), o;
|
|
1182
1186
|
};
|
|
1183
1187
|
let w = class extends m {
|
|
1184
1188
|
constructor() {
|
|
@@ -1434,18 +1438,32 @@ k([
|
|
|
1434
1438
|
w = k([
|
|
1435
1439
|
L("o-icon-button")
|
|
1436
1440
|
], w);
|
|
1437
|
-
|
|
1438
|
-
|
|
1441
|
+
/**
|
|
1442
|
+
* @license
|
|
1443
|
+
* Copyright 2018 Google LLC
|
|
1444
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1445
|
+
*/
|
|
1446
|
+
const Pe = (n) => n ?? d;
|
|
1447
|
+
var Ie = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, H = (n, t, e, i) => {
|
|
1448
|
+
for (var o = i > 1 ? void 0 : i ? Be(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1439
1449
|
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1440
|
-
return i && o &&
|
|
1450
|
+
return i && o && Ie(t, e, o), o;
|
|
1441
1451
|
};
|
|
1442
1452
|
let _ = class extends m {
|
|
1443
1453
|
constructor() {
|
|
1444
1454
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1445
1455
|
}
|
|
1456
|
+
_handleClick(n) {
|
|
1457
|
+
(!this.href || this.href === "#") && n.preventDefault();
|
|
1458
|
+
}
|
|
1446
1459
|
render() {
|
|
1460
|
+
const n = this.href || "#";
|
|
1447
1461
|
return h`
|
|
1448
|
-
<a
|
|
1462
|
+
<a
|
|
1463
|
+
href="${n}"
|
|
1464
|
+
target="${Pe(this.target || void 0)}"
|
|
1465
|
+
@click="${this._handleClick}"
|
|
1466
|
+
>
|
|
1449
1467
|
${this.endIcon && this.reverseEndIcon ? h`
|
|
1450
1468
|
<o-icon-button
|
|
1451
1469
|
icon="chevronLeft"
|
|
@@ -1578,10 +1596,10 @@ H([
|
|
|
1578
1596
|
_ = H([
|
|
1579
1597
|
L("o-link")
|
|
1580
1598
|
], _);
|
|
1581
|
-
var
|
|
1582
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
1599
|
+
var ze = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, ot = (n, t, e, i) => {
|
|
1600
|
+
for (var o = i > 1 ? void 0 : i ? Oe(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1583
1601
|
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1584
|
-
return i && o &&
|
|
1602
|
+
return i && o && ze(t, e, o), o;
|
|
1585
1603
|
};
|
|
1586
1604
|
let N = class extends m {
|
|
1587
1605
|
constructor() {
|
|
@@ -1656,12 +1674,12 @@ ot([
|
|
|
1656
1674
|
N = ot([
|
|
1657
1675
|
L("o-rating")
|
|
1658
1676
|
], N);
|
|
1659
|
-
var
|
|
1660
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
1677
|
+
var He = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, b = (n, t, e, i) => {
|
|
1678
|
+
for (var o = i > 1 ? void 0 : i ? Me(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1661
1679
|
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1662
|
-
return i && o &&
|
|
1680
|
+
return i && o && He(t, e, o), o;
|
|
1663
1681
|
};
|
|
1664
|
-
let
|
|
1682
|
+
let f = class extends m {
|
|
1665
1683
|
constructor() {
|
|
1666
1684
|
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.secondaryButtonLabel = "", this.secondaryButtonVariant = "secondary", this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (n) => {
|
|
1667
1685
|
this.open && (n.key === "Escape" ? this.closePanel() : n.key === "Tab" && this.trapFocus(n));
|
|
@@ -1760,7 +1778,7 @@ let v = class extends m {
|
|
|
1760
1778
|
`;
|
|
1761
1779
|
}
|
|
1762
1780
|
};
|
|
1763
|
-
|
|
1781
|
+
f.styles = $`
|
|
1764
1782
|
:host {
|
|
1765
1783
|
--z-overlay: 99;
|
|
1766
1784
|
--z-panel: 100;
|
|
@@ -1906,58 +1924,58 @@ v.styles = $`
|
|
|
1906
1924
|
`;
|
|
1907
1925
|
b([
|
|
1908
1926
|
a({ type: Boolean, reflect: !0 })
|
|
1909
|
-
],
|
|
1927
|
+
], f.prototype, "open", 2);
|
|
1910
1928
|
b([
|
|
1911
1929
|
a({ type: Boolean, reflect: !0 })
|
|
1912
|
-
],
|
|
1930
|
+
], f.prototype, "showHeader", 2);
|
|
1913
1931
|
b([
|
|
1914
1932
|
a({ type: Boolean, reflect: !0 })
|
|
1915
|
-
],
|
|
1933
|
+
], f.prototype, "showFooter", 2);
|
|
1916
1934
|
b([
|
|
1917
1935
|
a({ type: Boolean, reflect: !0 })
|
|
1918
|
-
],
|
|
1936
|
+
], f.prototype, "showHeaderStartIcon", 2);
|
|
1919
1937
|
b([
|
|
1920
1938
|
a({ type: String, reflect: !0 })
|
|
1921
|
-
],
|
|
1939
|
+
], f.prototype, "headerTitle", 2);
|
|
1922
1940
|
b([
|
|
1923
1941
|
a({ type: String, reflect: !0 })
|
|
1924
|
-
],
|
|
1942
|
+
], f.prototype, "closeButtonLabel", 2);
|
|
1925
1943
|
b([
|
|
1926
1944
|
a({ type: String, reflect: !0 })
|
|
1927
|
-
],
|
|
1945
|
+
], f.prototype, "firstButtonLabel", 2);
|
|
1928
1946
|
b([
|
|
1929
1947
|
a({ type: String, reflect: !0 })
|
|
1930
|
-
],
|
|
1948
|
+
], f.prototype, "firstButtonVariant", 2);
|
|
1931
1949
|
b([
|
|
1932
1950
|
a({ type: Function })
|
|
1933
|
-
],
|
|
1951
|
+
], f.prototype, "onFirstButtonClick", 2);
|
|
1934
1952
|
b([
|
|
1935
1953
|
a({ type: String, reflect: !0 })
|
|
1936
|
-
],
|
|
1954
|
+
], f.prototype, "secondaryButtonLabel", 2);
|
|
1937
1955
|
b([
|
|
1938
1956
|
a({ type: String, reflect: !0 })
|
|
1939
|
-
],
|
|
1957
|
+
], f.prototype, "secondaryButtonVariant", 2);
|
|
1940
1958
|
b([
|
|
1941
1959
|
a({ type: Function })
|
|
1942
|
-
],
|
|
1960
|
+
], f.prototype, "onSecondaryButtonClick", 2);
|
|
1943
1961
|
b([
|
|
1944
1962
|
a({ type: Boolean, reflect: !0 })
|
|
1945
|
-
],
|
|
1963
|
+
], f.prototype, "disablePortal", 2);
|
|
1946
1964
|
b([
|
|
1947
1965
|
a({ type: Number, reflect: !0 })
|
|
1948
|
-
],
|
|
1966
|
+
], f.prototype, "zIndex", 2);
|
|
1949
1967
|
b([
|
|
1950
1968
|
a({ type: Boolean, reflect: !0 })
|
|
1951
|
-
],
|
|
1952
|
-
|
|
1969
|
+
], f.prototype, "initialized", 2);
|
|
1970
|
+
f = b([
|
|
1953
1971
|
L("o-side-panel")
|
|
1954
|
-
],
|
|
1955
|
-
var
|
|
1956
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
1972
|
+
], f);
|
|
1973
|
+
var Te = Object.defineProperty, De = Object.getOwnPropertyDescriptor, M = (n, t, e, i) => {
|
|
1974
|
+
for (var o = i > 1 ? void 0 : i ? De(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
1957
1975
|
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
1958
|
-
return i && o &&
|
|
1976
|
+
return i && o && Te(t, e, o), o;
|
|
1959
1977
|
};
|
|
1960
|
-
let
|
|
1978
|
+
let C = class extends m {
|
|
1961
1979
|
constructor() {
|
|
1962
1980
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate = h`
|
|
1963
1981
|
<o-icon-button
|
|
@@ -2018,7 +2036,7 @@ let A = class extends m {
|
|
|
2018
2036
|
`;
|
|
2019
2037
|
}
|
|
2020
2038
|
};
|
|
2021
|
-
|
|
2039
|
+
C.styles = $`
|
|
2022
2040
|
:host {
|
|
2023
2041
|
display: flex;
|
|
2024
2042
|
gap: 5px;
|
|
@@ -2124,29 +2142,29 @@ A.styles = $`
|
|
|
2124
2142
|
`;
|
|
2125
2143
|
M([
|
|
2126
2144
|
a({ type: Array })
|
|
2127
|
-
],
|
|
2145
|
+
], C.prototype, "thumbnails", 2);
|
|
2128
2146
|
M([
|
|
2129
2147
|
a({ type: Number })
|
|
2130
|
-
],
|
|
2148
|
+
], C.prototype, "activeIndex", 2);
|
|
2131
2149
|
M([
|
|
2132
2150
|
a({ type: Array })
|
|
2133
|
-
],
|
|
2151
|
+
], C.prototype, "disabledIndexes", 2);
|
|
2134
2152
|
M([
|
|
2135
2153
|
a({ type: String })
|
|
2136
|
-
],
|
|
2154
|
+
], C.prototype, "maxWidth", 2);
|
|
2137
2155
|
M([
|
|
2138
2156
|
a({ type: Object })
|
|
2139
|
-
],
|
|
2157
|
+
], C.prototype, "swiperInstance", 2);
|
|
2140
2158
|
M([
|
|
2141
2159
|
te()
|
|
2142
|
-
],
|
|
2143
|
-
|
|
2160
|
+
], C.prototype, "focusedIndex", 2);
|
|
2161
|
+
C = M([
|
|
2144
2162
|
L("thumbnail-navigation")
|
|
2145
|
-
],
|
|
2146
|
-
var
|
|
2147
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
2163
|
+
], C);
|
|
2164
|
+
var Ue = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, Bt = (n, t, e, i) => {
|
|
2165
|
+
for (var o = i > 1 ? void 0 : i ? Ne(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
2148
2166
|
(s = n[r]) && (o = (i ? s(t, e, o) : s(o)) || o);
|
|
2149
|
-
return i && o &&
|
|
2167
|
+
return i && o && Ue(t, e, o), o;
|
|
2150
2168
|
};
|
|
2151
2169
|
let Q = class extends m {
|
|
2152
2170
|
constructor() {
|