cas-ds-web-components 1.2.73 → 1.2.75

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.
@@ -1,4 +1,4 @@
1
- (function(b,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(b=typeof globalThis<"u"?globalThis:b||self,J(b["all-components"]={}))})(this,function(b){"use strict";var Tv=Object.defineProperty;var Iv=(b,J,J1)=>J in b?Tv(b,J,{enumerable:!0,configurable:!0,writable:!0,value:J1}):b[J]=J1;var g=(b,J,J1)=>(Iv(b,typeof J!="symbol"?J+"":J,J1),J1);var I3,SC;(()=>{const i=document.createElement("link");i.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),i.setAttribute("rel","stylesheet"),document.head.appendChild(i)})();const Y5={name:"@eloisa-ds/all-components",version:"1.0.76",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
1
+ (function(b,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(b=typeof globalThis<"u"?globalThis:b||self,J(b["all-components"]={}))})(this,function(b){"use strict";var Tv=Object.defineProperty;var Iv=(b,J,J1)=>J in b?Tv(b,J,{enumerable:!0,configurable:!0,writable:!0,value:J1}):b[J]=J1;var g=(b,J,J1)=>(Iv(b,typeof J!="symbol"?J+"":J,J1),J1);var I3,SC;(()=>{const i=document.createElement("link");i.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),i.setAttribute("rel","stylesheet"),document.head.appendChild(i)})();const Y5={name:"@eloisa-ds/all-components",version:"1.0.78",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -69,7 +69,7 @@
69
69
  opacity: 1;
70
70
  }
71
71
  }
72
- `,n1="#01A49A",Y="#01736C",V4="#E6F6F5",x4="#4DBFB8",mt="#CCEDEB",U="#5143D5",_4="#392F95",h1="#EEECFB",q3="#857BE2",b4="#CBC7F2",Zt="#DCD9F7",y4="#203442",e1="#364855",L6="#4D5D68",g6="#79858E",z4="#909AA1",Vt="#BCC2C6",xt="#D2D6D9",W2="#E9EBEC",V="#FFFFFF",k4="#F2F5F9",i1="#E53935",$4="#FFEBEE",W3="#B71C1C",M6="#FFCDD2",A4="#FFB300",B4="#FFF8E1",_t="#FF8F00",bt="#FFECB3",E4="#7CB342",S4="#F1F8E9",yt="#33691E",zt="#DCEDC8",kt="0 2px 2px rgba(1, 164, 154, 0.25)",$t="0 4px 10px rgba(1, 115, 108, 0.35)",At="0 1px 2px rgba(1, 115, 108, 0.5)",Bt="0 2px 2px rgba(121, 133, 142, 0.25)",Et="0 2px 2px rgba(229, 57, 53, 0.25)",St="0 4px 10px rgba(183, 28, 28, 0.35)",Tt="0 1px 2px rgba(183, 28, 28, 0.5)",It="0 2px 2px rgba(121, 133, 142, 0.25)",Pt="Rubik",s2="#FFFFFF",Ft="#E9EBEC",u6="#79858E",T4="#364855",r1=i=>{const C={primary1:{color:V,colorHover:V,colorActive:V},primary2:{color:V,colorHover:W3,colorActive:V},outline1:{color:Y,colorHover:Y,colorActive:V},outline2:{color:i1,colorHover:i1,colorActive:V},text1:{color:Y,colorHover:Y,colorActive:Y},text2:{color:e1,colorHover:T4,colorActive:e1},text3:{color:U,colorHover:U,colorActive:s2},icon1:{color:U,colorHover:U,colorActive:s2}};return L(`
72
+ `,n1="#01A49A",Y="#01736C",V4="#E6F6F5",x4="#4DBFB8",mt="#CCEDEB",U="#5143D5",_4="#392F95",h1="#EEECFB",q3="#857BE2",b4="#CBC7F2",Zt="#DCD9F7",y4="#203442",t1="#364855",L6="#4D5D68",g6="#79858E",z4="#909AA1",Vt="#BCC2C6",xt="#D2D6D9",W2="#E9EBEC",V="#FFFFFF",k4="#F2F5F9",e1="#E53935",$4="#FFEBEE",W3="#B71C1C",M6="#FFCDD2",A4="#FFB300",B4="#FFF8E1",_t="#FF8F00",bt="#FFECB3",E4="#7CB342",S4="#F1F8E9",yt="#33691E",zt="#DCEDC8",kt="0 2px 2px rgba(1, 164, 154, 0.25)",$t="0 4px 10px rgba(1, 115, 108, 0.35)",At="0 1px 2px rgba(1, 115, 108, 0.5)",Bt="0 2px 2px rgba(121, 133, 142, 0.25)",Et="0 2px 2px rgba(229, 57, 53, 0.25)",St="0 4px 10px rgba(183, 28, 28, 0.35)",Tt="0 1px 2px rgba(183, 28, 28, 0.5)",It="0 2px 2px rgba(121, 133, 142, 0.25)",Pt="Rubik",s2="#FFFFFF",Ft="#E9EBEC",u6="#79858E",T4="#364855",r1=i=>{const C={primary1:{color:V,colorHover:V,colorActive:V},primary2:{color:V,colorHover:W3,colorActive:V},outline1:{color:Y,colorHover:Y,colorActive:V},outline2:{color:e1,colorHover:e1,colorActive:V},text1:{color:Y,colorHover:Y,colorActive:Y},text2:{color:t1,colorHover:T4,colorActive:t1},text3:{color:U,colorHover:U,colorActive:s2},icon1:{color:U,colorHover:U,colorActive:s2}};return L(`
73
73
  .${i} svg > * {
74
74
  fill: ${L(C[i].color)};
75
75
  }
@@ -6709,7 +6709,7 @@
6709
6709
  }
6710
6710
 
6711
6711
  ${X({variant:"primary1",color:V,colorHover:V,colorActive:V,bgColor:n1,bgColorHover:x4,bgColorActive:Y,bgColorDisabled:W2,boxShadow:kt,boxShadowHover:$t,boxShadowPressed:At,boxShadowDisabled:Bt})}
6712
- ${X({variant:"primary2",color:V,colorHover:W3,colorActive:V,bgColor:i1,bgColorHover:M6,bgColorActive:W3,bgColorDisabled:W2,boxShadow:Et,boxShadowHover:St,boxShadowPressed:Tt,boxShadowDisabled:It})}
6712
+ ${X({variant:"primary2",color:V,colorHover:W3,colorActive:V,bgColor:e1,bgColorHover:M6,bgColorActive:W3,bgColorDisabled:W2,boxShadow:Et,boxShadowHover:St,boxShadowPressed:Tt,boxShadowDisabled:It})}
6713
6713
  ${X({variant:"outline1",color:Y,colorHover:Y,colorActive:V,bgColor:"transparent",bgColorHover:V4,bgColorActive:n1,bgColorDisabled:"transparent"})}
6714
6714
  .outline1 {
6715
6715
  border: 1px solid ${L(n1)};
@@ -6728,9 +6728,9 @@
6728
6728
  border: none;
6729
6729
  }
6730
6730
 
6731
- ${X({variant:"outline2",color:i1,colorHover:i1,colorActive:V,bgColor:"transparent",bgColorHover:M6,bgColorActive:i1,bgColorDisabled:"transparent"})}
6731
+ ${X({variant:"outline2",color:e1,colorHover:e1,colorActive:V,bgColor:"transparent",bgColorHover:M6,bgColorActive:e1,bgColorDisabled:"transparent"})}
6732
6732
  .outline2 {
6733
- border: 1px solid ${L(i1)};
6733
+ border: 1px solid ${L(e1)};
6734
6734
  }
6735
6735
 
6736
6736
  .outline2:active,
@@ -6783,7 +6783,7 @@
6783
6783
  border-right-color: ${L(V)};
6784
6784
  }
6785
6785
 
6786
- ${X({variant:"text2",color:e1,colorHover:T4,colorActive:e1,bgColor:V,bgColorHover:Ft,bgColorActive:xt,bgColorDisabled:V})}
6786
+ ${X({variant:"text2",color:t1,colorHover:T4,colorActive:t1,bgColor:V,bgColorHover:Ft,bgColorActive:xt,bgColorDisabled:V})}
6787
6787
  .text2.loading {
6788
6788
  background-color: ${L(g6)};
6789
6789
  }
@@ -7292,11 +7292,11 @@
7292
7292
  * @license
7293
7293
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7294
7294
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7295
- */function o1(i){const C=customElements.get(i.is);if(!C)customElements.define(i.is,i);else{const t=C.version;t&&i.version&&t===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${C.version} is already in use. Something will probably break.`)}}/**
7295
+ */function i1(i){const C=customElements.get(i.is);if(!C)customElements.define(i.is,i);else{const t=C.version;t&&i.version&&t===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${C.version} is already in use. Something will probably break.`)}}/**
7296
7296
  * @license
7297
7297
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
7298
7298
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7299
- */class Fn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}o1(Fn);/**
7299
+ */class Fn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}i1(Fn);/**
7300
7300
  * @license
7301
7301
  * Copyright 2017 Google LLC
7302
7302
  * SPDX-License-Identifier: BSD-3-Clause
@@ -7523,7 +7523,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7523
7523
  * @license
7524
7524
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7525
7525
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7526
- */const s1=[];function G6(i,C,t=i.getAttribute("dir")){C?i.setAttribute("dir",C):t!=null&&i.removeAttribute("dir")}function K6(){return document.documentElement.getAttribute("dir")}function Er(){const i=K6();s1.forEach(C=>{G6(C,i)})}new MutationObserver(Er).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const L5=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),G6(this,K6(),null))}attributeChangedCallback(t,e,o){if(super.attributeChangedCallback(t,e,o),t!=="dir")return;const a=K6(),l=o===a&&s1.indexOf(this)===-1,h=!o&&e&&s1.indexOf(this)===-1;l||h?(this.__subscribe(),G6(this,a,o)):o!==a&&e===a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=s1.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,o){o==="dir"&&e===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,e,o)}_attributeToProperty(t,e,o){t==="dir"&&!e?this.dir="":super._attributeToProperty(t,e,o)}__subscribe(){s1.includes(this)||s1.push(this)}__unsubscribe(){s1.includes(this)&&s1.splice(s1.indexOf(this),1)}};/**
7526
+ */const o1=[];function G6(i,C,t=i.getAttribute("dir")){C?i.setAttribute("dir",C):t!=null&&i.removeAttribute("dir")}function K6(){return document.documentElement.getAttribute("dir")}function Er(){const i=K6();o1.forEach(C=>{G6(C,i)})}new MutationObserver(Er).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const L5=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),G6(this,K6(),null))}attributeChangedCallback(t,e,o){if(super.attributeChangedCallback(t,e,o),t!=="dir")return;const a=K6(),l=o===a&&o1.indexOf(this)===-1,h=!o&&e&&o1.indexOf(this)===-1;l||h?(this.__subscribe(),G6(this,a,o)):o!==a&&e===a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=o1.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,o){o==="dir"&&e===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,e,o)}_attributeToProperty(t,e,o){t==="dir"&&!e?this.dir="":super._attributeToProperty(t,e,o)}__subscribe(){o1.includes(this)||o1.push(this)}__unsubscribe(){o1.includes(this)&&o1.splice(o1.indexOf(this),1)}};/**
7527
7527
  * @license
7528
7528
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7529
7529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7614,7 +7614,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7614
7614
  * @license
7615
7615
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7616
7616
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7617
- */const F1={},t0=new Set;function e0(i,C){return(i||"").replace(`${C}:`,"")}function i0(i){return i?i.split(":")[0]||"vaadin":void 0}function o0(i,C){i._icons=[...i.querySelectorAll("[id]")].reduce((t,e)=>{const o=e0(e.id,C);return t[o]=e,t},{})}let Z5=class extends g5(v1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return t0}static getIconset(C){return F1[C]}static getIconSvg(C,t){const e=t||i0(C),o=this.getIconset(e);if(!C||!o)return{svg:X9(null)};const a=e0(C,e),l=o._icons[a];return{preserveAspectRatio:l?l.getAttribute("preserveAspectRatio"):null,svg:X9(l),size:o.size,viewBox:l?l.getAttribute("viewBox"):null}}static register(C,t,e){if(!F1[C]){const o=document.createElement("vaadin-iconset");o.appendChild(e.content.cloneNode(!0)),F1[C]=o,o0(o,C),o.size=t,o.name=C,o.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;F1[C]=this,o0(this,C),this.__updateIcons(C)}__updateIcons(C){t0.forEach(t=>{C===i0(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(F1[C]=F1[t],delete F1[t]),C&&this.__updateIcons(C)}};o1(Z5);/**
7617
+ */const F1={},t0=new Set;function e0(i,C){return(i||"").replace(`${C}:`,"")}function i0(i){return i?i.split(":")[0]||"vaadin":void 0}function o0(i,C){i._icons=[...i.querySelectorAll("[id]")].reduce((t,e)=>{const o=e0(e.id,C);return t[o]=e,t},{})}let Z5=class extends g5(v1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return t0}static getIconset(C){return F1[C]}static getIconSvg(C,t){const e=t||i0(C),o=this.getIconset(e);if(!C||!o)return{svg:X9(null)};const a=e0(C,e),l=o._icons[a];return{preserveAspectRatio:l?l.getAttribute("preserveAspectRatio"):null,svg:X9(l),size:o.size,viewBox:l?l.getAttribute("viewBox"):null}}static register(C,t,e){if(!F1[C]){const o=document.createElement("vaadin-iconset");o.appendChild(e.content.cloneNode(!0)),F1[C]=o,o0(o,C),o.size=t,o.name=C,o.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;F1[C]=this,o0(this,C),this.__updateIcons(C)}__updateIcons(C){t0.forEach(t=>{C===i0(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(F1[C]=F1[t],delete F1[t]),C&&this.__updateIcons(C)}};i1(Z5);/**
7618
7618
  * @license
7619
7619
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7620
7620
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7680,7 +7680,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7680
7680
  vertical-align: middle;
7681
7681
  font-size: inherit;
7682
7682
  }
7683
- `]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new I9(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),Z5.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),Z5.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:C,svg:t,size:e,viewBox:o}=Z5.getIconSvg(this.icon);o&&(this.__viewBox=o),C&&(this.__preserveAspectRatio=C),e&&e!==this.size&&(this.size=e),this.svg=t}__iconChanged(C){C?this._applyIcon():this.svg=C0(null)}async __srcChanged(C,t){if(!C){this.svg=null;return}if(this.icon="",!C.startsWith("data:")&&(t||C.includes("#"))){const[e,o]=C.split("#");this.__useRef=`${e}#${t||o}`}else try{h8.has(C)||h8.set(C,this.__fetch(C,{mode:"cors"}).then(l=>{if(!l.ok)throw new Error("Error loading icon");return l.text()}));const e=await h8.get(C);u3.__domParser||(u3.__domParser=new DOMParser);const a=u3.__domParser.parseFromString(e,"text/html").querySelector("svg");if(!a)throw new Error(`SVG element not found on path: ${C}`);this.svg=dd(a.innerHTML),t&&(this.__useRef=`#${t}`),this.__viewBox=a.getAttribute("viewBox")}catch(e){console.error(e),this.svg=null}}__svgChanged(C,t){t&&rd(C,t)}__computePAR(C,t){return t||C}__computeVisibility(C){return C?"visible":"hidden"}__computeViewBox(C,t){return t||`0 0 ${C} ${C}`}__fontChanged(C,t,e){this.classList.remove(...this.__addedIconClasses||[]),C&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),t?this.setAttribute("font-icon-content",t.length>1?String.fromCodePoint(parseInt(t,16)):t):e?this.setAttribute("font-icon-content",e):this.removeAttribute("font-icon-content"),(C||t||e)&&!this.icon&&(this.icon="")}attributeChangedCallback(C,t,e){super.attributeChangedCallback(C,t,e),C==="class"&&this.__iconClasses.some(o=>!this.classList.contains(o))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(C){this.style.fontFamily=`'${C}'`}}o1(u3);/**
7683
+ `]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new I9(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),Z5.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),Z5.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:C,svg:t,size:e,viewBox:o}=Z5.getIconSvg(this.icon);o&&(this.__viewBox=o),C&&(this.__preserveAspectRatio=C),e&&e!==this.size&&(this.size=e),this.svg=t}__iconChanged(C){C?this._applyIcon():this.svg=C0(null)}async __srcChanged(C,t){if(!C){this.svg=null;return}if(this.icon="",!C.startsWith("data:")&&(t||C.includes("#"))){const[e,o]=C.split("#");this.__useRef=`${e}#${t||o}`}else try{h8.has(C)||h8.set(C,this.__fetch(C,{mode:"cors"}).then(l=>{if(!l.ok)throw new Error("Error loading icon");return l.text()}));const e=await h8.get(C);u3.__domParser||(u3.__domParser=new DOMParser);const a=u3.__domParser.parseFromString(e,"text/html").querySelector("svg");if(!a)throw new Error(`SVG element not found on path: ${C}`);this.svg=dd(a.innerHTML),t&&(this.__useRef=`#${t}`),this.__viewBox=a.getAttribute("viewBox")}catch(e){console.error(e),this.svg=null}}__svgChanged(C,t){t&&rd(C,t)}__computePAR(C,t){return t||C}__computeVisibility(C){return C?"visible":"hidden"}__computeViewBox(C,t){return t||`0 0 ${C} ${C}`}__fontChanged(C,t,e){this.classList.remove(...this.__addedIconClasses||[]),C&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),t?this.setAttribute("font-icon-content",t.length>1?String.fromCodePoint(parseInt(t,16)):t):e?this.setAttribute("font-icon-content",e):this.removeAttribute("font-icon-content"),(C||t||e)&&!this.icon&&(this.icon="")}attributeChangedCallback(C,t,e){super.attributeChangedCallback(C,t,e),C==="class"&&this.__iconClasses.some(o=>!this.classList.contains(o))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(C){this.style.fontFamily=`'${C}'`}}i1(u3);/**
7684
7684
  * @license
7685
7685
  * Copyright 2017 Google LLC
7686
7686
  * SPDX-License-Identifier: BSD-3-Clause
@@ -7706,7 +7706,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7706
7706
  * @license
7707
7707
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7708
7708
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7709
- */const R1={},u0=new Set;function w0(i,C){return(i||"").replace(`${C}:`,"")}function f0(i){return i?i.split(":")[0]||"vaadin":void 0}function H0(i,C){i._icons=[...i.querySelectorAll("[id]")].reduce((t,e)=>{const o=w0(e.id,C);return t[o]=e,t},{})}class m0 extends g5(v1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return u0}static getIconset(C){return R1[C]}static getIconSvg(C,t){const e=t||f0(C),o=this.getIconset(e);if(!C||!o)return{svg:M0(null)};const a=w0(C,e),l=o._icons[a];return{preserveAspectRatio:l?l.getAttribute("preserveAspectRatio"):null,svg:M0(l),size:o.size,viewBox:l?l.getAttribute("viewBox"):null}}static register(C,t,e){if(!R1[C]){const o=document.createElement("vaadin-iconset");o.appendChild(e.content.cloneNode(!0)),R1[C]=o,H0(o,C),o.size=t,o.name=C,o.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;R1[C]=this,H0(this,C),this.__updateIcons(C)}__updateIcons(C){u0.forEach(t=>{C===f0(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(R1[C]=R1[t],delete R1[t]),C&&this.__updateIcons(C)}}o1(m0);/**
7709
+ */const R1={},u0=new Set;function w0(i,C){return(i||"").replace(`${C}:`,"")}function f0(i){return i?i.split(":")[0]||"vaadin":void 0}function H0(i,C){i._icons=[...i.querySelectorAll("[id]")].reduce((t,e)=>{const o=w0(e.id,C);return t[o]=e,t},{})}class m0 extends g5(v1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return u0}static getIconset(C){return R1[C]}static getIconSvg(C,t){const e=t||f0(C),o=this.getIconset(e);if(!C||!o)return{svg:M0(null)};const a=w0(C,e),l=o._icons[a];return{preserveAspectRatio:l?l.getAttribute("preserveAspectRatio"):null,svg:M0(l),size:o.size,viewBox:l?l.getAttribute("viewBox"):null}}static register(C,t,e){if(!R1[C]){const o=document.createElement("vaadin-iconset");o.appendChild(e.content.cloneNode(!0)),R1[C]=o,H0(o,C),o.size=t,o.name=C,o.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;R1[C]=this,H0(this,C),this.__updateIcons(C)}__updateIcons(C){u0.forEach(t=>{C===f0(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(R1[C]=R1[t],delete R1[t]),C&&this.__updateIcons(C)}}i1(m0);/**
7710
7710
  * @license
7711
7711
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
7712
7712
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -8961,7 +8961,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8961
8961
  <slot name="prefix"></slot>
8962
8962
  <slot></slot>
8963
8963
  <slot name="suffix"></slot>
8964
- `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",C=>{C.target===this&&C.preventDefault()}),this.addEventListener("click",C=>{C.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}}o1(Yd);/**
8964
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",C=>{C.target===this&&C.preventDefault()}),this.addEventListener("click",C=>{C.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}}i1(Yd);/**
8965
8965
  * @license
8966
8966
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
8967
8967
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9742,7 +9742,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9742
9742
  <div part="content">
9743
9743
  <slot></slot>
9744
9744
  </div>
9745
- `}static get is(){return"vaadin-combo-box-item"}}o1(ac);/**
9745
+ `}static get is(){return"vaadin-combo-box-item"}}i1(ac);/**
9746
9746
  @license
9747
9747
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9748
9748
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9872,7 +9872,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9872
9872
  <div part="loader"></div>
9873
9873
  <div part="content" id="content"><slot></slot></div>
9874
9874
  </div>
9875
- `}}o1(Bc);/**
9875
+ `}}i1(Bc);/**
9876
9876
  * @license
9877
9877
  * Copyright (c) 2023 Vaadin Ltd.
9878
9878
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9927,7 +9927,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9927
9927
  <div id="selector">
9928
9928
  <slot></slot>
9929
9929
  </div>
9930
- `}}o1(Fc);/**
9930
+ `}}i1(Fc);/**
9931
9931
  * @license
9932
9932
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
9933
9933
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10167,7 +10167,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10167
10167
  ></vaadin-combo-box-overlay>
10168
10168
 
10169
10169
  <slot name="tooltip"></slot>
10170
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xc(this,C=>{this._setInputElement(C),this._setFocusElement(C),this.stateTarget=C,this.ariaTarget=C})),this.addController(new Cp(this.inputElement,this._labelController)),this._tooltipController=new I9(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(C=>!C.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(C){C.stopPropagation(),super._onClearButtonClick(C)}_onHostClick(C){const t=C.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(C)}}o1(fp);class z3 extends f{constructor(){var C;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((C=this.getAttribute("label"))==null?void 0:C.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(C){const t=C.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:(t==null?void 0:t.value)||(t==null?void 0:t.label),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const e={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:e,bubbles:!0,composed:!0}))}filterChanged(C){var e;const t=C.detail.value;if(this.itemValuePath=t,!t){this.filteredData=this.data;return}this.filteredData=(e=this.data)==null?void 0:e.filter(o=>{var a,l;return typeof o=="string"?o==null?void 0:o.toLowerCase().includes(t.toLowerCase()):((a=o==null?void 0:o.keywords)==null?void 0:a.some(h=>h==null?void 0:h.toLowerCase().includes(t.toLowerCase())))||((l=o==null?void 0:o.label)==null?void 0:l.toLowerCase().includes(t.toLowerCase()))}),this.requestUpdate()}updated(C){C.has("data")}handleRender(){const C=o=>{var l,h,n;const a=((l=o==null?void 0:o.keywords)==null?void 0:l.length)>2;return M`
10170
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xc(this,C=>{this._setInputElement(C),this._setFocusElement(C),this.stateTarget=C,this.ariaTarget=C})),this.addController(new Cp(this.inputElement,this._labelController)),this._tooltipController=new I9(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(C=>!C.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(C){C.stopPropagation(),super._onClearButtonClick(C)}_onHostClick(C){const t=C.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(C)}}i1(fp);class z3 extends f{constructor(){var C;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((C=this.getAttribute("label"))==null?void 0:C.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(C){const t=C.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:(t==null?void 0:t.value)||(t==null?void 0:t.label),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const e={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:e,bubbles:!0,composed:!0}))}filterChanged(C){var e;const t=C.detail.value;if(this.itemValuePath=t,!t){this.filteredData=this.data;return}this.filteredData=(e=this.data)==null?void 0:e.filter(o=>{var a,l;return typeof o=="string"?o==null?void 0:o.toLowerCase().includes(t.toLowerCase()):((a=o==null?void 0:o.keywords)==null?void 0:a.some(h=>h==null?void 0:h.toLowerCase().includes(t.toLowerCase())))||((l=o==null?void 0:o.label)==null?void 0:l.toLowerCase().includes(t.toLowerCase()))}),this.requestUpdate()}updated(C){C.has("data")}handleRender(){const C=o=>{var l,h,n;const a=((l=o==null?void 0:o.keywords)==null?void 0:l.length)>2;return M`
10171
10171
  <div class="custom">
10172
10172
  <cas-text variant="body2" class="label">
10173
10173
  ${typeof o=="string"?o:o.label}
@@ -10252,7 +10252,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10252
10252
  }
10253
10253
 
10254
10254
  .text-container a {
10255
- color: ${L(e1)};
10255
+ color: ${L(t1)};
10256
10256
  }
10257
10257
 
10258
10258
  cas-text:nth-child(1) {
@@ -10260,7 +10260,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10260
10260
  }
10261
10261
 
10262
10262
  cas-text:nth-child(2) {
10263
- color: ${L(e1)};
10263
+ color: ${L(t1)};
10264
10264
  }
10265
10265
 
10266
10266
  .icon-container .icon {
@@ -10299,7 +10299,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10299
10299
 
10300
10300
  .danger {
10301
10301
  background: ${L($4)};
10302
- border: 1px solid ${L(i1)};
10302
+ border: 1px solid ${L(e1)};
10303
10303
  }
10304
10304
 
10305
10305
  .warning {
@@ -10431,7 +10431,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10431
10431
  * @license
10432
10432
  * Copyright 2018 Google LLC
10433
10433
  * SPDX-License-Identifier: BSD-3-Clause
10434
- */const Zp=Z7(class extends V7{constructor(i){var C;if(super(i),i.type!==m7.ATTRIBUTE||i.name!=="class"||((C=i.strings)===null||C===void 0?void 0:C.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(C=>i[C]).join(" ")+" "}update(i,[C]){var t,e;if(this.nt===void 0){this.nt=new Set,i.strings!==void 0&&(this.st=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in C)C[a]&&!(!((t=this.st)===null||t===void 0)&&t.has(a))&&this.nt.add(a);return this.render(C)}const o=i.element.classList;this.nt.forEach(a=>{a in C||(o.remove(a),this.nt.delete(a))});for(const a in C){const l=!!C[a];l===this.nt.has(a)||!((e=this.st)===null||e===void 0)&&e.has(a)||(l?(o.add(a),this.nt.add(a)):(o.remove(a),this.nt.delete(a)))}return k1}}),t1={HOME:"home",TRANSACTIONAL:"transactional"},Vp={mobile:767,tablet:1023,macbookAir:1280,desktop:1440},w1={mobile:"767px",tablet:"1023px",macbookAir:"1280px",desktop:"1440px"},xp=H`
10434
+ */const Zp=Z7(class extends V7{constructor(i){var C;if(super(i),i.type!==m7.ATTRIBUTE||i.name!=="class"||((C=i.strings)===null||C===void 0?void 0:C.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(C=>i[C]).join(" ")+" "}update(i,[C]){var t,e;if(this.nt===void 0){this.nt=new Set,i.strings!==void 0&&(this.st=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in C)C[a]&&!(!((t=this.st)===null||t===void 0)&&t.has(a))&&this.nt.add(a);return this.render(C)}const o=i.element.classList;this.nt.forEach(a=>{a in C||(o.remove(a),this.nt.delete(a))});for(const a in C){const l=!!C[a];l===this.nt.has(a)||!((e=this.st)===null||e===void 0)&&e.has(a)||(l?(o.add(a),this.nt.add(a)):(o.remove(a),this.nt.delete(a)))}return k1}}),s1={HOME:"home",TRANSACTIONAL:"transactional"},Vp={mobile:767,tablet:1023,macbookAir:1280,desktop:1440},w1={mobile:"767px",tablet:"1023px",macbookAir:"1280px",desktop:"1440px"},xp=H`
10435
10435
  :host {
10436
10436
  z-index: 2;
10437
10437
  }
@@ -10735,7 +10735,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10735
10735
  </div>
10736
10736
  `:""}
10737
10737
  </li>
10738
- `};if(C||t){const r=o.slice(0,2);return this.variant!==t1.HOME?M`
10738
+ `};if(C||t){const r=o.slice(0,2);return this.variant!==s1.HOME?M`
10739
10739
  <div class="wrapped" data-theme="${this.theme}">
10740
10740
  <div class="inner-wrapped">
10741
10741
  <a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago" aria-label="Volver a página de inicio de Clínica Alemana">${uC(D8[this.theme])}</a>
@@ -10808,11 +10808,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10808
10808
  <div class="inner-wrapped">
10809
10809
  <a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago" aria-label="Volver a página de inicio de Clínica Alemana">${bp(D8[this.theme])} </a>
10810
10810
  <ul class="group">
10811
- ${this.variant===t1.HOME?M`
10812
- <div class="box-search">
10813
- <cas-header-search></cas-header-search>
10814
- </div>
10815
- `:null}
10811
+
10816
10812
  ${o.map((r,d)=>h(r,d))}
10817
10813
  <div class="box-action">
10818
10814
  <cas-button
@@ -11861,7 +11857,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11861
11857
  </div>
11862
11858
  </div>
11863
11859
  </div>
11864
- `}}g(R5,"styles",Ip),g(R5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(R5,"properties",{theme:{type:String},size:{type:Number},disableMode:{type:Boolean}});const wC=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Pp=i=>{const C=document.querySelector("body");i==="dark"?C==null||C.classList.add("eloisa-ds-dark-mode"):C==null||C.classList.remove("eloisa-ds-dark-mode")};function Fp(i=null,C){let t=localStorage.getItem("theme")??wC(),e=t==="dark";const o=()=>{t=wC(),e=t==="dark"};return i!==null?(e=i==="true",t=e?"dark":"light"):window.matchMedia("(prefers-color-scheme: dark)").addListener(o),{theme:t,isDark:e}}const{mobile:Np,tablet:Op,macbookAir:Dp,desktop:Rp}=Vp,fC=()=>window.matchMedia(`(max-width: ${Np}px)`).matches,HC=()=>window.matchMedia(`(max-width: ${Op}px)`).matches,mC=()=>window.matchMedia(`(max-width: ${Dp}px)`).matches,ZC=()=>window.matchMedia(`(max-width: ${Rp}px)`).matches;class $3 extends f{constructor(){super(),this.showAlert=!1,this.alert={},this.type=t1.HOME,this.theme="light",this.disableMode="true",this.disableDarkModeDefault="false",this.isMobile=fC(),this.isTablet=HC(),this.isMacbookAir=mC(),this.isDesktop=ZC(),this.lastScrollPosition=0,this.spaceHeight=0}connectedCallback(){super.connectedCallback(),this.type===t1.HOME&&window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),window.addEventListener("resize",this.handleSpaces.bind(this))}disconnectedCallback(){this.type===t1.HOME&&window.removeEventListener("scroll",this.handleScroll.bind(this)),window.removeEventListener("resize",this.handleResize.bind(this)),window.removeEventListener("resize",this.handleSpaces.bind(this)),super.disconnectedCallback()}handleScroll(){const C=window.pageYOffset||document.documentElement.scrollTop,t=this.shadowRoot.querySelector("header"),e=this.shadowRoot.querySelector("cas-header-taxonomy"),o=this.spaceHeight+"px";C<=this.spaceHeight||C<this.lastScrollPosition?(e.setAttribute("collapsed","false"),e.style.transform="translateY(0)",t.style.height=o):(e.setAttribute("collapsed","true"),e.style.transform="translateY(-100%)",t.style.height=`${this.spaceHeight-72}px`),this.lastScrollPosition=C}handleResize(){const C=this.isMobile,t=this.isTablet,e=this.isMacbookAir,o=this.isDesktop;this.isMobile=fC(),this.isTablet=HC(),this.isMacbookAir=mC(),this.isDesktop=ZC(),(C!==this.isMobile||t!==this.isTablet||e!==this.isMacbookAir||o!==this.isDesktop)&&this.requestUpdate()}handleTheme({theme:C}){const t={theme:C,isDark:C==="dark"},e=new CustomEvent("themeChange",{detail:t});this.theme=C,this.defaultDarkMode(),document.dispatchEvent(e)}defaultDarkMode(){Pp(this.theme);const C=document.querySelector("head");if(this.disableDarkModeDefault!=="true"&&this.theme==="dark"){const t=document.createElement("style");t.setAttribute("data-name","eloisa-ds-dark-mode"),t.innerHTML=`
11860
+ `}}g(R5,"styles",Ip),g(R5,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(R5,"properties",{theme:{type:String},size:{type:Number},disableMode:{type:Boolean}});const wC=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Pp=i=>{const C=document.querySelector("body");i==="dark"?C==null||C.classList.add("eloisa-ds-dark-mode"):C==null||C.classList.remove("eloisa-ds-dark-mode")};function Fp(i=null,C){let t=localStorage.getItem("theme")??wC(),e=t==="dark";const o=()=>{t=wC(),e=t==="dark"};return i!==null?(e=i==="true",t=e?"dark":"light"):window.matchMedia("(prefers-color-scheme: dark)").addListener(o),{theme:t,isDark:e}}const{mobile:Np,tablet:Op,macbookAir:Dp,desktop:Rp}=Vp,fC=()=>window.matchMedia(`(max-width: ${Np}px)`).matches,HC=()=>window.matchMedia(`(max-width: ${Op}px)`).matches,mC=()=>window.matchMedia(`(max-width: ${Dp}px)`).matches,ZC=()=>window.matchMedia(`(max-width: ${Rp}px)`).matches;class $3 extends f{constructor(){super(),this.showAlert=!1,this.alert={},this.type=s1.HOME,this.theme="light",this.disableMode="true",this.disableDarkModeDefault="false",this.isMobile=fC(),this.isTablet=HC(),this.isMacbookAir=mC(),this.isDesktop=ZC(),this.lastScrollPosition=0,this.spaceHeight=0}connectedCallback(){super.connectedCallback(),this.type===s1.HOME&&window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),window.addEventListener("resize",this.handleSpaces.bind(this))}disconnectedCallback(){this.type===s1.HOME&&window.removeEventListener("scroll",this.handleScroll.bind(this)),window.removeEventListener("resize",this.handleResize.bind(this)),window.removeEventListener("resize",this.handleSpaces.bind(this)),super.disconnectedCallback()}handleScroll(){const C=window.pageYOffset||document.documentElement.scrollTop,t=this.shadowRoot.querySelector("header"),e=this.shadowRoot.querySelector("cas-header-taxonomy"),o=this.spaceHeight+"px";C<=this.spaceHeight||C<this.lastScrollPosition?(e.setAttribute("collapsed","false"),e.style.transform="translateY(0)",t.style.height=o):(e.setAttribute("collapsed","true"),e.style.transform="translateY(-100%)",t.style.height=`${this.spaceHeight-72}px`),this.lastScrollPosition=C}handleResize(){const C=this.isMobile,t=this.isTablet,e=this.isMacbookAir,o=this.isDesktop;this.isMobile=fC(),this.isTablet=HC(),this.isMacbookAir=mC(),this.isDesktop=ZC(),(C!==this.isMobile||t!==this.isTablet||e!==this.isMacbookAir||o!==this.isDesktop)&&this.requestUpdate()}handleTheme({theme:C}){const t={theme:C,isDark:C==="dark"},e=new CustomEvent("themeChange",{detail:t});this.theme=C,this.defaultDarkMode(),document.dispatchEvent(e)}defaultDarkMode(){Pp(this.theme);const C=document.querySelector("head");if(this.disableDarkModeDefault!=="true"&&this.theme==="dark"){const t=document.createElement("style");t.setAttribute("data-name","eloisa-ds-dark-mode"),t.innerHTML=`
11865
11861
  // * {
11866
11862
  // filter: invert(1) hue-rotate(180deg);
11867
11863
  // }
@@ -11878,7 +11874,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11878
11874
  // img {
11879
11875
  // filter: none;
11880
11876
  // }
11881
- `,C==null||C.appendChild(t)}else{const t=document.querySelector('[data-name="eloisa-ds-dark-mode"]');t==null||t.remove()}}handleEvents(){const C=o=>{this.setAttribute("darkMode",o.detail.isDark)},t=()=>{this.handleTheme({theme:"dark"})},e=()=>{this.handleTheme({theme:"light"})};document.addEventListener("themeChange",C),document.addEventListener("onDarkMode",t),document.addEventListener("onLightMode",e),setTimeout(()=>{const o=this.disableMode==="true";this.darkMode==="true"&&!o&&t(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(l){!localStorage.getItem("theme")&&!o&&(l.matches?t():e())})},1e3)}async handleAlert(){const C={type:"getAlert",showAlert:!0,alert:{Id:"3a2c0001-f74f-4004-bab2-d71ff5948d5e",LastModified:"2024-06-24T15:36:42Z",PublicationDate:"2024-06-13T19:31:49Z",DateCreated:"2022-11-07T21:01:31Z",IncludeInSitemap:!0,SystemSourceKey:null,UrlName:"alert-home",ItemDefaultUrl:"/alert-home",enabled:!1,endDate:"2024-06-25T04:57:00Z",Title:"Alert",Icono:"4",Contenido:'<div><div role="presentation" data-qa="message_content"><div><div data-qa="message-text"><div data-qa="block-kit-renderer"><div><div dir="auto"><div><p class="mb-0"><strong></strong><strong></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong>&iexcl;Importante!</strong> En este momento, la visualizaci&oacute;n de ex&aacute;menes no est&aacute; disponible en Mi Alemana Go. Sin embargo, puedes hacerlo <a href="https://mipaginadesalud.alemana.cl/wps/portal/mpdsvp/">aqui</a>.</p></div></div></div></div></div></div></div></div><div role="group"><div role="group" aria-label="Acciones en torno a un mensaje" data-qa="message-actions"></div></div><a href="https://www.google.com"></a>',startDate:"2024-06-24T14:14:07Z",Provider:"dynamicProvider121"}};{const{showAlert:t,alert:e}=C;if(t){if(console.log(e),!e||!e.enabled)return!1;let o=new Date,a=new Date(e==null?void 0:e.startDate),l=new Date(e==null?void 0:e.endDate);if(o>a&&o<l)this.showAlert=t,this.alert={title:e==null?void 0:e.Titulo,text:e==null?void 0:e.Contenido,active:e==null?void 0:e.enabled},console.log("Alerta activa"),this.delay(200).then(()=>this.handleSpaces());else return!1;this.requestUpdate()}}}async delay(C){return new Promise(t=>setTimeout(t,C))}async handleSpaces(){var a,l,h;const C=this.shadowRoot.querySelector("cas-header-taxonomy"),t=(a=this.shadowRoot.querySelector("cas-header-head"))==null?void 0:a.getClientRects()[0].height,e=(l=this.shadowRoot.querySelector("cas-header-pre-head"))==null?void 0:l.getClientRects()[0].height,o=(h=this.shadowRoot.querySelector("cas-header-taxonomy"))==null?void 0:h.getClientRects()[0].height;if(this.showAlert){const n=this.shadowRoot.querySelector("cas-alert");n==null||n.addEventListener("close",()=>{this.showAlert=!1,this.spaceHeight=t+e+o,C.style.top=`${t+e}px`,this.requestUpdate()});const r=n==null?void 0:n.getClientRects()[0].height;this.type!==t1.HOME?this.spaceHeight=t+r:(this.spaceHeight=t+e+o+r,C.style.top=`${t+e+r}px`)}else this.type!==t1.HOME?this.spaceHeight=t:(this.spaceHeight=t+e+o,C.style.top=`${t+e}px`);this.requestUpdate()}async firstUpdated(){const C=this.disableMode==="true",{theme:t}=Fp(this.darkMode);this.theme=C?"light":t,this.defaultDarkMode(),this.handleEvents(),await this.handleAlert(),await this.delay(200),this.handleSpaces()}render(){const{alert:C,type:t,bookingBox:e,theme:o}=this,a=e==="true";return M`
11877
+ `,C==null||C.appendChild(t)}else{const t=document.querySelector('[data-name="eloisa-ds-dark-mode"]');t==null||t.remove()}}handleEvents(){const C=o=>{this.setAttribute("darkMode",o.detail.isDark)},t=()=>{this.handleTheme({theme:"dark"})},e=()=>{this.handleTheme({theme:"light"})};document.addEventListener("themeChange",C),document.addEventListener("onDarkMode",t),document.addEventListener("onLightMode",e),setTimeout(()=>{const o=this.disableMode==="true";this.darkMode==="true"&&!o&&t(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(l){!localStorage.getItem("theme")&&!o&&(l.matches?t():e())})},1e3)}async handleAlert(){const C={type:"getAlert",showAlert:!0,alert:{Id:"3a2c0001-f74f-4004-bab2-d71ff5948d5e",LastModified:"2024-06-24T15:36:42Z",PublicationDate:"2024-06-13T19:31:49Z",DateCreated:"2022-11-07T21:01:31Z",IncludeInSitemap:!0,SystemSourceKey:null,UrlName:"alert-home",ItemDefaultUrl:"/alert-home",enabled:!1,endDate:"2024-06-25T04:57:00Z",Title:"Alert",Icono:"4",Contenido:'<div><div role="presentation" data-qa="message_content"><div><div data-qa="message-text"><div data-qa="block-kit-renderer"><div><div dir="auto"><div><p class="mb-0"><strong></strong><strong></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong>&iexcl;Importante!</strong> En este momento, la visualizaci&oacute;n de ex&aacute;menes no est&aacute; disponible en Mi Alemana Go. Sin embargo, puedes hacerlo <a href="https://mipaginadesalud.alemana.cl/wps/portal/mpdsvp/">aqui</a>.</p></div></div></div></div></div></div></div></div><div role="group"><div role="group" aria-label="Acciones en torno a un mensaje" data-qa="message-actions"></div></div><a href="https://www.google.com"></a>',startDate:"2024-06-24T14:14:07Z",Provider:"dynamicProvider121"}};{const{showAlert:t,alert:e}=C;if(t){if(console.log(e),!e||!e.enabled)return!1;let o=new Date,a=new Date(e==null?void 0:e.startDate),l=new Date(e==null?void 0:e.endDate);if(o>a&&o<l)this.showAlert=t,this.alert={title:e==null?void 0:e.Titulo,text:e==null?void 0:e.Contenido,active:e==null?void 0:e.enabled},console.log("Alerta activa"),this.delay(200).then(()=>this.handleSpaces());else return!1;this.requestUpdate()}}}async delay(C){return new Promise(t=>setTimeout(t,C))}async handleSpaces(){var a,l,h;const C=this.shadowRoot.querySelector("cas-header-taxonomy"),t=(a=this.shadowRoot.querySelector("cas-header-head"))==null?void 0:a.getClientRects()[0].height,e=(l=this.shadowRoot.querySelector("cas-header-pre-head"))==null?void 0:l.getClientRects()[0].height,o=(h=this.shadowRoot.querySelector("cas-header-taxonomy"))==null?void 0:h.getClientRects()[0].height;if(this.showAlert){const n=this.shadowRoot.querySelector("cas-alert");n==null||n.addEventListener("close",()=>{this.showAlert=!1,this.spaceHeight=t+e+o,C.style.top=`${t+e}px`,this.requestUpdate()});const r=n==null?void 0:n.getClientRects()[0].height;this.type!==s1.HOME?this.spaceHeight=t+r:(this.spaceHeight=t+e+o+r,C.style.top=`${t+e+r}px`)}else this.type!==s1.HOME?this.spaceHeight=t:(this.spaceHeight=t+e+o,C.style.top=`${t+e}px`);this.requestUpdate()}async firstUpdated(){const C=this.disableMode==="true",{theme:t}=Fp(this.darkMode);this.theme=C?"light":t,this.defaultDarkMode(),this.handleEvents(),await this.handleAlert(),await this.delay(200),this.handleSpaces()}render(){const{alert:C,type:t,bookingBox:e,theme:o}=this,a=e==="true";return M`
11882
11878
  <header class="container ${this.type}" data-theme=${o} style="height: ${this.spaceHeight}px">
11883
11879
  ${this.showAlert?M`<cas-alert
11884
11880
  showCloseButton
@@ -11886,7 +11882,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11886
11882
  text=${C.text}
11887
11883
  .fullWidth=${!0}
11888
11884
  ></cas-alert>`:M``}
11889
- ${this.type===t1.HOME?M`
11885
+ ${this.type===s1.HOME?M`
11890
11886
  <cas-header-pre-head
11891
11887
  theme=${o}
11892
11888
  variant=${t}
@@ -11903,7 +11899,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11903
11899
  .isTablet=${this.isTablet}
11904
11900
  .isMacbookAir=${this.isMacbookAir}
11905
11901
  ></cas-header-head>
11906
- ${t===t1.HOME?M`
11902
+ ${t===s1.HOME?M`
11907
11903
  <cas-header-taxonomy
11908
11904
  theme=${o}
11909
11905
  devMode="${this.devMode}"
@@ -11915,7 +11911,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11915
11911
  ></cas-header-taxonomy>
11916
11912
  `:null}
11917
11913
  </header>
11918
- ${t===t1.HOME?M`<cas-booking-box theme="${o}" .home=${a} showAlert=${this.showAlert}></cas-booking-box>`:null}
11914
+ ${t===s1.HOME?M`<cas-booking-box theme="${o}" .home=${a} showAlert=${this.showAlert}></cas-booking-box>`:null}
11919
11915
  <div style="height: ${this.spaceHeight}px"></div>
11920
11916
  `}}g($3,"styles",Ht),g($3,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g($3,"properties",{alert:{type:Object},type:{type:String},bookingBox:{type:String},darkMode:{type:String},disableMode:{type:String},disableDarkModeDefault:{type:String},devMode:{type:String}}),customElements.get("cas-header")||customElements.define("cas-header",$3),customElements.get("cas-header-pre-head ")||customElements.define("cas-header-pre-head",R5),customElements.get("cas-header-head")||customElements.define("cas-header-head",N5),customElements.get("cas-header-search")||customElements.define("cas-header-search",k3),customElements.get("cas-header-taxonomy")||customElements.define("cas-header-taxonomy",Ap),customElements.get("cas-header-menu-mobile")||customElements.define("cas-header-menu-mobile",O5),customElements.get("cas-header-card")||customElements.define("cas-header-card",D5);const j5={mobile:"767px",tablet:"1023px",desktop:"1440px"},jp=H`
11921
11917
  :host {
@@ -12054,7 +12050,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12054
12050
  text-decoration: none;
12055
12051
  }
12056
12052
  }
12057
- `,VC=[{section:"Nosotros",items:[{name:"Nuestra clínica",url:"https://www.clinicaalemana.cl/nuestra-clinica/bienvenida"},{name:"Sostenibilidad",url:"https://www.clinicaalemana.cl/sostenibilidad/home"},{name:"Sitios relacionados",url:"https://www.clinicaalemana.cl/nuestra-clinica/sitios-web-relacionados"}]},{section:"Información normativa",items:[{name:"Indicadores clínicos",url:"https://www.clinicaalemana.cl/nuestra-clinica/indicadores-clinicos"},{name:"Derechos y deberes",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/derechos_y_deberes"},{name:"Ley de Urgencia",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/ley_de_urgencia"},{name:"Ley 21.309",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/ley_21_309"},{name:"Patologías GES",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/patologias_ges"},{name:"Ley Dominga",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Ley_Dominga"},{name:"Ley Ricarte Soto",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Ley_Ricarte_Soto"},{name:"Reglamento interno de funcionamiento",url:"https://www.clinicaalemana.cl/reglamento-interno-de-funcionamiento"},{name:"Términos y condiciones",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/terminos_y_condiciones"}]},{section:"Información de interés",items:[{name:"Pago y cuentas",url:"https://centrodeayuda.clinicaalemana.cl/pagos_y_cuentas"},{name:"Covid-19",url:"https://centrodeayuda.clinicaalemana.cl/covid_19"},{name:"Documentos de salud",url:"https://centrodeayuda.clinicaalemana.cl/documentos_de_salud"},{name:"Servicios digitales",url:"https://centrodeayuda.clinicaalemana.cl/servicios_digitales"},{name:"Servicios y atenciones",url:"https://centrodeayuda.clinicaalemana.cl/servicios_y_atenciones"},{name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"}]},{section:"Ubicaciones",items:[{name:"Clínicas",url:"https://www.clinicaalemana.cl/sucursales/clinicas"},{name:"Centros médicos",url:"https://www.clinicaalemana.cl/sucursales/centros-medicos"},{name:"Tomas de muestras",url:"https://www.clinicaalemana.cl/sucursales/toma-de-muestras"}]},{section:"Te ayudamos",items:[{name:"Mesa Central <br>+56 2 2210 1111",url:"tel:+56222101111",icon:"flat-phone"},{name:"Reserva de hora <br>+56 2 2210 1700",url:"tel:+56222101700",icon:"flat-phone"},{name:"Rescate de emergencia <br>+56 2 2910 9911",url:"tel:+56229109911",icon:"flat-phone"}]}],qp=[{name:"instagram",icon:"flat-instagram",url:"https://www.instagram.com/clinicaalemanadesantiago/"},{name:"linkedin",icon:"flat-linkedin",url:"https://www.linkedin.com/company/clinica-alemana-de-santiago"},{name:"x",icon:"flat-x",url:"https://twitter.com/clinicaalemana"},{name:"facebook",icon:"flat-facebook",url:"https://www.facebook.com/Clinicaalemanadesantiago/"},{name:"spotify",icon:"flat-spotifySolid",url:"https://open.spotify.com/user/8001v856hnvkpq7ytrik14qlg"},{name:"youtube",icon:"flat-youtubeSolid",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA"}];class A3 extends f{constructor(){super()}updated(){const C=this.shadowRoot.querySelectorAll("section");C.forEach(t=>{const e=t.querySelector(".top"),o=t.querySelector(".list");e.addEventListener("click",()=>{C.forEach(a=>{a.querySelector(".list").classList.remove("active"),a.querySelector("cas-icon").classList.remove("active")}),o.classList.toggle("active"),e.querySelector("cas-icon").classList.toggle("active")})})}render(){const C=t=>{const{section:e,items:o}=t;return M`<section>
12053
+ `,VC=[{section:"Nosotros",items:[{name:"Nuestra clínica",url:"https://www.clinicaalemana.cl/nuestra-clinica/bienvenida"},{name:"Sostenibilidad",url:"https://www.clinicaalemana.cl/sostenibilidad/home"},{name:"Sitios relacionados",url:"https://www.clinicaalemana.cl/nuestra-clinica/sitios-web-relacionados"}]},{section:"Información normativa",items:[{name:"Indicadores clínicos",url:"https://www.clinicaalemana.cl/nuestra-clinica/indicadores-clinicos"},{name:"Derechos y deberes",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/derechos_y_deberes"},{name:"Ley de Urgencia",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/ley_de_urgencia"},{name:"Ley 21.309",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/ley_21_309"},{name:"Patologías GES",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/patologias_ges"},{name:"Ley Dominga",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Ley_Dominga"},{name:"Ley Ricarte Soto",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Ley_Ricarte_Soto"},{name:"Reglamento interno de funcionamiento",url:"https://www.clinicaalemana.cl/reglamento-interno-de-funcionamiento"},{name:"Términos y condiciones",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/terminos_y_condiciones"}]},{section:"Información de interés",items:[{name:"Pago y cuentas",url:"https://centrodeayuda.clinicaalemana.cl/pagos_y_cuentas"},{name:"Covid-19",url:"https://centrodeayuda.clinicaalemana.cl/covid_19"},{name:"Documentos de salud",url:"https://centrodeayuda.clinicaalemana.cl/documentos_de_salud"},{name:"Servicios digitales",url:"https://centrodeayuda.clinicaalemana.cl/servicios_digitales"},{name:"Servicios y atenciones",url:"https://centrodeayuda.clinicaalemana.cl/servicios_y_atenciones"},{name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"}]},{section:"Ubicaciones",items:[{name:"Clínicas",url:"https://www.clinicaalemana.cl/sucursales/clinicas"},{name:"Centros médicos",url:"https://www.clinicaalemana.cl/sucursales/centros-medicos"},{name:"Tomas de muestras",url:"https://www.clinicaalemana.cl/sucursales/toma-de-muestras"}]},{section:"Te ayudamos",items:[{name:"Mesa Central <br>+56 2 2210 1111",url:"tel:+56222101111",icon:"flat-phone"},{name:"Reserva de hora <br>+56 2 2910 1700",url:"tel:+56229101700",icon:"flat-phone"},{name:"Rescate de emergencia <br>+56 2 2910 9911",url:"tel:+56229109911",icon:"flat-phone"}]}],qp=[{name:"instagram",icon:"flat-instagram",url:"https://www.instagram.com/clinicaalemanadesantiago/"},{name:"linkedin",icon:"flat-linkedin",url:"https://www.linkedin.com/company/clinica-alemana-de-santiago"},{name:"x",icon:"flat-x",url:"https://twitter.com/clinicaalemana"},{name:"facebook",icon:"flat-facebook",url:"https://www.facebook.com/Clinicaalemanadesantiago/"},{name:"spotify",icon:"flat-spotifySolid",url:"https://open.spotify.com/user/8001v856hnvkpq7ytrik14qlg"},{name:"youtube",icon:"flat-youtubeSolid",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA"}];class A3 extends f{constructor(){super()}updated(){const C=this.shadowRoot.querySelectorAll("section");C.forEach(t=>{const e=t.querySelector(".top"),o=t.querySelector(".list");e.addEventListener("click",()=>{C.forEach(a=>{a.querySelector(".list").classList.remove("active"),a.querySelector("cas-icon").classList.remove("active")}),o.classList.toggle("active"),e.querySelector("cas-icon").classList.toggle("active")})})}render(){const C=t=>{const{section:e,items:o}=t;return M`<section>
12058
12054
  <div class="top">
12059
12055
  <cas-text variant="headline3">${e}</cas-text>
12060
12056
  <cas-icon name="flat-chevronDown" size="20"></cas-icon>
@@ -12277,7 +12273,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12277
12273
  align-items: center;
12278
12274
  gap: 32px;
12279
12275
  padding: 24px 32px 24px 40px;
12280
- color: ${L(e1)};
12276
+ color: ${L(t1)};
12281
12277
  }
12282
12278
 
12283
12279
  header:after {
@@ -12326,7 +12322,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12326
12322
  display: flex;
12327
12323
  flex-direction: column;
12328
12324
  gap: 24px;
12329
- color: ${L(e1)};
12325
+ color: ${L(t1)};
12330
12326
  }
12331
12327
 
12332
12328
  .box .content {
@@ -13606,7 +13602,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
13606
13602
  align-items: center;
13607
13603
  justify-content: space-between;
13608
13604
  gap:12px;
13609
- color: ${L(e1)};
13605
+ color: ${L(t1)};
13610
13606
  padding: 14px 16px 14px 24px;
13611
13607
  }
13612
13608
  :host .content .text-container cas-text:nth-child(2) {
@@ -13620,7 +13616,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
13620
13616
  background-color: ${L(E4)};
13621
13617
  }
13622
13618
  :host([variant='error']) .icon {
13623
- background-color: ${L(i1)};
13619
+ background-color: ${L(e1)};
13624
13620
  }
13625
13621
  :host([variant='warning']) .icon {
13626
13622
  background-color: ${L(A4)};
@@ -163,7 +163,7 @@
163
163
  text-decoration: none;
164
164
  }
165
165
  }
166
- `,pe=[{section:"Nosotros",items:[{name:"Nuestra clínica",url:"https://www.clinicaalemana.cl/nuestra-clinica/bienvenida"},{name:"Sostenibilidad",url:"https://www.clinicaalemana.cl/sostenibilidad/home"},{name:"Sitios relacionados",url:"https://www.clinicaalemana.cl/nuestra-clinica/sitios-web-relacionados"}]},{section:"Información normativa",items:[{name:"Indicadores clínicos",url:"https://www.clinicaalemana.cl/nuestra-clinica/indicadores-clinicos"},{name:"Derechos y deberes",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/derechos_y_deberes"},{name:"Ley de Urgencia",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/ley_de_urgencia"},{name:"Ley 21.309",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/ley_21_309"},{name:"Patologías GES",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/patologias_ges"},{name:"Ley Dominga",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Ley_Dominga"},{name:"Ley Ricarte Soto",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Ley_Ricarte_Soto"},{name:"Reglamento interno de funcionamiento",url:"https://www.clinicaalemana.cl/reglamento-interno-de-funcionamiento"},{name:"Términos y condiciones",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/terminos_y_condiciones"}]},{section:"Información de interés",items:[{name:"Pago y cuentas",url:"https://centrodeayuda.clinicaalemana.cl/pagos_y_cuentas"},{name:"Covid-19",url:"https://centrodeayuda.clinicaalemana.cl/covid_19"},{name:"Documentos de salud",url:"https://centrodeayuda.clinicaalemana.cl/documentos_de_salud"},{name:"Servicios digitales",url:"https://centrodeayuda.clinicaalemana.cl/servicios_digitales"},{name:"Servicios y atenciones",url:"https://centrodeayuda.clinicaalemana.cl/servicios_y_atenciones"},{name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"}]},{section:"Ubicaciones",items:[{name:"Clínicas",url:"https://www.clinicaalemana.cl/sucursales/clinicas"},{name:"Centros médicos",url:"https://www.clinicaalemana.cl/sucursales/centros-medicos"},{name:"Tomas de muestras",url:"https://www.clinicaalemana.cl/sucursales/toma-de-muestras"}]},{section:"Te ayudamos",items:[{name:"Mesa Central <br>+56 2 2210 1111",url:"tel:+56222101111",icon:"flat-phone"},{name:"Reserva de hora <br>+56 2 2210 1700",url:"tel:+56222101700",icon:"flat-phone"},{name:"Rescate de emergencia <br>+56 2 2910 9911",url:"tel:+56229109911",icon:"flat-phone"}]}],ni=[{name:"instagram",icon:"flat-instagram",url:"https://www.instagram.com/clinicaalemanadesantiago/"},{name:"linkedin",icon:"flat-linkedin",url:"https://www.linkedin.com/company/clinica-alemana-de-santiago"},{name:"x",icon:"flat-x",url:"https://twitter.com/clinicaalemana"},{name:"facebook",icon:"flat-facebook",url:"https://www.facebook.com/Clinicaalemanadesantiago/"},{name:"spotify",icon:"flat-spotifySolid",url:"https://open.spotify.com/user/8001v856hnvkpq7ytrik14qlg"},{name:"youtube",icon:"flat-youtubeSolid",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA"}];/**
166
+ `,pe=[{section:"Nosotros",items:[{name:"Nuestra clínica",url:"https://www.clinicaalemana.cl/nuestra-clinica/bienvenida"},{name:"Sostenibilidad",url:"https://www.clinicaalemana.cl/sostenibilidad/home"},{name:"Sitios relacionados",url:"https://www.clinicaalemana.cl/nuestra-clinica/sitios-web-relacionados"}]},{section:"Información normativa",items:[{name:"Indicadores clínicos",url:"https://www.clinicaalemana.cl/nuestra-clinica/indicadores-clinicos"},{name:"Derechos y deberes",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/derechos_y_deberes"},{name:"Ley de Urgencia",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/ley_de_urgencia"},{name:"Ley 21.309",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/ley_21_309"},{name:"Patologías GES",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/patologias_ges"},{name:"Ley Dominga",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Ley_Dominga"},{name:"Ley Ricarte Soto",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Ley_Ricarte_Soto"},{name:"Reglamento interno de funcionamiento",url:"https://www.clinicaalemana.cl/reglamento-interno-de-funcionamiento"},{name:"Términos y condiciones",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/terminos_y_condiciones"}]},{section:"Información de interés",items:[{name:"Pago y cuentas",url:"https://centrodeayuda.clinicaalemana.cl/pagos_y_cuentas"},{name:"Covid-19",url:"https://centrodeayuda.clinicaalemana.cl/covid_19"},{name:"Documentos de salud",url:"https://centrodeayuda.clinicaalemana.cl/documentos_de_salud"},{name:"Servicios digitales",url:"https://centrodeayuda.clinicaalemana.cl/servicios_digitales"},{name:"Servicios y atenciones",url:"https://centrodeayuda.clinicaalemana.cl/servicios_y_atenciones"},{name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"}]},{section:"Ubicaciones",items:[{name:"Clínicas",url:"https://www.clinicaalemana.cl/sucursales/clinicas"},{name:"Centros médicos",url:"https://www.clinicaalemana.cl/sucursales/centros-medicos"},{name:"Tomas de muestras",url:"https://www.clinicaalemana.cl/sucursales/toma-de-muestras"}]},{section:"Te ayudamos",items:[{name:"Mesa Central <br>+56 2 2210 1111",url:"tel:+56222101111",icon:"flat-phone"},{name:"Reserva de hora <br>+56 2 2910 1700",url:"tel:+56229101700",icon:"flat-phone"},{name:"Rescate de emergencia <br>+56 2 2910 9911",url:"tel:+56229109911",icon:"flat-phone"}]}],ni=[{name:"instagram",icon:"flat-instagram",url:"https://www.instagram.com/clinicaalemanadesantiago/"},{name:"linkedin",icon:"flat-linkedin",url:"https://www.linkedin.com/company/clinica-alemana-de-santiago"},{name:"x",icon:"flat-x",url:"https://twitter.com/clinicaalemana"},{name:"facebook",icon:"flat-facebook",url:"https://www.facebook.com/Clinicaalemanadesantiago/"},{name:"spotify",icon:"flat-spotifySolid",url:"https://open.spotify.com/user/8001v856hnvkpq7ytrik14qlg"},{name:"youtube",icon:"flat-youtubeSolid",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA"}];/**
167
167
  * @license
168
168
  * Copyright 2017 Google LLC
169
169
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,8 +1,8 @@
1
- (function(x,N){typeof exports=="object"&&typeof module<"u"?N(exports):typeof define=="function"&&define.amd?define(["exports"],N):(x=typeof globalThis<"u"?globalThis:x||self,N(x["cas-header"]={}))})(this,function(x){"use strict";var Kc=Object.defineProperty;var Jc=(x,N,W)=>N in x?Kc(x,N,{enumerable:!0,configurable:!0,writable:!0,value:W}):x[N]=W;var f=(x,N,W)=>(Jc(x,typeof N!="symbol"?N+"":N,W),W);/**
1
+ (function(x,N){typeof exports=="object"&&typeof module<"u"?N(exports):typeof define=="function"&&define.amd?define(["exports"],N):(x=typeof globalThis<"u"?globalThis:x||self,N(x["cas-header"]={}))})(this,function(x){"use strict";var Kc=Object.defineProperty;var Jc=(x,N,q)=>N in x?Kc(x,N,{enumerable:!0,configurable:!0,writable:!0,value:q}):x[N]=q;var f=(x,N,q)=>(Jc(x,typeof N!="symbol"?N+"":N,q),q);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const N=window,W=N.ShadowRoot&&(N.ShadyCSS===void 0||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,M5=Symbol(),d8=new WeakMap;let g5=class{constructor(C,t,e){if(this._$cssResult$=!0,e!==M5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=C,this.t=t}get styleSheet(){let C=this.o;const t=this.t;if(W&&C===void 0){const e=t!==void 0&&t.length===1;e&&(C=d8.get(t)),C===void 0&&((this.o=C=new CSSStyleSheet).replaceSync(this.cssText),e&&d8.set(t,C))}return C}toString(){return this.cssText}};const p=s=>new g5(typeof s=="string"?s:s+"",void 0,M5),w=(s,...C)=>{const t=s.length===1?s[0]:C.reduce((e,i,l)=>e+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+s[l+1],s[0]);return new g5(t,s,M5)},tC=(s,C)=>{W?s.adoptedStyleSheets=C.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):C.forEach(t=>{const e=document.createElement("style"),i=N.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,s.appendChild(e)})},c8=W?s=>s:s=>s instanceof CSSStyleSheet?(C=>{let t="";for(const e of C.cssRules)t+=e.cssText;return p(t)})(s):s;/**
5
+ */const N=window,q=N.ShadowRoot&&(N.ShadyCSS===void 0||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,M5=Symbol(),d8=new WeakMap;let g5=class{constructor(C,t,e){if(this._$cssResult$=!0,e!==M5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=C,this.t=t}get styleSheet(){let C=this.o;const t=this.t;if(q&&C===void 0){const e=t!==void 0&&t.length===1;e&&(C=d8.get(t)),C===void 0&&((this.o=C=new CSSStyleSheet).replaceSync(this.cssText),e&&d8.set(t,C))}return C}toString(){return this.cssText}};const p=s=>new g5(typeof s=="string"?s:s+"",void 0,M5),w=(s,...C)=>{const t=s.length===1?s[0]:C.reduce((e,i,l)=>e+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+s[l+1],s[0]);return new g5(t,s,M5)},tC=(s,C)=>{q?s.adoptedStyleSheets=C.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):C.forEach(t=>{const e=document.createElement("style"),i=N.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,s.appendChild(e)})},c8=q?s=>s:s=>s instanceof CSSStyleSheet?(C=>{let t="";for(const e of C.cssRules)t+=e.cssText;return p(t)})(s):s;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
@@ -7292,11 +7292,11 @@
7292
7292
  * @license
7293
7293
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7294
7294
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7295
- */function Y(s){const C=customElements.get(s.is);if(!C)customElements.define(s.is,s);else{const t=C.version;t&&s.version&&t===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${C.version} is already in use. Something will probably break.`)}}/**
7295
+ */function W(s){const C=customElements.get(s.is);if(!C)customElements.define(s.is,s);else{const t=C.version;t&&s.version&&t===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${C.version} is already in use. Something will probably break.`)}}/**
7296
7296
  * @license
7297
7297
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
7298
7298
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7299
- */class Ua extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}Y(Ua);/**
7299
+ */class Ua extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}W(Ua);/**
7300
7300
  * @license
7301
7301
  * Copyright 2017 Google LLC
7302
7302
  * SPDX-License-Identifier: BSD-3-Clause
@@ -7523,7 +7523,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7523
7523
  * @license
7524
7524
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7525
7525
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7526
- */const G=[];function p6(s,C,t=s.getAttribute("dir")){C?s.setAttribute("dir",C):t!=null&&s.removeAttribute("dir")}function M6(){return document.documentElement.getAttribute("dir")}function Dn(){const s=M6();G.forEach(C=>{p6(C,s)})}new MutationObserver(Dn).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const O3=s=>class extends s{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),p6(this,M6(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t!=="dir")return;const l=M6(),a=i===l&&G.indexOf(this)===-1,n=!i&&e&&G.indexOf(this)===-1;a||n?(this.__subscribe(),p6(this,l,i)):i!==l&&e===l&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=G.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){i==="dir"&&e===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){t==="dir"&&!e?this.dir="":super._attributeToProperty(t,e,i)}__subscribe(){G.includes(this)||G.push(this)}__unsubscribe(){G.includes(this)&&G.splice(G.indexOf(this),1)}};/**
7526
+ */const Y=[];function p6(s,C,t=s.getAttribute("dir")){C?s.setAttribute("dir",C):t!=null&&s.removeAttribute("dir")}function M6(){return document.documentElement.getAttribute("dir")}function Dn(){const s=M6();Y.forEach(C=>{p6(C,s)})}new MutationObserver(Dn).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const O3=s=>class extends s{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),p6(this,M6(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t!=="dir")return;const l=M6(),a=i===l&&Y.indexOf(this)===-1,n=!i&&e&&Y.indexOf(this)===-1;a||n?(this.__subscribe(),p6(this,l,i)):i!==l&&e===l&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Y.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){i==="dir"&&e===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){t==="dir"&&!e?this.dir="":super._attributeToProperty(t,e,i)}__subscribe(){Y.includes(this)||Y.push(this)}__unsubscribe(){Y.includes(this)&&Y.splice(Y.indexOf(this),1)}};/**
7527
7527
  * @license
7528
7528
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7529
7529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7614,7 +7614,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7614
7614
  * @license
7615
7615
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7616
7616
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7617
- */const k1={},g9=new Set;function u9(s,C){return(s||"").replace(`${C}:`,"")}function w9(s){return s?s.split(":")[0]||"vaadin":void 0}function f9(s,C){s._icons=[...s.querySelectorAll("[id]")].reduce((t,e)=>{const i=u9(e.id,C);return t[i]=e,t},{})}let Y3=class extends D3(o1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return g9}static getIconset(C){return k1[C]}static getIconSvg(C,t){const e=t||w9(C),i=this.getIconset(e);if(!C||!i)return{svg:p9(null)};const l=u9(C,e),a=i._icons[l];return{preserveAspectRatio:a?a.getAttribute("preserveAspectRatio"):null,svg:p9(a),size:i.size,viewBox:a?a.getAttribute("viewBox"):null}}static register(C,t,e){if(!k1[C]){const i=document.createElement("vaadin-iconset");i.appendChild(e.content.cloneNode(!0)),k1[C]=i,f9(i,C),i.size=t,i.name=C,i.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;k1[C]=this,f9(this,C),this.__updateIcons(C)}__updateIcons(C){g9.forEach(t=>{C===w9(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(k1[C]=k1[t],delete k1[t]),C&&this.__updateIcons(C)}};Y(Y3);/**
7617
+ */const k1={},g9=new Set;function u9(s,C){return(s||"").replace(`${C}:`,"")}function w9(s){return s?s.split(":")[0]||"vaadin":void 0}function f9(s,C){s._icons=[...s.querySelectorAll("[id]")].reduce((t,e)=>{const i=u9(e.id,C);return t[i]=e,t},{})}let Y3=class extends D3(o1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return g9}static getIconset(C){return k1[C]}static getIconSvg(C,t){const e=t||w9(C),i=this.getIconset(e);if(!C||!i)return{svg:p9(null)};const l=u9(C,e),a=i._icons[l];return{preserveAspectRatio:a?a.getAttribute("preserveAspectRatio"):null,svg:p9(a),size:i.size,viewBox:a?a.getAttribute("viewBox"):null}}static register(C,t,e){if(!k1[C]){const i=document.createElement("vaadin-iconset");i.appendChild(e.content.cloneNode(!0)),k1[C]=i,f9(i,C),i.size=t,i.name=C,i.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;k1[C]=this,f9(this,C),this.__updateIcons(C)}__updateIcons(C){g9.forEach(t=>{C===w9(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(k1[C]=k1[t],delete k1[t]),C&&this.__updateIcons(C)}};W(Y3);/**
7618
7618
  * @license
7619
7619
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7620
7620
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7680,7 +7680,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7680
7680
  vertical-align: middle;
7681
7681
  font-size: inherit;
7682
7682
  }
7683
- `]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new X7(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),Y3.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),Y3.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:C,svg:t,size:e,viewBox:i}=Y3.getIconSvg(this.icon);i&&(this.__viewBox=i),C&&(this.__preserveAspectRatio=C),e&&e!==this.size&&(this.size=e),this.svg=t}__iconChanged(C){C?this._applyIcon():this.svg=M9(null)}async __srcChanged(C,t){if(!C){this.svg=null;return}if(this.icon="",!C.startsWith("data:")&&(t||C.includes("#"))){const[e,i]=C.split("#");this.__useRef=`${e}#${t||i}`}else try{y6.has(C)||y6.set(C,this.__fetch(C,{mode:"cors"}).then(a=>{if(!a.ok)throw new Error("Error loading icon");return a.text()}));const e=await y6.get(C);K2.__domParser||(K2.__domParser=new DOMParser);const l=K2.__domParser.parseFromString(e,"text/html").querySelector("svg");if(!l)throw new Error(`SVG element not found on path: ${C}`);this.svg=ur(l.innerHTML),t&&(this.__useRef=`#${t}`),this.__viewBox=l.getAttribute("viewBox")}catch(e){console.error(e),this.svg=null}}__svgChanged(C,t){t&&gr(C,t)}__computePAR(C,t){return t||C}__computeVisibility(C){return C?"visible":"hidden"}__computeViewBox(C,t){return t||`0 0 ${C} ${C}`}__fontChanged(C,t,e){this.classList.remove(...this.__addedIconClasses||[]),C&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),t?this.setAttribute("font-icon-content",t.length>1?String.fromCodePoint(parseInt(t,16)):t):e?this.setAttribute("font-icon-content",e):this.removeAttribute("font-icon-content"),(C||t||e)&&!this.icon&&(this.icon="")}attributeChangedCallback(C,t,e){super.attributeChangedCallback(C,t,e),C==="class"&&this.__iconClasses.some(i=>!this.classList.contains(i))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(C){this.style.fontFamily=`'${C}'`}}Y(K2);/**
7683
+ `]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new X7(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),Y3.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),Y3.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:C,svg:t,size:e,viewBox:i}=Y3.getIconSvg(this.icon);i&&(this.__viewBox=i),C&&(this.__preserveAspectRatio=C),e&&e!==this.size&&(this.size=e),this.svg=t}__iconChanged(C){C?this._applyIcon():this.svg=M9(null)}async __srcChanged(C,t){if(!C){this.svg=null;return}if(this.icon="",!C.startsWith("data:")&&(t||C.includes("#"))){const[e,i]=C.split("#");this.__useRef=`${e}#${t||i}`}else try{y6.has(C)||y6.set(C,this.__fetch(C,{mode:"cors"}).then(a=>{if(!a.ok)throw new Error("Error loading icon");return a.text()}));const e=await y6.get(C);K2.__domParser||(K2.__domParser=new DOMParser);const l=K2.__domParser.parseFromString(e,"text/html").querySelector("svg");if(!l)throw new Error(`SVG element not found on path: ${C}`);this.svg=ur(l.innerHTML),t&&(this.__useRef=`#${t}`),this.__viewBox=l.getAttribute("viewBox")}catch(e){console.error(e),this.svg=null}}__svgChanged(C,t){t&&gr(C,t)}__computePAR(C,t){return t||C}__computeVisibility(C){return C?"visible":"hidden"}__computeViewBox(C,t){return t||`0 0 ${C} ${C}`}__fontChanged(C,t,e){this.classList.remove(...this.__addedIconClasses||[]),C&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),t?this.setAttribute("font-icon-content",t.length>1?String.fromCodePoint(parseInt(t,16)):t):e?this.setAttribute("font-icon-content",e):this.removeAttribute("font-icon-content"),(C||t||e)&&!this.icon&&(this.icon="")}attributeChangedCallback(C,t,e){super.attributeChangedCallback(C,t,e),C==="class"&&this.__iconClasses.some(i=>!this.classList.contains(i))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(C){this.style.fontFamily=`'${C}'`}}W(K2);/**
7684
7684
  * @license
7685
7685
  * Copyright 2017 Google LLC
7686
7686
  * SPDX-License-Identifier: BSD-3-Clause
@@ -7706,7 +7706,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7706
7706
  * @license
7707
7707
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
7708
7708
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7709
- */const E1={},E9=new Set;function S9(s,C){return(s||"").replace(`${C}:`,"")}function T9(s){return s?s.split(":")[0]||"vaadin":void 0}function P9(s,C){s._icons=[...s.querySelectorAll("[id]")].reduce((t,e)=>{const i=S9(e.id,C);return t[i]=e,t},{})}class I9 extends D3(o1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return E9}static getIconset(C){return E1[C]}static getIconSvg(C,t){const e=t||T9(C),i=this.getIconset(e);if(!C||!i)return{svg:B9(null)};const l=S9(C,e),a=i._icons[l];return{preserveAspectRatio:a?a.getAttribute("preserveAspectRatio"):null,svg:B9(a),size:i.size,viewBox:a?a.getAttribute("viewBox"):null}}static register(C,t,e){if(!E1[C]){const i=document.createElement("vaadin-iconset");i.appendChild(e.content.cloneNode(!0)),E1[C]=i,P9(i,C),i.size=t,i.name=C,i.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;E1[C]=this,P9(this,C),this.__updateIcons(C)}__updateIcons(C){E9.forEach(t=>{C===T9(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(E1[C]=E1[t],delete E1[t]),C&&this.__updateIcons(C)}}Y(I9);/**
7709
+ */const E1={},E9=new Set;function S9(s,C){return(s||"").replace(`${C}:`,"")}function T9(s){return s?s.split(":")[0]||"vaadin":void 0}function P9(s,C){s._icons=[...s.querySelectorAll("[id]")].reduce((t,e)=>{const i=S9(e.id,C);return t[i]=e,t},{})}class I9 extends D3(o1){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return E9}static getIconset(C){return E1[C]}static getIconSvg(C,t){const e=t||T9(C),i=this.getIconset(e);if(!C||!i)return{svg:B9(null)};const l=S9(C,e),a=i._icons[l];return{preserveAspectRatio:a?a.getAttribute("preserveAspectRatio"):null,svg:B9(a),size:i.size,viewBox:a?a.getAttribute("viewBox"):null}}static register(C,t,e){if(!E1[C]){const i=document.createElement("vaadin-iconset");i.appendChild(e.content.cloneNode(!0)),E1[C]=i,P9(i,C),i.size=t,i.name=C,i.__nameChanged(C)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:C}=this;E1[C]=this,P9(this,C),this.__updateIcons(C)}__updateIcons(C){E9.forEach(t=>{C===T9(t.icon)&&t._applyIcon()})}__nameChanged(C,t){t&&(E1[C]=E1[t],delete E1[t]),C&&this.__updateIcons(C)}}W(I9);/**
7710
7710
  * @license
7711
7711
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
7712
7712
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -8961,7 +8961,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8961
8961
  <slot name="prefix"></slot>
8962
8962
  <slot></slot>
8963
8963
  <slot name="suffix"></slot>
8964
- `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",C=>{C.target===this&&C.preventDefault()}),this.addEventListener("click",C=>{C.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}}Y(td);/**
8964
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",C=>{C.target===this&&C.preventDefault()}),this.addEventListener("click",C=>{C.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}}W(td);/**
8965
8965
  * @license
8966
8966
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
8967
8967
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9742,7 +9742,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9742
9742
  <div part="content">
9743
9743
  <slot></slot>
9744
9744
  </div>
9745
- `}static get is(){return"vaadin-combo-box-item"}}Y(Ld);/**
9745
+ `}static get is(){return"vaadin-combo-box-item"}}W(Ld);/**
9746
9746
  @license
9747
9747
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9748
9748
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9872,7 +9872,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9872
9872
  <div part="loader"></div>
9873
9873
  <div part="content" id="content"><slot></slot></div>
9874
9874
  </div>
9875
- `}}Y(Od);/**
9875
+ `}}W(Od);/**
9876
9876
  * @license
9877
9877
  * Copyright (c) 2023 Vaadin Ltd.
9878
9878
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9927,7 +9927,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9927
9927
  <div id="selector">
9928
9928
  <slot></slot>
9929
9929
  </div>
9930
- `}}Y(qd);/**
9930
+ `}}W(qd);/**
9931
9931
  * @license
9932
9932
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
9933
9933
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10167,7 +10167,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10167
10167
  ></vaadin-combo-box-overlay>
10168
10168
 
10169
10169
  <slot name="tooltip"></slot>
10170
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new lc(this,C=>{this._setInputElement(C),this._setFocusElement(C),this.stateTarget=C,this.ariaTarget=C})),this.addController(new ac(this.inputElement,this._labelController)),this._tooltipController=new X7(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(C=>!C.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(C){C.stopPropagation(),super._onClearButtonClick(C)}_onHostClick(C){const t=C.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(C)}}Y(zc);class a3 extends V{constructor(){var C;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((C=this.getAttribute("label"))==null?void 0:C.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(C){const t=C.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:(t==null?void 0:t.value)||(t==null?void 0:t.label),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const e={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:e,bubbles:!0,composed:!0}))}filterChanged(C){var e;const t=C.detail.value;if(this.itemValuePath=t,!t){this.filteredData=this.data;return}this.filteredData=(e=this.data)==null?void 0:e.filter(i=>{var l,a;return typeof i=="string"?i==null?void 0:i.toLowerCase().includes(t.toLowerCase()):((l=i==null?void 0:i.keywords)==null?void 0:l.some(n=>n==null?void 0:n.toLowerCase().includes(t.toLowerCase())))||((a=i==null?void 0:i.label)==null?void 0:a.toLowerCase().includes(t.toLowerCase()))}),this.requestUpdate()}updated(C){C.has("data")}handleRender(){const C=i=>{var a,n,h;const l=((a=i==null?void 0:i.keywords)==null?void 0:a.length)>2;return u`
10170
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new lc(this,C=>{this._setInputElement(C),this._setFocusElement(C),this.stateTarget=C,this.ariaTarget=C})),this.addController(new ac(this.inputElement,this._labelController)),this._tooltipController=new X7(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(C=>!C.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(C){C.stopPropagation(),super._onClearButtonClick(C)}_onHostClick(C){const t=C.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(C)}}W(zc);class a3 extends V{constructor(){var C;super(),this.type="select",this.label="",this.placeholder="Seleccione",this.name=((C=this.getAttribute("label"))==null?void 0:C.toLowerCase().replace(" ","-"))||"select",this.value="",this.data=[],this.filteredData=[],this.itemValuePath=null,this.size="small",this.required=!1,this.fullWidth=!1,this.showDropdown=!1,this.disabled=!1,this.autoselect=!1,this.clearButtonVisible=!1,this.helperText=""}_onChange(C){const t=C.composedPath()[0].selectedItem;this.value=typeof t=="string"?t:(t==null?void 0:t.value)||(t==null?void 0:t.label),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}));const e={value:this.value,name:this.name,message:"Success",success:!0,error:!1};this.dispatchEvent(new CustomEvent("callback",{detail:e,bubbles:!0,composed:!0}))}filterChanged(C){var e;const t=C.detail.value;if(this.itemValuePath=t,!t){this.filteredData=this.data;return}this.filteredData=(e=this.data)==null?void 0:e.filter(i=>{var l,a;return typeof i=="string"?i==null?void 0:i.toLowerCase().includes(t.toLowerCase()):((l=i==null?void 0:i.keywords)==null?void 0:l.some(n=>n==null?void 0:n.toLowerCase().includes(t.toLowerCase())))||((a=i==null?void 0:i.label)==null?void 0:a.toLowerCase().includes(t.toLowerCase()))}),this.requestUpdate()}updated(C){C.has("data")}handleRender(){const C=i=>{var a,n,h;const l=((a=i==null?void 0:i.keywords)==null?void 0:a.length)>2;return u`
10171
10171
  <div class="custom">
10172
10172
  <cas-text variant="body2" class="label">
10173
10173
  ${typeof i=="string"?i:i.label}
@@ -10431,7 +10431,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10431
10431
  * @license
10432
10432
  * Copyright 2018 Google LLC
10433
10433
  * SPDX-License-Identifier: BSD-3-Clause
10434
- */const kc=N4(class extends O4{constructor(s){var C;if(super(s),s.type!==I4.ATTRIBUTE||s.name!=="class"||((C=s.strings)===null||C===void 0?void 0:C.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(C=>s[C]).join(" ")+" "}update(s,[C]){var t,e;if(this.nt===void 0){this.nt=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(const l in C)C[l]&&!(!((t=this.st)===null||t===void 0)&&t.has(l))&&this.nt.add(l);return this.render(C)}const i=s.element.classList;this.nt.forEach(l=>{l in C||(i.remove(l),this.nt.delete(l))});for(const l in C){const a=!!C[l];a===this.nt.has(l)||!((e=this.st)===null||e===void 0)&&e.has(l)||(a?(i.add(l),this.nt.add(l)):(i.remove(l),this.nt.delete(l)))}return f1}}),q={HOME:"home",TRANSACTIONAL:"transactional"},Ac={mobile:767,tablet:1023,macbookAir:1280,desktop:1440},n1={mobile:"767px",tablet:"1023px",macbookAir:"1280px",desktop:"1440px"},$c=w`
10434
+ */const kc=N4(class extends O4{constructor(s){var C;if(super(s),s.type!==I4.ATTRIBUTE||s.name!=="class"||((C=s.strings)===null||C===void 0?void 0:C.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(C=>s[C]).join(" ")+" "}update(s,[C]){var t,e;if(this.nt===void 0){this.nt=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(const l in C)C[l]&&!(!((t=this.st)===null||t===void 0)&&t.has(l))&&this.nt.add(l);return this.render(C)}const i=s.element.classList;this.nt.forEach(l=>{l in C||(i.remove(l),this.nt.delete(l))});for(const l in C){const a=!!C[l];a===this.nt.has(l)||!((e=this.st)===null||e===void 0)&&e.has(l)||(a?(i.add(l),this.nt.add(l)):(i.remove(l),this.nt.delete(l)))}return f1}}),G={HOME:"home",TRANSACTIONAL:"transactional"},Ac={mobile:767,tablet:1023,macbookAir:1280,desktop:1440},n1={mobile:"767px",tablet:"1023px",macbookAir:"1280px",desktop:"1440px"},$c=w`
10435
10435
  :host {
10436
10436
  z-index: 2;
10437
10437
  }
@@ -10735,7 +10735,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10735
10735
  </div>
10736
10736
  `:""}
10737
10737
  </li>
10738
- `};if(C||t){const r=i.slice(0,2);return this.variant!==q.HOME?u`
10738
+ `};if(C||t){const r=i.slice(0,2);return this.variant!==G.HOME?u`
10739
10739
  <div class="wrapped" data-theme="${this.theme}">
10740
10740
  <div class="inner-wrapped">
10741
10741
  <a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago" aria-label="Volver a página de inicio de Clínica Alemana">${E0(h8[this.theme])}</a>
@@ -10808,11 +10808,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10808
10808
  <div class="inner-wrapped">
10809
10809
  <a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago" aria-label="Volver a página de inicio de Clínica Alemana">${Ec(h8[this.theme])} </a>
10810
10810
  <ul class="group">
10811
- ${this.variant===q.HOME?u`
10812
- <div class="box-search">
10813
- <cas-header-search></cas-header-search>
10814
- </div>
10815
- `:null}
10811
+
10816
10812
  ${i.map((r,d)=>n(r,d))}
10817
10813
  <div class="box-action">
10818
10814
  <cas-button
@@ -11861,7 +11857,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11861
11857
  </div>
11862
11858
  </div>
11863
11859
  </div>
11864
- `}}f(p5,"styles",Fc),f(p5,"shadowRootOptions",{...V.shadowRootOptions,mode:"open"}),f(p5,"properties",{theme:{type:String},size:{type:Number},disableMode:{type:Boolean}});const S0=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",jc=s=>{const C=document.querySelector("body");s==="dark"?C==null||C.classList.add("eloisa-ds-dark-mode"):C==null||C.classList.remove("eloisa-ds-dark-mode")};function Uc(s=null,C){let t=localStorage.getItem("theme")??S0(),e=t==="dark";const i=()=>{t=S0(),e=t==="dark"};return s!==null?(e=s==="true",t=e?"dark":"light"):window.matchMedia("(prefers-color-scheme: dark)").addListener(i),{theme:t,isDark:e}}const{mobile:qc,tablet:Wc,macbookAir:Yc,desktop:Gc}=Ac,T0=()=>window.matchMedia(`(max-width: ${qc}px)`).matches,P0=()=>window.matchMedia(`(max-width: ${Wc}px)`).matches,I0=()=>window.matchMedia(`(max-width: ${Yc}px)`).matches,N0=()=>window.matchMedia(`(max-width: ${Gc}px)`).matches;class n3 extends V{constructor(){super(),this.showAlert=!1,this.alert={},this.type=q.HOME,this.theme="light",this.disableMode="true",this.disableDarkModeDefault="false",this.isMobile=T0(),this.isTablet=P0(),this.isMacbookAir=I0(),this.isDesktop=N0(),this.lastScrollPosition=0,this.spaceHeight=0}connectedCallback(){super.connectedCallback(),this.type===q.HOME&&window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),window.addEventListener("resize",this.handleSpaces.bind(this))}disconnectedCallback(){this.type===q.HOME&&window.removeEventListener("scroll",this.handleScroll.bind(this)),window.removeEventListener("resize",this.handleResize.bind(this)),window.removeEventListener("resize",this.handleSpaces.bind(this)),super.disconnectedCallback()}handleScroll(){const C=window.pageYOffset||document.documentElement.scrollTop,t=this.shadowRoot.querySelector("header"),e=this.shadowRoot.querySelector("cas-header-taxonomy"),i=this.spaceHeight+"px";C<=this.spaceHeight||C<this.lastScrollPosition?(e.setAttribute("collapsed","false"),e.style.transform="translateY(0)",t.style.height=i):(e.setAttribute("collapsed","true"),e.style.transform="translateY(-100%)",t.style.height=`${this.spaceHeight-72}px`),this.lastScrollPosition=C}handleResize(){const C=this.isMobile,t=this.isTablet,e=this.isMacbookAir,i=this.isDesktop;this.isMobile=T0(),this.isTablet=P0(),this.isMacbookAir=I0(),this.isDesktop=N0(),(C!==this.isMobile||t!==this.isTablet||e!==this.isMacbookAir||i!==this.isDesktop)&&this.requestUpdate()}handleTheme({theme:C}){const t={theme:C,isDark:C==="dark"},e=new CustomEvent("themeChange",{detail:t});this.theme=C,this.defaultDarkMode(),document.dispatchEvent(e)}defaultDarkMode(){jc(this.theme);const C=document.querySelector("head");if(this.disableDarkModeDefault!=="true"&&this.theme==="dark"){const t=document.createElement("style");t.setAttribute("data-name","eloisa-ds-dark-mode"),t.innerHTML=`
11860
+ `}}f(p5,"styles",Fc),f(p5,"shadowRootOptions",{...V.shadowRootOptions,mode:"open"}),f(p5,"properties",{theme:{type:String},size:{type:Number},disableMode:{type:Boolean}});const S0=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",jc=s=>{const C=document.querySelector("body");s==="dark"?C==null||C.classList.add("eloisa-ds-dark-mode"):C==null||C.classList.remove("eloisa-ds-dark-mode")};function Uc(s=null,C){let t=localStorage.getItem("theme")??S0(),e=t==="dark";const i=()=>{t=S0(),e=t==="dark"};return s!==null?(e=s==="true",t=e?"dark":"light"):window.matchMedia("(prefers-color-scheme: dark)").addListener(i),{theme:t,isDark:e}}const{mobile:qc,tablet:Wc,macbookAir:Yc,desktop:Gc}=Ac,T0=()=>window.matchMedia(`(max-width: ${qc}px)`).matches,P0=()=>window.matchMedia(`(max-width: ${Wc}px)`).matches,I0=()=>window.matchMedia(`(max-width: ${Yc}px)`).matches,N0=()=>window.matchMedia(`(max-width: ${Gc}px)`).matches;class n3 extends V{constructor(){super(),this.showAlert=!1,this.alert={},this.type=G.HOME,this.theme="light",this.disableMode="true",this.disableDarkModeDefault="false",this.isMobile=T0(),this.isTablet=P0(),this.isMacbookAir=I0(),this.isDesktop=N0(),this.lastScrollPosition=0,this.spaceHeight=0}connectedCallback(){super.connectedCallback(),this.type===G.HOME&&window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),window.addEventListener("resize",this.handleSpaces.bind(this))}disconnectedCallback(){this.type===G.HOME&&window.removeEventListener("scroll",this.handleScroll.bind(this)),window.removeEventListener("resize",this.handleResize.bind(this)),window.removeEventListener("resize",this.handleSpaces.bind(this)),super.disconnectedCallback()}handleScroll(){const C=window.pageYOffset||document.documentElement.scrollTop,t=this.shadowRoot.querySelector("header"),e=this.shadowRoot.querySelector("cas-header-taxonomy"),i=this.spaceHeight+"px";C<=this.spaceHeight||C<this.lastScrollPosition?(e.setAttribute("collapsed","false"),e.style.transform="translateY(0)",t.style.height=i):(e.setAttribute("collapsed","true"),e.style.transform="translateY(-100%)",t.style.height=`${this.spaceHeight-72}px`),this.lastScrollPosition=C}handleResize(){const C=this.isMobile,t=this.isTablet,e=this.isMacbookAir,i=this.isDesktop;this.isMobile=T0(),this.isTablet=P0(),this.isMacbookAir=I0(),this.isDesktop=N0(),(C!==this.isMobile||t!==this.isTablet||e!==this.isMacbookAir||i!==this.isDesktop)&&this.requestUpdate()}handleTheme({theme:C}){const t={theme:C,isDark:C==="dark"},e=new CustomEvent("themeChange",{detail:t});this.theme=C,this.defaultDarkMode(),document.dispatchEvent(e)}defaultDarkMode(){jc(this.theme);const C=document.querySelector("head");if(this.disableDarkModeDefault!=="true"&&this.theme==="dark"){const t=document.createElement("style");t.setAttribute("data-name","eloisa-ds-dark-mode"),t.innerHTML=`
11865
11861
  // * {
11866
11862
  // filter: invert(1) hue-rotate(180deg);
11867
11863
  // }
@@ -11878,7 +11874,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11878
11874
  // img {
11879
11875
  // filter: none;
11880
11876
  // }
11881
- `,C==null||C.appendChild(t)}else{const t=document.querySelector('[data-name="eloisa-ds-dark-mode"]');t==null||t.remove()}}handleEvents(){const C=i=>{this.setAttribute("darkMode",i.detail.isDark)},t=()=>{this.handleTheme({theme:"dark"})},e=()=>{this.handleTheme({theme:"light"})};document.addEventListener("themeChange",C),document.addEventListener("onDarkMode",t),document.addEventListener("onLightMode",e),setTimeout(()=>{const i=this.disableMode==="true";this.darkMode==="true"&&!i&&t(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(a){!localStorage.getItem("theme")&&!i&&(a.matches?t():e())})},1e3)}async handleAlert(){const C={type:"getAlert",showAlert:!0,alert:{Id:"3a2c0001-f74f-4004-bab2-d71ff5948d5e",LastModified:"2024-06-24T15:36:42Z",PublicationDate:"2024-06-13T19:31:49Z",DateCreated:"2022-11-07T21:01:31Z",IncludeInSitemap:!0,SystemSourceKey:null,UrlName:"alert-home",ItemDefaultUrl:"/alert-home",enabled:!1,endDate:"2024-06-25T04:57:00Z",Title:"Alert",Icono:"4",Contenido:'<div><div role="presentation" data-qa="message_content"><div><div data-qa="message-text"><div data-qa="block-kit-renderer"><div><div dir="auto"><div><p class="mb-0"><strong></strong><strong></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong>&iexcl;Importante!</strong> En este momento, la visualizaci&oacute;n de ex&aacute;menes no est&aacute; disponible en Mi Alemana Go. Sin embargo, puedes hacerlo <a href="https://mipaginadesalud.alemana.cl/wps/portal/mpdsvp/">aqui</a>.</p></div></div></div></div></div></div></div></div><div role="group"><div role="group" aria-label="Acciones en torno a un mensaje" data-qa="message-actions"></div></div><a href="https://www.google.com"></a>',startDate:"2024-06-24T14:14:07Z",Provider:"dynamicProvider121"}};{const{showAlert:t,alert:e}=C;if(t){if(console.log(e),!e||!e.enabled)return!1;let i=new Date,l=new Date(e==null?void 0:e.startDate),a=new Date(e==null?void 0:e.endDate);if(i>l&&i<a)this.showAlert=t,this.alert={title:e==null?void 0:e.Titulo,text:e==null?void 0:e.Contenido,active:e==null?void 0:e.enabled},console.log("Alerta activa"),this.delay(200).then(()=>this.handleSpaces());else return!1;this.requestUpdate()}}}async delay(C){return new Promise(t=>setTimeout(t,C))}async handleSpaces(){var l,a,n;const C=this.shadowRoot.querySelector("cas-header-taxonomy"),t=(l=this.shadowRoot.querySelector("cas-header-head"))==null?void 0:l.getClientRects()[0].height,e=(a=this.shadowRoot.querySelector("cas-header-pre-head"))==null?void 0:a.getClientRects()[0].height,i=(n=this.shadowRoot.querySelector("cas-header-taxonomy"))==null?void 0:n.getClientRects()[0].height;if(this.showAlert){const h=this.shadowRoot.querySelector("cas-alert");h==null||h.addEventListener("close",()=>{this.showAlert=!1,this.spaceHeight=t+e+i,C.style.top=`${t+e}px`,this.requestUpdate()});const r=h==null?void 0:h.getClientRects()[0].height;this.type!==q.HOME?this.spaceHeight=t+r:(this.spaceHeight=t+e+i+r,C.style.top=`${t+e+r}px`)}else this.type!==q.HOME?this.spaceHeight=t:(this.spaceHeight=t+e+i,C.style.top=`${t+e}px`);this.requestUpdate()}async firstUpdated(){const C=this.disableMode==="true",{theme:t}=Uc(this.darkMode);this.theme=C?"light":t,this.defaultDarkMode(),this.handleEvents(),await this.handleAlert(),await this.delay(200),this.handleSpaces()}render(){const{alert:C,type:t,bookingBox:e,theme:i}=this,l=e==="true";return u`
11877
+ `,C==null||C.appendChild(t)}else{const t=document.querySelector('[data-name="eloisa-ds-dark-mode"]');t==null||t.remove()}}handleEvents(){const C=i=>{this.setAttribute("darkMode",i.detail.isDark)},t=()=>{this.handleTheme({theme:"dark"})},e=()=>{this.handleTheme({theme:"light"})};document.addEventListener("themeChange",C),document.addEventListener("onDarkMode",t),document.addEventListener("onLightMode",e),setTimeout(()=>{const i=this.disableMode==="true";this.darkMode==="true"&&!i&&t(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(a){!localStorage.getItem("theme")&&!i&&(a.matches?t():e())})},1e3)}async handleAlert(){const C={type:"getAlert",showAlert:!0,alert:{Id:"3a2c0001-f74f-4004-bab2-d71ff5948d5e",LastModified:"2024-06-24T15:36:42Z",PublicationDate:"2024-06-13T19:31:49Z",DateCreated:"2022-11-07T21:01:31Z",IncludeInSitemap:!0,SystemSourceKey:null,UrlName:"alert-home",ItemDefaultUrl:"/alert-home",enabled:!1,endDate:"2024-06-25T04:57:00Z",Title:"Alert",Icono:"4",Contenido:'<div><div role="presentation" data-qa="message_content"><div><div data-qa="message-text"><div data-qa="block-kit-renderer"><div><div dir="auto"><div><p class="mb-0"><strong></strong><strong></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong data-stringify-type="bold"></strong><strong>&iexcl;Importante!</strong> En este momento, la visualizaci&oacute;n de ex&aacute;menes no est&aacute; disponible en Mi Alemana Go. Sin embargo, puedes hacerlo <a href="https://mipaginadesalud.alemana.cl/wps/portal/mpdsvp/">aqui</a>.</p></div></div></div></div></div></div></div></div><div role="group"><div role="group" aria-label="Acciones en torno a un mensaje" data-qa="message-actions"></div></div><a href="https://www.google.com"></a>',startDate:"2024-06-24T14:14:07Z",Provider:"dynamicProvider121"}};{const{showAlert:t,alert:e}=C;if(t){if(console.log(e),!e||!e.enabled)return!1;let i=new Date,l=new Date(e==null?void 0:e.startDate),a=new Date(e==null?void 0:e.endDate);if(i>l&&i<a)this.showAlert=t,this.alert={title:e==null?void 0:e.Titulo,text:e==null?void 0:e.Contenido,active:e==null?void 0:e.enabled},console.log("Alerta activa"),this.delay(200).then(()=>this.handleSpaces());else return!1;this.requestUpdate()}}}async delay(C){return new Promise(t=>setTimeout(t,C))}async handleSpaces(){var l,a,n;const C=this.shadowRoot.querySelector("cas-header-taxonomy"),t=(l=this.shadowRoot.querySelector("cas-header-head"))==null?void 0:l.getClientRects()[0].height,e=(a=this.shadowRoot.querySelector("cas-header-pre-head"))==null?void 0:a.getClientRects()[0].height,i=(n=this.shadowRoot.querySelector("cas-header-taxonomy"))==null?void 0:n.getClientRects()[0].height;if(this.showAlert){const h=this.shadowRoot.querySelector("cas-alert");h==null||h.addEventListener("close",()=>{this.showAlert=!1,this.spaceHeight=t+e+i,C.style.top=`${t+e}px`,this.requestUpdate()});const r=h==null?void 0:h.getClientRects()[0].height;this.type!==G.HOME?this.spaceHeight=t+r:(this.spaceHeight=t+e+i+r,C.style.top=`${t+e+r}px`)}else this.type!==G.HOME?this.spaceHeight=t:(this.spaceHeight=t+e+i,C.style.top=`${t+e}px`);this.requestUpdate()}async firstUpdated(){const C=this.disableMode==="true",{theme:t}=Uc(this.darkMode);this.theme=C?"light":t,this.defaultDarkMode(),this.handleEvents(),await this.handleAlert(),await this.delay(200),this.handleSpaces()}render(){const{alert:C,type:t,bookingBox:e,theme:i}=this,l=e==="true";return u`
11882
11878
  <header class="container ${this.type}" data-theme=${i} style="height: ${this.spaceHeight}px">
11883
11879
  ${this.showAlert?u`<cas-alert
11884
11880
  showCloseButton
@@ -11886,7 +11882,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11886
11882
  text=${C.text}
11887
11883
  .fullWidth=${!0}
11888
11884
  ></cas-alert>`:u``}
11889
- ${this.type===q.HOME?u`
11885
+ ${this.type===G.HOME?u`
11890
11886
  <cas-header-pre-head
11891
11887
  theme=${i}
11892
11888
  variant=${t}
@@ -11903,7 +11899,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11903
11899
  .isTablet=${this.isTablet}
11904
11900
  .isMacbookAir=${this.isMacbookAir}
11905
11901
  ></cas-header-head>
11906
- ${t===q.HOME?u`
11902
+ ${t===G.HOME?u`
11907
11903
  <cas-header-taxonomy
11908
11904
  theme=${i}
11909
11905
  devMode="${this.devMode}"
@@ -11915,6 +11911,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11915
11911
  ></cas-header-taxonomy>
11916
11912
  `:null}
11917
11913
  </header>
11918
- ${t===q.HOME?u`<cas-booking-box theme="${i}" .home=${l} showAlert=${this.showAlert}></cas-booking-box>`:null}
11914
+ ${t===G.HOME?u`<cas-booking-box theme="${i}" .home=${l} showAlert=${this.showAlert}></cas-booking-box>`:null}
11919
11915
  <div style="height: ${this.spaceHeight}px"></div>
11920
11916
  `}}f(n3,"styles",xC),f(n3,"shadowRootOptions",{...V.shadowRootOptions,mode:"open"}),f(n3,"properties",{alert:{type:Object},type:{type:String},bookingBox:{type:String},darkMode:{type:String},disableMode:{type:String},disableDarkModeDefault:{type:String},devMode:{type:String}}),customElements.get("cas-header")||customElements.define("cas-header",n3),customElements.get("cas-header-pre-head ")||customElements.define("cas-header-pre-head",p5),customElements.get("cas-header-head")||customElements.define("cas-header-head",d5),customElements.get("cas-header-search")||customElements.define("cas-header-search",h3),customElements.get("cas-header-taxonomy")||customElements.define("cas-header-taxonomy",c5),customElements.get("cas-header-menu-mobile")||customElements.define("cas-header-menu-mobile",L5),customElements.get("cas-header-card")||customElements.define("cas-header-card",v5),x.CasHeader=n3,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cas-ds-web-components",
3
3
  "description": "Web Components based on CAS DS",
4
- "version": "1.2.73",
4
+ "version": "1.2.75",
5
5
  "author": "aconejeros",
6
6
  "keywords": [
7
7
  "direflow",