@florid-kit/components 0.8.3 → 0.8.5
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/index.js +29 -21
- package/index.mjs +84 -75
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const J=globalThis,lt=J.trustedTypes,Pt=lt?lt.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ut="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
13
|
+
*/const J=globalThis,lt=J.trustedTypes,Pt=lt?lt.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ut="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,Ft="?"+B,ie=`<${Ft}>`,F=document,Y=()=>F.createComment(""),Q=o=>o===null||typeof o!="object"&&typeof o!="function",_t=Array.isArray,ne=o=>_t(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",ut=`[
|
|
14
14
|
\f\r]`,G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,zt=/>/g,T=RegExp(`>|${ut}(?:([^\\s"'>=/]+)(${ut}*=${ut}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,Ht=/"/g,
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,Ht=/"/g,Nt=/^(?:script|style|textarea|title)$/i,re=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=re(1),D=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Mt=new WeakMap,j=F.createTreeWalker(F,129);function Rt(o,t){if(!_t(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pt!==void 0?Pt.createHTML(t):t}const se=(o,t)=>{const e=o.length-1,n=[];let i,s=t===2?"<svg>":t===3?"<math>":"",r=G;for(let h=0;h<e;h++){const c=o[h];let v,f,p=-1,L=0;for(;L<c.length&&(r.lastIndex=L,f=r.exec(c),f!==null);)L=r.lastIndex,r===G?f[1]==="!--"?r=Bt:f[1]!==void 0?r=zt:f[2]!==void 0?(Nt.test(f[2])&&(i=RegExp("</"+f[2],"g")),r=T):f[3]!==void 0&&(r=T):r===T?f[0]===">"?(r=i??G,p=-1):f[1]===void 0?p=-2:(p=r.lastIndex-f[2].length,v=f[1],r=f[3]===void 0?T:f[3]==='"'?Ht:Dt):r===Ht||r===Dt?r=T:r===Bt||r===zt?r=G:(r=T,i=void 0);const P=r===T&&o[h+1].startsWith("/>")?" ":"";s+=r===G?c+ie:p>=0?(n.push(v),c.slice(0,p)+Ut+c.slice(p)+B+P):c+B+(p===-2?h:P)}return[Rt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class tt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let s=0,r=0;const h=t.length-1,c=this.parts,[v,f]=se(t,e);if(this.el=tt.createElement(v,n),j.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=j.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(Ut)){const L=f[r++],P=i.getAttribute(p).split(B),rt=/([.?@])?(.*)/.exec(L);c.push({type:1,index:s,name:rt[2],strings:P,ctor:rt[1]==="."?le:rt[1]==="?"?ce:rt[1]==="@"?he:ct}),i.removeAttribute(p)}else p.startsWith(B)&&(c.push({type:6,index:s}),i.removeAttribute(p));if(Nt.test(i.tagName)){const p=i.textContent.split(B),L=p.length-1;if(L>0){i.textContent=lt?lt.emptyScript:"";for(let P=0;P<L;P++)i.append(p[P],Y()),j.nextNode(),c.push({type:2,index:++s});i.append(p[L],Y())}}}else if(i.nodeType===8)if(i.data===Ft)c.push({type:2,index:s});else{let p=-1;for(;(p=i.data.indexOf(B,p+1))!==-1;)c.push({type:7,index:s}),p+=B.length-1}s++}}static createElement(t,e){const n=F.createElement("template");return n.innerHTML=t,n}}function Z(o,t,e=o,n){var r,h;if(t===D)return t;let i=n!==void 0?(r=e._$Co)==null?void 0:r[n]:e._$Cl;const s=Q(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),s===void 0?i=void 0:(i=new s(o),i._$AT(o,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=i:e._$Cl=i),i!==void 0&&(t=Z(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)??F).importNode(e,!0);j.currentNode=i;let s=j.nextNode(),r=0,h=0,c=n[0];for(;c!==void 0;){if(r===c.index){let v;c.type===2?v=new nt(s,s.nextSibling,this,t):c.type===1?v=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(v=new de(s,this,t)),this._$AV.push(v),c=n[++h]}r!==(c==null?void 0:c.index)&&(s=j.nextNode(),r++)}return j.currentNode=F,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 nt{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=Z(this,t,e),Q(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==D&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ne(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&&Q(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=tt.createElement(Rt(n.h,n.h[0]),this.options)),n);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{const r=new ae(i,this),h=r.u(this.options);r.p(e),this.T(h),this._$AH=r}}_$AC(t){let e=Mt.get(t.strings);return e===void 0&&Mt.set(t.strings,e=new tt(t)),e}k(t){_t(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const s of t)i===e.length?e.push(n=new nt(this.O(Y()),this.O(Y()),this,this.options)):n=e[i],n._$AI(s),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 ct{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,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 s=this.strings;let r=!1;if(s===void 0)t=Z(this,t,e,0),r=!Q(t)||t!==this._$AH&&t!==D,r&&(this._$AH=t);else{const h=t;let c,v;for(t=s[0],c=0;c<s.length-1;c++)v=Z(this,h[n+c],e,c),v===D&&(v=this._$AH[c]),r||(r=!Q(v)||v!==this._$AH[c]),v===d?t=d:t!==d&&(t+=(v??"")+s[c+1]),this._$AH[c]=v}r&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class le extends ct{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class ce extends ct{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class he extends ct{constructor(t,e,n,i,s){super(t,e,n,i,s),this.type=5}_$AI(t,e=this){if((t=Z(this,t,e,0)??d)===D)return;const n=this._$AH,i=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==d&&(n===d||i);i&&this.element.removeEventListener(this.name,this,n),s&&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 de{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){Z(this,t)}}const vt=J.litHtmlPolyfillSupport;vt==null||vt(tt,nt),(J.litHtmlVersions??(J.litHtmlVersions=[])).push("3.3.0");const pe=(o,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let i=n._$litPart$;if(i===void 0){const s=(e==null?void 0:e.renderBefore)??null;n._$litPart$=i=new nt(t.insertBefore(Y(),s),s,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
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function
|
|
31
|
+
*/function N(o){return a({...o,state:!0,attribute:!1})}const ge=m`
|
|
32
32
|
outline: 1px dashed var(--button-border-color);
|
|
33
33
|
outline-offset: 2px;
|
|
34
34
|
outline: dashed black;
|
|
@@ -122,7 +122,10 @@
|
|
|
122
122
|
<rect x="1" width="2" height="8" fill="#3F2B2E"/>
|
|
123
123
|
<rect x="5" width="2" height="8" fill="#3F2B2E"/>
|
|
124
124
|
</svg>
|
|
125
|
-
`,
|
|
125
|
+
`,je=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
126
|
+
<path d="M10.5037 5.99925C10.7795 5.99925 11.0037 6.22311 11.0037 6.49925V14.2922L13.1462 12.1448C13.3411 11.9498 13.6573 11.95 13.8523 12.1448H13.8533C14.0482 12.34 14.0481 12.6565 13.8533 12.8518L10.8572 15.8518C10.6618 16.0471 10.3455 16.0471 10.1501 15.8518L7.15406 12.8518C6.96522 12.6557 6.96774 12.3444 7.15992 12.1516C7.35242 11.9588 7.66416 11.9556 7.86011 12.1448L10.0046 14.2922V6.49925C10.0046 6.22319 10.228 5.99938 10.5037 5.99925ZM5.15699 0.145737C5.35218 -0.0485278 5.66791 -0.0486304 5.86304 0.145737L8.85913 3.14574C9.04829 3.34183 9.04562 3.65402 8.85327 3.84691C8.66066 4.03978 8.34902 4.04225 8.15308 3.85277L6.00952 1.70628V9.49925C6.0095 9.77533 5.78621 9.99918 5.5105 9.99925C5.23473 9.99925 5.0115 9.77538 5.01148 9.49925V1.70628L2.86695 3.85179C2.74288 3.98695 2.55447 4.04321 2.37671 3.99828C2.1991 3.95328 2.06051 3.81475 2.01538 3.63695C1.97026 3.45902 2.02608 3.27015 2.16089 3.14574L5.15699 0.145737Z" fill="#001022"/>
|
|
127
|
+
</svg>
|
|
128
|
+
`,K={wishlist:ye,playerv:me,chevronRight:we,chevronLeft:xe,icoPlus:Le,icoMinus:Ie,"star-0":$e,"star-25":_e,"star-50":Ce,"star-75":ke,"star-100":Ae,cross:Se,search:Ee,arrowLeft:Oe,arrowTop:Pe,cart:Be,notifyme:ze,triangledown:De,triangleup:He,checkstroke:Me,pause:Te,mapDualArrow:je};/**
|
|
126
129
|
* @license
|
|
127
130
|
* Copyright 2017 Google LLC
|
|
128
131
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -134,7 +137,7 @@
|
|
|
134
137
|
* @license
|
|
135
138
|
* Copyright 2017 Google LLC
|
|
136
139
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
137
|
-
*/class yt extends ft{}yt.directiveName="unsafeSVG",yt.resultType=2;const H=Zt(yt);var
|
|
140
|
+
*/class yt extends ft{}yt.directiveName="unsafeSVG",yt.resultType=2;const H=Zt(yt);var Ue=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,w=(o,t,e,n)=>{for(var i=n>1?void 0:n?Fe(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Ue(t,e,i),i};const Ne=be(b);let u=class extends Ne{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=""}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Ct].form}handleClick(){if(this.panelTarget){const o=document.getElementById(this.panelTarget);o!=null&&o.openPanel&&typeof o.openPanel=="function"?o.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=K[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${H(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
|
|
138
141
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
|
|
139
142
|
${this.startIcon?this.renderIcon("start"):d}
|
|
140
143
|
${o?l`
|
|
@@ -303,7 +306,12 @@
|
|
|
303
306
|
width: var(--button-endicon-svg-width, 8px);
|
|
304
307
|
}
|
|
305
308
|
|
|
306
|
-
|
|
309
|
+
:host([underlined]) [href] span:not([class*="icon-"]),
|
|
310
|
+
:host([underlined][paneltarget]) .text {
|
|
311
|
+
border-bottom: var(--border-M, 1px) solid var(--color-border-primary);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
//Icon movement on hover
|
|
307
315
|
:host([variant="tertiary"][endIcon]) .icon-end {
|
|
308
316
|
display: inline-flex;
|
|
309
317
|
align-items: center;
|
|
@@ -314,7 +322,7 @@
|
|
|
314
322
|
transform: translateX(4px);
|
|
315
323
|
}
|
|
316
324
|
//End icon movment on hover
|
|
317
|
-
`;w([a()],u.prototype,"type",2);w([a({reflect:!0})],u.prototype,"value",2);w([a({type:String,reflect:!0})],u.prototype,"variant",2);w([a({type:String})],u.prototype,"text",2);w([a({type:String})],u.prototype,"textsecond",2);w([a({type:Boolean,reflect:!0})],u.prototype,"fullwidth",2);w([a({type:Boolean,reflect:!0})],u.prototype,"disabled",2);w([a({type:String,reflect:!0})],u.prototype,"startIconModel",2);w([a({type:String,reflect:!0})],u.prototype,"endIconModel",2);w([a({type:Boolean,reflect:!0,attribute:"starticon"})],u.prototype,"startIcon",2);w([a({type:Boolean,reflect:!0,attribute:"endicon"})],u.prototype,"endIcon",2);w([a({type:String,attribute:"paneltarget",reflect:!0})],u.prototype,"panelTarget",2);w([a({type:String})],u.prototype,"href",2);w([a({type:String})],u.prototype,"target",2);u=w([x("o-button")],u);var
|
|
325
|
+
`;w([a()],u.prototype,"type",2);w([a({reflect:!0})],u.prototype,"value",2);w([a({type:String,reflect:!0})],u.prototype,"variant",2);w([a({type:String})],u.prototype,"text",2);w([a({type:String})],u.prototype,"textsecond",2);w([a({type:Boolean,reflect:!0})],u.prototype,"fullwidth",2);w([a({type:Boolean,reflect:!0})],u.prototype,"disabled",2);w([a({type:String,reflect:!0})],u.prototype,"startIconModel",2);w([a({type:String,reflect:!0})],u.prototype,"endIconModel",2);w([a({type:Boolean,reflect:!0,attribute:"starticon"})],u.prototype,"startIcon",2);w([a({type:Boolean,reflect:!0,attribute:"endicon"})],u.prototype,"endIcon",2);w([a({type:String,attribute:"paneltarget",reflect:!0})],u.prototype,"panelTarget",2);w([a({type:String})],u.prototype,"href",2);w([a({type:String})],u.prototype,"target",2);u=w([x("o-button")],u);var Re=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,ht=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ve(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Re(t,e,i),i};let q=class extends b{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=K.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
|
|
318
326
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
319
327
|
<span class="sr-only">${this.label}</span>
|
|
320
328
|
${H(o)}
|
|
@@ -387,7 +395,7 @@
|
|
|
387
395
|
* @license
|
|
388
396
|
* Copyright 2018 Google LLC
|
|
389
397
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
390
|
-
*/const $=o=>o??d;var
|
|
398
|
+
*/const $=o=>o??d;var Ze=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,S=(o,t,e,n)=>{for(var i=n>1?void 0:n?qe(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Ze(t,e,i),i};let _=class extends b{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=K[this.icon]??"",t=`icon-${this.icon}`,e=o.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),n=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,i=this.showSrLabel?null:"icon";return l`
|
|
391
399
|
${this.type==="span"?l`
|
|
392
400
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
393
401
|
${H(e)}
|
|
@@ -605,7 +613,7 @@
|
|
|
605
613
|
.sr-only {
|
|
606
614
|
display: none;
|
|
607
615
|
}
|
|
608
|
-
`;S([a({type:String,reflect:!0})],_.prototype,"bgstyle",2);S([a({type:String,reflect:!0})],_.prototype,"size",2);S([a({type:String,reflect:!0})],_.prototype,"status",2);S([a({type:String,reflect:!0})],_.prototype,"type",2);S([a({type:String})],_.prototype,"strokewidth",2);S([a({type:String})],_.prototype,"icon",2);S([a({type:Boolean,reflect:!0})],_.prototype,"disabled",2);S([a({type:Boolean})],_.prototype,"showSrLabel",2);S([a({type:String})],_.prototype,"srLabel",2);_=S([x("o-icon-button")],_);var
|
|
616
|
+
`;S([a({type:String,reflect:!0})],_.prototype,"bgstyle",2);S([a({type:String,reflect:!0})],_.prototype,"size",2);S([a({type:String,reflect:!0})],_.prototype,"status",2);S([a({type:String,reflect:!0})],_.prototype,"type",2);S([a({type:String})],_.prototype,"strokewidth",2);S([a({type:String})],_.prototype,"icon",2);S([a({type:Boolean,reflect:!0})],_.prototype,"disabled",2);S([a({type:Boolean})],_.prototype,"showSrLabel",2);S([a({type:String})],_.prototype,"srLabel",2);_=S([x("o-icon-button")],_);var We=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,R=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ke(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&We(t,e,i),i};let I=class extends b{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`
|
|
609
617
|
<a
|
|
610
618
|
href="${o}"
|
|
611
619
|
target="${$(this.target||void 0)}"
|
|
@@ -718,7 +726,7 @@
|
|
|
718
726
|
height: 1px;
|
|
719
727
|
}
|
|
720
728
|
/* End of underline effect */
|
|
721
|
-
`;
|
|
729
|
+
`;R([a({type:String})],I.prototype,"href",2);R([a({type:String})],I.prototype,"target",2);R([a({type:String,reflect:!0})],I.prototype,"template",2);R([a({type:Boolean,reflect:!0})],I.prototype,"inverse",2);R([a({type:Boolean,reflect:!0})],I.prototype,"endIcon",2);R([a({type:Boolean,reflect:!0})],I.prototype,"reverseEndIcon",2);I=R([x("o-link")],I);var Ge=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,dt=(o,t,e,n)=>{for(var i=n>1?void 0:n?Xe(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Ge(t,e,i),i};let W=class extends b{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`
|
|
722
730
|
<div class="rating">
|
|
723
731
|
<div class="stars">
|
|
724
732
|
${o.map(t=>l`<span class="star">${H(K[t]??"")}</span>`)}
|
|
@@ -758,7 +766,7 @@
|
|
|
758
766
|
text-decoration: underline;
|
|
759
767
|
cursor: pointer;
|
|
760
768
|
}
|
|
761
|
-
`;dt([a({type:Number})],W.prototype,"rating",2);dt([a({type:String})],W.prototype,"reviewCount",2);dt([a({type:String})],W.prototype,"href",2);W=dt([x("o-rating")],W);var
|
|
769
|
+
`;dt([a({type:Number})],W.prototype,"rating",2);dt([a({type:String})],W.prototype,"reviewCount",2);dt([a({type:String})],W.prototype,"href",2);W=dt([x("o-rating")],W);var Je=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,y=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ye(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Je(t,e,i),i};let g=class extends b{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=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))}}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(o){const t=this.getFocusableElements();if(t.length===0)return;const e=t[0],n=t[t.length-1];o.shiftKey&&document.activeElement===e?(o.preventDefault(),n.focus()):!o.shiftKey&&document.activeElement===n&&(o.preventDefault(),e.focus())}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");return o?Array.from(o.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 o=this.getFocusableElements()[0];o==null||o.focus()})}closePanel(){var o;this.open=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),(o=this.previousFocusedElement)==null||o.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 l`
|
|
762
770
|
<div class="overlay" style="z-index: ${this.zIndex}" @click=${this.closePanel}></div>
|
|
763
771
|
<div
|
|
764
772
|
class="panel"
|
|
@@ -773,7 +781,7 @@
|
|
|
773
781
|
${this.showHeaderStartIcon?l`
|
|
774
782
|
<o-icon-button icon="arrowLeft" size="small" class="return-btn" bgstyle="background-light" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
775
783
|
`:null}
|
|
776
|
-
<
|
|
784
|
+
<h2 id="panel-title" class="panel-title">${this.headerTitle}</h2>
|
|
777
785
|
<o-icon-button icon="cross" size="small" class="close-btn" bgstyle="background-light" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
778
786
|
</div>
|
|
779
787
|
`:null}
|
|
@@ -944,7 +952,7 @@
|
|
|
944
952
|
--line-height: var(--line-height-280);
|
|
945
953
|
}
|
|
946
954
|
}
|
|
947
|
-
`;y([a({type:Boolean,reflect:!0})],g.prototype,"open",2);y([a({type:Boolean,reflect:!0})],g.prototype,"showHeader",2);y([a({type:Boolean,reflect:!0})],g.prototype,"showFooter",2);y([a({type:Boolean,reflect:!0})],g.prototype,"showHeaderStartIcon",2);y([a({type:String,reflect:!0})],g.prototype,"headerTitle",2);y([a({type:String,reflect:!0})],g.prototype,"closeButtonLabel",2);y([a({type:String,reflect:!0})],g.prototype,"firstButtonLabel",2);y([a({type:String,reflect:!0})],g.prototype,"firstButtonVariant",2);y([a({type:Function})],g.prototype,"onFirstButtonClick",2);y([a({type:String,reflect:!0})],g.prototype,"secondaryButtonLabel",2);y([a({type:String,reflect:!0})],g.prototype,"secondaryButtonVariant",2);y([a({type:Function})],g.prototype,"onSecondaryButtonClick",2);y([a({type:Boolean,reflect:!0})],g.prototype,"disablePortal",2);y([a({type:Number,reflect:!0})],g.prototype,"zIndex",2);y([a({type:Boolean,reflect:!0})],g.prototype,"initialized",2);g=y([x("o-side-panel")],g);var
|
|
955
|
+
`;y([a({type:Boolean,reflect:!0})],g.prototype,"open",2);y([a({type:Boolean,reflect:!0})],g.prototype,"showHeader",2);y([a({type:Boolean,reflect:!0})],g.prototype,"showFooter",2);y([a({type:Boolean,reflect:!0})],g.prototype,"showHeaderStartIcon",2);y([a({type:String,reflect:!0})],g.prototype,"headerTitle",2);y([a({type:String,reflect:!0})],g.prototype,"closeButtonLabel",2);y([a({type:String,reflect:!0})],g.prototype,"firstButtonLabel",2);y([a({type:String,reflect:!0})],g.prototype,"firstButtonVariant",2);y([a({type:Function})],g.prototype,"onFirstButtonClick",2);y([a({type:String,reflect:!0})],g.prototype,"secondaryButtonLabel",2);y([a({type:String,reflect:!0})],g.prototype,"secondaryButtonVariant",2);y([a({type:Function})],g.prototype,"onSecondaryButtonClick",2);y([a({type:Boolean,reflect:!0})],g.prototype,"disablePortal",2);y([a({type:Number,reflect:!0})],g.prototype,"zIndex",2);y([a({type:Boolean,reflect:!0})],g.prototype,"initialized",2);g=y([x("o-side-panel")],g);var Qe=Object.defineProperty,to=Object.getOwnPropertyDescriptor,M=(o,t,e,n)=>{for(var i=n>1?void 0:n?to(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Qe(t,e,i),i};let A=class extends b{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
|
|
948
956
|
<o-icon-button
|
|
949
957
|
icon="playerv"
|
|
950
958
|
size="xsmall"
|
|
@@ -1080,7 +1088,7 @@
|
|
|
1080
1088
|
height: 0;
|
|
1081
1089
|
width: 0;
|
|
1082
1090
|
}
|
|
1083
|
-
`;M([a({type:Array})],A.prototype,"thumbnails",2);M([a({type:Number})],A.prototype,"activeIndex",2);M([a({type:Array})],A.prototype,"disabledIndexes",2);M([a({type:String})],A.prototype,"maxWidth",2);M([a({type:String})],A.prototype,"altressource",2);M([a({type:Object})],A.prototype,"swiperInstance",2);M([
|
|
1091
|
+
`;M([a({type:Array})],A.prototype,"thumbnails",2);M([a({type:Number})],A.prototype,"activeIndex",2);M([a({type:Array})],A.prototype,"disabledIndexes",2);M([a({type:String})],A.prototype,"maxWidth",2);M([a({type:String})],A.prototype,"altressource",2);M([a({type:Object})],A.prototype,"swiperInstance",2);M([N()],A.prototype,"focusedIndex",2);A=M([x("thumbnail-navigation")],A);var eo=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,kt=(o,t,e,n)=>{for(var i=n>1?void 0:n?oo(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&eo(t,e,i),i};let et=class extends b{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
|
|
1084
1092
|
<span class="tag ${this.bgstyle}"><slot></slot></span>
|
|
1085
1093
|
`}};et.styles=m`
|
|
1086
1094
|
.tag {
|
|
@@ -1137,7 +1145,7 @@
|
|
|
1137
1145
|
background-color: var(--color-content-success);
|
|
1138
1146
|
}
|
|
1139
1147
|
|
|
1140
|
-
`;kt([a({type:String,reflect:!0})],et.prototype,"type",2);kt([a({type:String,reflect:!0})],et.prototype,"bgstyle",2);et=kt([x("o-tag")],et);var
|
|
1148
|
+
`;kt([a({type:String,reflect:!0})],et.prototype,"type",2);kt([a({type:String,reflect:!0})],et.prototype,"bgstyle",2);et=kt([x("o-tag")],et);var io=Object.defineProperty,no=Object.getOwnPropertyDescriptor,At=(o,t,e,n)=>{for(var i=n>1?void 0:n?no(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&io(t,e,i),i};let ot=class extends b{constructor(){super(...arguments),this.type="top",this.text=""}render(){return l`
|
|
1141
1149
|
<div class="tooltip">
|
|
1142
1150
|
<span class="tooltiptext">${this.text}</span>
|
|
1143
1151
|
<slot></slot>
|
|
@@ -1234,7 +1242,7 @@
|
|
|
1234
1242
|
border-color: transparent var(--color-alpha-dark-strongest) transparent transparent;
|
|
1235
1243
|
}
|
|
1236
1244
|
|
|
1237
|
-
`;At([a({type:String,reflect:!0})],ot.prototype,"type",2);At([a({type:String,reflect:!0})],ot.prototype,"text",2);ot=At([x("o-tooltip")],ot);var
|
|
1245
|
+
`;At([a({type:String,reflect:!0})],ot.prototype,"type",2);At([a({type:String,reflect:!0})],ot.prototype,"text",2);ot=At([x("o-tooltip")],ot);var ro=Object.defineProperty,so=Object.getOwnPropertyDescriptor,O=(o,t,e,n)=>{for(var i=n>1?void 0:n?so(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&ro(t,e,i),i};let k=class extends b{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=K.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1238
1246
|
<button
|
|
1239
1247
|
role="combobox"
|
|
1240
1248
|
aria-haspopup="listbox"
|
|
@@ -1421,7 +1429,7 @@
|
|
|
1421
1429
|
input[type="hidden"] {
|
|
1422
1430
|
display: none;
|
|
1423
1431
|
}
|
|
1424
|
-
`;O([a({type:Array,reflect:!0})],k.prototype,"options",2);O([a({type:String,reflect:!0})],k.prototype,"value",2);O([a({type:String,reflect:!0})],k.prototype,"name",2);O([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);O([a({type:String,reflect:!0})],k.prototype,"width",2);O([
|
|
1432
|
+
`;O([a({type:Array,reflect:!0})],k.prototype,"options",2);O([a({type:String,reflect:!0})],k.prototype,"value",2);O([a({type:String,reflect:!0})],k.prototype,"name",2);O([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);O([a({type:String,reflect:!0})],k.prototype,"width",2);O([N()],k.prototype,"open",2);O([N()],k.prototype,"activeIndex",2);O([N()],k.prototype,"menuWidth",2);k=O([x("o-dropdown")],k);var ao=Object.getOwnPropertyDescriptor,lo=(o,t,e,n)=>{for(var i=n>1?void 0:n?ao(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=r(i)||i);return i};let mt=class extends b{render(){return l` <span class="dots"></span> `}};mt.styles=m`
|
|
1425
1433
|
:host {
|
|
1426
1434
|
display: flex;
|
|
1427
1435
|
align-items: center;
|
|
@@ -1472,7 +1480,7 @@
|
|
|
1472
1480
|
background-color: var(--color-container-action-primary-pressed);
|
|
1473
1481
|
}
|
|
1474
1482
|
}
|
|
1475
|
-
`;mt=
|
|
1483
|
+
`;mt=lo([x("o-dots")],mt);var co=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,E=(o,t,e,n)=>{for(var i=n>1?void 0:n?ho(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&co(t,e,i),i};let C=class extends b{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=K.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1476
1484
|
<button
|
|
1477
1485
|
role="combobox"
|
|
1478
1486
|
aria-haspopup="listbox"
|
|
@@ -1709,12 +1717,12 @@
|
|
|
1709
1717
|
input[type="hidden"] {
|
|
1710
1718
|
display: none;
|
|
1711
1719
|
}
|
|
1712
|
-
`;E([a({type:Array,reflect:!0})],C.prototype,"options",2);E([a({type:String,reflect:!0})],C.prototype,"value",2);E([a({type:String,reflect:!0})],C.prototype,"name",2);E([a({type:String,reflect:!0})],C.prototype,"additionaltext",2);E([a({type:Boolean,reflect:!0})],C.prototype,"disabled",2);E([a({type:String,reflect:!0})],C.prototype,"width",2);E([
|
|
1720
|
+
`;E([a({type:Array,reflect:!0})],C.prototype,"options",2);E([a({type:String,reflect:!0})],C.prototype,"value",2);E([a({type:String,reflect:!0})],C.prototype,"name",2);E([a({type:String,reflect:!0})],C.prototype,"additionaltext",2);E([a({type:Boolean,reflect:!0})],C.prototype,"disabled",2);E([a({type:String,reflect:!0})],C.prototype,"width",2);E([N()],C.prototype,"open",2);E([N()],C.prototype,"activeIndex",2);E([N()],C.prototype,"menuWidth",2);C=E([x("o-dropdown-variant")],C);/**
|
|
1713
1721
|
* @license
|
|
1714
1722
|
* Copyright 2018 Google LLC
|
|
1715
1723
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1716
|
-
*/const Wt="important",
|
|
1717
|
-
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${
|
|
1724
|
+
*/const Wt="important",po=" !"+Wt,uo=Zt(class extends qt{constructor(o){var t;if(super(o),o.type!==Vt.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 s=typeof i=="string"&&i.endsWith(po);n.includes("-")||s?e.setProperty(n,s?i.slice(0,-11):i,s?Wt:""):e[n]=i}}return D}});var vo=Object.defineProperty,go=Object.getOwnPropertyDescriptor,St=(o,t,e,n)=>{for(var i=n>1?void 0:n?go(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&vo(t,e,i),i};let it=class extends b{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`
|
|
1725
|
+
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${uo(t)} />`:""}
|
|
1718
1726
|
<div class="m-reassurance-content">
|
|
1719
1727
|
<h3 class="a-reassurance-text">${$(this.option.title)}</h3>
|
|
1720
1728
|
<p class="a-reassurance-description">${$(this.option.description)}</p>
|
package/index.mjs
CHANGED
|
@@ -282,10 +282,10 @@ V.elementStyles = [], V.shadowRootOptions = { mode: "open" }, V[X("elementProper
|
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const J = globalThis, lt = J.trustedTypes, Pt = lt ? lt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Ut = "$lit$", B = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
285
|
+
const J = globalThis, lt = J.trustedTypes, Pt = lt ? lt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Ut = "$lit$", B = `lit$${Math.random().toFixed(9).slice(2)}$`, Ft = "?" + B, ie = `<${Ft}>`, F = document, Y = () => F.createComment(""), Q = (o) => o === null || typeof o != "object" && typeof o != "function", _t = Array.isArray, ne = (o) => _t(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", ut = `[
|
|
286
286
|
\f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Bt = /-->/g, zt = />/g, T = RegExp(`>|${ut}(?:([^\\s"'>=/]+)(${ut}*=${ut}*(?:[^
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Dt = /'/g, Ht = /"/g,
|
|
288
|
-
function
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Dt = /'/g, Ht = /"/g, Nt = /^(?:script|style|textarea|title)$/i, re = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = re(1), D = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Mt = /* @__PURE__ */ new WeakMap(), j = F.createTreeWalker(F, 129);
|
|
288
|
+
function Rt(o, t) {
|
|
289
289
|
if (!_t(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return Pt !== void 0 ? Pt.createHTML(t) : t;
|
|
291
291
|
}
|
|
@@ -295,11 +295,11 @@ const se = (o, t) => {
|
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
296
|
const c = o[h];
|
|
297
297
|
let v, f, p = -1, L = 0;
|
|
298
|
-
for (; L < c.length && (r.lastIndex = L, f = r.exec(c), f !== null); ) L = r.lastIndex, r === G ? f[1] === "!--" ? r = Bt : f[1] !== void 0 ? r = zt : f[2] !== void 0 ? (
|
|
298
|
+
for (; L < c.length && (r.lastIndex = L, f = r.exec(c), f !== null); ) L = r.lastIndex, r === G ? f[1] === "!--" ? r = Bt : f[1] !== void 0 ? r = zt : f[2] !== void 0 ? (Nt.test(f[2]) && (i = RegExp("</" + f[2], "g")), r = T) : f[3] !== void 0 && (r = T) : r === T ? f[0] === ">" ? (r = i ?? G, p = -1) : f[1] === void 0 ? p = -2 : (p = r.lastIndex - f[2].length, v = f[1], r = f[3] === void 0 ? T : f[3] === '"' ? Ht : Dt) : r === Ht || r === Dt ? r = T : r === Bt || r === zt ? r = G : (r = T, i = void 0);
|
|
299
299
|
const P = r === T && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
300
|
s += r === G ? c + ie : p >= 0 ? (n.push(v), c.slice(0, p) + Ut + c.slice(p) + B + P) : c + B + (p === -2 ? h : P);
|
|
301
301
|
}
|
|
302
|
-
return [
|
|
302
|
+
return [Rt(o, s + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
304
304
|
class tt {
|
|
305
305
|
constructor({ strings: t, _$litType$: e }, n) {
|
|
@@ -317,7 +317,7 @@ class tt {
|
|
|
317
317
|
const L = f[r++], P = i.getAttribute(p).split(B), rt = /([.?@])?(.*)/.exec(L);
|
|
318
318
|
c.push({ type: 1, index: s, name: rt[2], strings: P, ctor: rt[1] === "." ? le : rt[1] === "?" ? ce : rt[1] === "@" ? he : ct }), i.removeAttribute(p);
|
|
319
319
|
} else p.startsWith(B) && (c.push({ type: 6, index: s }), i.removeAttribute(p));
|
|
320
|
-
if (
|
|
320
|
+
if (Nt.test(i.tagName)) {
|
|
321
321
|
const p = i.textContent.split(B), L = p.length - 1;
|
|
322
322
|
if (L > 0) {
|
|
323
323
|
i.textContent = lt ? lt.emptyScript : "";
|
|
@@ -325,7 +325,7 @@ class tt {
|
|
|
325
325
|
i.append(p[L], Y());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === Ft) c.push({ type: 2, index: s });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
331
|
for (; (p = i.data.indexOf(B, p + 1)) !== -1; ) c.push({ type: 7, index: s }), p += B.length - 1;
|
|
@@ -334,7 +334,7 @@ class tt {
|
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const n =
|
|
337
|
+
const n = F.createElement("template");
|
|
338
338
|
return n.innerHTML = t, n;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -356,7 +356,7 @@ class ae {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts: n } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ??
|
|
359
|
+
const { el: { content: e }, parts: n } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? F).importNode(e, !0);
|
|
360
360
|
j.currentNode = i;
|
|
361
361
|
let s = j.nextNode(), r = 0, h = 0, c = n[0];
|
|
362
362
|
for (; c !== void 0; ) {
|
|
@@ -366,7 +366,7 @@ class ae {
|
|
|
366
366
|
}
|
|
367
367
|
r !== (c == null ? void 0 : c.index) && (s = j.nextNode(), r++);
|
|
368
368
|
}
|
|
369
|
-
return j.currentNode =
|
|
369
|
+
return j.currentNode = F, i;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
@@ -402,11 +402,11 @@ class nt {
|
|
|
402
402
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
403
403
|
}
|
|
404
404
|
_(t) {
|
|
405
|
-
this._$AH !== d && Q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
405
|
+
this._$AH !== d && Q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(F.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
408
|
var s;
|
|
409
|
-
const { values: e, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = tt.createElement(
|
|
409
|
+
const { values: e, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = tt.createElement(Rt(n.h, n.h[0]), this.options)), n);
|
|
410
410
|
if (((s = this._$AH) == null ? void 0 : s._$AD) === i) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
412
|
const r = new ae(i, this), h = r.u(this.options);
|
|
@@ -596,7 +596,7 @@ function a(o) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
function
|
|
599
|
+
function N(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
602
|
const ge = m`
|
|
@@ -734,6 +734,9 @@ const ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
734
734
|
<rect x="1" width="2" height="8" fill="#3F2B2E"/>
|
|
735
735
|
<rect x="5" width="2" height="8" fill="#3F2B2E"/>
|
|
736
736
|
</svg>
|
|
737
|
+
`, je = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
738
|
+
<path d="M10.5037 5.99925C10.7795 5.99925 11.0037 6.22311 11.0037 6.49925V14.2922L13.1462 12.1448C13.3411 11.9498 13.6573 11.95 13.8523 12.1448H13.8533C14.0482 12.34 14.0481 12.6565 13.8533 12.8518L10.8572 15.8518C10.6618 16.0471 10.3455 16.0471 10.1501 15.8518L7.15406 12.8518C6.96522 12.6557 6.96774 12.3444 7.15992 12.1516C7.35242 11.9588 7.66416 11.9556 7.86011 12.1448L10.0046 14.2922V6.49925C10.0046 6.22319 10.228 5.99938 10.5037 5.99925ZM5.15699 0.145737C5.35218 -0.0485278 5.66791 -0.0486304 5.86304 0.145737L8.85913 3.14574C9.04829 3.34183 9.04562 3.65402 8.85327 3.84691C8.66066 4.03978 8.34902 4.04225 8.15308 3.85277L6.00952 1.70628V9.49925C6.0095 9.77533 5.78621 9.99918 5.5105 9.99925C5.23473 9.99925 5.0115 9.77538 5.01148 9.49925V1.70628L2.86695 3.85179C2.74288 3.98695 2.55447 4.04321 2.37671 3.99828C2.1991 3.95328 2.06051 3.81475 2.01538 3.63695C1.97026 3.45902 2.02608 3.27015 2.16089 3.14574L5.15699 0.145737Z" fill="#001022"/>
|
|
739
|
+
</svg>
|
|
737
740
|
`, K = {
|
|
738
741
|
wishlist: ye,
|
|
739
742
|
playerv: me,
|
|
@@ -755,7 +758,8 @@ const ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
755
758
|
triangledown: De,
|
|
756
759
|
triangleup: He,
|
|
757
760
|
checkstroke: Me,
|
|
758
|
-
pause: Te
|
|
761
|
+
pause: Te,
|
|
762
|
+
mapDualArrow: je
|
|
759
763
|
};
|
|
760
764
|
/**
|
|
761
765
|
* @license
|
|
@@ -808,15 +812,15 @@ class yt extends ft {
|
|
|
808
812
|
}
|
|
809
813
|
yt.directiveName = "unsafeSVG", yt.resultType = 2;
|
|
810
814
|
const H = Zt(yt);
|
|
811
|
-
var
|
|
812
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
815
|
+
var Ue = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, w = (o, t, e, n) => {
|
|
816
|
+
for (var i = n > 1 ? void 0 : n ? Fe(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
813
817
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
814
|
-
return n && i &&
|
|
818
|
+
return n && i && Ue(t, e, i), i;
|
|
815
819
|
};
|
|
816
|
-
const
|
|
817
|
-
let u = class extends
|
|
820
|
+
const Ne = be(b);
|
|
821
|
+
let u = class extends Ne {
|
|
818
822
|
constructor() {
|
|
819
|
-
super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "
|
|
823
|
+
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 = "";
|
|
820
824
|
}
|
|
821
825
|
get name() {
|
|
822
826
|
return this.getAttribute("name") ?? "";
|
|
@@ -1025,7 +1029,12 @@ u.styles = m`
|
|
|
1025
1029
|
width: var(--button-endicon-svg-width, 8px);
|
|
1026
1030
|
}
|
|
1027
1031
|
|
|
1028
|
-
|
|
1032
|
+
:host([underlined]) [href] span:not([class*="icon-"]),
|
|
1033
|
+
:host([underlined][paneltarget]) .text {
|
|
1034
|
+
border-bottom: var(--border-M, 1px) solid var(--color-border-primary);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
//Icon movement on hover
|
|
1029
1038
|
:host([variant="tertiary"][endIcon]) .icon-end {
|
|
1030
1039
|
display: inline-flex;
|
|
1031
1040
|
align-items: center;
|
|
@@ -1082,10 +1091,10 @@ w([
|
|
|
1082
1091
|
u = w([
|
|
1083
1092
|
x("o-button")
|
|
1084
1093
|
], u);
|
|
1085
|
-
var
|
|
1086
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1094
|
+
var Re = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, ht = (o, t, e, n) => {
|
|
1095
|
+
for (var i = n > 1 ? void 0 : n ? Ve(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1087
1096
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1088
|
-
return n && i &&
|
|
1097
|
+
return n && i && Re(t, e, i), i;
|
|
1089
1098
|
};
|
|
1090
1099
|
let q = class extends b {
|
|
1091
1100
|
constructor() {
|
|
@@ -1211,10 +1220,10 @@ q = ht([
|
|
|
1211
1220
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1212
1221
|
*/
|
|
1213
1222
|
const $ = (o) => o ?? d;
|
|
1214
|
-
var
|
|
1215
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1223
|
+
var Ze = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, S = (o, t, e, n) => {
|
|
1224
|
+
for (var i = n > 1 ? void 0 : n ? qe(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1216
1225
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1217
|
-
return n && i &&
|
|
1226
|
+
return n && i && Ze(t, e, i), i;
|
|
1218
1227
|
};
|
|
1219
1228
|
let _ = class extends b {
|
|
1220
1229
|
constructor() {
|
|
@@ -1480,10 +1489,10 @@ S([
|
|
|
1480
1489
|
_ = S([
|
|
1481
1490
|
x("o-icon-button")
|
|
1482
1491
|
], _);
|
|
1483
|
-
var
|
|
1484
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1492
|
+
var We = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, R = (o, t, e, n) => {
|
|
1493
|
+
for (var i = n > 1 ? void 0 : n ? Ke(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1485
1494
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1486
|
-
return n && i &&
|
|
1495
|
+
return n && i && We(t, e, i), i;
|
|
1487
1496
|
};
|
|
1488
1497
|
let I = class extends b {
|
|
1489
1498
|
constructor() {
|
|
@@ -1611,31 +1620,31 @@ I.styles = m`
|
|
|
1611
1620
|
}
|
|
1612
1621
|
/* End of underline effect */
|
|
1613
1622
|
`;
|
|
1614
|
-
|
|
1623
|
+
R([
|
|
1615
1624
|
a({ type: String })
|
|
1616
1625
|
], I.prototype, "href", 2);
|
|
1617
|
-
|
|
1626
|
+
R([
|
|
1618
1627
|
a({ type: String })
|
|
1619
1628
|
], I.prototype, "target", 2);
|
|
1620
|
-
|
|
1629
|
+
R([
|
|
1621
1630
|
a({ type: String, reflect: !0 })
|
|
1622
1631
|
], I.prototype, "template", 2);
|
|
1623
|
-
|
|
1632
|
+
R([
|
|
1624
1633
|
a({ type: Boolean, reflect: !0 })
|
|
1625
1634
|
], I.prototype, "inverse", 2);
|
|
1626
|
-
|
|
1635
|
+
R([
|
|
1627
1636
|
a({ type: Boolean, reflect: !0 })
|
|
1628
1637
|
], I.prototype, "endIcon", 2);
|
|
1629
|
-
|
|
1638
|
+
R([
|
|
1630
1639
|
a({ type: Boolean, reflect: !0 })
|
|
1631
1640
|
], I.prototype, "reverseEndIcon", 2);
|
|
1632
|
-
I =
|
|
1641
|
+
I = R([
|
|
1633
1642
|
x("o-link")
|
|
1634
1643
|
], I);
|
|
1635
|
-
var
|
|
1636
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1644
|
+
var Ge = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, dt = (o, t, e, n) => {
|
|
1645
|
+
for (var i = n > 1 ? void 0 : n ? Xe(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1637
1646
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1638
|
-
return n && i &&
|
|
1647
|
+
return n && i && Ge(t, e, i), i;
|
|
1639
1648
|
};
|
|
1640
1649
|
let W = class extends b {
|
|
1641
1650
|
constructor() {
|
|
@@ -1710,10 +1719,10 @@ dt([
|
|
|
1710
1719
|
W = dt([
|
|
1711
1720
|
x("o-rating")
|
|
1712
1721
|
], W);
|
|
1713
|
-
var
|
|
1714
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1722
|
+
var Je = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, y = (o, t, e, n) => {
|
|
1723
|
+
for (var i = n > 1 ? void 0 : n ? Ye(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1715
1724
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1716
|
-
return n && i &&
|
|
1725
|
+
return n && i && Je(t, e, i), i;
|
|
1717
1726
|
};
|
|
1718
1727
|
let g = class extends b {
|
|
1719
1728
|
constructor() {
|
|
@@ -1780,7 +1789,7 @@ let g = class extends b {
|
|
|
1780
1789
|
${this.showHeaderStartIcon ? l`
|
|
1781
1790
|
<o-icon-button icon="arrowLeft" size="small" class="return-btn" bgstyle="background-light" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
1782
1791
|
` : null}
|
|
1783
|
-
<
|
|
1792
|
+
<h2 id="panel-title" class="panel-title">${this.headerTitle}</h2>
|
|
1784
1793
|
<o-icon-button icon="cross" size="small" class="close-btn" bgstyle="background-light" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
1785
1794
|
</div>
|
|
1786
1795
|
` : null}
|
|
@@ -2003,10 +2012,10 @@ y([
|
|
|
2003
2012
|
g = y([
|
|
2004
2013
|
x("o-side-panel")
|
|
2005
2014
|
], g);
|
|
2006
|
-
var
|
|
2007
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2015
|
+
var Qe = Object.defineProperty, to = Object.getOwnPropertyDescriptor, M = (o, t, e, n) => {
|
|
2016
|
+
for (var i = n > 1 ? void 0 : n ? to(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2008
2017
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2009
|
-
return n && i &&
|
|
2018
|
+
return n && i && Qe(t, e, i), i;
|
|
2010
2019
|
};
|
|
2011
2020
|
let A = class extends b {
|
|
2012
2021
|
constructor() {
|
|
@@ -2210,15 +2219,15 @@ M([
|
|
|
2210
2219
|
a({ type: Object })
|
|
2211
2220
|
], A.prototype, "swiperInstance", 2);
|
|
2212
2221
|
M([
|
|
2213
|
-
|
|
2222
|
+
N()
|
|
2214
2223
|
], A.prototype, "focusedIndex", 2);
|
|
2215
2224
|
A = M([
|
|
2216
2225
|
x("thumbnail-navigation")
|
|
2217
2226
|
], A);
|
|
2218
|
-
var
|
|
2219
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2227
|
+
var eo = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, kt = (o, t, e, n) => {
|
|
2228
|
+
for (var i = n > 1 ? void 0 : n ? oo(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2220
2229
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2221
|
-
return n && i &&
|
|
2230
|
+
return n && i && eo(t, e, i), i;
|
|
2222
2231
|
};
|
|
2223
2232
|
let et = class extends b {
|
|
2224
2233
|
constructor() {
|
|
@@ -2295,10 +2304,10 @@ kt([
|
|
|
2295
2304
|
et = kt([
|
|
2296
2305
|
x("o-tag")
|
|
2297
2306
|
], et);
|
|
2298
|
-
var
|
|
2299
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2307
|
+
var io = Object.defineProperty, no = Object.getOwnPropertyDescriptor, At = (o, t, e, n) => {
|
|
2308
|
+
for (var i = n > 1 ? void 0 : n ? no(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2300
2309
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2301
|
-
return n && i &&
|
|
2310
|
+
return n && i && io(t, e, i), i;
|
|
2302
2311
|
};
|
|
2303
2312
|
let ot = class extends b {
|
|
2304
2313
|
constructor() {
|
|
@@ -2415,10 +2424,10 @@ At([
|
|
|
2415
2424
|
ot = At([
|
|
2416
2425
|
x("o-tooltip")
|
|
2417
2426
|
], ot);
|
|
2418
|
-
var
|
|
2419
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2427
|
+
var ro = Object.defineProperty, so = Object.getOwnPropertyDescriptor, O = (o, t, e, n) => {
|
|
2428
|
+
for (var i = n > 1 ? void 0 : n ? so(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2420
2429
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2421
|
-
return n && i &&
|
|
2430
|
+
return n && i && ro(t, e, i), i;
|
|
2422
2431
|
};
|
|
2423
2432
|
let k = class extends b {
|
|
2424
2433
|
constructor() {
|
|
@@ -2699,19 +2708,19 @@ O([
|
|
|
2699
2708
|
a({ type: String, reflect: !0 })
|
|
2700
2709
|
], k.prototype, "width", 2);
|
|
2701
2710
|
O([
|
|
2702
|
-
|
|
2711
|
+
N()
|
|
2703
2712
|
], k.prototype, "open", 2);
|
|
2704
2713
|
O([
|
|
2705
|
-
|
|
2714
|
+
N()
|
|
2706
2715
|
], k.prototype, "activeIndex", 2);
|
|
2707
2716
|
O([
|
|
2708
|
-
|
|
2717
|
+
N()
|
|
2709
2718
|
], k.prototype, "menuWidth", 2);
|
|
2710
2719
|
k = O([
|
|
2711
2720
|
x("o-dropdown")
|
|
2712
2721
|
], k);
|
|
2713
|
-
var
|
|
2714
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2722
|
+
var ao = Object.getOwnPropertyDescriptor, lo = (o, t, e, n) => {
|
|
2723
|
+
for (var i = n > 1 ? void 0 : n ? ao(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2715
2724
|
(r = o[s]) && (i = r(i) || i);
|
|
2716
2725
|
return i;
|
|
2717
2726
|
};
|
|
@@ -2772,13 +2781,13 @@ mt.styles = m`
|
|
|
2772
2781
|
}
|
|
2773
2782
|
}
|
|
2774
2783
|
`;
|
|
2775
|
-
mt =
|
|
2784
|
+
mt = lo([
|
|
2776
2785
|
x("o-dots")
|
|
2777
2786
|
], mt);
|
|
2778
|
-
var
|
|
2779
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2787
|
+
var co = Object.defineProperty, ho = Object.getOwnPropertyDescriptor, E = (o, t, e, n) => {
|
|
2788
|
+
for (var i = n > 1 ? void 0 : n ? ho(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2780
2789
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2781
|
-
return n && i &&
|
|
2790
|
+
return n && i && co(t, e, i), i;
|
|
2782
2791
|
};
|
|
2783
2792
|
let C = class extends b {
|
|
2784
2793
|
constructor() {
|
|
@@ -3112,13 +3121,13 @@ E([
|
|
|
3112
3121
|
a({ type: String, reflect: !0 })
|
|
3113
3122
|
], C.prototype, "width", 2);
|
|
3114
3123
|
E([
|
|
3115
|
-
|
|
3124
|
+
N()
|
|
3116
3125
|
], C.prototype, "open", 2);
|
|
3117
3126
|
E([
|
|
3118
|
-
|
|
3127
|
+
N()
|
|
3119
3128
|
], C.prototype, "activeIndex", 2);
|
|
3120
3129
|
E([
|
|
3121
|
-
|
|
3130
|
+
N()
|
|
3122
3131
|
], C.prototype, "menuWidth", 2);
|
|
3123
3132
|
C = E([
|
|
3124
3133
|
x("o-dropdown-variant")
|
|
@@ -3128,7 +3137,7 @@ C = E([
|
|
|
3128
3137
|
* Copyright 2018 Google LLC
|
|
3129
3138
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3130
3139
|
*/
|
|
3131
|
-
const Wt = "important",
|
|
3140
|
+
const Wt = "important", po = " !" + Wt, uo = Zt(class extends qt {
|
|
3132
3141
|
constructor(o) {
|
|
3133
3142
|
var t;
|
|
3134
3143
|
if (super(o), o.type !== Vt.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.");
|
|
@@ -3147,17 +3156,17 @@ const Wt = "important", ho = " !" + Wt, po = Zt(class extends qt {
|
|
|
3147
3156
|
const i = t[n];
|
|
3148
3157
|
if (i != null) {
|
|
3149
3158
|
this.ft.add(n);
|
|
3150
|
-
const s = typeof i == "string" && i.endsWith(
|
|
3159
|
+
const s = typeof i == "string" && i.endsWith(po);
|
|
3151
3160
|
n.includes("-") || s ? e.setProperty(n, s ? i.slice(0, -11) : i, s ? Wt : "") : e[n] = i;
|
|
3152
3161
|
}
|
|
3153
3162
|
}
|
|
3154
3163
|
return D;
|
|
3155
3164
|
}
|
|
3156
3165
|
});
|
|
3157
|
-
var
|
|
3158
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
3166
|
+
var vo = Object.defineProperty, go = Object.getOwnPropertyDescriptor, St = (o, t, e, n) => {
|
|
3167
|
+
for (var i = n > 1 ? void 0 : n ? go(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
3159
3168
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
3160
|
-
return n && i &&
|
|
3169
|
+
return n && i && vo(t, e, i), i;
|
|
3161
3170
|
};
|
|
3162
3171
|
let it = class extends b {
|
|
3163
3172
|
constructor() {
|
|
@@ -3168,7 +3177,7 @@ let it = class extends b {
|
|
|
3168
3177
|
width: `${this.imageSize}px`,
|
|
3169
3178
|
height: `${this.imageSize}px`
|
|
3170
3179
|
}, e = l`
|
|
3171
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${
|
|
3180
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${uo(t)} />` : ""}
|
|
3172
3181
|
<div class="m-reassurance-content">
|
|
3173
3182
|
<h3 class="a-reassurance-text">${$(this.option.title)}</h3>
|
|
3174
3183
|
<p class="a-reassurance-description">${$(this.option.description)}</p>
|