@florid-kit/components 0.8.36 → 0.8.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/side-panel.d.ts +1 -0
- package/index.js +41 -41
- package/index.mjs +139 -136
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const pt=globalThis,St=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Lt=Symbol(),
|
|
5
|
+
*/const pt=globalThis,St=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Lt=Symbol(),Ut=new WeakMap;let Yt=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==Lt)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(St&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=Ut.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Ut.set(e,t))}return t}toString(){return this.cssText}};const se=o=>new Yt(typeof o=="string"?o:o+"",void 0,Lt),y=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((n,i,r)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+1],o[0]);return new Yt(e,o,Lt)},ae=(o,t)=>{if(St)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),i=pt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=e.cssText,o.appendChild(n)}},Rt=St?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return se(e)})(o):o;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/const et=globalThis,vt=et.trustedTypes,Zt=vt?vt.createPolicy("lit-html",{createHTML:o=>o}):void 0,te="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,ee="?"+T,be=`<${ee}>`,Z=document,it=()=>Z.createComment(""),nt=o=>o===null||typeof o!="object"&&typeof o!="function",It=Array.isArray,fe=o=>It(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",wt=`[
|
|
14
14
|
\f\r]`,Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qt=/-->/g,Wt=/>/g,R=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Kt=/'/g,Gt=/"/g,oe=/^(?:script|style|textarea|title)$/i,ge=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=ge(1),
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Kt=/'/g,Gt=/"/g,oe=/^(?:script|style|textarea|title)$/i,ge=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=ge(1),N=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Xt=new WeakMap,F=Z.createTreeWalker(Z,129);function ie(o,t){if(!It(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zt!==void 0?Zt.createHTML(t):t}const ye=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=Y;for(let h=0;h<e;h++){const c=o[h];let g,m,p=-1,O=0;for(;O<c.length&&(s.lastIndex=O,m=s.exec(c),m!==null);)O=s.lastIndex,s===Y?m[1]==="!--"?s=qt:m[1]!==void 0?s=Wt:m[2]!==void 0?(oe.test(m[2])&&(i=RegExp("</"+m[2],"g")),s=R):m[3]!==void 0&&(s=R):s===R?m[0]===">"?(s=i??Y,p=-1):m[1]===void 0?p=-2:(p=s.lastIndex-m[2].length,g=m[1],s=m[3]===void 0?R:m[3]==='"'?Gt:Kt):s===Gt||s===Kt?s=R:s===qt||s===Wt?s=Y:(s=R,i=void 0);const M=s===R&&o[h+1].startsWith("/>")?" ":"";r+=s===Y?c+be:p>=0?(n.push(g),c.slice(0,p)+te+c.slice(p)+T+M):c+T+(p===-2?h:M)}return[ie(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class rt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const h=t.length-1,c=this.parts,[g,m]=ye(t,e);if(this.el=rt.createElement(g,n),F.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=F.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(te)){const O=m[s++],M=i.getAttribute(p).split(T),dt=/([.?@])?(.*)/.exec(O);c.push({type:1,index:r,name:dt[2],strings:M,ctor:dt[1]==="."?xe:dt[1]==="?"?we:dt[1]==="@"?$e:ft}),i.removeAttribute(p)}else p.startsWith(T)&&(c.push({type:6,index:r}),i.removeAttribute(p));if(oe.test(i.tagName)){const p=i.textContent.split(T),O=p.length-1;if(O>0){i.textContent=vt?vt.emptyScript:"";for(let M=0;M<O;M++)i.append(p[M],it()),F.nextNode(),c.push({type:2,index:++r});i.append(p[O],it())}}}else if(i.nodeType===8)if(i.data===ee)c.push({type:2,index:r});else{let p=-1;for(;(p=i.data.indexOf(T,p+1))!==-1;)c.push({type:7,index:r}),p+=T.length-1}r++}}static createElement(t,e){const n=Z.createElement("template");return n.innerHTML=t,n}}function X(o,t,e=o,n){var s,h;if(t===N)return t;let i=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=nt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=i:e._$Cl=i),i!==void 0&&(t=X(o,i._$AS(o,t.values),i,n)),t}class me{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)??Z).importNode(e,!0);F.currentNode=i;let r=F.nextNode(),s=0,h=0,c=n[0];for(;c!==void 0;){if(s===c.index){let g;c.type===2?g=new ht(r,r.nextSibling,this,t):c.type===1?g=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(g=new _e(r,this,t)),this._$AV.push(g),c=n[++h]}s!==(c==null?void 0:c.index)&&(r=F.nextNode(),s++)}return F.currentNode=Z,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 ht{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=X(this,t,e),nt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==N&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fe(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&&nt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Z.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=rt.createElement(ie(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{const s=new me(i,this),h=s.u(this.options);s.p(e),this.T(h),this._$AH=s}}_$AC(t){let e=Xt.get(t.strings);return e===void 0&&Xt.set(t.strings,e=new rt(t)),e}k(t){It(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new ht(this.O(it()),this.O(it()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(t,e=this,n,i){const r=this.strings;let s=!1;if(r===void 0)t=X(this,t,e,0),s=!nt(t)||t!==this._$AH&&t!==N,s&&(this._$AH=t);else{const h=t;let c,g;for(t=r[0],c=0;c<r.length-1;c++)g=X(this,h[n+c],e,c),g===N&&(g=this._$AH[c]),s||(s=!nt(g)||g!==this._$AH[c]),g===d?t=d:t!==d&&(t+=(g??"")+r[c+1]),this._$AH[c]=g}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xe extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class we extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class $e extends ft{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=X(this,t,e,0)??d)===N)return;const n=this._$AH,i=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==d&&(n===d||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class _e{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){X(this,t)}}const $t=et.litHtmlPolyfillSupport;$t==null||$t(rt,ht),(et.litHtmlVersions??(et.litHtmlVersions=[])).push("3.3.0");const Ce=(o,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let i=n._$litPart$;if(i===void 0){const r=(e==null?void 0:e.renderBefore)??null;n._$litPart$=i=new ht(t.insertBefore(it(),r),r,void 0,e??{})}return i._$AI(o),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const V=globalThis;let
|
|
19
|
+
*/const V=globalThis;let v=class extends G{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=Ce(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 N}};var Qt;v._$litElement$=!0,v.finalized=!0,(Qt=V.litElementHydrateSupport)==null||Qt.call(V,{LitElement:v});const _t=V.litElementPolyfillSupport;_t==null||_t({LitElement:v});(V.litElementVersions??(V.litElementVersions=[])).push("4.2.0");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function q(o){return a({...o,state:!0,attribute:!1})}const gt=
|
|
31
|
+
*/function q(o){return a({...o,state:!0,attribute:!1})}const gt=y`
|
|
32
32
|
outline: 1px dashed var(--button-border-color);
|
|
33
33
|
outline-offset: 2px;
|
|
34
34
|
outline: dashed black;
|
|
35
|
-
`;
|
|
35
|
+
`;y`
|
|
36
36
|
:host * {
|
|
37
37
|
box-sizing: border-box;
|
|
38
38
|
}
|
|
@@ -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
|
+
`,Ne=`<?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">
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
</style>
|
|
98
98
|
<path class="st0" d="M38.8,20.5H1.2c-0.7,0-1.2-0.6-1.2-1.2S0.6,18,1.2,18h37.5c0.7,0,1.2,0.6,1.2,1.2S39.4,20.5,38.8,20.5z"/>
|
|
99
99
|
</svg>
|
|
100
|
-
`,
|
|
100
|
+
`,Ue=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
101
101
|
<path d="M15.0009 8.12175C15.0009 8.36347 14.805 8.55943 14.5634 8.55943H2.49495L7.43502 13.5017C7.60609 13.6726 7.60628 13.9499 7.43546 14.1211C7.26464 14.2922 6.98749 14.2924 6.81642 14.1215L1.13 8.43163C1.04685 8.34998 1 8.23831 1 8.12175C1 8.00518 1.04685 7.89351 1.13 7.81187L6.81642 2.12286C6.98808 1.95699 7.26094 1.95937 7.4297 2.12819C7.59845 2.29702 7.60082 2.57001 7.43502 2.74175L2.49495 7.68406H14.5634C14.805 7.68406 15.0009 7.88002 15.0009 8.12175Z" fill="#3F2B2E"/>
|
|
102
102
|
</svg>
|
|
103
103
|
`,Re=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
</svg>
|
|
128
128
|
`,Xe=`<svg viewBox="0 0 200 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
|
|
129
129
|
<line x1="0" y1="0" x2="200" y2="200" />
|
|
130
|
-
</svg>`,W={wishlist:Se,playerv:Le,chevronRight:Pe,chevronLeft:Ie,icoPlus:je,icoMinus:
|
|
130
|
+
</svg>`,W={wishlist:Se,playerv:Le,chevronRight:Pe,chevronLeft:Ie,icoPlus:je,icoMinus:Ne,"star-0":Oe,"star-25":Be,"star-50":ze,"star-75":De,"star-100":He,cross:Me,search:Te,arrowLeft:Ue,arrowTop:Re,cart:Fe,notifyme:Ve,triangledown:Ze,triangleup:qe,checkstroke:We,pause:Ke,mapDualArrow:Ge},Je={strikeDiagonal:Xe};/**
|
|
131
131
|
* @license
|
|
132
132
|
* Copyright 2017 Google LLC
|
|
133
133
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -135,11 +135,11 @@
|
|
|
135
135
|
* @license
|
|
136
136
|
* Copyright 2017 Google LLC
|
|
137
137
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
138
|
-
*/class kt extends Ht{constructor(t){if(super(t),this.it=d,t.type!==zt.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===
|
|
138
|
+
*/class kt extends Ht{constructor(t){if(super(t),this.it=d,t.type!==zt.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===N)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:[]}}}kt.directiveName="unsafeHTML",kt.resultType=1;/**
|
|
139
139
|
* @license
|
|
140
140
|
* Copyright 2017 Google LLC
|
|
141
141
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
142
|
-
*/class At extends kt{}At.directiveName="unsafeSVG",At.resultType=2;const S=Dt(At);var Qe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,w=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ye(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Qe(t,e,i),i};const to=Bt(
|
|
142
|
+
*/class At extends kt{}At.directiveName="unsafeSVG",At.resultType=2;const S=Dt(At);var Qe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,w=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ye(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Qe(t,e,i),i};const to=Bt(v);let b=class extends to{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target="",this.underlined=!1}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Ot].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=W[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${S(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
|
|
143
143
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
|
|
144
144
|
${this.startIcon?this.renderIcon("start"):d}
|
|
145
145
|
${o?l`
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
`:l`<slot></slot>`}
|
|
163
163
|
${this.endIcon?this.renderIcon("end"):d}
|
|
164
164
|
</a>
|
|
165
|
-
`}};Ee(
|
|
165
|
+
`}};Ee(b);b.formAssociated=!0;b.styles=y`
|
|
166
166
|
:host {
|
|
167
167
|
--button-border: transparent;
|
|
168
168
|
cursor: pointer;
|
|
@@ -346,12 +346,12 @@
|
|
|
346
346
|
transform: translateX(4px);
|
|
347
347
|
}
|
|
348
348
|
//End icon movment on hover
|
|
349
|
-
`;w([a()],
|
|
349
|
+
`;w([a()],b.prototype,"type",2);w([a({reflect:!0})],b.prototype,"value",2);w([a({type:String,reflect:!0})],b.prototype,"variant",2);w([a({type:String})],b.prototype,"text",2);w([a({type:String})],b.prototype,"textsecond",2);w([a({type:Boolean,reflect:!0})],b.prototype,"fullwidth",2);w([a({type:Boolean,reflect:!0})],b.prototype,"disabled",2);w([a({type:String,reflect:!0})],b.prototype,"startIconModel",2);w([a({type:String,reflect:!0})],b.prototype,"endIconModel",2);w([a({type:Boolean,reflect:!0,attribute:"starticon"})],b.prototype,"startIcon",2);w([a({type:Boolean,reflect:!0,attribute:"endicon"})],b.prototype,"endIcon",2);w([a({type:String,attribute:"paneltarget",reflect:!0})],b.prototype,"panelTarget",2);w([a({type:String})],b.prototype,"href",2);w([a({type:String})],b.prototype,"target",2);w([a({type:Boolean,reflect:!0})],b.prototype,"underlined",2);b=w([x("o-button")],b);var eo=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,yt=(o,t,e,n)=>{for(var i=n>1?void 0:n?oo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&eo(t,e,i),i};let J=class extends v{constructor(){super(...arguments),this.status="empty",this.ariaDescribedBy="a-product-name",this.label="Add to wishlist",this.toggleStatus=()=>{this.status=this.status==="empty"?"filled":"empty",this.setAttribute("aria-pressed",String(this.status==="filled")),this.dispatchEvent(new CustomEvent("wishlist-toggle",{detail:{status:this.status},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.setAttribute("role","button"),this.setAttribute("aria-pressed",String(this.status==="filled"))}firstUpdated(){this.addEventListener("click",this.toggleStatus),this.addEventListener("keydown",this.handleKeydown)}handleKeydown(o){(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),this.toggleStatus())}render(){const o=W.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
|
|
350
350
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
351
351
|
<span class="sr-only">${this.label}</span>
|
|
352
352
|
${S(o)}
|
|
353
353
|
</button>
|
|
354
|
-
`}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};J.styles=
|
|
354
|
+
`}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};J.styles=y`
|
|
355
355
|
:host {
|
|
356
356
|
display: inline-flex;
|
|
357
357
|
justify-content: center;
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
* @license
|
|
421
421
|
* Copyright 2018 Google LLC
|
|
422
422
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
423
|
-
*/const $=o=>o??d;var io=Object.defineProperty,no=Object.getOwnPropertyDescriptor,P=(o,t,e,n)=>{for(var i=n>1?void 0:n?no(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&io(t,e,i),i};let _=class extends
|
|
423
|
+
*/const $=o=>o??d;var io=Object.defineProperty,no=Object.getOwnPropertyDescriptor,P=(o,t,e,n)=>{for(var i=n>1?void 0:n?no(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&io(t,e,i),i};let _=class extends v{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="wishlist",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const o=W[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`
|
|
424
424
|
${this.type==="span"?l`
|
|
425
425
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
426
426
|
${S(e)}
|
|
@@ -436,7 +436,7 @@
|
|
|
436
436
|
${n}
|
|
437
437
|
</button>
|
|
438
438
|
`}
|
|
439
|
-
`}};_.styles=
|
|
439
|
+
`}};_.styles=y`
|
|
440
440
|
:host {
|
|
441
441
|
display: inline-flex;
|
|
442
442
|
justify-content: center;
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
.sr-only {
|
|
643
643
|
display: none;
|
|
644
644
|
}
|
|
645
|
-
`;P([a({type:String,reflect:!0})],_.prototype,"bgstyle",2);P([a({type:String,reflect:!0})],_.prototype,"size",2);P([a({type:String,reflect:!0})],_.prototype,"status",2);P([a({type:String,reflect:!0})],_.prototype,"type",2);P([a({type:String})],_.prototype,"strokewidth",2);P([a({type:String})],_.prototype,"icon",2);P([a({type:Boolean,reflect:!0})],_.prototype,"disabled",2);P([a({type:Boolean})],_.prototype,"showSrLabel",2);P([a({type:String})],_.prototype,"srLabel",2);_=P([x("o-icon-button")],_);var ro=Object.defineProperty,so=Object.getOwnPropertyDescriptor,K=(o,t,e,n)=>{for(var i=n>1?void 0:n?so(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ro(t,e,i),i};let B=class extends
|
|
645
|
+
`;P([a({type:String,reflect:!0})],_.prototype,"bgstyle",2);P([a({type:String,reflect:!0})],_.prototype,"size",2);P([a({type:String,reflect:!0})],_.prototype,"status",2);P([a({type:String,reflect:!0})],_.prototype,"type",2);P([a({type:String})],_.prototype,"strokewidth",2);P([a({type:String})],_.prototype,"icon",2);P([a({type:Boolean,reflect:!0})],_.prototype,"disabled",2);P([a({type:Boolean})],_.prototype,"showSrLabel",2);P([a({type:String})],_.prototype,"srLabel",2);_=P([x("o-icon-button")],_);var ro=Object.defineProperty,so=Object.getOwnPropertyDescriptor,K=(o,t,e,n)=>{for(var i=n>1?void 0:n?so(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ro(t,e,i),i};let B=class extends v{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){const o=this.href||"#";return l`
|
|
646
646
|
<a
|
|
647
647
|
href="${o}"
|
|
648
648
|
target="${$(this.target||void 0)}"
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
></o-icon-button>
|
|
669
669
|
`:null}
|
|
670
670
|
</a>
|
|
671
|
-
`}};B.styles=
|
|
671
|
+
`}};B.styles=y`
|
|
672
672
|
:host([template="standard"]) a {
|
|
673
673
|
color: var(--color-content-action-secondary);
|
|
674
674
|
font-size: var(--font-size-200);
|
|
@@ -755,14 +755,14 @@
|
|
|
755
755
|
height: 1px;
|
|
756
756
|
}
|
|
757
757
|
/* End of underline effect */
|
|
758
|
-
`;K([a({type:String})],B.prototype,"href",2);K([a({type:String})],B.prototype,"target",2);K([a({type:String,reflect:!0})],B.prototype,"template",2);K([a({type:Boolean,reflect:!0})],B.prototype,"inverse",2);K([a({type:Boolean,reflect:!0})],B.prototype,"endIcon",2);K([a({type:Boolean,reflect:!0})],B.prototype,"reverseEndIcon",2);B=K([x("o-link")],B);var ao=Object.defineProperty,lo=Object.getOwnPropertyDescriptor,mt=(o,t,e,n)=>{for(var i=n>1?void 0:n?lo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ao(t,e,i),i};let Q=class extends
|
|
758
|
+
`;K([a({type:String})],B.prototype,"href",2);K([a({type:String})],B.prototype,"target",2);K([a({type:String,reflect:!0})],B.prototype,"template",2);K([a({type:Boolean,reflect:!0})],B.prototype,"inverse",2);K([a({type:Boolean,reflect:!0})],B.prototype,"endIcon",2);K([a({type:Boolean,reflect:!0})],B.prototype,"reverseEndIcon",2);B=K([x("o-link")],B);var ao=Object.defineProperty,lo=Object.getOwnPropertyDescriptor,mt=(o,t,e,n)=>{for(var i=n>1?void 0:n?lo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ao(t,e,i),i};let Q=class extends v{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let n;e>=1?n=100:e<=0?n=0:n=Math.round(e*100/25)*25,o.push(`star-${n}`)}return o}render(){const o=this.getStarKeys();return l`
|
|
759
759
|
<div class="rating">
|
|
760
760
|
<div class="stars">
|
|
761
761
|
${o.map(t=>l`<span class="star">${S(W[t]??"")}</span>`)}
|
|
762
762
|
</div>
|
|
763
763
|
${this.reviewCount!=null&&this.href!=null?l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
|
|
764
764
|
</div>
|
|
765
|
-
`}};Q.styles=
|
|
765
|
+
`}};Q.styles=y`
|
|
766
766
|
svg {
|
|
767
767
|
width: 12px;
|
|
768
768
|
height: 12px;
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
* @license
|
|
804
804
|
* Copyright 2017 Google LLC
|
|
805
805
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
806
|
-
*/const ot=(o,t)=>{var n;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(n=i._$AO)==null||n.call(i,t,!1),ot(i,t);return!0},bt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},ne=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),uo(t)}};function ho(o){this._$AN!==void 0?(bt(this),this._$AM=o,ne(this)):this._$AM=o}function po(o,t=!1,e=0){const n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let r=e;r<n.length;r++)ot(n[r],!1),bt(n[r]);else n!=null&&(ot(n,!1),bt(n));else ot(this,o)}const uo=o=>{o.type==zt.CHILD&&(o._$AP??(o._$AP=po),o._$AQ??(o._$AQ=ho))};class vo extends Ht{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),ne(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,i;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(i=this.disconnected)==null||i.call(this)),e&&(ot(this,t),bt(this))}setValue(t){if(co(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class bo extends vo{constructor(){super(...arguments),this.prevData={}}render(t){return d}update(t,[e]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(e),this.groom(e),this.prevData={...e}}apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];r!==e[i]&&(n[i]=r)}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&(n[i]=void 0)}}class fo extends bo{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const e in t){const n=t[e];n!==this.eventData[e]&&this.applyEvent(e,n)}}applyEvent(t,e){const{prevData:n,element:i}=this;this.eventData[t]=e,n[t]&&i.removeEventListener(t,this,e),i.addEventListener(t,this,e)}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&this.groomEvent(i,e[i])}groomEvent(t,e){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,e)}handleEvent(t){const e=this.eventData[t.type];typeof e=="function"?e.call(this.host,t):e.handleEvent(t)}disconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.removeEventListener(i,this,r)}}reconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.addEventListener(i,this,r)}}}class go extends fo{apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];if(r===e[i])continue;const s=i.slice(1);switch(i[0]){case"@":this.eventData[s]=r,this.applyEvent(s,r);break;case".":n[s]=r;break;case"?":r?n.setAttribute(s,""):n.removeAttribute(s);break;default:r!=null?n.setAttribute(i,String(r)):n.removeAttribute(i);break}}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e){const r=i.slice(1);if(!t||!(i in t)&&n[r]===e[i])switch(i[0]){case"@":this.groomEvent(r,e[i]);break;case".":n[r]=void 0;break;case"?":n.removeAttribute(r);break;default:n.removeAttribute(i);break}}}}const Jt=Dt(go);var yo=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,
|
|
806
|
+
*/const ot=(o,t)=>{var n;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(n=i._$AO)==null||n.call(i,t,!1),ot(i,t);return!0},bt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},ne=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),uo(t)}};function ho(o){this._$AN!==void 0?(bt(this),this._$AM=o,ne(this)):this._$AM=o}function po(o,t=!1,e=0){const n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let r=e;r<n.length;r++)ot(n[r],!1),bt(n[r]);else n!=null&&(ot(n,!1),bt(n));else ot(this,o)}const uo=o=>{o.type==zt.CHILD&&(o._$AP??(o._$AP=po),o._$AQ??(o._$AQ=ho))};class vo extends Ht{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),ne(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,i;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(i=this.disconnected)==null||i.call(this)),e&&(ot(this,t),bt(this))}setValue(t){if(co(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class bo extends vo{constructor(){super(...arguments),this.prevData={}}render(t){return d}update(t,[e]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(e),this.groom(e),this.prevData={...e}}apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];r!==e[i]&&(n[i]=r)}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&(n[i]=void 0)}}class fo extends bo{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const e in t){const n=t[e];n!==this.eventData[e]&&this.applyEvent(e,n)}}applyEvent(t,e){const{prevData:n,element:i}=this;this.eventData[t]=e,n[t]&&i.removeEventListener(t,this,e),i.addEventListener(t,this,e)}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&this.groomEvent(i,e[i])}groomEvent(t,e){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,e)}handleEvent(t){const e=this.eventData[t.type];typeof e=="function"?e.call(this.host,t):e.handleEvent(t)}disconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.removeEventListener(i,this,r)}}reconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.addEventListener(i,this,r)}}}class go extends fo{apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];if(r===e[i])continue;const s=i.slice(1);switch(i[0]){case"@":this.eventData[s]=r,this.applyEvent(s,r);break;case".":n[s]=r;break;case"?":r?n.setAttribute(s,""):n.removeAttribute(s);break;default:r!=null?n.setAttribute(i,String(r)):n.removeAttribute(i);break}}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e){const r=i.slice(1);if(!t||!(i in t)&&n[r]===e[i])switch(i[0]){case"@":this.groomEvent(r,e[i]);break;case".":n[r]=void 0;break;case"?":n.removeAttribute(r);break;default:n.removeAttribute(i);break}}}}const Jt=Dt(go);var yo=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,f=(o,t,e,n)=>{for(var i=n>1?void 0:n?mo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&yo(t,e,i),i};let u=class extends v{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.closeButtonLabel="Close the modal",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.firstButtonProps={},this.onFirstButtonClickClose=!1,this.secondButtonLabel="",this.secondButtonVariant="secondary",this.secondButtonProps={},this.onSecondButtonClickClose=!1,this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.previousFocusedElement=null,this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))},this.handleClosePanel=o=>{o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.closePanel())}}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(()=>{var o,t;if(this.showHeader)(t=(o=this.shadowRoot)==null?void 0:o.querySelector(".panel"))==null||t.focus();else{const e=this.getFocusableElements()[0];e==null||e.focus()}}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}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(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("click",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:o.target}})))}handleSecondClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("click",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:o.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`)}render(){return l`
|
|
807
807
|
<div class="overlay" style="z-index: ${this.zIndex}" @click=${this.handleClosePanel}></div>
|
|
808
808
|
<div
|
|
809
809
|
class="panel"
|
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
${this.showHeaderStartIcon?l`
|
|
820
820
|
<o-icon-button icon="arrowLeft" size="small" class="return-btn" bgstyle="background-light" @click=${this.handleClosePanel} @keydown=${this.handleClosePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
821
821
|
`:null}
|
|
822
|
-
<h2 id="panel-title" class="
|
|
822
|
+
<h2 id="panel-title" class="${this.headerTitleClassName}">${this.headerTitle}</h2>
|
|
823
823
|
<o-icon-button icon="cross" size="small" class="close-btn" bgstyle="background-light" @click=${this.handleClosePanel} @keydown=${this.handleClosePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
824
824
|
</div>
|
|
825
825
|
`:null}
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
</div>
|
|
855
855
|
`:null}
|
|
856
856
|
</div>
|
|
857
|
-
`}};
|
|
857
|
+
`}};u.styles=y`
|
|
858
858
|
:host {
|
|
859
859
|
--z-overlay: 99;
|
|
860
860
|
--z-panel: 100;
|
|
@@ -1002,7 +1002,7 @@
|
|
|
1002
1002
|
--line-height: var(--line-height-280);
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
|
-
`;
|
|
1005
|
+
`;f([a({type:Boolean,reflect:!0})],u.prototype,"open",2);f([a({type:Boolean,reflect:!0})],u.prototype,"showHeader",2);f([a({type:Boolean,reflect:!0})],u.prototype,"showFooter",2);f([a({type:Boolean,reflect:!0})],u.prototype,"showHeaderStartIcon",2);f([a({type:String,reflect:!0})],u.prototype,"headerTitle",2);f([a({type:String,reflect:!0})],u.prototype,"headerTitleClassName",2);f([a({type:String,reflect:!0})],u.prototype,"closeButtonLabel",2);f([a({type:String,reflect:!0})],u.prototype,"firstButtonLabel",2);f([a({type:String,reflect:!0})],u.prototype,"firstButtonVariant",2);f([a({type:Object,reflect:!0})],u.prototype,"firstButtonProps",2);f([a({type:Boolean,reflect:!0})],u.prototype,"onFirstButtonClickClose",2);f([a({type:String,reflect:!0})],u.prototype,"secondButtonLabel",2);f([a({type:String,reflect:!0})],u.prototype,"secondButtonVariant",2);f([a({type:Object,reflect:!0})],u.prototype,"secondButtonProps",2);f([a({type:Boolean,reflect:!0})],u.prototype,"onSecondButtonClickClose",2);f([a({type:Boolean,reflect:!0})],u.prototype,"disablePortal",2);f([a({type:Number,reflect:!0})],u.prototype,"zIndex",2);f([a({type:Boolean,reflect:!0})],u.prototype,"initialized",2);u=f([x("o-side-panel")],u);var xo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,U=(o,t,e,n)=>{for(var i=n>1?void 0:n?wo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&xo(t,e,i),i};let L=class extends v{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
|
|
1006
1006
|
<o-icon-button
|
|
1007
1007
|
icon="playerv"
|
|
1008
1008
|
size="xsmall"
|
|
@@ -1033,7 +1033,7 @@
|
|
|
1033
1033
|
</li>
|
|
1034
1034
|
`})}
|
|
1035
1035
|
</ul>
|
|
1036
|
-
`}};L.styles=
|
|
1036
|
+
`}};L.styles=y`
|
|
1037
1037
|
:host {
|
|
1038
1038
|
display: flex;
|
|
1039
1039
|
gap: 5px;
|
|
@@ -1138,9 +1138,9 @@
|
|
|
1138
1138
|
height: 0;
|
|
1139
1139
|
width: 0;
|
|
1140
1140
|
}
|
|
1141
|
-
`;
|
|
1141
|
+
`;U([a({type:Array})],L.prototype,"thumbnails",2);U([a({type:Number})],L.prototype,"activeIndex",2);U([a({type:Array})],L.prototype,"disabledIndexes",2);U([a({type:String})],L.prototype,"maxWidth",2);U([a({type:String})],L.prototype,"altressource",2);U([a({type:Object})],L.prototype,"swiperInstance",2);U([q()],L.prototype,"focusedIndex",2);L=U([x("thumbnail-navigation")],L);var $o=Object.defineProperty,_o=Object.getOwnPropertyDescriptor,Mt=(o,t,e,n)=>{for(var i=n>1?void 0:n?_o(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&$o(t,e,i),i};let st=class extends v{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
|
|
1142
1142
|
<span class="tag ${this.bgstyle}"><slot></slot></span>
|
|
1143
|
-
`}};st.styles=
|
|
1143
|
+
`}};st.styles=y`
|
|
1144
1144
|
.tag {
|
|
1145
1145
|
display: inline-block;
|
|
1146
1146
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -1195,12 +1195,12 @@
|
|
|
1195
1195
|
background-color: var(--color-content-success);
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
|
-
`;Mt([a({type:String,reflect:!0})],st.prototype,"type",2);Mt([a({type:String,reflect:!0})],st.prototype,"bgstyle",2);st=Mt([x("o-tag")],st);var Co=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,Tt=(o,t,e,n)=>{for(var i=n>1?void 0:n?ko(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Co(t,e,i),i};let at=class extends
|
|
1198
|
+
`;Mt([a({type:String,reflect:!0})],st.prototype,"type",2);Mt([a({type:String,reflect:!0})],st.prototype,"bgstyle",2);st=Mt([x("o-tag")],st);var Co=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,Tt=(o,t,e,n)=>{for(var i=n>1?void 0:n?ko(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Co(t,e,i),i};let at=class extends v{constructor(){super(...arguments),this.type="top",this.text=""}render(){return l`
|
|
1199
1199
|
<div class="tooltip">
|
|
1200
1200
|
<span class="tooltiptext">${this.text}</span>
|
|
1201
1201
|
<slot></slot>
|
|
1202
1202
|
</div>
|
|
1203
|
-
`}};at.styles=
|
|
1203
|
+
`}};at.styles=y`
|
|
1204
1204
|
.tooltip {
|
|
1205
1205
|
position: relative;
|
|
1206
1206
|
display: inline-block;
|
|
@@ -1292,7 +1292,7 @@
|
|
|
1292
1292
|
border-color: transparent var(--color-alpha-dark-strongest) transparent transparent;
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
|
-
`;Tt([a({type:String,reflect:!0})],at.prototype,"type",2);Tt([a({type:String,reflect:!0})],at.prototype,"text",2);at=Tt([x("o-tooltip")],at);var Ao=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,z=(o,t,e,n)=>{for(var i=n>1?void 0:n?Eo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ao(t,e,i),i};let A=class extends
|
|
1295
|
+
`;Tt([a({type:String,reflect:!0})],at.prototype,"type",2);Tt([a({type:String,reflect:!0})],at.prototype,"text",2);at=Tt([x("o-tooltip")],at);var Ao=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,z=(o,t,e,n)=>{for(var i=n>1?void 0:n?Eo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ao(t,e,i),i};let A=class extends v{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>{this._focusActiveOption()})}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(o){this.options.length>0&&(this.options.some(e=>e.value===this.value)||(this.value=this.options[0].value))}render(){const o=W.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1296
1296
|
<button
|
|
1297
1297
|
role="combobox"
|
|
1298
1298
|
aria-haspopup="listbox"
|
|
@@ -1340,7 +1340,7 @@
|
|
|
1340
1340
|
</ul>`:null}
|
|
1341
1341
|
|
|
1342
1342
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1343
|
-
`}};A.styles=
|
|
1343
|
+
`}};A.styles=y`
|
|
1344
1344
|
:host {
|
|
1345
1345
|
display: inline-block;
|
|
1346
1346
|
position: relative;
|
|
@@ -1479,7 +1479,7 @@
|
|
|
1479
1479
|
input[type="hidden"] {
|
|
1480
1480
|
display: none;
|
|
1481
1481
|
}
|
|
1482
|
-
`;z([a({type:Array,reflect:!0})],A.prototype,"options",2);z([a({type:String,reflect:!0})],A.prototype,"value",2);z([a({type:String,reflect:!0})],A.prototype,"name",2);z([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2);z([a({type:String,reflect:!0})],A.prototype,"width",2);z([q()],A.prototype,"open",2);z([q()],A.prototype,"activeIndex",2);z([q()],A.prototype,"menuWidth",2);A=z([x("o-dropdown")],A);var So=Object.getOwnPropertyDescriptor,Lo=(o,t,e,n)=>{for(var i=n>1?void 0:n?So(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(i)||i);return i};let Et=class extends
|
|
1482
|
+
`;z([a({type:Array,reflect:!0})],A.prototype,"options",2);z([a({type:String,reflect:!0})],A.prototype,"value",2);z([a({type:String,reflect:!0})],A.prototype,"name",2);z([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2);z([a({type:String,reflect:!0})],A.prototype,"width",2);z([q()],A.prototype,"open",2);z([q()],A.prototype,"activeIndex",2);z([q()],A.prototype,"menuWidth",2);A=z([x("o-dropdown")],A);var So=Object.getOwnPropertyDescriptor,Lo=(o,t,e,n)=>{for(var i=n>1?void 0:n?So(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(i)||i);return i};let Et=class extends v{render(){return l` <span class="dots"></span> `}};Et.styles=y`
|
|
1483
1483
|
:host {
|
|
1484
1484
|
display: flex;
|
|
1485
1485
|
align-items: center;
|
|
@@ -1530,7 +1530,7 @@
|
|
|
1530
1530
|
background-color: var(--color-container-action-primary-pressed);
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
|
-
`;Et=Lo([x("o-dots")],Et);var Po=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,I=(o,t,e,n)=>{for(var i=n>1?void 0:n?Io(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Po(t,e,i),i};let C=class extends
|
|
1533
|
+
`;Et=Lo([x("o-dots")],Et);var Po=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,I=(o,t,e,n)=>{for(var i=n>1?void 0:n?Io(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Po(t,e,i),i};let C=class extends v{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.additionaltext="+X variant(s)",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>this._focusActiveOption())}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(){this.options.length>0&&(this.options.some(t=>t.value===this.value)||(this.value=this.options[0].value))}render(){const o=W.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1534
1534
|
<button
|
|
1535
1535
|
role="combobox"
|
|
1536
1536
|
aria-haspopup="listbox"
|
|
@@ -1592,7 +1592,7 @@
|
|
|
1592
1592
|
</ul>`:null}
|
|
1593
1593
|
|
|
1594
1594
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1595
|
-
`}};C.styles=
|
|
1595
|
+
`}};C.styles=y`
|
|
1596
1596
|
:host {
|
|
1597
1597
|
display: inline-block;
|
|
1598
1598
|
position: relative;
|
|
@@ -1771,13 +1771,13 @@
|
|
|
1771
1771
|
* @license
|
|
1772
1772
|
* Copyright 2018 Google LLC
|
|
1773
1773
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1774
|
-
*/const re="important",Oo=" !"+re,Bo=Dt(class extends Ht{constructor(o){var t;if(super(o),o.type!==zt.ATTRIBUTE||o.name!=="style"||((t=o.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{const n=o[e];return n==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[t]){const{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?e.removeProperty(n):e[n]=null);for(const n in t){const i=t[n];if(i!=null){this.ft.add(n);const r=typeof i=="string"&&i.endsWith(Oo);n.includes("-")||r?e.setProperty(n,r?i.slice(0,-11):i,r?re:""):e[n]=i}}return
|
|
1774
|
+
*/const re="important",Oo=" !"+re,Bo=Dt(class extends Ht{constructor(o){var t;if(super(o),o.type!==zt.ATTRIBUTE||o.name!=="style"||((t=o.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{const n=o[e];return n==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[t]){const{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?e.removeProperty(n):e[n]=null);for(const n in t){const i=t[n];if(i!=null){this.ft.add(n);const r=typeof i=="string"&&i.endsWith(Oo);n.includes("-")||r?e.setProperty(n,r?i.slice(0,-11):i,r?re:""):e[n]=i}}return N}});var zo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,jt=(o,t,e,n)=>{for(var i=n>1?void 0:n?Do(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&zo(t,e,i),i};let lt=class extends v{constructor(){super(...arguments),this.option={},this.imageSize=64}render(){const o=this.option.clickable,t={width:`${this.imageSize}px`,height:`${this.imageSize}px`},e=l`
|
|
1775
1775
|
${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${Bo(t)} />`:""}
|
|
1776
1776
|
<div class="m-reassurance-content">
|
|
1777
1777
|
<h3 class="a-reassurance-text">${$(this.option.title)}</h3>
|
|
1778
1778
|
<p class="a-reassurance-description">${$(this.option.description)}</p>
|
|
1779
1779
|
</div>
|
|
1780
|
-
`;return o?l`<a href="${$(this.option.url)}" class="reassurance-item clickable">${e}</a>`:l`<div class="reassurance-item">${e}</div>`}};lt.styles=
|
|
1780
|
+
`;return o?l`<a href="${$(this.option.url)}" class="reassurance-item clickable">${e}</a>`:l`<div class="reassurance-item">${e}</div>`}};lt.styles=y`
|
|
1781
1781
|
:host {
|
|
1782
1782
|
display: inline-block;
|
|
1783
1783
|
position: relative;
|
|
@@ -1858,7 +1858,7 @@
|
|
|
1858
1858
|
overflow: hidden;
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
1861
|
-
`;jt([a({type:Object,reflect:!0})],lt.prototype,"option",2);jt([a({type:Number,reflect:!0})],lt.prototype,"imageSize",2);lt=jt([x("o-reassurance")],lt);var Ho=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,D=(o,t,e,n)=>{for(var i=n>1?void 0:n?Mo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ho(t,e,i),i};const To=Bt(
|
|
1861
|
+
`;jt([a({type:Object,reflect:!0})],lt.prototype,"option",2);jt([a({type:Number,reflect:!0})],lt.prototype,"imageSize",2);lt=jt([x("o-reassurance")],lt);var Ho=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,D=(o,t,e,n)=>{for(var i=n>1?void 0:n?Mo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ho(t,e,i),i};const To=Bt(v);let k=class extends To{constructor(){super(...arguments),this.link="",this.name="",this.value="",this.text="",this.size="standard",this.selected=!1,this.fullwidth=!1,this.inactive=!1}handleClick(o){this.selected||(this.selected=!0);const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}render(){const o=this.text;return this.link?l`
|
|
1862
1862
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
|
|
1863
1863
|
${o?this.text:l`<slot></slot>`}
|
|
1864
1864
|
</a>
|
|
@@ -1867,7 +1867,7 @@
|
|
|
1867
1867
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
1868
1868
|
${o?this.text:l`<slot></slot>`}
|
|
1869
1869
|
</button>
|
|
1870
|
-
`}};k.styles=
|
|
1870
|
+
`}};k.styles=y`
|
|
1871
1871
|
:host {
|
|
1872
1872
|
cursor: pointer;
|
|
1873
1873
|
display: inline-flex;
|
|
@@ -1952,16 +1952,16 @@
|
|
|
1952
1952
|
display: inline-flex;
|
|
1953
1953
|
align-items: center;
|
|
1954
1954
|
}
|
|
1955
|
-
`;D([a({type:String,reflect:!0})],k.prototype,"link",2);D([a({reflect:!0})],k.prototype,"name",2);D([a({reflect:!0})],k.prototype,"value",2);D([a({type:String})],k.prototype,"text",2);D([a({type:String,reflect:!0})],k.prototype,"size",2);D([a({type:Boolean,reflect:!0})],k.prototype,"selected",2);D([a({type:Boolean,reflect:!0})],k.prototype,"fullwidth",2);D([a({type:Boolean,reflect:!0})],k.prototype,"inactive",2);k=D([x("o-chip")],k);var jo=Object.defineProperty,
|
|
1955
|
+
`;D([a({type:String,reflect:!0})],k.prototype,"link",2);D([a({reflect:!0})],k.prototype,"name",2);D([a({reflect:!0})],k.prototype,"value",2);D([a({type:String})],k.prototype,"text",2);D([a({type:String,reflect:!0})],k.prototype,"size",2);D([a({type:Boolean,reflect:!0})],k.prototype,"selected",2);D([a({type:Boolean,reflect:!0})],k.prototype,"fullwidth",2);D([a({type:Boolean,reflect:!0})],k.prototype,"inactive",2);k=D([x("o-chip")],k);var jo=Object.defineProperty,No=Object.getOwnPropertyDescriptor,Nt=(o,t,e,n)=>{for(var i=n>1?void 0:n?No(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&jo(t,e,i),i};let ct=class extends v{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof k?o.target:null;t!=null&&t.link||(this.name=(t==null?void 0:t.name)||"",this.value=(t==null?void 0:t.value)||"",this.querySelectorAll("o-chip").forEach(e=>{e!==t&&(e.selected=!1)}))}render(){return l`
|
|
1956
1956
|
<slot></slot>
|
|
1957
|
-
`}};ct.styles=
|
|
1957
|
+
`}};ct.styles=y`
|
|
1958
1958
|
:host {
|
|
1959
1959
|
display: flex;
|
|
1960
1960
|
flex-direction: row;
|
|
1961
1961
|
flex-wrap: wrap;
|
|
1962
1962
|
gap: var(--spacing-s);
|
|
1963
1963
|
}
|
|
1964
|
-
`;
|
|
1964
|
+
`;Nt([a({reflect:!0})],ct.prototype,"name",2);Nt([a({reflect:!0})],ct.prototype,"value",2);ct=Nt([x("o-chipset")],ct);var Uo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,H=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ro(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Uo(t,e,i),i};const Fo=Bt(v);let E=class extends Fo{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.dataHref="",this.text="",this.selected=!1,this.disabled=!1,this.fullwidth=!1,this.crossIconName="cross",this.strikethroughImgName="strikeDiagonal"}handleClick(o){if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;this.selected=!this.selected;const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}crossIcon(){const o=W[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${S(o)}</span>`}strikeThroughImg(){const o=Je[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return S(o)}render(){const o=this.text;return l`${this.type==="link"?l`
|
|
1965
1965
|
<a role="button" tabindex="0" class="button" href=${this.dataHref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
1966
1966
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
1967
1967
|
${o?l`
|
|
@@ -1981,7 +1981,7 @@
|
|
|
1981
1981
|
</button>
|
|
1982
1982
|
`}
|
|
1983
1983
|
${this.disabled?this.strikeThroughImg():d}
|
|
1984
|
-
`}};E.styles=
|
|
1984
|
+
`}};E.styles=y`
|
|
1985
1985
|
:host {
|
|
1986
1986
|
cursor: pointer;
|
|
1987
1987
|
display: inline-flex;
|
package/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const pt = globalThis, St = pt.ShadowRoot && (pt.ShadyCSS === void 0 || pt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Lt = Symbol(),
|
|
6
|
+
const pt = globalThis, St = pt.ShadowRoot && (pt.ShadyCSS === void 0 || pt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Lt = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let Yt = class {
|
|
8
8
|
constructor(t, e, n) {
|
|
9
9
|
if (this._$cssResult$ = !0, n !== Lt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -14,7 +14,7 @@ let Yt = class {
|
|
|
14
14
|
const e = this.t;
|
|
15
15
|
if (St && t === void 0) {
|
|
16
16
|
const n = e !== void 0 && e.length === 1;
|
|
17
|
-
n && (t =
|
|
17
|
+
n && (t = Ut.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Ut.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,7 +22,7 @@ let Yt = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const se = (o) => new Yt(typeof o == "string" ? o : o + "", void 0, Lt),
|
|
25
|
+
const se = (o) => new Yt(typeof o == "string" ? o : o + "", void 0, Lt), y = (o, ...t) => {
|
|
26
26
|
const e = o.length === 1 ? o[0] : t.reduce((n, i, r) => n + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
@@ -284,7 +284,7 @@ G.elementStyles = [], G.shadowRootOptions = { mode: "open" }, G[tt("elementPrope
|
|
|
284
284
|
*/
|
|
285
285
|
const et = globalThis, vt = et.trustedTypes, Zt = vt ? vt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, te = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, ee = "?" + T, be = `<${ee}>`, Z = document, it = () => Z.createComment(""), nt = (o) => o === null || typeof o != "object" && typeof o != "function", It = Array.isArray, fe = (o) => It(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", wt = `[
|
|
286
286
|
\f\r]`, Y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Wt = />/g, R = RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Gt = /"/g, oe = /^(?:script|style|textarea|title)$/i, ge = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = ge(1),
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Gt = /"/g, oe = /^(?:script|style|textarea|title)$/i, ge = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = ge(1), N = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), F = Z.createTreeWalker(Z, 129);
|
|
288
288
|
function ie(o, t) {
|
|
289
289
|
if (!It(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return Zt !== void 0 ? Zt.createHTML(t) : t;
|
|
@@ -294,10 +294,10 @@ const ye = (o, t) => {
|
|
|
294
294
|
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = Y;
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
296
|
const c = o[h];
|
|
297
|
-
let
|
|
298
|
-
for (; O < c.length && (s.lastIndex = O, m = s.exec(c), m !== null); ) O = s.lastIndex, s === Y ? m[1] === "!--" ? s = qt : m[1] !== void 0 ? s = Wt : m[2] !== void 0 ? (oe.test(m[2]) && (i = RegExp("</" + m[2], "g")), s = R) : m[3] !== void 0 && (s = R) : s === R ? m[0] === ">" ? (s = i ?? Y, p = -1) : m[1] === void 0 ? p = -2 : (p = s.lastIndex - m[2].length,
|
|
297
|
+
let g, m, p = -1, O = 0;
|
|
298
|
+
for (; O < c.length && (s.lastIndex = O, m = s.exec(c), m !== null); ) O = s.lastIndex, s === Y ? m[1] === "!--" ? s = qt : m[1] !== void 0 ? s = Wt : m[2] !== void 0 ? (oe.test(m[2]) && (i = RegExp("</" + m[2], "g")), s = R) : m[3] !== void 0 && (s = R) : s === R ? m[0] === ">" ? (s = i ?? Y, p = -1) : m[1] === void 0 ? p = -2 : (p = s.lastIndex - m[2].length, g = m[1], s = m[3] === void 0 ? R : m[3] === '"' ? Gt : Kt) : s === Gt || s === Kt ? s = R : s === qt || s === Wt ? s = Y : (s = R, i = void 0);
|
|
299
299
|
const M = s === R && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
-
r += s === Y ? c + be : p >= 0 ? (n.push(
|
|
300
|
+
r += s === Y ? c + be : p >= 0 ? (n.push(g), c.slice(0, p) + te + c.slice(p) + T + M) : c + T + (p === -2 ? h : M);
|
|
301
301
|
}
|
|
302
302
|
return [ie(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
@@ -306,8 +306,8 @@ class rt {
|
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let r = 0, s = 0;
|
|
309
|
-
const h = t.length - 1, c = this.parts, [
|
|
310
|
-
if (this.el = rt.createElement(
|
|
309
|
+
const h = t.length - 1, c = this.parts, [g, m] = ye(t, e);
|
|
310
|
+
if (this.el = rt.createElement(g, n), F.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const p = this.el.content.firstChild;
|
|
312
312
|
p.replaceWith(...p.childNodes);
|
|
313
313
|
}
|
|
@@ -340,7 +340,7 @@ class rt {
|
|
|
340
340
|
}
|
|
341
341
|
function X(o, t, e = o, n) {
|
|
342
342
|
var s, h;
|
|
343
|
-
if (t ===
|
|
343
|
+
if (t === N) return t;
|
|
344
344
|
let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
345
345
|
const r = nt(t) ? void 0 : t._$litDirective$;
|
|
346
346
|
return (i == null ? void 0 : i.constructor) !== r && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), r === void 0 ? i = void 0 : (i = new r(o), i._$AT(o, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (t = X(o, i._$AS(o, t.values), i, n)), t;
|
|
@@ -361,8 +361,8 @@ class me {
|
|
|
361
361
|
let r = F.nextNode(), s = 0, h = 0, c = n[0];
|
|
362
362
|
for (; c !== void 0; ) {
|
|
363
363
|
if (s === c.index) {
|
|
364
|
-
let
|
|
365
|
-
c.type === 2 ?
|
|
364
|
+
let g;
|
|
365
|
+
c.type === 2 ? g = new ht(r, r.nextSibling, this, t) : c.type === 1 ? g = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (g = new _e(r, this, t)), this._$AV.push(g), c = n[++h];
|
|
366
366
|
}
|
|
367
367
|
s !== (c == null ? void 0 : c.index) && (r = F.nextNode(), s++);
|
|
368
368
|
}
|
|
@@ -393,7 +393,7 @@ class ht {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = X(this, t, e), nt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !==
|
|
396
|
+
t = X(this, t, e), nt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== N && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : fe(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -449,11 +449,11 @@ class ft {
|
|
|
449
449
|
_$AI(t, e = this, n, i) {
|
|
450
450
|
const r = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (r === void 0) t = X(this, t, e, 0), s = !nt(t) || t !== this._$AH && t !==
|
|
452
|
+
if (r === void 0) t = X(this, t, e, 0), s = !nt(t) || t !== this._$AH && t !== N, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const h = t;
|
|
455
|
-
let c,
|
|
456
|
-
for (t = r[0], c = 0; c < r.length - 1; c++)
|
|
455
|
+
let c, g;
|
|
456
|
+
for (t = r[0], c = 0; c < r.length - 1; c++) g = X(this, h[n + c], e, c), g === N && (g = this._$AH[c]), s || (s = !nt(g) || g !== this._$AH[c]), g === d ? t = d : t !== d && (t += (g ?? "") + r[c + 1]), this._$AH[c] = g;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -482,7 +482,7 @@ class $e extends ft {
|
|
|
482
482
|
super(t, e, n, i, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t = X(this, t, e, 0) ?? d) ===
|
|
485
|
+
if ((t = X(this, t, e, 0) ?? d) === N) return;
|
|
486
486
|
const n = this._$AH, i = t === d && n !== d || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== d && (n === d || i);
|
|
487
487
|
i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
@@ -519,7 +519,7 @@ const Ce = (o, t, e) => {
|
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
521
|
const V = globalThis;
|
|
522
|
-
let
|
|
522
|
+
let v = class extends G {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -541,13 +541,13 @@ let u = class extends G {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return N;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var Qt;
|
|
548
|
-
|
|
548
|
+
v._$litElement$ = !0, v.finalized = !0, (Qt = V.litElementHydrateSupport) == null || Qt.call(V, { LitElement: v });
|
|
549
549
|
const _t = V.litElementPolyfillSupport;
|
|
550
|
-
_t == null || _t({ LitElement:
|
|
550
|
+
_t == null || _t({ LitElement: v });
|
|
551
551
|
(V.litElementVersions ?? (V.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
@@ -599,12 +599,12 @@ function a(o) {
|
|
|
599
599
|
function q(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
|
-
const gt =
|
|
602
|
+
const gt = y`
|
|
603
603
|
outline: 1px dashed var(--button-border-color);
|
|
604
604
|
outline-offset: 2px;
|
|
605
605
|
outline: dashed black;
|
|
606
606
|
`;
|
|
607
|
-
|
|
607
|
+
y`
|
|
608
608
|
:host * {
|
|
609
609
|
box-sizing: border-box;
|
|
610
610
|
}
|
|
@@ -700,7 +700,7 @@ const Se = `<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
|
+
`, Ne = `<?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">
|
|
@@ -709,7 +709,7 @@ const Se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
709
709
|
</style>
|
|
710
710
|
<path class="st0" d="M38.8,20.5H1.2c-0.7,0-1.2-0.6-1.2-1.2S0.6,18,1.2,18h37.5c0.7,0,1.2,0.6,1.2,1.2S39.4,20.5,38.8,20.5z"/>
|
|
711
711
|
</svg>
|
|
712
|
-
`,
|
|
712
|
+
`, Ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
713
713
|
<path d="M15.0009 8.12175C15.0009 8.36347 14.805 8.55943 14.5634 8.55943H2.49495L7.43502 13.5017C7.60609 13.6726 7.60628 13.9499 7.43546 14.1211C7.26464 14.2922 6.98749 14.2924 6.81642 14.1215L1.13 8.43163C1.04685 8.34998 1 8.23831 1 8.12175C1 8.00518 1.04685 7.89351 1.13 7.81187L6.81642 2.12286C6.98808 1.95699 7.26094 1.95937 7.4297 2.12819C7.59845 2.29702 7.60082 2.57001 7.43502 2.74175L2.49495 7.68406H14.5634C14.805 7.68406 15.0009 7.88002 15.0009 8.12175Z" fill="#3F2B2E"/>
|
|
714
714
|
</svg>
|
|
715
715
|
`, Re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -745,7 +745,7 @@ const Se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
745
745
|
chevronRight: Pe,
|
|
746
746
|
chevronLeft: Ie,
|
|
747
747
|
icoPlus: je,
|
|
748
|
-
icoMinus:
|
|
748
|
+
icoMinus: Ne,
|
|
749
749
|
"star-0": Oe,
|
|
750
750
|
"star-25": Be,
|
|
751
751
|
"star-50": ze,
|
|
@@ -753,7 +753,7 @@ const Se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
753
753
|
"star-100": He,
|
|
754
754
|
cross: Me,
|
|
755
755
|
search: Te,
|
|
756
|
-
arrowLeft:
|
|
756
|
+
arrowLeft: Ue,
|
|
757
757
|
arrowTop: Re,
|
|
758
758
|
cart: Fe,
|
|
759
759
|
notifyme: Ve,
|
|
@@ -798,7 +798,7 @@ class kt extends Ht {
|
|
|
798
798
|
}
|
|
799
799
|
render(t) {
|
|
800
800
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
801
|
-
if (t ===
|
|
801
|
+
if (t === N) return t;
|
|
802
802
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
803
803
|
if (t === this.it) return this._t;
|
|
804
804
|
this.it = t;
|
|
@@ -821,8 +821,8 @@ var Qe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, w = (o, t,
|
|
|
821
821
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
822
822
|
return n && i && Qe(t, e, i), i;
|
|
823
823
|
};
|
|
824
|
-
const to = Bt(
|
|
825
|
-
let
|
|
824
|
+
const to = Bt(v);
|
|
825
|
+
let b = class extends to {
|
|
826
826
|
constructor() {
|
|
827
827
|
super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "", this.endIconModel = "", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "", this.underlined = !1;
|
|
828
828
|
}
|
|
@@ -885,9 +885,9 @@ let v = class extends to {
|
|
|
885
885
|
`;
|
|
886
886
|
}
|
|
887
887
|
};
|
|
888
|
-
Ee(
|
|
889
|
-
|
|
890
|
-
|
|
888
|
+
Ee(b);
|
|
889
|
+
b.formAssociated = !0;
|
|
890
|
+
b.styles = y`
|
|
891
891
|
:host {
|
|
892
892
|
--button-border: transparent;
|
|
893
893
|
cursor: pointer;
|
|
@@ -1074,58 +1074,58 @@ v.styles = g`
|
|
|
1074
1074
|
`;
|
|
1075
1075
|
w([
|
|
1076
1076
|
a()
|
|
1077
|
-
],
|
|
1077
|
+
], b.prototype, "type", 2);
|
|
1078
1078
|
w([
|
|
1079
1079
|
a({ reflect: !0 })
|
|
1080
|
-
],
|
|
1080
|
+
], b.prototype, "value", 2);
|
|
1081
1081
|
w([
|
|
1082
1082
|
a({ type: String, reflect: !0 })
|
|
1083
|
-
],
|
|
1083
|
+
], b.prototype, "variant", 2);
|
|
1084
1084
|
w([
|
|
1085
1085
|
a({ type: String })
|
|
1086
|
-
],
|
|
1086
|
+
], b.prototype, "text", 2);
|
|
1087
1087
|
w([
|
|
1088
1088
|
a({ type: String })
|
|
1089
|
-
],
|
|
1089
|
+
], b.prototype, "textsecond", 2);
|
|
1090
1090
|
w([
|
|
1091
1091
|
a({ type: Boolean, reflect: !0 })
|
|
1092
|
-
],
|
|
1092
|
+
], b.prototype, "fullwidth", 2);
|
|
1093
1093
|
w([
|
|
1094
1094
|
a({ type: Boolean, reflect: !0 })
|
|
1095
|
-
],
|
|
1095
|
+
], b.prototype, "disabled", 2);
|
|
1096
1096
|
w([
|
|
1097
1097
|
a({ type: String, reflect: !0 })
|
|
1098
|
-
],
|
|
1098
|
+
], b.prototype, "startIconModel", 2);
|
|
1099
1099
|
w([
|
|
1100
1100
|
a({ type: String, reflect: !0 })
|
|
1101
|
-
],
|
|
1101
|
+
], b.prototype, "endIconModel", 2);
|
|
1102
1102
|
w([
|
|
1103
1103
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
1104
|
-
],
|
|
1104
|
+
], b.prototype, "startIcon", 2);
|
|
1105
1105
|
w([
|
|
1106
1106
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
1107
|
-
],
|
|
1107
|
+
], b.prototype, "endIcon", 2);
|
|
1108
1108
|
w([
|
|
1109
1109
|
a({ type: String, attribute: "paneltarget", reflect: !0 })
|
|
1110
|
-
],
|
|
1110
|
+
], b.prototype, "panelTarget", 2);
|
|
1111
1111
|
w([
|
|
1112
1112
|
a({ type: String })
|
|
1113
|
-
],
|
|
1113
|
+
], b.prototype, "href", 2);
|
|
1114
1114
|
w([
|
|
1115
1115
|
a({ type: String })
|
|
1116
|
-
],
|
|
1116
|
+
], b.prototype, "target", 2);
|
|
1117
1117
|
w([
|
|
1118
1118
|
a({ type: Boolean, reflect: !0 })
|
|
1119
|
-
],
|
|
1120
|
-
|
|
1119
|
+
], b.prototype, "underlined", 2);
|
|
1120
|
+
b = w([
|
|
1121
1121
|
x("o-button")
|
|
1122
|
-
],
|
|
1122
|
+
], b);
|
|
1123
1123
|
var eo = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, yt = (o, t, e, n) => {
|
|
1124
1124
|
for (var i = n > 1 ? void 0 : n ? oo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1125
1125
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1126
1126
|
return n && i && eo(t, e, i), i;
|
|
1127
1127
|
};
|
|
1128
|
-
let J = class extends
|
|
1128
|
+
let J = class extends v {
|
|
1129
1129
|
constructor() {
|
|
1130
1130
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
1131
1131
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -1166,7 +1166,7 @@ let J = class extends u {
|
|
|
1166
1166
|
this.label = o, this.requestUpdate();
|
|
1167
1167
|
}
|
|
1168
1168
|
};
|
|
1169
|
-
J.styles =
|
|
1169
|
+
J.styles = y`
|
|
1170
1170
|
:host {
|
|
1171
1171
|
display: inline-flex;
|
|
1172
1172
|
justify-content: center;
|
|
@@ -1255,7 +1255,7 @@ var io = Object.defineProperty, no = Object.getOwnPropertyDescriptor, P = (o, t,
|
|
|
1255
1255
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1256
1256
|
return n && i && io(t, e, i), i;
|
|
1257
1257
|
};
|
|
1258
|
-
let _ = class extends
|
|
1258
|
+
let _ = class extends v {
|
|
1259
1259
|
constructor() {
|
|
1260
1260
|
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 = "";
|
|
1261
1261
|
}
|
|
@@ -1286,7 +1286,7 @@ let _ = class extends u {
|
|
|
1286
1286
|
`;
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
|
-
_.styles =
|
|
1289
|
+
_.styles = y`
|
|
1290
1290
|
:host {
|
|
1291
1291
|
display: inline-flex;
|
|
1292
1292
|
justify-content: center;
|
|
@@ -1528,7 +1528,7 @@ var ro = Object.defineProperty, so = Object.getOwnPropertyDescriptor, K = (o, t,
|
|
|
1528
1528
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1529
1529
|
return n && i && ro(t, e, i), i;
|
|
1530
1530
|
};
|
|
1531
|
-
let B = class extends
|
|
1531
|
+
let B = class extends v {
|
|
1532
1532
|
constructor() {
|
|
1533
1533
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1534
1534
|
}
|
|
@@ -1566,7 +1566,7 @@ let B = class extends u {
|
|
|
1566
1566
|
`;
|
|
1567
1567
|
}
|
|
1568
1568
|
};
|
|
1569
|
-
B.styles =
|
|
1569
|
+
B.styles = y`
|
|
1570
1570
|
:host([template="standard"]) a {
|
|
1571
1571
|
color: var(--color-content-action-secondary);
|
|
1572
1572
|
font-size: var(--font-size-200);
|
|
@@ -1680,7 +1680,7 @@ var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, mt = (o, t
|
|
|
1680
1680
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1681
1681
|
return n && i && ao(t, e, i), i;
|
|
1682
1682
|
};
|
|
1683
|
-
let Q = class extends
|
|
1683
|
+
let Q = class extends v {
|
|
1684
1684
|
constructor() {
|
|
1685
1685
|
super(...arguments), this.rating = 0;
|
|
1686
1686
|
}
|
|
@@ -1707,7 +1707,7 @@ let Q = class extends u {
|
|
|
1707
1707
|
`;
|
|
1708
1708
|
}
|
|
1709
1709
|
};
|
|
1710
|
-
Q.styles =
|
|
1710
|
+
Q.styles = y`
|
|
1711
1711
|
svg {
|
|
1712
1712
|
width: 12px;
|
|
1713
1713
|
height: 12px;
|
|
@@ -1940,14 +1940,14 @@ class go extends fo {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
const Jt = Dt(go);
|
|
1943
|
-
var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor,
|
|
1943
|
+
var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, f = (o, t, e, n) => {
|
|
1944
1944
|
for (var i = n > 1 ? void 0 : n ? mo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1945
1945
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1946
1946
|
return n && i && yo(t, e, i), i;
|
|
1947
1947
|
};
|
|
1948
|
-
let
|
|
1948
|
+
let u = class extends v {
|
|
1949
1949
|
constructor() {
|
|
1950
|
-
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.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (o) => {
|
|
1950
|
+
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (o) => {
|
|
1951
1951
|
this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
|
|
1952
1952
|
}, this.handleClosePanel = (o) => {
|
|
1953
1953
|
o instanceof KeyboardEvent && o.key !== "Enter" && o.key !== " " || (o.preventDefault(), o.stopPropagation(), this.closePanel());
|
|
@@ -2040,7 +2040,7 @@ let b = class extends u {
|
|
|
2040
2040
|
${this.showHeaderStartIcon ? l`
|
|
2041
2041
|
<o-icon-button icon="arrowLeft" size="small" class="return-btn" bgstyle="background-light" @click=${this.handleClosePanel} @keydown=${this.handleClosePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
2042
2042
|
` : null}
|
|
2043
|
-
<h2 id="panel-title" class="
|
|
2043
|
+
<h2 id="panel-title" class="${this.headerTitleClassName}">${this.headerTitle}</h2>
|
|
2044
2044
|
<o-icon-button icon="cross" size="small" class="close-btn" bgstyle="background-light" @click=${this.handleClosePanel} @keydown=${this.handleClosePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
2045
2045
|
</div>
|
|
2046
2046
|
` : null}
|
|
@@ -2078,7 +2078,7 @@ let b = class extends u {
|
|
|
2078
2078
|
`;
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
|
-
|
|
2081
|
+
u.styles = y`
|
|
2082
2082
|
:host {
|
|
2083
2083
|
--z-overlay: 99;
|
|
2084
2084
|
--z-panel: 100;
|
|
@@ -2227,66 +2227,69 @@ b.styles = g`
|
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
2229
|
`;
|
|
2230
|
-
|
|
2230
|
+
f([
|
|
2231
2231
|
a({ type: Boolean, reflect: !0 })
|
|
2232
|
-
],
|
|
2233
|
-
|
|
2232
|
+
], u.prototype, "open", 2);
|
|
2233
|
+
f([
|
|
2234
2234
|
a({ type: Boolean, reflect: !0 })
|
|
2235
|
-
],
|
|
2236
|
-
|
|
2235
|
+
], u.prototype, "showHeader", 2);
|
|
2236
|
+
f([
|
|
2237
2237
|
a({ type: Boolean, reflect: !0 })
|
|
2238
|
-
],
|
|
2239
|
-
|
|
2238
|
+
], u.prototype, "showFooter", 2);
|
|
2239
|
+
f([
|
|
2240
2240
|
a({ type: Boolean, reflect: !0 })
|
|
2241
|
-
],
|
|
2242
|
-
|
|
2241
|
+
], u.prototype, "showHeaderStartIcon", 2);
|
|
2242
|
+
f([
|
|
2243
|
+
a({ type: String, reflect: !0 })
|
|
2244
|
+
], u.prototype, "headerTitle", 2);
|
|
2245
|
+
f([
|
|
2243
2246
|
a({ type: String, reflect: !0 })
|
|
2244
|
-
],
|
|
2245
|
-
|
|
2247
|
+
], u.prototype, "headerTitleClassName", 2);
|
|
2248
|
+
f([
|
|
2246
2249
|
a({ type: String, reflect: !0 })
|
|
2247
|
-
],
|
|
2248
|
-
|
|
2250
|
+
], u.prototype, "closeButtonLabel", 2);
|
|
2251
|
+
f([
|
|
2249
2252
|
a({ type: String, reflect: !0 })
|
|
2250
|
-
],
|
|
2251
|
-
|
|
2253
|
+
], u.prototype, "firstButtonLabel", 2);
|
|
2254
|
+
f([
|
|
2252
2255
|
a({ type: String, reflect: !0 })
|
|
2253
|
-
],
|
|
2254
|
-
|
|
2256
|
+
], u.prototype, "firstButtonVariant", 2);
|
|
2257
|
+
f([
|
|
2255
2258
|
a({ type: Object, reflect: !0 })
|
|
2256
|
-
],
|
|
2257
|
-
|
|
2259
|
+
], u.prototype, "firstButtonProps", 2);
|
|
2260
|
+
f([
|
|
2258
2261
|
a({ type: Boolean, reflect: !0 })
|
|
2259
|
-
],
|
|
2260
|
-
|
|
2262
|
+
], u.prototype, "onFirstButtonClickClose", 2);
|
|
2263
|
+
f([
|
|
2261
2264
|
a({ type: String, reflect: !0 })
|
|
2262
|
-
],
|
|
2263
|
-
|
|
2265
|
+
], u.prototype, "secondButtonLabel", 2);
|
|
2266
|
+
f([
|
|
2264
2267
|
a({ type: String, reflect: !0 })
|
|
2265
|
-
],
|
|
2266
|
-
|
|
2268
|
+
], u.prototype, "secondButtonVariant", 2);
|
|
2269
|
+
f([
|
|
2267
2270
|
a({ type: Object, reflect: !0 })
|
|
2268
|
-
],
|
|
2269
|
-
|
|
2271
|
+
], u.prototype, "secondButtonProps", 2);
|
|
2272
|
+
f([
|
|
2270
2273
|
a({ type: Boolean, reflect: !0 })
|
|
2271
|
-
],
|
|
2272
|
-
|
|
2274
|
+
], u.prototype, "onSecondButtonClickClose", 2);
|
|
2275
|
+
f([
|
|
2273
2276
|
a({ type: Boolean, reflect: !0 })
|
|
2274
|
-
],
|
|
2275
|
-
|
|
2277
|
+
], u.prototype, "disablePortal", 2);
|
|
2278
|
+
f([
|
|
2276
2279
|
a({ type: Number, reflect: !0 })
|
|
2277
|
-
],
|
|
2278
|
-
|
|
2280
|
+
], u.prototype, "zIndex", 2);
|
|
2281
|
+
f([
|
|
2279
2282
|
a({ type: Boolean, reflect: !0 })
|
|
2280
|
-
],
|
|
2281
|
-
|
|
2283
|
+
], u.prototype, "initialized", 2);
|
|
2284
|
+
u = f([
|
|
2282
2285
|
x("o-side-panel")
|
|
2283
|
-
],
|
|
2284
|
-
var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor,
|
|
2286
|
+
], u);
|
|
2287
|
+
var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, U = (o, t, e, n) => {
|
|
2285
2288
|
for (var i = n > 1 ? void 0 : n ? wo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2286
2289
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2287
2290
|
return n && i && xo(t, e, i), i;
|
|
2288
2291
|
};
|
|
2289
|
-
let L = class extends
|
|
2292
|
+
let L = class extends v {
|
|
2290
2293
|
constructor() {
|
|
2291
2294
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2292
2295
|
<o-icon-button
|
|
@@ -2363,7 +2366,7 @@ let L = class extends u {
|
|
|
2363
2366
|
`;
|
|
2364
2367
|
}
|
|
2365
2368
|
};
|
|
2366
|
-
L.styles =
|
|
2369
|
+
L.styles = y`
|
|
2367
2370
|
:host {
|
|
2368
2371
|
display: flex;
|
|
2369
2372
|
gap: 5px;
|
|
@@ -2469,28 +2472,28 @@ L.styles = g`
|
|
|
2469
2472
|
width: 0;
|
|
2470
2473
|
}
|
|
2471
2474
|
`;
|
|
2472
|
-
|
|
2475
|
+
U([
|
|
2473
2476
|
a({ type: Array })
|
|
2474
2477
|
], L.prototype, "thumbnails", 2);
|
|
2475
|
-
|
|
2478
|
+
U([
|
|
2476
2479
|
a({ type: Number })
|
|
2477
2480
|
], L.prototype, "activeIndex", 2);
|
|
2478
|
-
|
|
2481
|
+
U([
|
|
2479
2482
|
a({ type: Array })
|
|
2480
2483
|
], L.prototype, "disabledIndexes", 2);
|
|
2481
|
-
|
|
2484
|
+
U([
|
|
2482
2485
|
a({ type: String })
|
|
2483
2486
|
], L.prototype, "maxWidth", 2);
|
|
2484
|
-
|
|
2487
|
+
U([
|
|
2485
2488
|
a({ type: String })
|
|
2486
2489
|
], L.prototype, "altressource", 2);
|
|
2487
|
-
|
|
2490
|
+
U([
|
|
2488
2491
|
a({ type: Object })
|
|
2489
2492
|
], L.prototype, "swiperInstance", 2);
|
|
2490
|
-
|
|
2493
|
+
U([
|
|
2491
2494
|
q()
|
|
2492
2495
|
], L.prototype, "focusedIndex", 2);
|
|
2493
|
-
L =
|
|
2496
|
+
L = U([
|
|
2494
2497
|
x("thumbnail-navigation")
|
|
2495
2498
|
], L);
|
|
2496
2499
|
var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Mt = (o, t, e, n) => {
|
|
@@ -2498,7 +2501,7 @@ var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Mt = (o, t
|
|
|
2498
2501
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2499
2502
|
return n && i && $o(t, e, i), i;
|
|
2500
2503
|
};
|
|
2501
|
-
let st = class extends
|
|
2504
|
+
let st = class extends v {
|
|
2502
2505
|
constructor() {
|
|
2503
2506
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2504
2507
|
}
|
|
@@ -2508,7 +2511,7 @@ let st = class extends u {
|
|
|
2508
2511
|
`;
|
|
2509
2512
|
}
|
|
2510
2513
|
};
|
|
2511
|
-
st.styles =
|
|
2514
|
+
st.styles = y`
|
|
2512
2515
|
.tag {
|
|
2513
2516
|
display: inline-block;
|
|
2514
2517
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -2578,7 +2581,7 @@ var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, Tt = (o, t
|
|
|
2578
2581
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2579
2582
|
return n && i && Co(t, e, i), i;
|
|
2580
2583
|
};
|
|
2581
|
-
let at = class extends
|
|
2584
|
+
let at = class extends v {
|
|
2582
2585
|
constructor() {
|
|
2583
2586
|
super(...arguments), this.type = "top", this.text = "";
|
|
2584
2587
|
}
|
|
@@ -2591,7 +2594,7 @@ let at = class extends u {
|
|
|
2591
2594
|
`;
|
|
2592
2595
|
}
|
|
2593
2596
|
};
|
|
2594
|
-
at.styles =
|
|
2597
|
+
at.styles = y`
|
|
2595
2598
|
.tooltip {
|
|
2596
2599
|
position: relative;
|
|
2597
2600
|
display: inline-block;
|
|
@@ -2698,7 +2701,7 @@ var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, z = (o, t,
|
|
|
2698
2701
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2699
2702
|
return n && i && Ao(t, e, i), i;
|
|
2700
2703
|
};
|
|
2701
|
-
let A = class extends
|
|
2704
|
+
let A = class extends v {
|
|
2702
2705
|
constructor() {
|
|
2703
2706
|
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) => {
|
|
2704
2707
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2821,7 +2824,7 @@ let A = class extends u {
|
|
|
2821
2824
|
`;
|
|
2822
2825
|
}
|
|
2823
2826
|
};
|
|
2824
|
-
A.styles =
|
|
2827
|
+
A.styles = y`
|
|
2825
2828
|
:host {
|
|
2826
2829
|
display: inline-block;
|
|
2827
2830
|
position: relative;
|
|
@@ -2993,12 +2996,12 @@ var So = Object.getOwnPropertyDescriptor, Lo = (o, t, e, n) => {
|
|
|
2993
2996
|
(s = o[r]) && (i = s(i) || i);
|
|
2994
2997
|
return i;
|
|
2995
2998
|
};
|
|
2996
|
-
let Et = class extends
|
|
2999
|
+
let Et = class extends v {
|
|
2997
3000
|
render() {
|
|
2998
3001
|
return l` <span class="dots"></span> `;
|
|
2999
3002
|
}
|
|
3000
3003
|
};
|
|
3001
|
-
Et.styles =
|
|
3004
|
+
Et.styles = y`
|
|
3002
3005
|
:host {
|
|
3003
3006
|
display: flex;
|
|
3004
3007
|
align-items: center;
|
|
@@ -3058,7 +3061,7 @@ var Po = Object.defineProperty, Io = Object.getOwnPropertyDescriptor, I = (o, t,
|
|
|
3058
3061
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3059
3062
|
return n && i && Po(t, e, i), i;
|
|
3060
3063
|
};
|
|
3061
|
-
let C = class extends
|
|
3064
|
+
let C = class extends v {
|
|
3062
3065
|
constructor() {
|
|
3063
3066
|
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) => {
|
|
3064
3067
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3195,7 +3198,7 @@ let C = class extends u {
|
|
|
3195
3198
|
`;
|
|
3196
3199
|
}
|
|
3197
3200
|
};
|
|
3198
|
-
C.styles =
|
|
3201
|
+
C.styles = y`
|
|
3199
3202
|
:host {
|
|
3200
3203
|
display: inline-block;
|
|
3201
3204
|
position: relative;
|
|
@@ -3429,7 +3432,7 @@ const re = "important", Oo = " !" + re, Bo = Dt(class extends Ht {
|
|
|
3429
3432
|
n.includes("-") || r ? e.setProperty(n, r ? i.slice(0, -11) : i, r ? re : "") : e[n] = i;
|
|
3430
3433
|
}
|
|
3431
3434
|
}
|
|
3432
|
-
return
|
|
3435
|
+
return N;
|
|
3433
3436
|
}
|
|
3434
3437
|
});
|
|
3435
3438
|
var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, jt = (o, t, e, n) => {
|
|
@@ -3437,7 +3440,7 @@ var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, jt = (o, t
|
|
|
3437
3440
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3438
3441
|
return n && i && zo(t, e, i), i;
|
|
3439
3442
|
};
|
|
3440
|
-
let lt = class extends
|
|
3443
|
+
let lt = class extends v {
|
|
3441
3444
|
constructor() {
|
|
3442
3445
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3443
3446
|
}
|
|
@@ -3455,7 +3458,7 @@ let lt = class extends u {
|
|
|
3455
3458
|
return o ? l`<a href="${$(this.option.url)}" class="reassurance-item clickable">${e}</a>` : l`<div class="reassurance-item">${e}</div>`;
|
|
3456
3459
|
}
|
|
3457
3460
|
};
|
|
3458
|
-
lt.styles =
|
|
3461
|
+
lt.styles = y`
|
|
3459
3462
|
:host {
|
|
3460
3463
|
display: inline-block;
|
|
3461
3464
|
position: relative;
|
|
@@ -3551,7 +3554,7 @@ var Ho = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, D = (o, t,
|
|
|
3551
3554
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3552
3555
|
return n && i && Ho(t, e, i), i;
|
|
3553
3556
|
};
|
|
3554
|
-
const To = Bt(
|
|
3557
|
+
const To = Bt(v);
|
|
3555
3558
|
let k = class extends To {
|
|
3556
3559
|
constructor() {
|
|
3557
3560
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
@@ -3575,7 +3578,7 @@ let k = class extends To {
|
|
|
3575
3578
|
`;
|
|
3576
3579
|
}
|
|
3577
3580
|
};
|
|
3578
|
-
k.styles =
|
|
3581
|
+
k.styles = y`
|
|
3579
3582
|
:host {
|
|
3580
3583
|
cursor: pointer;
|
|
3581
3584
|
display: inline-flex;
|
|
@@ -3688,12 +3691,12 @@ D([
|
|
|
3688
3691
|
k = D([
|
|
3689
3692
|
x("o-chip")
|
|
3690
3693
|
], k);
|
|
3691
|
-
var jo = Object.defineProperty,
|
|
3692
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
3694
|
+
var jo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, Nt = (o, t, e, n) => {
|
|
3695
|
+
for (var i = n > 1 ? void 0 : n ? No(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3693
3696
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3694
3697
|
return n && i && jo(t, e, i), i;
|
|
3695
3698
|
};
|
|
3696
|
-
let ct = class extends
|
|
3699
|
+
let ct = class extends v {
|
|
3697
3700
|
constructor() {
|
|
3698
3701
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
3699
3702
|
}
|
|
@@ -3709,7 +3712,7 @@ let ct = class extends u {
|
|
|
3709
3712
|
`;
|
|
3710
3713
|
}
|
|
3711
3714
|
};
|
|
3712
|
-
ct.styles =
|
|
3715
|
+
ct.styles = y`
|
|
3713
3716
|
:host {
|
|
3714
3717
|
display: flex;
|
|
3715
3718
|
flex-direction: row;
|
|
@@ -3717,21 +3720,21 @@ ct.styles = g`
|
|
|
3717
3720
|
gap: var(--spacing-s);
|
|
3718
3721
|
}
|
|
3719
3722
|
`;
|
|
3720
|
-
|
|
3723
|
+
Nt([
|
|
3721
3724
|
a({ reflect: !0 })
|
|
3722
3725
|
], ct.prototype, "name", 2);
|
|
3723
|
-
|
|
3726
|
+
Nt([
|
|
3724
3727
|
a({ reflect: !0 })
|
|
3725
3728
|
], ct.prototype, "value", 2);
|
|
3726
|
-
ct =
|
|
3729
|
+
ct = Nt([
|
|
3727
3730
|
x("o-chipset")
|
|
3728
3731
|
], ct);
|
|
3729
|
-
var
|
|
3732
|
+
var Uo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
|
|
3730
3733
|
for (var i = n > 1 ? void 0 : n ? Ro(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3731
3734
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3732
|
-
return n && i &&
|
|
3735
|
+
return n && i && Uo(t, e, i), i;
|
|
3733
3736
|
};
|
|
3734
|
-
const Fo = Bt(
|
|
3737
|
+
const Fo = Bt(v);
|
|
3735
3738
|
let E = class extends Fo {
|
|
3736
3739
|
constructor() {
|
|
3737
3740
|
super(...arguments), this.name = "", this.value = "", this.type = "", this.dataHref = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
|
|
@@ -3782,7 +3785,7 @@ let E = class extends Fo {
|
|
|
3782
3785
|
`;
|
|
3783
3786
|
}
|
|
3784
3787
|
};
|
|
3785
|
-
E.styles =
|
|
3788
|
+
E.styles = y`
|
|
3786
3789
|
:host {
|
|
3787
3790
|
cursor: pointer;
|
|
3788
3791
|
display: inline-flex;
|