cas-ds-web-components 1.2.6 → 1.2.7
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/build/cas-ds-web-components.js +44 -43
- package/package.json +1 -1
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const S=window,p1=S.ShadowRoot&&(S.ShadyCSS===void 0||S.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V1=Symbol(),
|
|
5
|
+
*/const S=window,p1=S.ShadowRoot&&(S.ShadyCSS===void 0||S.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V1=Symbol(),q1=new WeakMap;class W1{constructor(t,o,e){if(this._$cssResult$=!0,e!==V1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(p1&&t===void 0){const e=o!==void 0&&o.length===1;e&&(t=q1.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&q1.set(o,t))}return t}toString(){return this.cssText}}const n=i=>new W1(typeof i=="string"?i:i+"",void 0,V1),V=(i,...t)=>{const o=i.length===1?i[0]:t.reduce((e,l,L)=>e+(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.")})(l)+i[L+1],i[0]);return new W1(o,i,V1)},f3=(i,t)=>{p1?i.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):t.forEach(o=>{const e=document.createElement("style"),l=S.litNonce;l!==void 0&&e.setAttribute("nonce",l),e.textContent=o.cssText,i.appendChild(e)})},Y1=p1?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return n(o)})(i):i;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var v1;const d1=window,
|
|
9
|
+
*/var v1;const d1=window,G1=d1.trustedTypes,m3=G1?G1.emptyScript:"",Q1=d1.reactiveElementPolyfillSupport,f1={toAttribute(i,t){switch(t){case Boolean:i=i?m3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let o=i;switch(t){case Boolean:o=i!==null;break;case Number:o=i===null?null:Number(i);break;case Object:case Array:try{o=JSON.parse(i)}catch{o=null}}return o}},K1=(i,t)=>t!==i&&(t==t||i==i),m1={attribute:!0,type:String,converter:f1,reflect:!1,hasChanged:K1};class N extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var o;this.finalize(),((o=this.h)!==null&&o!==void 0?o:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((o,e)=>{const l=this._$Ep(e,o);l!==void 0&&(this._$Ev.set(l,e),t.push(l))}),t}static createProperty(t,o=m1){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(t,o),!o.noAccessor&&!this.prototype.hasOwnProperty(t)){const e=typeof t=="symbol"?Symbol():"__"+t,l=this.getPropertyDescriptor(t,e,o);l!==void 0&&Object.defineProperty(this.prototype,t,l)}}static getPropertyDescriptor(t,o,e){return{get(){return this[o]},set(l){const L=this[t];this[o]=l,this.requestUpdate(t,L,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m1}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const o=this.properties,e=[...Object.getOwnPropertyNames(o),...Object.getOwnPropertySymbols(o)];for(const l of e)this.createProperty(l,o[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const l of e)o.unshift(Y1(l))}else t!==void 0&&o.push(Y1(t));return o}static _$Ep(t,o){const e=o.attribute;return e===!1?void 0:typeof e=="string"?e:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(o=>o(this))}addController(t){var o,e;((o=this._$ES)!==null&&o!==void 0?o:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)===null||e===void 0||e.call(t))}removeController(t){var o;(o=this._$ES)===null||o===void 0||o.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])})}createRenderRoot(){var t;const o=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return f3(o,this.constructor.elementStyles),o}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var e;return(e=o.hostConnected)===null||e===void 0?void 0:e.call(o)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(o=>{var e;return(e=o.hostDisconnected)===null||e===void 0?void 0:e.call(o)})}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o,e=m1){var l;const L=this.constructor._$Ep(t,e);if(L!==void 0&&e.reflect===!0){const s=(((l=e.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?e.converter:f1).toAttribute(o,e.type);this._$El=t,s==null?this.removeAttribute(L):this.setAttribute(L,s),this._$El=null}}_$AK(t,o){var e;const l=this.constructor,L=l._$Ev.get(t);if(L!==void 0&&this._$El!==L){const s=l.getPropertyOptions(L),r=typeof s.converter=="function"?{fromAttribute:s.converter}:((e=s.converter)===null||e===void 0?void 0:e.fromAttribute)!==void 0?s.converter:f1;this._$El=L,this[L]=r.fromAttribute(o,s.type),this._$El=null}}requestUpdate(t,o,e){let l=!0;t!==void 0&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||K1)(this[t],o)?(this._$AL.has(t)||this._$AL.set(t,o),e.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,e))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(o){Promise.reject(o)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,L)=>this[L]=l),this._$Ei=void 0);let o=!1;const e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),(t=this._$ES)===null||t===void 0||t.forEach(l=>{var L;return(L=l.hostUpdate)===null||L===void 0?void 0:L.call(l)}),this.update(e)):this._$Ek()}catch(l){throw o=!1,this._$Ek(),l}o&&this._$AE(e)}willUpdate(t){}_$AE(t){var o;(o=this._$ES)===null||o===void 0||o.forEach(e=>{var l;return(l=e.hostUpdated)===null||l===void 0?void 0:l.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((o,e)=>this._$EO(e,this[e],o)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},Q1?.({ReactiveElement:N}),((v1=d1.reactiveElementVersions)!==null&&v1!==void 0?v1:d1.reactiveElementVersions=[]).push("1.4.2");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var x1;const c1=window,q=c1.trustedTypes,
|
|
13
|
+
*/var x1;const c1=window,q=c1.trustedTypes,J1=q?q.createPolicy("lit-html",{createHTML:i=>i}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,X1="?"+F,x3=`<${X1}>`,W=document,X=(i="")=>W.createComment(i),C1=i=>i===null||typeof i!="object"&&typeof i!="function",C2=Array.isArray,u3=i=>C2(i)||typeof i?.[Symbol.iterator]=="function",t1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,t2=/-->/g,o2=/>/g,R=RegExp(`>|[
|
|
14
14
|
\f\r](?:([^\\s"'>=/]+)([
|
|
15
15
|
\f\r]*=[
|
|
16
16
|
\f\r]*(?:[^
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),i2=/'/g,e2=/"/g,l2=/^(?:script|style|textarea|title)$/i,b3=i=>(t,...o)=>({_$litType$:i,strings:t,values:o}),C=b3(1),E=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),L2=new WeakMap,Y=W.createTreeWalker(W,129,null,!1),k3=(i,t)=>{const o=i.length-1,e=[];let l,L=t===2?"<svg>":"",s=t1;for(let a=0;a<o;a++){const d=i[a];let w,c,g=-1,Z=0;for(;Z<d.length&&(s.lastIndex=Z,c=s.exec(d),c!==null);)Z=s.lastIndex,s===t1?c[1]==="!--"?s=t2:c[1]!==void 0?s=o2:c[2]!==void 0?(l2.test(c[2])&&(l=RegExp("</"+c[2],"g")),s=R):c[3]!==void 0&&(s=R):s===R?c[0]===">"?(s=l??t1,g=-1):c[1]===void 0?g=-2:(g=s.lastIndex-c[2].length,w=c[1],s=c[3]===void 0?R:c[3]==='"'?e2:i2):s===e2||s===i2?s=R:s===t2||s===o2?s=t1:(s=R,l=void 0);const f=s===R&&i[a+1].startsWith("/>")?" ":"";L+=s===t1?d+x3:g>=0?(e.push(w),d.slice(0,g)+"$lit$"+d.slice(g)+F+f):d+F+(g===-2?(e.push(void 0),a):f)}const r=L+(i[o]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[J1!==void 0?J1.createHTML(r):r,e]};class o1{constructor({strings:t,_$litType$:o},e){let l;this.parts=[];let L=0,s=0;const r=t.length-1,a=this.parts,[d,w]=k3(t,o);if(this.el=o1.createElement(d,e),Y.currentNode=this.el.content,o===2){const c=this.el.content,g=c.firstChild;g.remove(),c.append(...g.childNodes)}for(;(l=Y.nextNode())!==null&&a.length<r;){if(l.nodeType===1){if(l.hasAttributes()){const c=[];for(const g of l.getAttributeNames())if(g.endsWith("$lit$")||g.startsWith(F)){const Z=w[s++];if(c.push(g),Z!==void 0){const f=l.getAttribute(Z.toLowerCase()+"$lit$").split(F),u=/([.?@])?(.*)/.exec(Z);a.push({type:1,index:L,name:u[2],strings:f,ctor:u[1]==="."?B3:u[1]==="?"?_3:u[1]==="@"?S3:M1})}else a.push({type:6,index:L})}for(const g of c)l.removeAttribute(g)}if(l2.test(l.tagName)){const c=l.textContent.split(F),g=c.length-1;if(g>0){l.textContent=q?q.emptyScript:"";for(let Z=0;Z<g;Z++)l.append(c[Z],X()),Y.nextNode(),a.push({type:2,index:++L});l.append(c[g],X())}}}else if(l.nodeType===8)if(l.data===X1)a.push({type:2,index:L});else{let c=-1;for(;(c=l.data.indexOf(F,c+1))!==-1;)a.push({type:7,index:L}),c+=F.length-1}L++}}static createElement(t,o){const e=W.createElement("template");return e.innerHTML=t,e}}function G(i,t,o=i,e){var l,L,s,r;if(t===E)return t;let a=e!==void 0?(l=o._$Co)===null||l===void 0?void 0:l[e]:o._$Cl;const d=C1(t)?void 0:t._$litDirective$;return a?.constructor!==d&&((L=a?._$AO)===null||L===void 0||L.call(a,!1),d===void 0?a=void 0:(a=new d(i),a._$AT(i,o,e)),e!==void 0?((s=(r=o)._$Co)!==null&&s!==void 0?s:r._$Co=[])[e]=a:o._$Cl=a),a!==void 0&&(t=G(i,a._$AS(i,t.values),a,e)),t}class y3{constructor(t,o){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var o;const{el:{content:e},parts:l}=this._$AD,L=((o=t?.creationScope)!==null&&o!==void 0?o:W).importNode(e,!0);Y.currentNode=L;let s=Y.nextNode(),r=0,a=0,d=l[0];for(;d!==void 0;){if(r===d.index){let w;d.type===2?w=new i1(s,s.nextSibling,this,t):d.type===1?w=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(w=new F3(s,this,t)),this.u.push(w),d=l[++a]}r!==d?.index&&(s=Y.nextNode(),r++)}return L}p(t){let o=0;for(const e of this.u)e!==void 0&&(e.strings!==void 0?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class i1{constructor(t,o,e,l){var L;this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=l,this._$Cm=(L=l?.isConnected)===null||L===void 0||L}get _$AU(){var t,o;return(o=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&o!==void 0?o:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&t.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=G(this,t,o),C1(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==E&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):u3(t)?this.k(t):this.g(t)}O(t,o=this._$AB){return this._$AA.parentNode.insertBefore(t,o)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==m&&C1(this._$AH)?this._$AA.nextSibling.data=t:this.T(W.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:l}=t,L=typeof l=="number"?this._$AC(t):(l.el===void 0&&(l.el=o1.createElement(l.h,this.options)),l);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===L)this._$AH.p(e);else{const s=new y3(L,this),r=s.v(this.options);s.p(e),this.T(r),this._$AH=s}}_$AC(t){let o=L2.get(t.strings);return o===void 0&&L2.set(t.strings,o=new o1(t)),o}k(t){C2(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,l=0;for(const L of t)l===o.length?o.push(e=new i1(this.O(X()),this.O(X()),this,this.options)):e=o[l],e._$AI(L),l++;l<o.length&&(this._$AR(e&&e._$AB.nextSibling,l),o.length=l)}_$AR(t=this._$AA.nextSibling,o){var e;for((e=this._$AP)===null||e===void 0||e.call(this,!1,!0,o);t&&t!==this._$AB;){const l=t.nextSibling;t.remove(),t=l}}setConnected(t){var o;this._$AM===void 0&&(this._$Cm=t,(o=this._$AP)===null||o===void 0||o.call(this,t))}}class M1{constructor(t,o,e,l,L){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=o,this._$AM=l,this.options=L,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=m}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,l){const L=this.strings;let s=!1;if(L===void 0)t=G(this,t,o,0),s=!C1(t)||t!==this._$AH&&t!==E,s&&(this._$AH=t);else{const r=t;let a,d;for(t=L[0],a=0;a<L.length-1;a++)d=G(this,r[e+a],o,a),d===E&&(d=this._$AH[a]),s||(s=!C1(d)||d!==this._$AH[a]),d===m?t=m:t!==m&&(t+=(d??"")+L[a+1]),this._$AH[a]=d}s&&!l&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class B3 extends M1{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}}const $3=q?q.emptyScript:"";class _3 extends M1{constructor(){super(...arguments),this.type=4}j(t){t&&t!==m?this.element.setAttribute(this.name,$3):this.element.removeAttribute(this.name)}}class S3 extends M1{constructor(t,o,e,l,L){super(t,o,e,l,L),this.type=5}_$AI(t,o=this){var e;if((t=(e=G(this,t,o,0))!==null&&e!==void 0?e:m)===E)return;const l=this._$AH,L=t===m&&l!==m||t.capture!==l.capture||t.once!==l.once||t.passive!==l.passive,s=t!==m&&(l===m||L);L&&this.element.removeEventListener(this.name,this,l),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;typeof this._$AH=="function"?this._$AH.call((e=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&e!==void 0?e:this.element,t):this._$AH.handleEvent(t)}}class F3{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const s2=c1.litHtmlPolyfillSupport;s2?.(o1,i1),((x1=c1.litHtmlVersions)!==null&&x1!==void 0?x1:c1.litHtmlVersions=[]).push("2.4.0");const E3=(i,t,o)=>{var e,l;const L=(e=o?.renderBefore)!==null&&e!==void 0?e:t;let s=L._$litPart$;if(s===void 0){const r=(l=o?.renderBefore)!==null&&l!==void 0?l:null;L._$litPart$=s=new i1(t.insertBefore(X(),r),r,void 0,o??{})}return s._$AI(i),s};/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var u1,b1;class M extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const e=super.createRenderRoot();return(t=(o=this.renderOptions).renderBefore)!==null&&t!==void 0||(o.renderBefore=e.firstChild),e}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=E3(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return E}}M.finalized=!0,M._$litElement$=!0,(u1=globalThis.litElementHydrateSupport)===null||u1===void 0||u1.call(globalThis,{LitElement:M});const
|
|
21
|
+
*/var u1,b1;class M extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const e=super.createRenderRoot();return(t=(o=this.renderOptions).renderBefore)!==null&&t!==void 0||(o.renderBefore=e.firstChild),e}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=E3(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return E}}M.finalized=!0,M._$litElement$=!0,(u1=globalThis.litElementHydrateSupport)===null||u1===void 0||u1.call(globalThis,{LitElement:M});const n2=globalThis.litElementPolyfillSupport;n2?.({LitElement:M}),((b1=globalThis.litElementVersions)!==null&&b1!==void 0?b1:globalThis.litElementVersions=[]).push("3.2.2");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2020 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const
|
|
25
|
+
*/const a2=Symbol.for(""),z3=i=>{if(i?.r===a2)return i?._$litStatic$},A3=i=>({_$litStatic$:i,r:a2}),r2=new Map,j3=i=>(t,...o)=>{const e=o.length;let l,L;const s=[],r=[];let a,d=0,w=!1;for(;d<e;){for(a=t[d];d<e&&(L=o[d],(l=z3(L))!==void 0);)a+=l+t[++d],w=!0;r.push(L),s.push(a),d++}if(d===e&&s.push(t[e]),w){const c=s.join("$$lit$$");(t=r2.get(c))===void 0&&(s.raw=s,r2.set(c,t=s)),o=r}return i(t,...o)},h=j3(C),_="#01A49A",y="#01736C",k1="#E6F6F5",h2="#4DBFB8",T3="#CCEDEB",B="#5143D5",d2="#392F95",z="#EEECFB",w1="#857BE2",c2="#CBC7F2",D3="#DCD9F7",M2="#203442",A="#364855",O3="#4D5D68",y1="#79858E",B1="#909AA1",R3="#BCC2C6",P3="#D2D6D9",e1="#E9EBEC",H="#FFFFFF",w2="#F2F5F9",j="#E53935",g2="#FFEBEE",g1="#B71C1C",$1="#FFCDD2",U3="#FFB300",H2="#FFF8E1",I3="#FF8F00",N3="#FFECB3",q3="#7CB342",Z2="#F1F8E9",W3="#33691E",Y3="#DCEDC8",G3="0 2px 2px rgba(1, 164, 154, 0.25)",Q3="0 4px 10px rgba(1, 115, 108, 0.35)",K3="0 1px 2px rgba(1, 115, 108, 0.5)",J3="0 2px 2px rgba(121, 133, 142, 0.25)",X3="0 2px 2px rgba(229, 57, 53, 0.25)",C5="0 4px 10px rgba(183, 28, 28, 0.35)",t5="0 1px 2px rgba(183, 28, 28, 0.5)",o5="0 2px 2px rgba(121, 133, 142, 0.25)",i5="Rubik",Q="#FFFFFF",e5="#E9EBEC",_1="#79858E",p2="#364855";var l5=V`
|
|
26
26
|
.accordion-container {
|
|
27
27
|
position: relative;
|
|
28
28
|
box-sizing: border-box;
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.open header:after {
|
|
83
|
-
background: ${n(
|
|
83
|
+
background: ${n(h2)};
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.box header:after {
|
|
@@ -143,13 +143,13 @@
|
|
|
143
143
|
* @license
|
|
144
144
|
* Copyright 2017 Google LLC
|
|
145
145
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
146
|
-
*/const
|
|
146
|
+
*/const V2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},v2=i=>(...t)=>({_$litDirective$:i,values:t});class f2{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}/**
|
|
147
147
|
* @license
|
|
148
148
|
* Copyright 2018 Google LLC
|
|
149
149
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
150
|
-
*/const P=
|
|
150
|
+
*/const P=v2(class extends f2{constructor(i){var t;if(super(i),i.type!==V2.ATTRIBUTE||i.name!=="class"||((t=i.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var o,e;if(this.nt===void 0){this.nt=new Set,i.strings!==void 0&&(this.st=new Set(i.strings.join(" ").split(/\s/).filter(L=>L!=="")));for(const L in t)t[L]&&!(!((o=this.st)===null||o===void 0)&&o.has(L))&&this.nt.add(L);return this.render(t)}const l=i.element.classList;this.nt.forEach(L=>{L in t||(l.remove(L),this.nt.delete(L))});for(const L in t){const s=!!t[L];s===this.nt.has(L)||((e=this.st)===null||e===void 0?void 0:e.has(L))||(s?(l.add(L),this.nt.add(L)):(l.remove(L),this.nt.delete(L)))}return E}});function L5({variant:i,open:t}){const o=P({"accordion-container":!0,[i]:!0,open:t}),l=(()=>{if(window.matchMedia("(min-width: 768px)").matches)return"desktop";if(window.matchMedia("(max-width: 767px)").matches)return"mobile"})();return{accordionStyle:o,iconSize:{desktop:"24",mobile:"16"}[l]}}class S1 extends M{static styles=l5;static shadowRootOptions={...M.shadowRootOptions,mode:"open"};constructor(){super(),this.open=!1,this.variant="simple",this.title="",this.text=""}static properties={open:{type:Boolean},variant:{type:String},title:{type:String},text:{type:String},content:{type:String}};toggleAccordion(){this.open=!this.open,this.requestUpdate()}render(){const{open:t,title:o,text:e,content:l}=this,{accordionStyle:L,iconSize:s}=L5({variant:this.variant,open:this.open}),r={true:"flat-minus",false:"flat-plus"};return h`
|
|
151
151
|
<article class=${L}>
|
|
152
|
-
<header @click="${
|
|
152
|
+
<header @click="${this.toggleAccordion}">
|
|
153
153
|
<div class="left">
|
|
154
154
|
${o!==""?h` <cas-text variant="headline3">${o}</cas-text>`:""}
|
|
155
155
|
${e!==""?h` <cas-text variant="footnote2">${e}</cas-text>`:""}
|
|
@@ -157,12 +157,13 @@
|
|
|
157
157
|
<cas-icon name="${r[t]}" size="${s}"></cas-icon>
|
|
158
158
|
</header>
|
|
159
159
|
${t?h`
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
<div class="content">
|
|
161
|
+
${l!==""?h` <cas-text variant="body1" text="${l}"></cas-text>`:""}
|
|
162
|
+
<slot></slot>
|
|
163
|
+
</div>
|
|
163
164
|
`:""}
|
|
164
165
|
</article>
|
|
165
|
-
`}}customElements.get("cas-accordion")||customElements.define("cas-accordion",
|
|
166
|
+
`}}customElements.define("cas-accordion",S1),customElements.get("cas-accordion-element")||customElements.define("cas-accordion-element",class extends S1{});var s5=V`
|
|
166
167
|
* {
|
|
167
168
|
padding: 0;
|
|
168
169
|
margin: 0;
|
|
@@ -203,7 +204,7 @@
|
|
|
203
204
|
}
|
|
204
205
|
|
|
205
206
|
cas-text:nth-child(1) {
|
|
206
|
-
color: ${n(
|
|
207
|
+
color: ${n(M2)};
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
cas-text:nth-child(2) {
|
|
@@ -230,8 +231,8 @@
|
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
.normal {
|
|
233
|
-
background: ${n(
|
|
234
|
-
border: 1px solid ${n(
|
|
234
|
+
background: ${n(w2)};
|
|
235
|
+
border: 1px solid ${n(w2)};
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
.info {
|
|
@@ -240,17 +241,17 @@
|
|
|
240
241
|
}
|
|
241
242
|
|
|
242
243
|
.success {
|
|
243
|
-
background: ${n(
|
|
244
|
+
background: ${n(Z2)};
|
|
244
245
|
border: 1px solid ${n(q3)};
|
|
245
246
|
}
|
|
246
247
|
|
|
247
248
|
.danger {
|
|
248
|
-
background: ${n(
|
|
249
|
+
background: ${n(g2)};
|
|
249
250
|
border: 1px solid ${n(j)};
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
.warning {
|
|
253
|
-
background: ${n(
|
|
254
|
+
background: ${n(H2)};
|
|
254
255
|
border: 1px solid ${n(U3)};
|
|
255
256
|
}
|
|
256
257
|
//variant soft, add 50% opacity to background color
|
|
@@ -261,17 +262,17 @@
|
|
|
261
262
|
}
|
|
262
263
|
|
|
263
264
|
:host([soft]) .success {
|
|
264
|
-
background: ${n(
|
|
265
|
+
background: ${n(Z2+"80")};
|
|
265
266
|
border: none
|
|
266
267
|
}
|
|
267
268
|
|
|
268
269
|
:host([soft]) .danger {
|
|
269
|
-
background: ${n(
|
|
270
|
+
background: ${n(g2+"80")};
|
|
270
271
|
border: none
|
|
271
272
|
}
|
|
272
273
|
|
|
273
274
|
:host([soft]) .warning {
|
|
274
|
-
background: ${n(
|
|
275
|
+
background: ${n(H2+"80")};
|
|
275
276
|
border: none
|
|
276
277
|
}
|
|
277
278
|
|
|
@@ -284,11 +285,11 @@
|
|
|
284
285
|
}
|
|
285
286
|
|
|
286
287
|
.info .icon {
|
|
287
|
-
color: ${n(
|
|
288
|
+
color: ${n(d2)};
|
|
288
289
|
}
|
|
289
290
|
|
|
290
291
|
.normal .icon {
|
|
291
|
-
color: ${n(
|
|
292
|
+
color: ${n(d2)};
|
|
292
293
|
background-color: ${n(z)};
|
|
293
294
|
}
|
|
294
295
|
|
|
@@ -311,7 +312,7 @@
|
|
|
311
312
|
|
|
312
313
|
.alert-big.normal .icon {
|
|
313
314
|
background-color: ${n(z)};
|
|
314
|
-
color: ${n(
|
|
315
|
+
color: ${n(M2)};
|
|
315
316
|
}
|
|
316
317
|
|
|
317
318
|
.alert-big.danger .icon {
|
|
@@ -323,7 +324,7 @@
|
|
|
323
324
|
}
|
|
324
325
|
|
|
325
326
|
.alert-big.info .icon {
|
|
326
|
-
background-color: ${n(
|
|
327
|
+
background-color: ${n(c2)};
|
|
327
328
|
}
|
|
328
329
|
|
|
329
330
|
.alert-big.success .icon {
|
|
@@ -732,7 +733,7 @@
|
|
|
732
733
|
margin-left: 8px;
|
|
733
734
|
}
|
|
734
735
|
|
|
735
|
-
${$({variant:"primary1",color:H,colorHover:H,colorActive:H,bgColor:_,bgColorHover:
|
|
736
|
+
${$({variant:"primary1",color:H,colorHover:H,colorActive:H,bgColor:_,bgColorHover:h2,bgColorActive:y,bgColorDisabled:e1,boxShadow:G3,boxShadowHover:Q3,boxShadowPressed:K3,boxShadowDisabled:J3})}
|
|
736
737
|
${$({variant:"primary2",color:H,colorHover:g1,colorActive:H,bgColor:j,bgColorHover:$1,bgColorActive:g1,bgColorDisabled:e1,boxShadow:X3,boxShadowHover:C5,boxShadowPressed:t5,boxShadowDisabled:o5})}
|
|
737
738
|
${$({variant:"outline1",color:y,colorHover:y,colorActive:H,bgColor:"transparent",bgColorHover:k1,bgColorActive:_,bgColorDisabled:"transparent"})}
|
|
738
739
|
.outline1 {
|
|
@@ -807,7 +808,7 @@
|
|
|
807
808
|
border-right-color: ${n(H)};
|
|
808
809
|
}
|
|
809
810
|
|
|
810
|
-
${$({variant:"text2",color:A,colorHover:
|
|
811
|
+
${$({variant:"text2",color:A,colorHover:p2,colorActive:A,bgColor:H,bgColorHover:e5,bgColorActive:P3,bgColorDisabled:H})}
|
|
811
812
|
.text2.loading {
|
|
812
813
|
background-color: ${n(y1)};
|
|
813
814
|
}
|
|
@@ -827,7 +828,7 @@
|
|
|
827
828
|
}
|
|
828
829
|
|
|
829
830
|
${$({variant:"text3",color:B,colorHover:B,colorActive:Q,bgColor:H,bgColorHover:z,bgColorActive:w1,bgColorDisabled:H})}
|
|
830
|
-
${$({variant:"icon1",color:B,colorHover:B,colorActive:Q,bgColor:z,bgColorHover:
|
|
831
|
+
${$({variant:"icon1",color:B,colorHover:B,colorActive:Q,bgColor:z,bgColorHover:c2,bgColorActive:w1,bgColorDisabled:e1})}
|
|
831
832
|
.icon1 {
|
|
832
833
|
height: 32px;
|
|
833
834
|
min-width: 32px;
|
|
@@ -1247,7 +1248,7 @@
|
|
|
1247
1248
|
* @license
|
|
1248
1249
|
* Copyright 2017 Google LLC
|
|
1249
1250
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1250
|
-
*/class
|
|
1251
|
+
*/class F1 extends f2{constructor(t){if(super(t),this.it=m,t.type!==V2.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===m||t==null)return this._t=void 0,this.it=t;if(t===E)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 o=[t];return o.raw=o,this._t={_$litType$:this.constructor.resultType,strings:o,values:[]}}}F1.directiveName="unsafeHTML",F1.resultType=1;const K=v2(F1),m5={mobile:767,tablet:1023,macbookAir:1280,desktop:1440},T={mobile:"767px",tablet:"1023px",macbookAir:"1280px",desktop:"1440px"};var x5=V`
|
|
1251
1252
|
:host {
|
|
1252
1253
|
z-index: 2;
|
|
1253
1254
|
}
|
|
@@ -1551,7 +1552,7 @@
|
|
|
1551
1552
|
`};if(t||o)return h`
|
|
1552
1553
|
<div class="wrapped" data-theme="${this.theme}">
|
|
1553
1554
|
<div class="inner-wrapped">
|
|
1554
|
-
<a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago" aria-label="Volver a página de inicio de Clínica Alemana">${y5(
|
|
1555
|
+
<a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago" aria-label="Volver a página de inicio de Clínica Alemana">${y5(E1[this.theme])}</a>
|
|
1555
1556
|
<div class="actions">
|
|
1556
1557
|
<button class="button" @click=${this.openBookingBox}>
|
|
1557
1558
|
<cas-icon name="flat-calendarOn" size="24"></cas-icon>
|
|
@@ -1581,7 +1582,7 @@
|
|
|
1581
1582
|
<cas-icon name="flat-close" size="24"></cas-icon>
|
|
1582
1583
|
</div>
|
|
1583
1584
|
<div class="card">
|
|
1584
|
-
${B5(
|
|
1585
|
+
${B5(E1[this.theme])}
|
|
1585
1586
|
<div class="actions">
|
|
1586
1587
|
<a href="https://www.clinicaalemana.cl/alemana-go-web">
|
|
1587
1588
|
<cas-button
|
|
@@ -1602,7 +1603,7 @@
|
|
|
1602
1603
|
`;const a=P({wrapped:!0,home:this.variant==="home"});return h`
|
|
1603
1604
|
<div class=${a} data-theme="${this.theme}">
|
|
1604
1605
|
<div class="inner-wrapped">
|
|
1605
|
-
<a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago" aria-label="Volver a página de inicio de Clínica Alemana">${k5(
|
|
1606
|
+
<a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago" aria-label="Volver a página de inicio de Clínica Alemana">${k5(E1[this.theme])} </a>
|
|
1606
1607
|
<ul class="group">
|
|
1607
1608
|
${this.variant==="home"?h`
|
|
1608
1609
|
<div class="box-search">
|
|
@@ -1623,7 +1624,7 @@
|
|
|
1623
1624
|
</ul>
|
|
1624
1625
|
</div>
|
|
1625
1626
|
</div>
|
|
1626
|
-
`}}const
|
|
1627
|
+
`}}const E1={light:{color:"#00A19B",secondColor:"#587993"},dark:{color:"#FFFFFF",secondColor:"#FFFFFF"}},k5=({color:i,secondColor:t})=>h` <svg
|
|
1627
1628
|
width="243"
|
|
1628
1629
|
viewBox="0 0 243 48"
|
|
1629
1630
|
fill="none"
|
|
@@ -2793,7 +2794,7 @@
|
|
|
2793
2794
|
<!-- Scale slot for onboarding -->
|
|
2794
2795
|
</cas-booking-box>`:null}
|
|
2795
2796
|
<div style="height: ${this.spaceHeight}px"></div>
|
|
2796
|
-
`}}customElements.get("cas-header")||customElements.define("cas-header",j2),customElements.get("cas-new-header-pre-head ")||customElements.define("cas-new-header-pre-head",U5),customElements.get("cas-new-header-head")||customElements.define("cas-new-header-head",b5),customElements.get("cas-new-header-search")||customElements.define("cas-new-header-search",S5),customElements.get("cas-new-header-taxonomy")||customElements.define("cas-new-header-taxonomy",z5),customElements.get("cas-new-header-menu-mobile")||customElements.define("cas-new-header-menu-mobile",D5),customElements.get("cas-new-header-card")||customElements.define("cas-new-header-card",R5);const D=i=>{const t={primary1:{color:H,colorHover:H,colorActive:H},primary2:{color:H,colorHover:g1,colorActive:H},outline1:{color:y,colorHover:y,colorActive:H},outline2:{color:j,colorHover:j,colorActive:H},text1:{color:y,colorHover:y,colorActive:y},text2:{color:A,colorHover:
|
|
2797
|
+
`}}customElements.get("cas-header")||customElements.define("cas-header",j2),customElements.get("cas-new-header-pre-head ")||customElements.define("cas-new-header-pre-head",U5),customElements.get("cas-new-header-head")||customElements.define("cas-new-header-head",b5),customElements.get("cas-new-header-search")||customElements.define("cas-new-header-search",S5),customElements.get("cas-new-header-taxonomy")||customElements.define("cas-new-header-taxonomy",z5),customElements.get("cas-new-header-menu-mobile")||customElements.define("cas-new-header-menu-mobile",D5),customElements.get("cas-new-header-card")||customElements.define("cas-new-header-card",R5);const D=i=>{const t={primary1:{color:H,colorHover:H,colorActive:H},primary2:{color:H,colorHover:g1,colorActive:H},outline1:{color:y,colorHover:y,colorActive:H},outline2:{color:j,colorHover:j,colorActive:H},text1:{color:y,colorHover:y,colorActive:y},text2:{color:A,colorHover:p2,colorActive:A},text3:{color:B,colorHover:B,colorActive:Q},icon1:{color:B,colorHover:B,colorActive:Q}};return n(`
|
|
2797
2798
|
.${i} svg > * {
|
|
2798
2799
|
fill: ${n(t[i].color)};
|
|
2799
2800
|
}
|
|
@@ -2839,7 +2840,7 @@
|
|
|
2839
2840
|
${D("text3")}
|
|
2840
2841
|
${D("icon1")}
|
|
2841
2842
|
|
|
2842
|
-
`,K5=Object.prototype;function T2(i){var t=i&&i.constructor,o=typeof t=="function"&&t.prototype||K5;return i===o}function J5(i,t){return function(o){return i(t(o))}}var X5=J5(Object.keys,Object),C6=X5,t6=Object.prototype,o6=t6.hasOwnProperty;function i6(i){if(!T2(i))return C6(i);var t=[];for(var o in Object(i))o6.call(i,o)&&o!="constructor"&&t.push(o);return t}var e6=typeof global=="object"&&global&&global.Object===Object&&global,D2=e6,l6=typeof self=="object"&&self&&self.Object===Object&&self,L6=D2||l6||Function("return this")(),O=L6,s6=O.Symbol,Z1=s6,O2=Object.prototype,n6=O2.hasOwnProperty,a6=O2.toString,l1=Z1?Z1.toStringTag:void 0;function r6(i){var t=n6.call(i,l1),o=i[l1];try{i[l1]=void 0;var e=!0}catch{}var l=a6.call(i);return e&&(t?i[l1]=o:delete i[l1]),l}var h6=Object.prototype,d6=h6.toString;function c6(i){return d6.call(i)}var M6="[object Null]",w6="[object Undefined]",R2=Z1?Z1.toStringTag:void 0;function L1(i){return i==null?i===void 0?w6:M6:R2&&R2 in Object(i)?r6(i):c6(i)}function P2(i){var t=typeof i;return i!=null&&(t=="object"||t=="function")}var g6="[object AsyncFunction]",H6="[object Function]",Z6="[object GeneratorFunction]",p6="[object Proxy]";function U2(i){if(!P2(i))return!1;var t=L1(i);return t==H6||t==Z6||t==g6||t==p6}var V6=O["__core-js_shared__"],
|
|
2843
|
+
`,K5=Object.prototype;function T2(i){var t=i&&i.constructor,o=typeof t=="function"&&t.prototype||K5;return i===o}function J5(i,t){return function(o){return i(t(o))}}var X5=J5(Object.keys,Object),C6=X5,t6=Object.prototype,o6=t6.hasOwnProperty;function i6(i){if(!T2(i))return C6(i);var t=[];for(var o in Object(i))o6.call(i,o)&&o!="constructor"&&t.push(o);return t}var e6=typeof global=="object"&&global&&global.Object===Object&&global,D2=e6,l6=typeof self=="object"&&self&&self.Object===Object&&self,L6=D2||l6||Function("return this")(),O=L6,s6=O.Symbol,Z1=s6,O2=Object.prototype,n6=O2.hasOwnProperty,a6=O2.toString,l1=Z1?Z1.toStringTag:void 0;function r6(i){var t=n6.call(i,l1),o=i[l1];try{i[l1]=void 0;var e=!0}catch{}var l=a6.call(i);return e&&(t?i[l1]=o:delete i[l1]),l}var h6=Object.prototype,d6=h6.toString;function c6(i){return d6.call(i)}var M6="[object Null]",w6="[object Undefined]",R2=Z1?Z1.toStringTag:void 0;function L1(i){return i==null?i===void 0?w6:M6:R2&&R2 in Object(i)?r6(i):c6(i)}function P2(i){var t=typeof i;return i!=null&&(t=="object"||t=="function")}var g6="[object AsyncFunction]",H6="[object Function]",Z6="[object GeneratorFunction]",p6="[object Proxy]";function U2(i){if(!P2(i))return!1;var t=L1(i);return t==H6||t==Z6||t==g6||t==p6}var V6=O["__core-js_shared__"],z1=V6,I2=function(){var i=/[^.]+$/.exec(z1&&z1.keys&&z1.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function v6(i){return!!I2&&I2 in i}var f6=Function.prototype,m6=f6.toString;function U(i){if(i!=null){try{return m6.call(i)}catch{}try{return i+""}catch{}}return""}var x6=/[\\^$.*+?()[\]{}|]/g,u6=/^\[object .+?Constructor\]$/,b6=Function.prototype,k6=Object.prototype,y6=b6.toString,B6=k6.hasOwnProperty,$6=RegExp("^"+y6.call(B6).replace(x6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _6(i){if(!P2(i)||v6(i))return!1;var t=U2(i)?$6:u6;return t.test(U(i))}function S6(i,t){return i?.[t]}function s1(i,t){var o=S6(i,t);return _6(o)?o:void 0}var F6=s1(O,"DataView"),A1=F6,E6=s1(O,"Map"),j1=E6,z6=s1(O,"Promise"),T1=z6,A6=s1(O,"Set"),D1=A6,j6=s1(O,"WeakMap"),O1=j6,N2="[object Map]",T6="[object Object]",q2="[object Promise]",W2="[object Set]",Y2="[object WeakMap]",G2="[object DataView]",D6=U(A1),O6=U(j1),R6=U(T1),P6=U(D1),U6=U(O1),I=L1;(A1&&I(new A1(new ArrayBuffer(1)))!=G2||j1&&I(new j1)!=N2||T1&&I(T1.resolve())!=q2||D1&&I(new D1)!=W2||O1&&I(new O1)!=Y2)&&(I=function(i){var t=L1(i),o=t==T6?i.constructor:void 0,e=o?U(o):"";if(e)switch(e){case D6:return G2;case O6:return N2;case R6:return q2;case P6:return W2;case U6:return Y2}return t});var I6=I;function R1(i){return i!=null&&typeof i=="object"}var N6="[object Arguments]";function Q2(i){return R1(i)&&L1(i)==N6}var K2=Object.prototype,q6=K2.hasOwnProperty,W6=K2.propertyIsEnumerable,Y6=Q2(function(){return arguments}())?Q2:function(i){return R1(i)&&q6.call(i,"callee")&&!W6.call(i,"callee")},G6=Y6,Q6=Array.isArray,K6=Q6,J6=9007199254740991;function J2(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=J6}function X6(i){return i!=null&&J2(i.length)&&!U2(i)}function C8(){return!1}var X2=typeof p=="object"&&p&&!p.nodeType&&p,C3=X2&&typeof module=="object"&&module&&!module.nodeType&&module,t8=C3&&C3.exports===X2,t3=t8?O.Buffer:void 0,o8=t3?t3.isBuffer:void 0,i8=o8||C8,e8=i8,l8="[object Arguments]",L8="[object Array]",s8="[object Boolean]",n8="[object Date]",a8="[object Error]",r8="[object Function]",h8="[object Map]",d8="[object Number]",c8="[object Object]",M8="[object RegExp]",w8="[object Set]",g8="[object String]",H8="[object WeakMap]",Z8="[object ArrayBuffer]",p8="[object DataView]",V8="[object Float32Array]",v8="[object Float64Array]",f8="[object Int8Array]",m8="[object Int16Array]",x8="[object Int32Array]",u8="[object Uint8Array]",b8="[object Uint8ClampedArray]",k8="[object Uint16Array]",y8="[object Uint32Array]",v={};v[V8]=v[v8]=v[f8]=v[m8]=v[x8]=v[u8]=v[b8]=v[k8]=v[y8]=!0,v[l8]=v[L8]=v[Z8]=v[s8]=v[p8]=v[n8]=v[a8]=v[r8]=v[h8]=v[d8]=v[c8]=v[M8]=v[w8]=v[g8]=v[H8]=!1;function B8(i){return R1(i)&&J2(i.length)&&!!v[L1(i)]}function $8(i){return function(t){return i(t)}}var o3=typeof p=="object"&&p&&!p.nodeType&&p,n1=o3&&typeof module=="object"&&module&&!module.nodeType&&module,_8=n1&&n1.exports===o3,P1=_8&&D2.process,S8=function(){try{var i=n1&&n1.require&&n1.require("util").types;return i||P1&&P1.binding&&P1.binding("util")}catch{}}(),i3=S8,e3=i3&&i3.isTypedArray,F8=e3?$8(e3):B8,E8=F8,z8="[object Map]",A8="[object Set]",j8=Object.prototype,T8=j8.hasOwnProperty;function a1(i){if(i==null)return!0;if(X6(i)&&(K6(i)||typeof i=="string"||typeof i.splice=="function"||e8(i)||E8(i)||G6(i)))return!i.length;var t=I6(i);if(t==z8||t==A8)return!i.size;if(T2(i))return!i6(i).length;for(var o in i)if(T8.call(i,o))return!1;return!0}var D8={12:C`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2843
2844
|
<path
|
|
2844
2845
|
d="M10.0625 3.25H6.3125L5.0625 2H1.9375C1.68886 2 1.4504 2.09877 1.27459 2.27459C1.09877 2.4504 1 2.68886 1 2.9375L1 8.5625C1 8.81114 1.09877 9.0496 1.27459 9.22541C1.4504 9.40123 1.68886 9.5 1.9375 9.5H10.0625C10.3111 9.5 10.5496 9.40123 10.7254 9.22541C10.9012 9.0496 11 8.81114 11 8.5625V4.1875C11 3.93886 10.9012 3.7004 10.7254 3.52459C10.5496 3.34877 10.3111 3.25 10.0625 3.25ZM8.02148 6.53125C8.02148 6.61413 7.98856 6.69362 7.92996 6.75222C7.87135 6.81083 7.79186 6.84375 7.70898 6.84375H6.45898V8.09375C6.45898 8.17663 6.42606 8.25612 6.36746 8.31472C6.30885 8.37333 6.22936 8.40625 6.14648 8.40625H5.83398C5.7511 8.40625 5.67162 8.37333 5.61301 8.31472C5.55441 8.25612 5.52148 8.17663 5.52148 8.09375V6.84375H4.27148C4.1886 6.84375 4.10912 6.81083 4.05051 6.75222C3.99191 6.69362 3.95898 6.61413 3.95898 6.53125V6.21875C3.95898 6.13587 3.99191 6.05638 4.05051 5.99778C4.10912 5.93917 4.1886 5.90625 4.27148 5.90625H5.52148V4.65625C5.52148 4.57337 5.55441 4.49388 5.61301 4.43528C5.67162 4.37667 5.7511 4.34375 5.83398 4.34375H6.14648C6.22936 4.34375 6.30885 4.37667 6.36746 4.43528C6.42606 4.49388 6.45898 4.57337 6.45898 4.65625V5.90625H7.70898C7.79186 5.90625 7.87135 5.93917 7.92996 5.99778C7.98856 6.05638 8.02148 6.13587 8.02148 6.21875V6.53125Z"
|
|
2845
2846
|
fill="var(--eloisa-ds-icon-color, #203442)"/>
|
|
@@ -9380,14 +9381,14 @@
|
|
|
9380
9381
|
</div>
|
|
9381
9382
|
<div class="icon"><cas-icon name=${Z} size="20"/></div>
|
|
9382
9383
|
</div>
|
|
9383
|
-
`,x=g?.map(k=>{if(k.label){let h1=this._highlightWord(k.label,o),
|
|
9384
|
+
`,x=g?.map(k=>{if(k.label){let h1=this._highlightWord(k.label,o),U1=K(h1),I1;if(k.keywords){let N1=k.keywords.map(st=>this._highlightWord(st,o));N1.length>1&&N1.push("..."),I1=K(N1.join(", "))}return h`
|
|
9384
9385
|
<div class="item with-keywords" @click=${()=>this._onSelect(k)}>
|
|
9385
|
-
<cas-text variant="body2">${
|
|
9386
|
-
${
|
|
9386
|
+
<cas-text variant="body2">${U1}</cas-text>
|
|
9387
|
+
${I1&&h`<cas-text variant="footnote2">${I1}</cas-text>`}
|
|
9387
9388
|
</div>
|
|
9388
|
-
`}else{let h1=this._highlightWord(k,o),
|
|
9389
|
+
`}else{let h1=this._highlightWord(k,o),U1=K(h1);return h`
|
|
9389
9390
|
<div class="item" @click=${()=>this._onSelect(k)}>
|
|
9390
|
-
<cas-text variant=${c}>${
|
|
9391
|
+
<cas-text variant=${c}>${U1}</cas-text>
|
|
9391
9392
|
</div>`}});return h`
|
|
9392
9393
|
<div class=${d}>
|
|
9393
9394
|
${r1()}
|
|
@@ -10451,4 +10452,4 @@
|
|
|
10451
10452
|
|
|
10452
10453
|
`;class v3 extends M{static styles=lt;static shadowRootOptions={...M.shadowRootOptions,mode:"open"};render(){return h`
|
|
10453
10454
|
<div class="spinner" />
|
|
10454
|
-
`}}customElements.get("cas-spinner")||customElements.define("cas-spinner",v3);var Lt={name:"@eloisa-ds/all-components",version:"
|
|
10455
|
+
`}}customElements.get("cas-spinner")||customElements.define("cas-spinner",v3);var Lt={name:"@eloisa-ds/all-components",version:"1.0.4",main:"./all-components.umd.js",module:"./all-components.es.js",exports:{".":{import:"./all-components.es.js",require:"./all-components.umd.js"}}};console.log("eloisa-ds",Lt?.version),p.CasAccordion=S1,p.CasAlert=m2,p.CasBookingBox=x2,p.CasButton=k2,p.CasCheckbox=y2,p.CasHeader2=j2,p.CasIcon=h3,p.CasInput=d3,p.CasInputFile=c3,p.CasModal=M3,p.CasNewFooter=B2,p.CasRadio=w3,p.CasSelect=g3,p.CasSpinner=v3,p.CasText=H3,p.CasTextField=Z3,p.CasToggle=p3,p.CasTooltip=V3,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|