@florid-kit/components 0.10.42 → 0.10.43
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/popin.d.ts +3 -1
- package/index.js +16 -16
- package/index.mjs +52 -49
- package/package.json +1 -1
package/components/popin.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { IconLogicalSize } from '../assets/icons/icons';
|
|
2
3
|
|
|
3
4
|
export declare class OPopin extends LitElement {
|
|
4
5
|
ispagedesigner: boolean;
|
|
@@ -15,7 +16,7 @@ export declare class OPopin extends LitElement {
|
|
|
15
16
|
maxWidth: string;
|
|
16
17
|
showBackButton: boolean;
|
|
17
18
|
contrast: boolean;
|
|
18
|
-
iconSize:
|
|
19
|
+
iconSize: IconLogicalSize;
|
|
19
20
|
hideHeaderOnScroll: boolean;
|
|
20
21
|
private _labelId;
|
|
21
22
|
private _headerHidden;
|
|
@@ -28,6 +29,7 @@ export declare class OPopin extends LitElement {
|
|
|
28
29
|
private _setupScrollListener;
|
|
29
30
|
private _removeScrollListener;
|
|
30
31
|
private _onBackClick;
|
|
32
|
+
private _resolvedIconSize;
|
|
31
33
|
private _requestClose;
|
|
32
34
|
private _renderCloseButton;
|
|
33
35
|
private _renderBackButton;
|
package/index.js
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:ze,defineProperty:Oe,getOwnPropertyDescriptor:Ie,getOwnPropertyNames:De,getOwnPropertySymbols:He,getPrototypeOf:Te}=Object,Q=globalThis,de=Q.trustedTypes,Me=de?de.emptyScript:"",Tt=Q.reactiveElementPolyfillSupport,gt=(o,t)=>o,Pt={toAttribute(o,t){switch(t){case Boolean:o=o?Me:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Wt=(o,t)=>!ze(o,t),pe={attribute:!0,type:String,converter:Pt,reflect:!1,useDefault:!1,hasChanged:Wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Q.litPropertyMetadata??(Q.litPropertyMetadata=new WeakMap);let ht=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=pe){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);i!==void 0&&Oe(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=Ie(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:i,set(s){const c=i==null?void 0:i.call(this);r==null||r.call(this,s),this.requestUpdate(t,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pe}static _$Ei(){if(this.hasOwnProperty(gt("elementProperties")))return;const t=Te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(gt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gt("properties"))){const e=this.properties,n=[...De(e),...He(e)];for(const i of n)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,i]of e)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const i=this._$Eu(e,n);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const i of n)e.unshift(he(i))}else t!==void 0&&e.push(he(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Be(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){var r;const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){const s=(((r=n.converter)==null?void 0:r.toAttribute)!==void 0?n.converter:Pt).toAttribute(e,n.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var r,s;const n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const c=n.getPropertyOptions(i),h=typeof c.converter=="function"?{fromAttribute:c.converter}:((r=c.converter)==null?void 0:r.fromAttribute)!==void 0?c.converter:Pt;this._$Em=i,this[i]=h.fromAttribute(e,c.type)??((s=this._$Ej)==null?void 0:s.get(i))??null,this._$Em=null}}requestUpdate(t,e,n){var i;if(t!==void 0){const r=this.constructor,s=this[t];if(n??(n=r.getPropertyOptions(t)),!((n.hasChanged??Wt)(s,e)||n.useDefault&&n.reflect&&s===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(r._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:i,wrapped:r},s){n&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),r!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[r,s]of i){const{wrapped:c}=s,h=this[r];c!==!0||this._$AL.has(r)||h===void 0||this.C(r,void 0,s,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostUpdate)==null?void 0:r.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};ht.elementStyles=[],ht.shadowRootOptions={mode:"open"},ht[gt("elementProperties")]=new Map,ht[gt("finalized")]=new Map,Tt==null||Tt({ReactiveElement:ht}),(Q.reactiveElementVersions??(Q.reactiveElementVersions=[])).push("2.1.0");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/const bt=globalThis,Bt=bt.trustedTypes,ue=Bt?Bt.createPolicy("lit-html",{createHTML:o=>o}):void 0,$e="$lit$",J=`lit$${Math.random().toFixed(9).slice(2)}$`,ke="?"+J,je=`<${ke}>`,st=document,mt=()=>st.createComment(""),xt=o=>o===null||typeof o!="object"&&typeof o!="function",Gt=Array.isArray,Fe=o=>Gt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Mt=`[
|
|
14
14
|
\f\r]`,vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fe=/-->/g,ve=/>/g,it=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ge=/'/g,be=/"/g,_e=/^(?:script|style|textarea|title)$/i,Re=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Re(1),tt=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ye=new WeakMap,nt=st.createTreeWalker(st,129);function Ce(o,t){if(!Gt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ue!==void 0?ue.createHTML(t):t}const Ue=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=vt;for(let c=0;c<e;c++){const h=o[c];let v,w,g=-1,V=0;for(;V<h.length&&(s.lastIndex=V,w=s.exec(h),w!==null);)V=s.lastIndex,s===vt?w[1]==="!--"?s=fe:w[1]!==void 0?s=ve:w[2]!==void 0?(_e.test(w[2])&&(i=RegExp("</"+w[2],"g")),s=it):w[3]!==void 0&&(s=it):s===it?w[0]===">"?(s=i??vt,g=-1):w[1]===void 0?g=-2:(g=s.lastIndex-w[2].length,v=w[1],s=w[3]===void 0?it:w[3]==='"'?be:ge):s===be||s===ge?s=it:s===fe||s===ve?s=vt:(s=it,i=void 0);const Y=s===it&&o[c+1].startsWith("/>")?" ":"";r+=s===vt?h+je:g>=0?(n.push(v),h.slice(0,g)+$e+h.slice(g)+J+Y):h+J+(g===-2?c:Y)}return[Ce(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class wt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,h=this.parts,[v,w]=Ue(t,e);if(this.el=wt.createElement(v,n),nt.currentNode=this.el.content,e===2||e===3){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=nt.nextNode())!==null&&h.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const g of i.getAttributeNames())if(g.endsWith($e)){const V=w[s++],Y=i.getAttribute(g).split(J),At=/([.?@])?(.*)/.exec(V);h.push({type:1,index:r,name:At[2],strings:Y,ctor:At[1]==="."?qe:At[1]==="?"?Ve:At[1]==="@"?Ze:
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ge=/'/g,be=/"/g,_e=/^(?:script|style|textarea|title)$/i,Re=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Re(1),tt=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ye=new WeakMap,nt=st.createTreeWalker(st,129);function Ce(o,t){if(!Gt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ue!==void 0?ue.createHTML(t):t}const Ue=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=vt;for(let c=0;c<e;c++){const h=o[c];let v,w,g=-1,V=0;for(;V<h.length&&(s.lastIndex=V,w=s.exec(h),w!==null);)V=s.lastIndex,s===vt?w[1]==="!--"?s=fe:w[1]!==void 0?s=ve:w[2]!==void 0?(_e.test(w[2])&&(i=RegExp("</"+w[2],"g")),s=it):w[3]!==void 0&&(s=it):s===it?w[0]===">"?(s=i??vt,g=-1):w[1]===void 0?g=-2:(g=s.lastIndex-w[2].length,v=w[1],s=w[3]===void 0?it:w[3]==='"'?be:ge):s===be||s===ge?s=it:s===fe||s===ve?s=vt:(s=it,i=void 0);const Y=s===it&&o[c+1].startsWith("/>")?" ":"";r+=s===vt?h+je:g>=0?(n.push(v),h.slice(0,g)+$e+h.slice(g)+J+Y):h+J+(g===-2?c:Y)}return[Ce(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class wt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,h=this.parts,[v,w]=Ue(t,e);if(this.el=wt.createElement(v,n),nt.currentNode=this.el.content,e===2||e===3){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=nt.nextNode())!==null&&h.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const g of i.getAttributeNames())if(g.endsWith($e)){const V=w[s++],Y=i.getAttribute(g).split(J),At=/([.?@])?(.*)/.exec(V);h.push({type:1,index:r,name:At[2],strings:Y,ctor:At[1]==="."?qe:At[1]==="?"?Ve:At[1]==="@"?Ze:Ot}),i.removeAttribute(g)}else g.startsWith(J)&&(h.push({type:6,index:r}),i.removeAttribute(g));if(_e.test(i.tagName)){const g=i.textContent.split(J),V=g.length-1;if(V>0){i.textContent=Bt?Bt.emptyScript:"";for(let Y=0;Y<V;Y++)i.append(g[Y],mt()),nt.nextNode(),h.push({type:2,index:++r});i.append(g[V],mt())}}}else if(i.nodeType===8)if(i.data===ke)h.push({type:2,index:r});else{let g=-1;for(;(g=i.data.indexOf(J,g+1))!==-1;)h.push({type:7,index:r}),g+=J.length-1}r++}}static createElement(t,e){const n=st.createElement("template");return n.innerHTML=t,n}}function dt(o,t,e=o,n){var s,c;if(t===tt)return t;let i=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=xt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((c=i==null?void 0:i._$AO)==null||c.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=dt(o,i._$AS(o,t.values),i,n)),t}class Ne{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)??st).importNode(e,!0);nt.currentNode=i;let r=nt.nextNode(),s=0,c=0,h=n[0];for(;h!==void 0;){if(s===h.index){let v;h.type===2?v=new Et(r,r.nextSibling,this,t):h.type===1?v=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(v=new Ke(r,this,t)),this._$AV.push(v),h=n[++c]}s!==(h==null?void 0:h.index)&&(r=nt.nextNode(),s++)}return nt.currentNode=st,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 Et{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=dt(this,t,e),xt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==tt&&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&&xt(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.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=wt.createElement(Ce(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 Ne(i,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=ye.get(t.strings);return e===void 0&&ye.set(t.strings,e=new wt(t)),e}k(t){Gt(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 Et(this.O(mt()),this.O(mt()),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 Ot{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=dt(this,t,e,0),s=!xt(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{const c=t;let h,v;for(t=r[0],h=0;h<r.length-1;h++)v=dt(this,c[n+h],e,h),v===tt&&(v=this._$AH[h]),s||(s=!xt(v)||v!==this._$AH[h]),v===d?t=d:t!==d&&(t+=(v??"")+r[h+1]),this._$AH[h]=v}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qe extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Ve extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Ze extends Ot{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=dt(this,t,e,0)??d)===tt)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 Ke{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){dt(this,t)}}const jt=bt.litHtmlPolyfillSupport;jt==null||jt(wt,Et),(bt.litHtmlVersions??(bt.litHtmlVersions=[])).push("3.3.0");const We=(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 Et(t.insertBefore(mt(),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
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
`,Po=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
165
165
|
<path d="M11.5 8L4.5 13L4.5 3L11.5 8Z" fill="#3F2B2E"/>
|
|
166
166
|
</svg>
|
|
167
|
-
`,Ee={wishlist:Qe,playerv:to,chevronRight:eo,chevronLeft:oo,icoPlus:ho,icoMinus:po,"star-0":io,"star-25":no,"star-50":ro,"star-75":so,"star-100":ao,cross:lo,search:co,arrowLeft:uo,arrowTop:fo,cart:vo,notifyme:go,triangledown:bo,triangleup:yo,checkstroke:mo,pause:xo,mapDualArrow:wo,swipeDualArrow:ko,backToBag:Eo,checkbox:Ao,sliderLeftArrow:Lo,sliderRightArrow:Po},Bo={xsmall:8,small:12,medium:16,large:24},
|
|
167
|
+
`,Ee={wishlist:Qe,playerv:to,chevronRight:eo,chevronLeft:oo,icoPlus:ho,icoMinus:po,"star-0":io,"star-25":no,"star-50":ro,"star-75":so,"star-100":ao,cross:lo,search:co,arrowLeft:uo,arrowTop:fo,cart:vo,notifyme:go,triangledown:bo,triangleup:yo,checkstroke:mo,pause:xo,mapDualArrow:wo,swipeDualArrow:ko,backToBag:Eo,checkbox:Ao,sliderLeftArrow:Lo,sliderRightArrow:Po},Bo={xsmall:8,small:12,medium:16,large:24},zo=(o,{size:t,bgstyle:e})=>{const n=Bo[t],i=e==="none-light"||e==="none-contrast";return{svg:Ee[o]??"",pixelSize:n,shouldApplyLogicalSize:i}},et=Ee,Oo={strikeDiagonal:$o},Io={success:_o,error:Co,info:So};/**
|
|
168
168
|
* @license
|
|
169
169
|
* Copyright 2017 Google LLC
|
|
170
170
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -184,11 +184,11 @@
|
|
|
184
184
|
* @license
|
|
185
185
|
* Copyright 2017 Google LLC
|
|
186
186
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
187
|
-
*/const yt=(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),yt(i,t);return!0},
|
|
187
|
+
*/const yt=(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),yt(i,t);return!0},zt=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)},Ae=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),Mo(t)}};function Ho(o){this._$AN!==void 0?(zt(this),this._$AM=o,Ae(this)):this._$AM=o}function To(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++)yt(n[r],!1),zt(n[r]);else n!=null&&(yt(n,!1),zt(n));else yt(this,o)}const Mo=o=>{o.type==Qt.CHILD&&(o._$AP??(o._$AP=To),o._$AQ??(o._$AQ=Ho))};class jo extends ee{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Ae(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&&(yt(this,t),zt(this))}setValue(t){if(Do(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 Fo extends jo{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 Ro extends Fo{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 Uo extends Ro{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 me=te(Uo);/**
|
|
188
188
|
* @license
|
|
189
189
|
* Copyright 2018 Google LLC
|
|
190
190
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
191
|
-
*/const P=o=>o??d;var No=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,R=(o,t,e,n)=>{for(var i=n>1?void 0:n?qo(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&&No(t,e,i),i};let B=class extends u{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){if(!this.icon)return d;const{svg:o,pixelSize:t,shouldApplyLogicalSize:e}=
|
|
191
|
+
*/const P=o=>o??d;var No=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,R=(o,t,e,n)=>{for(var i=n>1?void 0:n?qo(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&&No(t,e,i),i};let B=class extends u{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){if(!this.icon)return d;const{svg:o,pixelSize:t,shouldApplyLogicalSize:e}=zo(this.icon,{size:this.size,bgstyle:this.bgstyle}),n=`icon-${this.icon}`,i=e?` width="${t}" height="${t}"`:"",r=o.replace("<svg",`<svg aria-hidden="true" focusable="false" part="svg"${i}`).replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"'),s=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,c=this.showSrLabel?null:"icon";return l`
|
|
192
192
|
${this.type==="span"?l`
|
|
193
193
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${n}" ?disabled="${this.disabled}">
|
|
194
194
|
${E(r)}
|
|
@@ -1674,7 +1674,7 @@
|
|
|
1674
1674
|
:host([aria-current="true"]:active) .dots {
|
|
1675
1675
|
background-color: var(--color-container-action-primary-pressed);
|
|
1676
1676
|
}
|
|
1677
|
-
`;qt=di([y("o-dots")],qt);var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,U=(o,t,e,n)=>{for(var i=n>1?void 0:n?ui(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&&pi(t,e,i),i};let
|
|
1677
|
+
`;qt=di([y("o-dots")],qt);var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,U=(o,t,e,n)=>{for(var i=n>1?void 0:n?ui(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&&pi(t,e,i),i};let z=class extends u{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=et.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1678
1678
|
<button
|
|
1679
1679
|
role="combobox"
|
|
1680
1680
|
aria-haspopup="listbox"
|
|
@@ -1736,7 +1736,7 @@
|
|
|
1736
1736
|
</ul>`:null}
|
|
1737
1737
|
|
|
1738
1738
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1739
|
-
`}};
|
|
1739
|
+
`}};z.styles=f`
|
|
1740
1740
|
:host {
|
|
1741
1741
|
display: inline-block;
|
|
1742
1742
|
position: relative;
|
|
@@ -1912,7 +1912,7 @@
|
|
|
1912
1912
|
input[type="hidden"] {
|
|
1913
1913
|
display: none;
|
|
1914
1914
|
}
|
|
1915
|
-
`;U([a({type:Array,reflect:!0})],
|
|
1915
|
+
`;U([a({type:Array,reflect:!0})],z.prototype,"options",2);U([a({type:String,reflect:!0})],z.prototype,"value",2);U([a({type:String,reflect:!0})],z.prototype,"name",2);U([a({type:String,reflect:!0})],z.prototype,"additionaltext",2);U([a({type:Boolean,reflect:!0})],z.prototype,"disabled",2);U([a({type:String,reflect:!0})],z.prototype,"width",2);U([W()],z.prototype,"open",2);U([W()],z.prototype,"activeIndex",2);U([W()],z.prototype,"menuWidth",2);z=U([y("o-dropdown-variant")],z);/**
|
|
1916
1916
|
* @license
|
|
1917
1917
|
* Copyright 2018 Google LLC
|
|
1918
1918
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2003,7 +2003,7 @@
|
|
|
2003
2003
|
-webkit-box-orient: vertical;
|
|
2004
2004
|
overflow: hidden;
|
|
2005
2005
|
}
|
|
2006
|
-
`;ne([a({type:Object,reflect:!0})],_t.prototype,"option",2);ne([a({type:Number,reflect:!0})],_t.prototype,"imageSize",2);_t=ne([y("o-reassurance")],_t);var yi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,X=(o,t,e,n)=>{for(var i=n>1?void 0:n?mi(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&&yi(t,e,i),i};const xi=Jt(u);let
|
|
2006
|
+
`;ne([a({type:Object,reflect:!0})],_t.prototype,"option",2);ne([a({type:Number,reflect:!0})],_t.prototype,"imageSize",2);_t=ne([y("o-reassurance")],_t);var yi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,X=(o,t,e,n)=>{for(var i=n>1?void 0:n?mi(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&&yi(t,e,i),i};const xi=Jt(u);let O=class extends xi{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`
|
|
2007
2007
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":d}"
|
|
2008
2008
|
aria-current="${this.selected?"true":d}">
|
|
2009
2009
|
${o?this.text:l`<slot></slot>`}
|
|
@@ -2013,7 +2013,7 @@
|
|
|
2013
2013
|
aria-label=${this.ariaLabel||d} aria-pressed=${this.selected}>
|
|
2014
2014
|
${o?this.text:l`<slot></slot>`}
|
|
2015
2015
|
</button>
|
|
2016
|
-
`}};
|
|
2016
|
+
`}};O.styles=f`
|
|
2017
2017
|
:host {
|
|
2018
2018
|
cursor: pointer;
|
|
2019
2019
|
display: inline-flex;
|
|
@@ -2106,7 +2106,7 @@
|
|
|
2106
2106
|
display: inline-flex;
|
|
2107
2107
|
align-items: center;
|
|
2108
2108
|
}
|
|
2109
|
-
`;X([a({type:String,reflect:!0})],
|
|
2109
|
+
`;X([a({type:String,reflect:!0})],O.prototype,"link",2);X([a({reflect:!0})],O.prototype,"name",2);X([a({reflect:!0})],O.prototype,"value",2);X([a({type:String})],O.prototype,"text",2);X([a({type:String,reflect:!0})],O.prototype,"size",2);X([a({type:Boolean,reflect:!0})],O.prototype,"selected",2);X([a({type:Boolean,reflect:!0})],O.prototype,"fullwidth",2);X([a({type:Boolean,reflect:!0})],O.prototype,"inactive",2);O=X([y("o-chip")],O);var wi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,re=(o,t,e,n)=>{for(var i=n>1?void 0:n?$i(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&&wi(t,e,i),i};let Ct=class extends u{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof O?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`
|
|
2110
2110
|
<slot></slot>
|
|
2111
2111
|
`}};Ct.styles=f`
|
|
2112
2112
|
:host {
|
|
@@ -2115,7 +2115,7 @@
|
|
|
2115
2115
|
flex-wrap: wrap;
|
|
2116
2116
|
gap: var(--spacing-s);
|
|
2117
2117
|
}
|
|
2118
|
-
`;re([a({reflect:!0})],Ct.prototype,"name",2);re([a({reflect:!0})],Ct.prototype,"value",2);Ct=re([y("o-chipset")],Ct);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,N=(o,t,e,n)=>{for(var i=n>1?void 0:n?_i(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&&ki(t,e,i),i};const Ci=Jt(u);let I=class extends Ci{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.text="",this.selected=!1,this.disabled=!1,this.fullwidth=!1,this.crossIconName="cross",this.strikethroughImgName="strikeDiagonal"}handleClick(o){if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;this.selected=!this.selected;const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}crossIcon(){const o=et[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${E(o)}</span>`}strikeThroughImg(){const o=
|
|
2118
|
+
`;re([a({reflect:!0})],Ct.prototype,"name",2);re([a({reflect:!0})],Ct.prototype,"value",2);Ct=re([y("o-chipset")],Ct);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,N=(o,t,e,n)=>{for(var i=n>1?void 0:n?_i(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&&ki(t,e,i),i};const Ci=Jt(u);let I=class extends Ci{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.text="",this.selected=!1,this.disabled=!1,this.fullwidth=!1,this.crossIconName="cross",this.strikethroughImgName="strikeDiagonal"}handleClick(o){if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;this.selected=!this.selected;const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}crossIcon(){const o=et[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${E(o)}</span>`}strikeThroughImg(){const o=Oo[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return E(o)}render(){const o=this.text;return l`${this.type==="link"?l`
|
|
2119
2119
|
<a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
2120
2120
|
aria-label=${this.ariaLabel||d} aria-pressed=${this.selected}>
|
|
2121
2121
|
${o?l`
|
|
@@ -2547,7 +2547,7 @@
|
|
|
2547
2547
|
.o-toast-icon {
|
|
2548
2548
|
height: 16px;
|
|
2549
2549
|
}
|
|
2550
|
-
`;T([a({type:String,reflect:!0})],A.prototype,"icon",2);T([a({type:String,reflect:!0})],A.prototype,"text",2);T([a({type:String,reflect:!0})],A.prototype,"verticalanchor",2);T([a({type:String,reflect:!0})],A.prototype,"horizontalanchor",2);T([a({type:Number,reflect:!0})],A.prototype,"verticaloffset",2);T([a({type:Number,reflect:!0})],A.prototype,"horizontaloffset",2);T([a({type:Number,reflect:!0})],A.prototype,"animationduration",2);T([a({type:String,reflect:!0})],A.prototype,"animationaxis",2);T([a({type:Boolean,reflect:!0})],A.prototype,"animated",2);T([a({type:Number,reflect:!0})],A.prototype,"lifeduration",2);T([a({type:Boolean,reflect:!0})],A.prototype,"multiline",2);A=T([y("o-toast")],A);var Bi=Object.defineProperty,
|
|
2550
|
+
`;T([a({type:String,reflect:!0})],A.prototype,"icon",2);T([a({type:String,reflect:!0})],A.prototype,"text",2);T([a({type:String,reflect:!0})],A.prototype,"verticalanchor",2);T([a({type:String,reflect:!0})],A.prototype,"horizontalanchor",2);T([a({type:Number,reflect:!0})],A.prototype,"verticaloffset",2);T([a({type:Number,reflect:!0})],A.prototype,"horizontaloffset",2);T([a({type:Number,reflect:!0})],A.prototype,"animationduration",2);T([a({type:String,reflect:!0})],A.prototype,"animationaxis",2);T([a({type:Boolean,reflect:!0})],A.prototype,"animated",2);T([a({type:Number,reflect:!0})],A.prototype,"lifeduration",2);T([a({type:Boolean,reflect:!0})],A.prototype,"multiline",2);A=T([y("o-toast")],A);var Bi=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,j=(o,t,e,n)=>{for(var i=n>1?void 0:n?zi(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&&Bi(t,e,i),i};let Oi=0,L=class extends u{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Checkbox",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-checkbox-${++Oi}`)}toggle(){this.disabled||(this.indeterminate?(this.indeterminate=!1,this.checked=!0):this.checked=!this.checked,this.syncInput(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){this.inputEl&&(this.inputEl.checked=this.checked,this.inputEl.indeterminate=this.indeterminate)}updated(o){this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.toggle())}render(){const o=E(et.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=E(et.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
|
|
2551
2551
|
<input
|
|
2552
2552
|
type="checkbox"
|
|
2553
2553
|
id=${this.inputId}
|
|
@@ -3005,11 +3005,11 @@
|
|
|
3005
3005
|
d="m 1237.15,72.3984 c -3.61,1.5625 -7.64,0.6211 -10.76,-1.5898 -3.47,-2.4688 -6.01,-6.207 -8.42,-9.6484 l -2.61,-3.7305 c -3.58,-5.1094 -9.55,-13.6992 -12.29,-16.1094 -5.74,-5.1289 -9.34,-6.6094 -53,-6.6094 -33.15,0 -37.81,0.9883 -43.8,4.1602 -5.52,2.7891 -7.77,10.7773 -7.77,13.6484 0,3.3594 -0.2,14.711 -0.45,28.7422 -0.39,22.6093 -0.93,52.2383 -0.93,66.5083 v 2.082 c 61.53,-0.032 57.15,-0.524 65,-2.762 2.14,-0.75 4.31,-3.918 6.04,-9.07 0,0 1.62,-4.02 1.63,-4.032 1.32,-3.277 2.66,-6.867 5.45,-9.207 3.1,-2.609 8.34,-2.961 11.82,-0.832 2.53,1.551 4.41,4.86 5.34,7.641 1.18,3.469 1.06,7.031 0.47,10.601 -0.42,2.528 -1.65,14.649 -0.88,22.661 0.36,3.359 0.91,7.339 1.4,11.039 0.81,5.937 1.45,11.25 1.45,13.039 0,10.769 -6.83,13.64 -10.87,13.64 -7.45,0 -10.98,-7.148 -12.29,-9.8 -5.17,-10.34 -7.99,-12.258 -8.92,-12.77 -1.75,-1.09 -4.81,-1.93 -26.44,-1.93 h -39.2 v 107.52 c 0,4.422 0.17,7.101 0.34,8.738 15.96,0.774 76.93,0.524 87.71,-1.476 3.62,-0.602 9.08,-1.5 17.68,-21.911 1.36,-3.211 3.03,-6.711 5.7,-9.043 3,-2.609 7.9,-3.558 11.48,-1.648 3.15,1.672 4.77,5.262 5.42,8.621 0.48,2.52 0.57,5.379 0.02,7.899 -1.68,7.71 -2.32,17.339 -2.74,23.718 l -0.42,5.41 c -1.6,9.993 -5.84,15.063 -12.6,15.063 -1.95,0 -3.97,-0.121 -6.59,-0.27 -4.29,-0.261 -10.36,-0.652 -21.14,-0.652 -8.99,0 -29.44,-0.219 -50.5,-0.437 -22.25,-0.231 -45.19,-0.493 -55.89,-0.493 -7.8,0 -14.28,0.411 -20.23,0.77 -5.38,0.32 -10.33,0.621 -15.39,0.621 -8.85,0 -15.02,-4.461 -15.02,-10.859 0,-3.692 1.73,-10.231 13.17,-12.532 11.25,-2.488 15.05,-3.339 15.05,-28.168 0,-97.863 -0.47,-142.242 -2.32,-215.7808 -0.34,-15.5196 -5.21,-19.0821 -18.87,-21.3594 C 1027,30.8984 1016.62,29 1016.62,19.6719 c 0,-1.9727 0.81,-11.80081 16.89,-11.80081 1.95,0 6.58,0.3086 12.45,0.71875 9.5,0.67969 22.45,1.60156 31.94,1.60156 17.71,0 38.65,-0.41015 60.92,-0.83984 25.46,-0.49218 52.62,-1.01172 78.73,-1.01172 4,0 9.62,1.69926 13.67,9.76956 2.26,4.4687 4.54,12.8906 7.15,22.6094 1.18,4.4218 2.39,8.9531 3.55,12.8203 0.89,2.9804 1.73,5.9726 1.57,9.1211 -0.2,3.9804 -2.49,7.9804 -6.34,9.7382" /><path
|
|
3006
3006
|
id="path52"
|
|
3007
3007
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
3008
|
-
d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;var qi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,C=(o,t,e,n)=>{for(var i=n>1?void 0:n?Vi(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&&qi(t,e,i),i};const le=class le extends u{constructor(){super(...arguments),this.ispagedesigner=!1,this._classPopin="",this.open=!1,this.background="",this.backgroundUrl="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.lockScroll=!0,this.variant="fullscreen",this.maxWidth="640px",this.showBackButton=!1,this.contrast=!1,this.iconSize="large",this.hideHeaderOnScroll=!1,this._labelId=`title-${Math.random().toString(36).slice(2)}`,this._headerHidden=!1,this._onBackdropClick=t=>{var n;if(!this.open||!this.closeOnBackdrop)return;const e=t.composedPath()[0];(n=e==null?void 0:e.classList)!=null&&n.contains("backdrop")&&this._requestClose("backdrop")},this._onScroll=t=>{if(!this.hideHeaderOnScroll||!this.open)return;const i=t.target.scrollTop>50;i!==this._headerHidden&&(this._headerHidden=i,this.requestUpdate())}}get classPopin(){return this.ispagedesigner?"pagedesigner-popin "+this._classPopin:this._classPopin}set classPopin(t){this._classPopin=t}connectedCallback(){super.connectedCallback(),this._onKeydown=this._onKeydown.bind(this),this._onScroll=this._onScroll.bind(this),document.addEventListener("keydown",this._onKeydown)}disconnectedCallback(){document.removeEventListener("keydown",this._onKeydown),this._removeScrollListener(),super.disconnectedCallback()}updated(t){if(t.has("background")||t.has("backgroundUrl")){let e="";this.background&&this.background.trim()?e=this.background.trim():this.backgroundUrl&&this.backgroundUrl.trim()&&(e=`url('${this.backgroundUrl.trim()}') center/cover no-repeat`),this.style.setProperty("--_bg",e)}if(t.has("open")){if(this.lockScroll){const e=document==null?void 0:document.body;e&&(e.style.overflow=this.open&&!this.ispagedesigner?"hidden":"")}this.open?this.updateComplete.then(()=>{var n;(n=this.renderRoot.querySelector("[data-close-btn]")??this.renderRoot.querySelector('[role="dialog"]'))==null||n.focus(),this._setupScrollListener(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}):(this._removeScrollListener(),this._headerHidden=!1,this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}(t.has("hideHeaderOnScroll")||t.has("open"))&&(this.open?this._setupScrollListener():this._removeScrollListener())}_onKeydown(t){this.open&&this.closeOnEsc&&t.key==="Escape"&&(t.preventDefault(),this._requestClose("esc"))}_setupScrollListener(){this.hideHeaderOnScroll&&(this._removeScrollListener(),this.updateComplete.then(()=>{const t=this.renderRoot.querySelector('main[part="body"]');t&&t.addEventListener("scroll",this._onScroll,{passive:!0})}))}_removeScrollListener(){const t=this.renderRoot.querySelector('main[part="body"]');t&&t.removeEventListener("scroll",this._onScroll)}_onBackClick(){this.dispatchEvent(new CustomEvent("back",{bubbles:!0,composed:!0}))}_requestClose(t){const e=new CustomEvent("request-close",{bubbles:!0,composed:!0,detail:{reason:t}});this.dispatchEvent(e),e.defaultPrevented||(this.open=!1)}_renderCloseButton(){return customElements.get("o-icon-button")?l`
|
|
3008
|
+
d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;var qi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,C=(o,t,e,n)=>{for(var i=n>1?void 0:n?Vi(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&&qi(t,e,i),i};const le=class le extends u{constructor(){super(...arguments),this.ispagedesigner=!1,this._classPopin="",this.open=!1,this.background="",this.backgroundUrl="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.lockScroll=!0,this.variant="fullscreen",this.maxWidth="640px",this.showBackButton=!1,this.contrast=!1,this.iconSize="large",this.hideHeaderOnScroll=!1,this._labelId=`title-${Math.random().toString(36).slice(2)}`,this._headerHidden=!1,this._onBackdropClick=t=>{var n;if(!this.open||!this.closeOnBackdrop)return;const e=t.composedPath()[0];(n=e==null?void 0:e.classList)!=null&&n.contains("backdrop")&&this._requestClose("backdrop")},this._onScroll=t=>{if(!this.hideHeaderOnScroll||!this.open)return;const i=t.target.scrollTop>50;i!==this._headerHidden&&(this._headerHidden=i,this.requestUpdate())}}get classPopin(){return this.ispagedesigner?"pagedesigner-popin "+this._classPopin:this._classPopin}set classPopin(t){this._classPopin=t}connectedCallback(){super.connectedCallback(),this._onKeydown=this._onKeydown.bind(this),this._onScroll=this._onScroll.bind(this),document.addEventListener("keydown",this._onKeydown)}disconnectedCallback(){document.removeEventListener("keydown",this._onKeydown),this._removeScrollListener(),super.disconnectedCallback()}updated(t){if(t.has("background")||t.has("backgroundUrl")){let e="";this.background&&this.background.trim()?e=this.background.trim():this.backgroundUrl&&this.backgroundUrl.trim()&&(e=`url('${this.backgroundUrl.trim()}') center/cover no-repeat`),this.style.setProperty("--_bg",e)}if(t.has("open")){if(this.lockScroll){const e=document==null?void 0:document.body;e&&(e.style.overflow=this.open&&!this.ispagedesigner?"hidden":"")}this.open?this.updateComplete.then(()=>{var n;(n=this.renderRoot.querySelector("[data-close-btn]")??this.renderRoot.querySelector('[role="dialog"]'))==null||n.focus(),this._setupScrollListener(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}):(this._removeScrollListener(),this._headerHidden=!1,this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}(t.has("hideHeaderOnScroll")||t.has("open"))&&(this.open?this._setupScrollListener():this._removeScrollListener())}_onKeydown(t){this.open&&this.closeOnEsc&&t.key==="Escape"&&(t.preventDefault(),this._requestClose("esc"))}_setupScrollListener(){this.hideHeaderOnScroll&&(this._removeScrollListener(),this.updateComplete.then(()=>{const t=this.renderRoot.querySelector('main[part="body"]');t&&t.addEventListener("scroll",this._onScroll,{passive:!0})}))}_removeScrollListener(){const t=this.renderRoot.querySelector('main[part="body"]');t&&t.removeEventListener("scroll",this._onScroll)}_onBackClick(){this.dispatchEvent(new CustomEvent("back",{bubbles:!0,composed:!0}))}_resolvedIconSize(){return["xsmall","small","medium","large"].includes(this.iconSize)?this.iconSize:"large"}_requestClose(t){const e=new CustomEvent("request-close",{bubbles:!0,composed:!0,detail:{reason:t}});this.dispatchEvent(e),e.defaultPrevented||(this.open=!1)}_renderCloseButton(){return customElements.get("o-icon-button")?l`
|
|
3009
3009
|
<o-icon-button
|
|
3010
3010
|
data-close-btn
|
|
3011
3011
|
icon="cross"
|
|
3012
|
-
size="${this.
|
|
3012
|
+
size="${this._resolvedIconSize()}"
|
|
3013
3013
|
bgstyle="none-${this.contrast?"contrast":"light"}"
|
|
3014
3014
|
status="empty"
|
|
3015
3015
|
type="button"
|
|
@@ -3022,7 +3022,7 @@
|
|
|
3022
3022
|
<div part="back">
|
|
3023
3023
|
<o-icon-button
|
|
3024
3024
|
icon="arrowLeft"
|
|
3025
|
-
size="${this.
|
|
3025
|
+
size="${this._resolvedIconSize()}"
|
|
3026
3026
|
status="empty"
|
|
3027
3027
|
class="return-btn"
|
|
3028
3028
|
bgstyle="none-${this.contrast?"contrast":"light"}"
|
package/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ const Pe = (o) => new we(typeof o == "string" ? o : o + "", void 0, Kt), f = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: ze, defineProperty: Oe, getOwnPropertyDescriptor: Ie, getOwnPropertyNames: De, getOwnPropertySymbols: He, getPrototypeOf: Te } = Object, Q = globalThis, de = Q.trustedTypes, Me = de ? de.emptyScript : "", Tt = Q.reactiveElementPolyfillSupport, gt = (o, t) => o, Pt = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
o = o ? Me : null;
|
|
@@ -73,7 +73,7 @@ const { is: Oe, defineProperty: ze, getOwnPropertyDescriptor: Ie, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} }, Wt = (o, t) => !
|
|
76
|
+
} }, Wt = (o, t) => !ze(o, t), pe = { attribute: !0, type: String, converter: Pt, reflect: !1, useDefault: !1, hasChanged: Wt };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Q.litPropertyMetadata ?? (Q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let ht = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
@@ -85,7 +85,7 @@ let ht = class extends HTMLElement {
|
|
|
85
85
|
static createProperty(t, e = pe) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && Oe(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, n) {
|
|
@@ -315,7 +315,7 @@ class wt {
|
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const g of i.getAttributeNames()) if (g.endsWith($e)) {
|
|
317
317
|
const V = w[s++], Y = i.getAttribute(g).split(J), At = /([.?@])?(.*)/.exec(V);
|
|
318
|
-
h.push({ type: 1, index: r, name: At[2], strings: Y, ctor: At[1] === "." ? qe : At[1] === "?" ? Ve : At[1] === "@" ? Ze :
|
|
318
|
+
h.push({ type: 1, index: r, name: At[2], strings: Y, ctor: At[1] === "." ? qe : At[1] === "?" ? Ve : At[1] === "@" ? Ze : Ot }), i.removeAttribute(g);
|
|
319
319
|
} else g.startsWith(J) && (h.push({ type: 6, index: r }), i.removeAttribute(g));
|
|
320
320
|
if (_e.test(i.tagName)) {
|
|
321
321
|
const g = i.textContent.split(J), V = g.length - 1;
|
|
@@ -436,7 +436,7 @@ class Et {
|
|
|
436
436
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
class
|
|
439
|
+
class Ot {
|
|
440
440
|
get tagName() {
|
|
441
441
|
return this.element.tagName;
|
|
442
442
|
}
|
|
@@ -461,7 +461,7 @@ class zt {
|
|
|
461
461
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
class qe extends
|
|
464
|
+
class qe extends Ot {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(...arguments), this.type = 3;
|
|
467
467
|
}
|
|
@@ -469,7 +469,7 @@ class qe extends zt {
|
|
|
469
469
|
this.element[this.name] = t === d ? void 0 : t;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class Ve extends
|
|
472
|
+
class Ve extends Ot {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 4;
|
|
475
475
|
}
|
|
@@ -477,7 +477,7 @@ class Ve extends zt {
|
|
|
477
477
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
class Ze extends
|
|
480
|
+
class Ze extends Ot {
|
|
481
481
|
constructor(t, e, n, i, r) {
|
|
482
482
|
super(t, e, n, i, r), this.type = 5;
|
|
483
483
|
}
|
|
@@ -824,14 +824,14 @@ const Qe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
824
824
|
small: 12,
|
|
825
825
|
medium: 16,
|
|
826
826
|
large: 24
|
|
827
|
-
},
|
|
827
|
+
}, zo = (o, { size: t, bgstyle: e }) => {
|
|
828
828
|
const n = Bo[t], i = e === "none-light" || e === "none-contrast";
|
|
829
829
|
return {
|
|
830
830
|
svg: Ee[o] ?? "",
|
|
831
831
|
pixelSize: n,
|
|
832
832
|
shouldApplyLogicalSize: i
|
|
833
833
|
};
|
|
834
|
-
}, et = Ee,
|
|
834
|
+
}, et = Ee, Oo = {
|
|
835
835
|
strikeDiagonal: $o
|
|
836
836
|
}, Io = {
|
|
837
837
|
success: _o,
|
|
@@ -906,7 +906,7 @@ const yt = (o, t) => {
|
|
|
906
906
|
if (e === void 0) return !1;
|
|
907
907
|
for (const i of e) (n = i._$AO) == null || n.call(i, t, !1), yt(i, t);
|
|
908
908
|
return !0;
|
|
909
|
-
},
|
|
909
|
+
}, zt = (o) => {
|
|
910
910
|
let t, e;
|
|
911
911
|
do {
|
|
912
912
|
if ((t = o._$AM) === void 0) break;
|
|
@@ -921,12 +921,12 @@ const yt = (o, t) => {
|
|
|
921
921
|
}
|
|
922
922
|
};
|
|
923
923
|
function Ho(o) {
|
|
924
|
-
this._$AN !== void 0 ? (
|
|
924
|
+
this._$AN !== void 0 ? (zt(this), this._$AM = o, Ae(this)) : this._$AM = o;
|
|
925
925
|
}
|
|
926
926
|
function To(o, t = !1, e = 0) {
|
|
927
927
|
const n = this._$AH, i = this._$AN;
|
|
928
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) yt(n[r], !1),
|
|
929
|
-
else n != null && (yt(n, !1),
|
|
928
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) yt(n[r], !1), zt(n[r]);
|
|
929
|
+
else n != null && (yt(n, !1), zt(n));
|
|
930
930
|
else yt(this, o);
|
|
931
931
|
}
|
|
932
932
|
const Mo = (o) => {
|
|
@@ -941,7 +941,7 @@ class jo extends ee {
|
|
|
941
941
|
}
|
|
942
942
|
_$AO(t, e = !0) {
|
|
943
943
|
var n, i;
|
|
944
|
-
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (yt(this, t),
|
|
944
|
+
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (yt(this, t), zt(this));
|
|
945
945
|
}
|
|
946
946
|
setValue(t) {
|
|
947
947
|
if (Do(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1097,7 +1097,7 @@ let B = class extends u {
|
|
|
1097
1097
|
render() {
|
|
1098
1098
|
if (!this.icon)
|
|
1099
1099
|
return d;
|
|
1100
|
-
const { svg: o, pixelSize: t, shouldApplyLogicalSize: e } =
|
|
1100
|
+
const { svg: o, pixelSize: t, shouldApplyLogicalSize: e } = zo(this.icon, {
|
|
1101
1101
|
size: this.size,
|
|
1102
1102
|
bgstyle: this.bgstyle
|
|
1103
1103
|
}), n = `icon-${this.icon}`, i = e ? ` width="${t}" height="${t}"` : "", r = o.replace("<svg", `<svg aria-hidden="true" focusable="false" part="svg"${i}`).replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'), s = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, c = this.showSrLabel ? null : "icon";
|
|
@@ -3411,7 +3411,7 @@ var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, U = (o, t,
|
|
|
3411
3411
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3412
3412
|
return n && i && pi(t, e, i), i;
|
|
3413
3413
|
};
|
|
3414
|
-
let
|
|
3414
|
+
let z = class extends u {
|
|
3415
3415
|
constructor() {
|
|
3416
3416
|
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) => {
|
|
3417
3417
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3548,7 +3548,7 @@ let O = class extends u {
|
|
|
3548
3548
|
`;
|
|
3549
3549
|
}
|
|
3550
3550
|
};
|
|
3551
|
-
|
|
3551
|
+
z.styles = f`
|
|
3552
3552
|
:host {
|
|
3553
3553
|
display: inline-block;
|
|
3554
3554
|
position: relative;
|
|
@@ -3727,34 +3727,34 @@ O.styles = f`
|
|
|
3727
3727
|
`;
|
|
3728
3728
|
U([
|
|
3729
3729
|
a({ type: Array, reflect: !0 })
|
|
3730
|
-
],
|
|
3730
|
+
], z.prototype, "options", 2);
|
|
3731
3731
|
U([
|
|
3732
3732
|
a({ type: String, reflect: !0 })
|
|
3733
|
-
],
|
|
3733
|
+
], z.prototype, "value", 2);
|
|
3734
3734
|
U([
|
|
3735
3735
|
a({ type: String, reflect: !0 })
|
|
3736
|
-
],
|
|
3736
|
+
], z.prototype, "name", 2);
|
|
3737
3737
|
U([
|
|
3738
3738
|
a({ type: String, reflect: !0 })
|
|
3739
|
-
],
|
|
3739
|
+
], z.prototype, "additionaltext", 2);
|
|
3740
3740
|
U([
|
|
3741
3741
|
a({ type: Boolean, reflect: !0 })
|
|
3742
|
-
],
|
|
3742
|
+
], z.prototype, "disabled", 2);
|
|
3743
3743
|
U([
|
|
3744
3744
|
a({ type: String, reflect: !0 })
|
|
3745
|
-
],
|
|
3745
|
+
], z.prototype, "width", 2);
|
|
3746
3746
|
U([
|
|
3747
3747
|
W()
|
|
3748
|
-
],
|
|
3748
|
+
], z.prototype, "open", 2);
|
|
3749
3749
|
U([
|
|
3750
3750
|
W()
|
|
3751
|
-
],
|
|
3751
|
+
], z.prototype, "activeIndex", 2);
|
|
3752
3752
|
U([
|
|
3753
3753
|
W()
|
|
3754
|
-
],
|
|
3755
|
-
|
|
3754
|
+
], z.prototype, "menuWidth", 2);
|
|
3755
|
+
z = U([
|
|
3756
3756
|
y("o-dropdown-variant")
|
|
3757
|
-
],
|
|
3757
|
+
], z);
|
|
3758
3758
|
/**
|
|
3759
3759
|
* @license
|
|
3760
3760
|
* Copyright 2018 Google LLC
|
|
@@ -3909,7 +3909,7 @@ var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, X = (o, t,
|
|
|
3909
3909
|
return n && i && yi(t, e, i), i;
|
|
3910
3910
|
};
|
|
3911
3911
|
const xi = Jt(u);
|
|
3912
|
-
let
|
|
3912
|
+
let O = class extends xi {
|
|
3913
3913
|
constructor() {
|
|
3914
3914
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3915
3915
|
}
|
|
@@ -3933,7 +3933,7 @@ let z = class extends xi {
|
|
|
3933
3933
|
`;
|
|
3934
3934
|
}
|
|
3935
3935
|
};
|
|
3936
|
-
|
|
3936
|
+
O.styles = f`
|
|
3937
3937
|
:host {
|
|
3938
3938
|
cursor: pointer;
|
|
3939
3939
|
display: inline-flex;
|
|
@@ -4029,31 +4029,31 @@ z.styles = f`
|
|
|
4029
4029
|
`;
|
|
4030
4030
|
X([
|
|
4031
4031
|
a({ type: String, reflect: !0 })
|
|
4032
|
-
],
|
|
4032
|
+
], O.prototype, "link", 2);
|
|
4033
4033
|
X([
|
|
4034
4034
|
a({ reflect: !0 })
|
|
4035
|
-
],
|
|
4035
|
+
], O.prototype, "name", 2);
|
|
4036
4036
|
X([
|
|
4037
4037
|
a({ reflect: !0 })
|
|
4038
|
-
],
|
|
4038
|
+
], O.prototype, "value", 2);
|
|
4039
4039
|
X([
|
|
4040
4040
|
a({ type: String })
|
|
4041
|
-
],
|
|
4041
|
+
], O.prototype, "text", 2);
|
|
4042
4042
|
X([
|
|
4043
4043
|
a({ type: String, reflect: !0 })
|
|
4044
|
-
],
|
|
4044
|
+
], O.prototype, "size", 2);
|
|
4045
4045
|
X([
|
|
4046
4046
|
a({ type: Boolean, reflect: !0 })
|
|
4047
|
-
],
|
|
4047
|
+
], O.prototype, "selected", 2);
|
|
4048
4048
|
X([
|
|
4049
4049
|
a({ type: Boolean, reflect: !0 })
|
|
4050
|
-
],
|
|
4050
|
+
], O.prototype, "fullwidth", 2);
|
|
4051
4051
|
X([
|
|
4052
4052
|
a({ type: Boolean, reflect: !0 })
|
|
4053
|
-
],
|
|
4054
|
-
|
|
4053
|
+
], O.prototype, "inactive", 2);
|
|
4054
|
+
O = X([
|
|
4055
4055
|
y("o-chip")
|
|
4056
|
-
],
|
|
4056
|
+
], O);
|
|
4057
4057
|
var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, re = (o, t, e, n) => {
|
|
4058
4058
|
for (var i = n > 1 ? void 0 : n ? $i(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4059
4059
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -4064,7 +4064,7 @@ let Ct = class extends u {
|
|
|
4064
4064
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
4065
4065
|
}
|
|
4066
4066
|
onChipSelected(o) {
|
|
4067
|
-
const t = o.target instanceof
|
|
4067
|
+
const t = o.target instanceof O ? o.target : null;
|
|
4068
4068
|
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) => {
|
|
4069
4069
|
e !== t && (e.selected = !1);
|
|
4070
4070
|
}));
|
|
@@ -4117,7 +4117,7 @@ let I = class extends Ci {
|
|
|
4117
4117
|
return l`<span class="cross-icon">${E(o)}</span>`;
|
|
4118
4118
|
}
|
|
4119
4119
|
strikeThroughImg() {
|
|
4120
|
-
const o =
|
|
4120
|
+
const o = Oo[this.strikethroughImgName].replace(
|
|
4121
4121
|
"<svg",
|
|
4122
4122
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
4123
4123
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
@@ -4775,14 +4775,14 @@ T([
|
|
|
4775
4775
|
A = T([
|
|
4776
4776
|
y("o-toast")
|
|
4777
4777
|
], A);
|
|
4778
|
-
var Bi = Object.defineProperty,
|
|
4779
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
4778
|
+
var Bi = Object.defineProperty, zi = Object.getOwnPropertyDescriptor, j = (o, t, e, n) => {
|
|
4779
|
+
for (var i = n > 1 ? void 0 : n ? zi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4780
4780
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4781
4781
|
return n && i && Bi(t, e, i), i;
|
|
4782
4782
|
};
|
|
4783
|
-
let
|
|
4783
|
+
let Oi = 0, L = class extends u {
|
|
4784
4784
|
constructor() {
|
|
4785
|
-
super(), this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Checkbox", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-checkbox-${++
|
|
4785
|
+
super(), this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Checkbox", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-checkbox-${++Oi}`);
|
|
4786
4786
|
}
|
|
4787
4787
|
toggle() {
|
|
4788
4788
|
this.disabled || (this.indeterminate ? (this.indeterminate = !1, this.checked = !0) : this.checked = !this.checked, this.syncInput(), this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
|
|
@@ -5497,6 +5497,9 @@ const le = class le extends u {
|
|
|
5497
5497
|
_onBackClick() {
|
|
5498
5498
|
this.dispatchEvent(new CustomEvent("back", { bubbles: !0, composed: !0 }));
|
|
5499
5499
|
}
|
|
5500
|
+
_resolvedIconSize() {
|
|
5501
|
+
return ["xsmall", "small", "medium", "large"].includes(this.iconSize) ? this.iconSize : "large";
|
|
5502
|
+
}
|
|
5500
5503
|
_requestClose(t) {
|
|
5501
5504
|
const e = new CustomEvent("request-close", {
|
|
5502
5505
|
bubbles: !0,
|
|
@@ -5510,7 +5513,7 @@ const le = class le extends u {
|
|
|
5510
5513
|
<o-icon-button
|
|
5511
5514
|
data-close-btn
|
|
5512
5515
|
icon="cross"
|
|
5513
|
-
size="${this.
|
|
5516
|
+
size="${this._resolvedIconSize()}"
|
|
5514
5517
|
bgstyle="none-${this.contrast ? "contrast" : "light"}"
|
|
5515
5518
|
status="empty"
|
|
5516
5519
|
type="button"
|
|
@@ -5526,7 +5529,7 @@ const le = class le extends u {
|
|
|
5526
5529
|
<div part="back">
|
|
5527
5530
|
<o-icon-button
|
|
5528
5531
|
icon="arrowLeft"
|
|
5529
|
-
size="${this.
|
|
5532
|
+
size="${this._resolvedIconSize()}"
|
|
5530
5533
|
status="empty"
|
|
5531
5534
|
class="return-btn"
|
|
5532
5535
|
bgstyle="none-${this.contrast ? "contrast" : "light"}"
|