cas-ds-web-components 1.3.16 → 1.3.18

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.
@@ -2,31 +2,31 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const m=window,g=m.ShadowRoot&&(m.ShadyCSS===void 0||m.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),$t=new WeakMap;let vt=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(g&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=$t.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&$t.set(e,t))}return t}toString(){return this.cssText}};const Jt=s=>new vt(typeof s=="string"?s:s+"",void 0,Y),Xt=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,a)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[a+1],s[0]);return new vt(e,s,Y)},Yt=(s,t)=>{g?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),o=m.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)})},mt=g?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Jt(e)})(s):s;/**
5
+ */const m=window,g=m.ShadowRoot&&(m.ShadyCSS===void 0||m.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),$t=new WeakMap;let vt=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(g&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=$t.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&$t.set(e,t))}return t}toString(){return this.cssText}};const Jt=n=>new vt(typeof n=="string"?n:n+"",void 0,Y),Xt=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,o,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[a+1],n[0]);return new vt(e,n,Y)},Yt=(n,t)=>{g?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),o=m.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,n.appendChild(i)})},mt=g?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Jt(e)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var G;const z=window,ft=z.trustedTypes,Gt=ft?ft.emptyScript:"",gt=z.reactiveElementPolyfillSupport,Q={toAttribute(s,t){switch(t){case Boolean:s=s?Gt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},At=(s,t)=>t!==s&&(t==t||s==s),tt={attribute:!0,type:String,converter:Q,reflect:!1,hasChanged:At},et="finalized";let C=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const o=this._$Ep(i,e);o!==void 0&&(this._$Ev.set(o,i),t.push(o))}),t}static createProperty(t,e=tt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const a=this[t];this[e]=o,this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||tt}static finalize(){if(this.hasOwnProperty(et))return!1;this[et]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const o of i)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(mt(o))}else t!==void 0&&e.push(mt(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Yt(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=tt){var o;const a=this.constructor._$Ep(t,i);if(a!==void 0&&i.reflect===!0){const n=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:Q).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(a):this.setAttribute(a,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,a=o._$Ev.get(t);if(a!==void 0&&this._$El!==a){const n=o.getPropertyOptions(a),c=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:Q;this._$El=a,this[a]=c.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||At)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,a)=>this[a]=o),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var a;return(a=o.hostUpdate)===null||a===void 0?void 0:a.call(o)}),this.update(i)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdated)===null||o===void 0?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};C[et]=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},gt==null||gt({ReactiveElement:C}),((G=z.reactiveElementVersions)!==null&&G!==void 0?G:z.reactiveElementVersions=[]).push("1.6.3");/**
9
+ */var G;const z=window,ft=z.trustedTypes,Gt=ft?ft.emptyScript:"",gt=z.reactiveElementPolyfillSupport,Q={toAttribute(n,t){switch(t){case Boolean:n=n?Gt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},At=(n,t)=>t!==n&&(t==t||n==n),tt={attribute:!0,type:String,converter:Q,reflect:!1,hasChanged:At},et="finalized";let C=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const o=this._$Ep(i,e);o!==void 0&&(this._$Ev.set(o,i),t.push(o))}),t}static createProperty(t,e=tt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const a=this[t];this[e]=o,this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||tt}static finalize(){if(this.hasOwnProperty(et))return!1;this[et]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const o of i)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(mt(o))}else t!==void 0&&e.push(mt(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Yt(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=tt){var o;const a=this.constructor._$Ep(t,i);if(a!==void 0&&i.reflect===!0){const s=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:Q).toAttribute(e,i.type);this._$El=t,s==null?this.removeAttribute(a):this.setAttribute(a,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,a=o._$Ev.get(t);if(a!==void 0&&this._$El!==a){const s=o.getPropertyOptions(a),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?s.converter:Q;this._$El=a,this[a]=c.fromAttribute(e,s.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||At)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,a)=>this[a]=o),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var a;return(a=o.hostUpdate)===null||a===void 0?void 0:a.call(o)}),this.update(i)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdated)===null||o===void 0?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};C[et]=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},gt==null||gt({ReactiveElement:C}),((G=z.reactiveElementVersions)!==null&&G!==void 0?G:z.reactiveElementVersions=[]).push("1.6.3");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var it;const q=window,T=q.trustedTypes,bt=T?T.createPolicy("lit-html",{createHTML:s=>s}):void 0,ot="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,_t="?"+b,Qt=`<${_t}>`,y=document,W=()=>y.createComment(""),I=s=>s===null||typeof s!="object"&&typeof s!="function",yt=Array.isArray,te=s=>yt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",nt=`[
14
- \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xt=/-->/g,wt=/>/g,x=RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),kt=/'/g,Et=/"/g,St=/^(?:script|style|textarea|title)$/i,ee=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ie=ee(1),H=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Ct=new WeakMap,w=y.createTreeWalker(y,129,null,!1);function Tt(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return bt!==void 0?bt.createHTML(t):t}const oe=(s,t)=>{const e=s.length-1,i=[];let o,a=t===2?"<svg>":"",n=D;for(let c=0;c<e;c++){const r=s[c];let l,d,h=-1,p=0;for(;p<r.length&&(n.lastIndex=p,d=n.exec(r),d!==null);)p=n.lastIndex,n===D?d[1]==="!--"?n=xt:d[1]!==void 0?n=wt:d[2]!==void 0?(St.test(d[2])&&(o=RegExp("</"+d[2],"g")),n=x):d[3]!==void 0&&(n=x):n===x?d[0]===">"?(n=o??D,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,l=d[1],n=d[3]===void 0?x:d[3]==='"'?Et:kt):n===Et||n===kt?n=x:n===xt||n===wt?n=D:(n=x,o=void 0);const u=n===x&&s[c+1].startsWith("/>")?" ":"";a+=n===D?r+Qt:h>=0?(i.push(l),r.slice(0,h)+ot+r.slice(h)+b+u):r+b+(h===-2?(i.push(void 0),c):u)}return[Tt(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};let st=class Zt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let a=0,n=0;const c=t.length-1,r=this.parts,[l,d]=oe(t,e);if(this.el=Zt.createElement(l,i),w.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(o=w.nextNode())!==null&&r.length<c;){if(o.nodeType===1){if(o.hasAttributes()){const h=[];for(const p of o.getAttributeNames())if(p.endsWith(ot)||p.startsWith(b)){const u=d[n++];if(h.push(p),u!==void 0){const ut=o.getAttribute(u.toLowerCase()+ot).split(b),A=/([.?@])?(.*)/.exec(u);r.push({type:1,index:a,name:A[2],strings:ut,ctor:A[1]==="."?se:A[1]==="?"?re:A[1]==="@"?le:Z})}else r.push({type:6,index:a})}for(const p of h)o.removeAttribute(p)}if(St.test(o.tagName)){const h=o.textContent.split(b),p=h.length-1;if(p>0){o.textContent=T?T.emptyScript:"";for(let u=0;u<p;u++)o.append(h[u],W()),w.nextNode(),r.push({type:2,index:++a});o.append(h[p],W())}}}else if(o.nodeType===8)if(o.data===_t)r.push({type:2,index:a});else{let h=-1;for(;(h=o.data.indexOf(b,h+1))!==-1;)r.push({type:7,index:a}),h+=b.length-1}a++}}static createElement(t,e){const i=y.createElement("template");return i.innerHTML=t,i}};function M(s,t,e=s,i){var o,a,n,c;if(t===H)return t;let r=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const l=I(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==l&&((a=r==null?void 0:r._$AO)===null||a===void 0||a.call(r,!1),l===void 0?r=void 0:(r=new l(s),r._$AT(s,e,i)),i!==void 0?((n=(c=e)._$Co)!==null&&n!==void 0?n:c._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=M(s,r._$AS(s,t.values),r,i)),t}let ne=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,a=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:y).importNode(i,!0);w.currentNode=a;let n=w.nextNode(),c=0,r=0,l=o[0];for(;l!==void 0;){if(c===l.index){let d;l.type===2?d=new Ht(n,n.nextSibling,this,t):l.type===1?d=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(d=new de(n,this,t)),this._$AV.push(d),l=o[++r]}c!==(l==null?void 0:l.index)&&(n=w.nextNode(),c++)}return w.currentNode=y,a}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Ht=class Kt{constructor(t,e,i,o){var a;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),I(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==H&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):te(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==$&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(y.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,a=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=st.createElement(Tt(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===a)this._$AH.v(i);else{const n=new ne(a,this),c=n.u(this.options);n.v(i),this.$(c),this._$AH=n}}_$AC(t){let e=Ct.get(t.strings);return e===void 0&&Ct.set(t.strings,e=new st(t)),e}T(t){yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const a of t)o===e.length?e.push(i=new Kt(this.k(W()),this.k(W()),this,this.options)):i=e[o],i._$AI(a),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},Z=class{constructor(t,e,i,o,a){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const a=this.strings;let n=!1;if(a===void 0)t=M(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{const c=t;let r,l;for(t=a[0],r=0;r<a.length-1;r++)l=M(this,c[i+r],e,r),l===H&&(l=this._$AH[r]),n||(n=!I(l)||l!==this._$AH[r]),l===$?t=$:t!==$&&(t+=(l??"")+a[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},se=class extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}};const ae=T?T.emptyScript:"";let re=class extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$?this.element.setAttribute(this.name,ae):this.element.removeAttribute(this.name)}},le=class extends Z{constructor(t,e,i,o,a){super(t,e,i,o,a),this.type=5}_$AI(t,e=this){var i;if((t=(i=M(this,t,e,0))!==null&&i!==void 0?i:$)===H)return;const o=this._$AH,a=t===$&&o!==$||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==$&&(o===$||a);a&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},de=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}};const Mt=q.litHtmlPolyfillSupport;Mt==null||Mt(st,Ht),((it=q.litHtmlVersions)!==null&&it!==void 0?it:q.litHtmlVersions=[]).push("2.8.0");/**
13
+ */var it;const q=window,T=q.trustedTypes,bt=T?T.createPolicy("lit-html",{createHTML:n=>n}):void 0,ot="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,_t="?"+b,Qt=`<${_t}>`,y=document,W=()=>y.createComment(""),I=n=>n===null||typeof n!="object"&&typeof n!="function",yt=Array.isArray,te=n=>yt(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",st=`[
14
+ \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xt=/-->/g,wt=/>/g,x=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),kt=/'/g,Et=/"/g,St=/^(?:script|style|textarea|title)$/i,ee=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),ie=ee(1),H=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Ct=new WeakMap,w=y.createTreeWalker(y,129,null,!1);function Tt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return bt!==void 0?bt.createHTML(t):t}const oe=(n,t)=>{const e=n.length-1,i=[];let o,a=t===2?"<svg>":"",s=D;for(let c=0;c<e;c++){const r=n[c];let l,h,d=-1,p=0;for(;p<r.length&&(s.lastIndex=p,h=s.exec(r),h!==null);)p=s.lastIndex,s===D?h[1]==="!--"?s=xt:h[1]!==void 0?s=wt:h[2]!==void 0?(St.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=x):h[3]!==void 0&&(s=x):s===x?h[0]===">"?(s=o??D,d=-1):h[1]===void 0?d=-2:(d=s.lastIndex-h[2].length,l=h[1],s=h[3]===void 0?x:h[3]==='"'?Et:kt):s===Et||s===kt?s=x:s===xt||s===wt?s=D:(s=x,o=void 0);const u=s===x&&n[c+1].startsWith("/>")?" ":"";a+=s===D?r+Qt:d>=0?(i.push(l),r.slice(0,d)+ot+r.slice(d)+b+u):r+b+(d===-2?(i.push(void 0),c):u)}return[Tt(n,a+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};let nt=class Zt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let a=0,s=0;const c=t.length-1,r=this.parts,[l,h]=oe(t,e);if(this.el=Zt.createElement(l,i),w.currentNode=this.el.content,e===2){const d=this.el.content,p=d.firstChild;p.remove(),d.append(...p.childNodes)}for(;(o=w.nextNode())!==null&&r.length<c;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const p of o.getAttributeNames())if(p.endsWith(ot)||p.startsWith(b)){const u=h[s++];if(d.push(p),u!==void 0){const ut=o.getAttribute(u.toLowerCase()+ot).split(b),A=/([.?@])?(.*)/.exec(u);r.push({type:1,index:a,name:A[2],strings:ut,ctor:A[1]==="."?ne:A[1]==="?"?re:A[1]==="@"?le:Z})}else r.push({type:6,index:a})}for(const p of d)o.removeAttribute(p)}if(St.test(o.tagName)){const d=o.textContent.split(b),p=d.length-1;if(p>0){o.textContent=T?T.emptyScript:"";for(let u=0;u<p;u++)o.append(d[u],W()),w.nextNode(),r.push({type:2,index:++a});o.append(d[p],W())}}}else if(o.nodeType===8)if(o.data===_t)r.push({type:2,index:a});else{let d=-1;for(;(d=o.data.indexOf(b,d+1))!==-1;)r.push({type:7,index:a}),d+=b.length-1}a++}}static createElement(t,e){const i=y.createElement("template");return i.innerHTML=t,i}};function M(n,t,e=n,i){var o,a,s,c;if(t===H)return t;let r=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const l=I(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==l&&((a=r==null?void 0:r._$AO)===null||a===void 0||a.call(r,!1),l===void 0?r=void 0:(r=new l(n),r._$AT(n,e,i)),i!==void 0?((s=(c=e)._$Co)!==null&&s!==void 0?s:c._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=M(n,r._$AS(n,t.values),r,i)),t}let se=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,a=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:y).importNode(i,!0);w.currentNode=a;let s=w.nextNode(),c=0,r=0,l=o[0];for(;l!==void 0;){if(c===l.index){let h;l.type===2?h=new Ht(s,s.nextSibling,this,t):l.type===1?h=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(h=new he(s,this,t)),this._$AV.push(h),l=o[++r]}c!==(l==null?void 0:l.index)&&(s=w.nextNode(),c++)}return w.currentNode=y,a}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Ht=class Kt{constructor(t,e,i,o){var a;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),I(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==H&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):te(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==$&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(y.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,a=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=nt.createElement(Tt(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===a)this._$AH.v(i);else{const s=new se(a,this),c=s.u(this.options);s.v(i),this.$(c),this._$AH=s}}_$AC(t){let e=Ct.get(t.strings);return e===void 0&&Ct.set(t.strings,e=new nt(t)),e}T(t){yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const a of t)o===e.length?e.push(i=new Kt(this.k(W()),this.k(W()),this,this.options)):i=e[o],i._$AI(a),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},Z=class{constructor(t,e,i,o,a){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const a=this.strings;let s=!1;if(a===void 0)t=M(this,t,e,0),s=!I(t)||t!==this._$AH&&t!==H,s&&(this._$AH=t);else{const c=t;let r,l;for(t=a[0],r=0;r<a.length-1;r++)l=M(this,c[i+r],e,r),l===H&&(l=this._$AH[r]),s||(s=!I(l)||l!==this._$AH[r]),l===$?t=$:t!==$&&(t+=(l??"")+a[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ne=class extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}};const ae=T?T.emptyScript:"";let re=class extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$?this.element.setAttribute(this.name,ae):this.element.removeAttribute(this.name)}},le=class extends Z{constructor(t,e,i,o,a){super(t,e,i,o,a),this.type=5}_$AI(t,e=this){var i;if((t=(i=M(this,t,e,0))!==null&&i!==void 0?i:$)===H)return;const o=this._$AH,a=t===$&&o!==$||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==$&&(o===$||a);a&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},he=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}};const Mt=q.litHtmlPolyfillSupport;Mt==null||Mt(nt,Ht),((it=q.litHtmlVersions)!==null&&it!==void 0?it:q.litHtmlVersions=[]).push("2.8.0");/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */var at;const K=window,N=K.trustedTypes,Nt=N?N.createPolicy("lit-html",{createHTML:s=>s}):void 0,rt="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,Pt="?"+_,he=`<${Pt}>`,k=document,O=()=>k.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",Ut=Array.isArray,ce=s=>Ut(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",lt=`[
19
+ */var at;const K=window,N=K.trustedTypes,Nt=N?N.createPolicy("lit-html",{createHTML:n=>n}):void 0,rt="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,Pt="?"+_,de=`<${Pt}>`,k=document,O=()=>k.createComment(""),B=n=>n===null||typeof n!="object"&&typeof n!="function",Ut=Array.isArray,ce=n=>Ut(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",lt=`[
20
20
  \f\r]`,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,It=/>/g,E=RegExp(`>|${lt}(?:([^\\s"'>=/]+)(${lt}*=${lt}*(?:[^
21
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,Ot=/"/g,Bt=/^(?:script|style|textarea|title)$/i,P=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Lt=new WeakMap,S=k.createTreeWalker(k,129,null,!1);function Ft(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nt!==void 0?Nt.createHTML(t):t}const pe=(s,t)=>{const e=s.length-1,i=[];let o,a=t===2?"<svg>":"",n=L;for(let c=0;c<e;c++){const r=s[c];let l,d,h=-1,p=0;for(;p<r.length&&(n.lastIndex=p,d=n.exec(r),d!==null);)p=n.lastIndex,n===L?d[1]==="!--"?n=Rt:d[1]!==void 0?n=It:d[2]!==void 0?(Bt.test(d[2])&&(o=RegExp("</"+d[2],"g")),n=E):d[3]!==void 0&&(n=E):n===E?d[0]===">"?(n=o??L,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,l=d[1],n=d[3]===void 0?E:d[3]==='"'?Ot:Dt):n===Ot||n===Dt?n=E:n===Rt||n===It?n=L:(n=E,o=void 0);const u=n===E&&s[c+1].startsWith("/>")?" ":"";a+=n===L?r+he:h>=0?(i.push(l),r.slice(0,h)+rt+r.slice(h)+_+u):r+_+(h===-2?(i.push(void 0),c):u)}return[Ft(s,a+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class F{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let a=0,n=0;const c=t.length-1,r=this.parts,[l,d]=pe(t,e);if(this.el=F.createElement(l,i),S.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(o=S.nextNode())!==null&&r.length<c;){if(o.nodeType===1){if(o.hasAttributes()){const h=[];for(const p of o.getAttributeNames())if(p.endsWith(rt)||p.startsWith(_)){const u=d[n++];if(h.push(p),u!==void 0){const ut=o.getAttribute(u.toLowerCase()+rt).split(_),A=/([.?@])?(.*)/.exec(u);r.push({type:1,index:a,name:A[2],strings:ut,ctor:A[1]==="."?$e:A[1]==="?"?me:A[1]==="@"?fe:J})}else r.push({type:6,index:a})}for(const p of h)o.removeAttribute(p)}if(Bt.test(o.tagName)){const h=o.textContent.split(_),p=h.length-1;if(p>0){o.textContent=N?N.emptyScript:"";for(let u=0;u<p;u++)o.append(h[u],O()),S.nextNode(),r.push({type:2,index:++a});o.append(h[p],O())}}}else if(o.nodeType===8)if(o.data===Pt)r.push({type:2,index:a});else{let h=-1;for(;(h=o.data.indexOf(_,h+1))!==-1;)r.push({type:7,index:a}),h+=_.length-1}a++}}static createElement(t,e){const i=k.createElement("template");return i.innerHTML=t,i}}function U(s,t,e=s,i){var o,a,n,c;if(t===P)return t;let r=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const l=B(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==l&&((a=r==null?void 0:r._$AO)===null||a===void 0||a.call(r,!1),l===void 0?r=void 0:(r=new l(s),r._$AT(s,e,i)),i!==void 0?((n=(c=e)._$Co)!==null&&n!==void 0?n:c._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=U(s,r._$AS(s,t.values),r,i)),t}class ue{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,a=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:k).importNode(i,!0);S.currentNode=a;let n=S.nextNode(),c=0,r=0,l=o[0];for(;l!==void 0;){if(c===l.index){let d;l.type===2?d=new V(n,n.nextSibling,this,t):l.type===1?d=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(d=new ge(n,this,t)),this._$AV.push(d),l=o[++r]}c!==(l==null?void 0:l.index)&&(n=S.nextNode(),c++)}return S.currentNode=k,a}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{constructor(t,e,i,o){var a;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),B(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ce(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==v&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(k.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,a=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=F.createElement(Ft(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===a)this._$AH.v(i);else{const n=new ue(a,this),c=n.u(this.options);n.v(i),this.$(c),this._$AH=n}}_$AC(t){let e=Lt.get(t.strings);return e===void 0&&Lt.set(t.strings,e=new F(t)),e}T(t){Ut(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const a of t)o===e.length?e.push(i=new V(this.k(O()),this.k(O()),this,this.options)):i=e[o],i._$AI(a),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class J{constructor(t,e,i,o,a){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=v}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const a=this.strings;let n=!1;if(a===void 0)t=U(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==P,n&&(this._$AH=t);else{const c=t;let r,l;for(t=a[0],r=0;r<a.length-1;r++)l=U(this,c[i+r],e,r),l===P&&(l=this._$AH[r]),n||(n=!B(l)||l!==this._$AH[r]),l===v?t=v:t!==v&&(t+=(l??"")+a[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class $e extends J{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}}const ve=N?N.emptyScript:"";class me extends J{constructor(){super(...arguments),this.type=4}j(t){t&&t!==v?this.element.setAttribute(this.name,ve):this.element.removeAttribute(this.name)}}class fe extends J{constructor(t,e,i,o,a){super(t,e,i,o,a),this.type=5}_$AI(t,e=this){var i;if((t=(i=U(this,t,e,0))!==null&&i!==void 0?i:v)===P)return;const o=this._$AH,a=t===v&&o!==v||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==v&&(o===v||a);a&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class ge{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const Vt=K.litHtmlPolyfillSupport;Vt==null||Vt(F,V),((at=K.litHtmlVersions)!==null&&at!==void 0?at:K.litHtmlVersions=[]).push("2.8.0");const Ae=(s,t,e)=>{var i,o;const a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=a._$litPart$;if(n===void 0){const c=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:null;a._$litPart$=n=new V(t.insertBefore(O(),c),c,void 0,e??{})}return n._$AI(s),n};/**
21
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,Ot=/"/g,Bt=/^(?:script|style|textarea|title)$/i,P=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Lt=new WeakMap,S=k.createTreeWalker(k,129,null,!1);function Ft(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nt!==void 0?Nt.createHTML(t):t}const pe=(n,t)=>{const e=n.length-1,i=[];let o,a=t===2?"<svg>":"",s=L;for(let c=0;c<e;c++){const r=n[c];let l,h,d=-1,p=0;for(;p<r.length&&(s.lastIndex=p,h=s.exec(r),h!==null);)p=s.lastIndex,s===L?h[1]==="!--"?s=Rt:h[1]!==void 0?s=It:h[2]!==void 0?(Bt.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=E):h[3]!==void 0&&(s=E):s===E?h[0]===">"?(s=o??L,d=-1):h[1]===void 0?d=-2:(d=s.lastIndex-h[2].length,l=h[1],s=h[3]===void 0?E:h[3]==='"'?Ot:Dt):s===Ot||s===Dt?s=E:s===Rt||s===It?s=L:(s=E,o=void 0);const u=s===E&&n[c+1].startsWith("/>")?" ":"";a+=s===L?r+de:d>=0?(i.push(l),r.slice(0,d)+rt+r.slice(d)+_+u):r+_+(d===-2?(i.push(void 0),c):u)}return[Ft(n,a+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class F{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let a=0,s=0;const c=t.length-1,r=this.parts,[l,h]=pe(t,e);if(this.el=F.createElement(l,i),S.currentNode=this.el.content,e===2){const d=this.el.content,p=d.firstChild;p.remove(),d.append(...p.childNodes)}for(;(o=S.nextNode())!==null&&r.length<c;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const p of o.getAttributeNames())if(p.endsWith(rt)||p.startsWith(_)){const u=h[s++];if(d.push(p),u!==void 0){const ut=o.getAttribute(u.toLowerCase()+rt).split(_),A=/([.?@])?(.*)/.exec(u);r.push({type:1,index:a,name:A[2],strings:ut,ctor:A[1]==="."?$e:A[1]==="?"?me:A[1]==="@"?fe:J})}else r.push({type:6,index:a})}for(const p of d)o.removeAttribute(p)}if(Bt.test(o.tagName)){const d=o.textContent.split(_),p=d.length-1;if(p>0){o.textContent=N?N.emptyScript:"";for(let u=0;u<p;u++)o.append(d[u],O()),S.nextNode(),r.push({type:2,index:++a});o.append(d[p],O())}}}else if(o.nodeType===8)if(o.data===Pt)r.push({type:2,index:a});else{let d=-1;for(;(d=o.data.indexOf(_,d+1))!==-1;)r.push({type:7,index:a}),d+=_.length-1}a++}}static createElement(t,e){const i=k.createElement("template");return i.innerHTML=t,i}}function U(n,t,e=n,i){var o,a,s,c;if(t===P)return t;let r=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const l=B(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==l&&((a=r==null?void 0:r._$AO)===null||a===void 0||a.call(r,!1),l===void 0?r=void 0:(r=new l(n),r._$AT(n,e,i)),i!==void 0?((s=(c=e)._$Co)!==null&&s!==void 0?s:c._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=U(n,r._$AS(n,t.values),r,i)),t}class ue{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,a=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:k).importNode(i,!0);S.currentNode=a;let s=S.nextNode(),c=0,r=0,l=o[0];for(;l!==void 0;){if(c===l.index){let h;l.type===2?h=new V(s,s.nextSibling,this,t):l.type===1?h=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(h=new ge(s,this,t)),this._$AV.push(h),l=o[++r]}c!==(l==null?void 0:l.index)&&(s=S.nextNode(),c++)}return S.currentNode=k,a}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{constructor(t,e,i,o){var a;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=(a=o==null?void 0:o.isConnected)===null||a===void 0||a}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),B(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ce(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==v&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(k.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,a=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=F.createElement(Ft(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===a)this._$AH.v(i);else{const s=new ue(a,this),c=s.u(this.options);s.v(i),this.$(c),this._$AH=s}}_$AC(t){let e=Lt.get(t.strings);return e===void 0&&Lt.set(t.strings,e=new F(t)),e}T(t){Ut(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const a of t)o===e.length?e.push(i=new V(this.k(O()),this.k(O()),this,this.options)):i=e[o],i._$AI(a),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class J{constructor(t,e,i,o,a){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=v}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const a=this.strings;let s=!1;if(a===void 0)t=U(this,t,e,0),s=!B(t)||t!==this._$AH&&t!==P,s&&(this._$AH=t);else{const c=t;let r,l;for(t=a[0],r=0;r<a.length-1;r++)l=U(this,c[i+r],e,r),l===P&&(l=this._$AH[r]),s||(s=!B(l)||l!==this._$AH[r]),l===v?t=v:t!==v&&(t+=(l??"")+a[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class $e extends J{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}}const ve=N?N.emptyScript:"";class me extends J{constructor(){super(...arguments),this.type=4}j(t){t&&t!==v?this.element.setAttribute(this.name,ve):this.element.removeAttribute(this.name)}}class fe extends J{constructor(t,e,i,o,a){super(t,e,i,o,a),this.type=5}_$AI(t,e=this){var i;if((t=(i=U(this,t,e,0))!==null&&i!==void 0?i:v)===P)return;const o=this._$AH,a=t===v&&o!==v||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==v&&(o===v||a);a&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class ge{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const Vt=K.litHtmlPolyfillSupport;Vt==null||Vt(F,V),((at=K.litHtmlVersions)!==null&&at!==void 0?at:K.litHtmlVersions=[]).push("2.8.0");const Ae=(n,t,e)=>{var i,o;const a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let s=a._$litPart$;if(s===void 0){const c=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:null;a._$litPart$=s=new V(t.insertBefore(O(),c),c,void 0,e??{})}return s._$AI(n),s};/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */var dt,ht;let R=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ae(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return P}};R.finalized=!0,R._$litElement$=!0,(dt=globalThis.litElementHydrateSupport)===null||dt===void 0||dt.call(globalThis,{LitElement:R});const jt=globalThis.litElementPolyfillSupport;jt==null||jt({LitElement:R}),((ht=globalThis.litElementVersions)!==null&&ht!==void 0?ht:globalThis.litElementVersions=[]).push("3.3.3");/**
25
+ */var ht,dt;let R=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ae(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return P}};R.finalized=!0,R._$litElement$=!0,(ht=globalThis.litElementHydrateSupport)===null||ht===void 0||ht.call(globalThis,{LitElement:R});const jt=globalThis.litElementPolyfillSupport;jt==null||jt({LitElement:R}),((dt=globalThis.litElementVersions)!==null&&dt!==void 0?dt:globalThis.litElementVersions=[]).push("3.3.3");/**
26
26
  * @license
27
27
  * Copyright 2020 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */const be=Symbol.for(""),_e=s=>{if((s==null?void 0:s.r)===be)return s==null?void 0:s._$litStatic$},zt=new Map,ye=s=>(t,...e)=>{const i=e.length;let o,a;const n=[],c=[];let r,l=0,d=!1;for(;l<i;){for(r=t[l];l<i&&(a=e[l],(o=_e(a))!==void 0);)r+=o+t[++l],d=!0;l!==i&&c.push(a),n.push(r),l++}if(l===i&&n.push(t[i]),d){const h=n.join("$$lit$$");(t=zt.get(h))===void 0&&(n.raw=n,zt.set(h,t=n)),e=c}return s(t,...e)},ct=ye(ie),xe=Xt`
29
+ */const be=Symbol.for(""),_e=n=>{if((n==null?void 0:n.r)===be)return n==null?void 0:n._$litStatic$},zt=new Map,ye=n=>(t,...e)=>{const i=e.length;let o,a;const s=[],c=[];let r,l=0,h=!1;for(;l<i;){for(r=t[l];l<i&&(a=e[l],(o=_e(a))!==void 0);)r+=o+t[++l],h=!0;l!==i&&c.push(a),s.push(r),l++}if(l===i&&s.push(t[i]),h){const d=s.join("$$lit$$");(t=zt.get(d))===void 0&&(s.raw=s,zt.set(d,t=s)),e=c}return n(t,...e)},ct=ye(ie),xe=Xt`
30
30
  :host {
31
31
  position: absolute;
32
32
  width: 100%;
@@ -302,11 +302,11 @@
302
302
  * @license
303
303
  * Copyright 2017 Google LLC
304
304
  * SPDX-License-Identifier: BSD-3-Clause
305
- */const we={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ke=s=>(...t)=>({_$litDirective$:s,values:t});class Ee{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
305
+ */const we={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ke=n=>(...t)=>({_$litDirective$:n,values:t});class Ee{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
306
306
  * @license
307
307
  * Copyright 2018 Google LLC
308
308
  * SPDX-License-Identifier: BSD-3-Clause
309
- */const qt=ke(class extends Ee{constructor(s){var t;if(super(s),s.type!==we.ATTRIBUTE||s.name!=="class"||((t=s.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var e,i;if(this.it===void 0){this.it=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in t)t[a]&&!(!((e=this.nt)===null||e===void 0)&&e.has(a))&&this.it.add(a);return this.render(t)}const o=s.element.classList;this.it.forEach(a=>{a in t||(o.remove(a),this.it.delete(a))});for(const a in t){const n=!!t[a];n===this.it.has(a)||!((i=this.nt)===null||i===void 0)&&i.has(a)||(n?(o.add(a),this.it.add(a)):(o.remove(a),this.it.delete(a)))}return H}}),Se=[{name:"Consulta médica",items:[{name:"Presencial",link:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Teleconsulta",link:"https://agenda.clinicaalemana.cl/paciente"},{name:"TeleUrgencia",link:"https://www.clinicaalemana.cl/telemedicina/teleurgencia"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Teledermatología",link:"https://teledermatologia.clinicaalemana.cl/"}]},{name:"Rehabilitación y bienestar",items:[{name:"Kinesiología",link:"https://agenda.clinicaalemana.cl/rehabilitacion-y-bienestar/seleccion-categoria"}]},{name:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}]},{name:"Vacunas",items:[{name:"Adulto",link:"https://agenda.clinicaalemana.cl/examenes-y-procedimientos/vacunatorio/vacuna-adulto/disponibilidad"},{name:"Covid-19",link:"https://www.clinicaalemana.cl/covid-19"},{name:"Influenza",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2024"},{name:"Viajeros",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"},{name:"TeleAsesoría pediátrica",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/asesoria-en-vacunacion-pediatrica"}]}],Ce=[{name:"Consulta médica",link:"https://reserva.clinicaalemana.cl/alemana-integral"},{name:"Exámenes y procedimientos",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}],pt=Se,Wt=Ce;class j extends R{constructor(){super(),this.hidden=!1,this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.dataTipoDeAtencion=[],this.dataModalidad=[],this.opcionSelecionada="Paciente",this.focused=!1,this.refresh=!1,this.link=""}changeHandler(t){var i,o;const e=t.target.name;if(this[e]=t.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),e==="tipoDeAtencionIntegral"&&(this.tipoDeAtencion="",this.modalidad=""),e==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const a=((o=(i=pt.find(n=>n.name===this.tipoDeAtencion))==null?void 0:i.items)==null?void 0:o.map(n=>n.name))||[];t.target.value==="Consulta pediátrica"&&this.handleLink(),this.dataModalidad=[...a],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}e==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");e==null||e.setAttribute("active",t)}handleFocusModalidad(t){const e=this.shadowRoot.getElementById("modalidad");e==null||e.setAttribute("active",t)}handleErrorTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");t?e==null||e.setAttribute("isSelectError",!0):e==null||e.removeAttribute("isSelectError")}handleErrorModalidad(t){const e=this.shadowRoot.getElementById("modalidad");t?e==null||e.setAttribute("isSelectError",!0):e==null||e.removeAttribute("isSelectError")}handleLink(){let t="";this.tipoDeAtencionIntegral!==""&&(t=Wt.find(i=>i.name===this.tipoDeAtencionIntegral).link),this.tipoDeAtencion!==""&&this.modalidad!==""&&(t=pt.find(i=>i.name===this.tipoDeAtencion).items.find(i=>i.name===this.modalidad).link),this.tipoDeAtencion==="Consulta pediátrica"&&(t="https://www.clinicaalemana.cl/consulta-pediatrica-2025"),this.link=t;const e=this.shadowRoot.querySelector(".btn-action");this.link!==""?e.setAttribute("href",this.link):e.removeAttribute("href")}submit(){this.link!==""?this.handleMark({category:"reservar_hora"}):this.tipoDeAtencion===""?(this.handleErrorTipoDeAtencion(!0),this.handleErrorModalidad(!0)):(this.handleFocusModalidad(!1),this.handleErrorModalidad(!0))}handleMark({category:t,action:e,label:i}){const o={event:"evento-interactivo","evento-interactivo-categoria":t,"evento-interactivo-accion":e||this.tipoDeAtencion||this.tipoDeAtencionIntegral||"reservar_hora","evento-interactivo-etiqueta":i||this.modalidad,opcion_seleccionada:this.opcionSelecionada};console.log("devLayer_ ",o);try{window.dataLayer.push(o)}catch{console.log("event push failed")}}eventHandler(){this.removeAttribute("hidden");let t=this.shadowRoot.getElementById("backdrop");t.style.display="flex",this.hidden=!1,this.focused=!0,this.requestUpdate()}firstUpdated(){if(this.handleParameter(),setTimeout(()=>{this.handleTab()},1e3),this.onlyView||document.addEventListener("openBookingBox",()=>{this.eventHandler()}),window.innerWidth>1023){const t=this.shadowRoot.querySelector(".booking-box");let e=this.shadowRoot.getElementById("backdrop");t.addEventListener("focusin",()=>{this.focused=!0,e.style.display="flex",this.requestUpdate()})}}handleTab(t){this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.handleLink();const e={1:"Paciente",2:"Alemana Integral"};this.opcionSelecionada=e[t]??"Paciente";const i=this.shadowRoot.querySelectorAll("[data-view]");if(t){const o=this.shadowRoot.querySelectorAll(".top .item");this.shadowRoot.querySelector(".option-box").setAttribute("current-view",t.toString()),i.forEach(n=>{n.getAttribute("data-view")===t.toString()?n.style.display="flex":n.style.display="none"}),o.forEach(n=>{n.getAttribute("data-tab")===t.toString()?n.querySelector("cas-radio").setAttribute("checked",!0):n.querySelector("cas-radio").removeAttribute("checked")})}else Array.from(i).filter(a=>a.getAttribute("data-view")==="2").forEach(a=>{a.style.display="none"})}handleParameter(){new URLSearchParams(window.location.search).get("rsv")==="true"&&this.eventHandler()}closeHandler(){let t=this.shadowRoot.getElementById("backdrop");t.style.display="none",this.hidden=!1,this.focused=!1,this.requestUpdate()}handleOverrideTime(){this.handleMark({category:"anular_hora"})}render(){const t=qt({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),e=qt({backdrop:!0,hidden:this.hidden});return ct`
309
+ */const qt=ke(class extends Ee{constructor(n){var t;if(super(n),n.type!==we.ATTRIBUTE||n.name!=="class"||((t=n.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(t=>n[t]).join(" ")+" "}update(n,[t]){var e,i;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in t)t[a]&&!(!((e=this.nt)===null||e===void 0)&&e.has(a))&&this.it.add(a);return this.render(t)}const o=n.element.classList;this.it.forEach(a=>{a in t||(o.remove(a),this.it.delete(a))});for(const a in t){const s=!!t[a];s===this.it.has(a)||!((i=this.nt)===null||i===void 0)&&i.has(a)||(s?(o.add(a),this.it.add(a)):(o.remove(a),this.it.delete(a)))}return H}}),Se=[{name:"Consulta médica",items:[{name:"Presencial",link:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Teleconsulta",link:"https://agenda.clinicaalemana.cl/paciente"},{name:"TeleUrgencia",link:"https://www.clinicaalemana.cl/telemedicina/teleurgencia"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Teledermatología",link:"https://teledermatologia.clinicaalemana.cl/"}]},{name:"Rehabilitación y bienestar",items:[{name:"Kinesiología",link:"https://agenda.clinicaalemana.cl/rehabilitacion-y-bienestar/seleccion-categoria"}]},{name:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}]},{name:"Vacunas",items:[{name:"Viajeros",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"},{name:"TeleAsesoría pediátrica",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/asesoria-en-vacunacion-pediatrica"}]}],Ce=[{name:"Consulta médica",link:"https://reserva.clinicaalemana.cl/alemana-integral"},{name:"Exámenes y procedimientos",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}],pt=Se,Wt=Ce;class j extends R{constructor(){super(),this.hidden=!1,this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.dataTipoDeAtencion=[],this.dataModalidad=[],this.opcionSelecionada="Paciente",this.focused=!1,this.refresh=!1,this.link=""}changeHandler(t){var i,o;const e=t.target.name;if(this[e]=t.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),e==="tipoDeAtencionIntegral"&&(this.tipoDeAtencion="",this.modalidad=""),e==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const a=((o=(i=pt.find(s=>s.name===this.tipoDeAtencion))==null?void 0:i.items)==null?void 0:o.map(s=>s.name))||[];t.target.value==="Consulta pediátrica"&&this.handleLink(),this.dataModalidad=[...a],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}e==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");e==null||e.setAttribute("active",t)}handleFocusModalidad(t){const e=this.shadowRoot.getElementById("modalidad");e==null||e.setAttribute("active",t)}handleErrorTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");t?e==null||e.setAttribute("isSelectError",!0):e==null||e.removeAttribute("isSelectError")}handleErrorModalidad(t){const e=this.shadowRoot.getElementById("modalidad");t?e==null||e.setAttribute("isSelectError",!0):e==null||e.removeAttribute("isSelectError")}handleLink(){let t="";this.tipoDeAtencionIntegral!==""&&(t=Wt.find(i=>i.name===this.tipoDeAtencionIntegral).link),this.tipoDeAtencion!==""&&this.modalidad!==""&&(t=pt.find(i=>i.name===this.tipoDeAtencion).items.find(i=>i.name===this.modalidad).link),this.tipoDeAtencion==="Consulta pediátrica"&&(t="https://www.clinicaalemana.cl/consulta-pediatrica-2025"),this.link=t;const e=this.shadowRoot.querySelector(".btn-action");this.link!==""?e.setAttribute("href",this.link):e.removeAttribute("href")}submit(){this.link!==""?this.handleMark({category:"reservar_hora"}):this.tipoDeAtencion===""?(this.handleErrorTipoDeAtencion(!0),this.handleErrorModalidad(!0)):(this.handleFocusModalidad(!1),this.handleErrorModalidad(!0))}handleMark({category:t,action:e,label:i}){const o={event:"evento-interactivo","evento-interactivo-categoria":t,"evento-interactivo-accion":e||this.tipoDeAtencion||this.tipoDeAtencionIntegral||"reservar_hora","evento-interactivo-etiqueta":i||this.modalidad,opcion_seleccionada:this.opcionSelecionada};console.log("devLayer_ ",o);try{window.dataLayer.push(o)}catch{console.log("event push failed")}}eventHandler(){this.removeAttribute("hidden");let t=this.shadowRoot.getElementById("backdrop");t.style.display="flex",this.hidden=!1,this.focused=!0,this.requestUpdate()}firstUpdated(){if(this.handleParameter(),setTimeout(()=>{this.handleTab()},1e3),this.onlyView||document.addEventListener("openBookingBox",()=>{this.eventHandler()}),window.innerWidth>1023){const t=this.shadowRoot.querySelector(".booking-box");let e=this.shadowRoot.getElementById("backdrop");t.addEventListener("focusin",()=>{this.focused=!0,e.style.display="flex",this.requestUpdate()})}}handleTab(t){this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.handleLink();const e={1:"Paciente",2:"Alemana Integral"};this.opcionSelecionada=e[t]??"Paciente";const i=this.shadowRoot.querySelectorAll("[data-view]");if(t){const o=this.shadowRoot.querySelectorAll(".top .item");this.shadowRoot.querySelector(".option-box").setAttribute("current-view",t.toString()),i.forEach(s=>{s.getAttribute("data-view")===t.toString()?s.style.display="flex":s.style.display="none"}),o.forEach(s=>{s.getAttribute("data-tab")===t.toString()?s.querySelector("cas-radio").setAttribute("checked",!0):s.querySelector("cas-radio").removeAttribute("checked")})}else Array.from(i).filter(a=>a.getAttribute("data-view")==="2").forEach(a=>{a.style.display="none"})}handleParameter(){new URLSearchParams(window.location.search).get("rsv")==="true"&&this.eventHandler()}closeHandler(){let t=this.shadowRoot.getElementById("backdrop");t.style.display="none",this.hidden=!1,this.focused=!1,this.requestUpdate()}handleOverrideTime(){this.handleMark({category:"anular_hora"})}render(){const t=qt({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),e=qt({backdrop:!0,hidden:this.hidden});return ct`
310
310
  <div class="${e}" id="backdrop" @click="${this.closeHandler}"></div>
311
311
  <div class="booking-box-main-cont" id="booking-box-main-cont">
312
312
  <div class="${t}" id="booking-box" tabindex="0">
@@ -16,7 +16,7 @@ var __publicField = (obj, key, value) => {
16
16
  document.head.appendChild(font2);
17
17
  })();
18
18
  const name = "@eloisa-ds/all-components";
19
- const version$1 = "1.3.15";
19
+ const version$1 = "1.3.18";
20
20
  const dependencies = {};
21
21
  const main = "./index.js";
22
22
  const module$1 = "./index.mjs";
@@ -2876,18 +2876,18 @@ var __publicField = (obj, key, value) => {
2876
2876
  {
2877
2877
  name: "Vacunas",
2878
2878
  items: [
2879
- {
2880
- name: "Adulto",
2881
- link: "https://agenda.clinicaalemana.cl/examenes-y-procedimientos/vacunatorio/vacuna-adulto/disponibilidad"
2882
- },
2883
- {
2884
- name: "Covid-19",
2885
- link: "https://www.clinicaalemana.cl/covid-19"
2886
- },
2887
- {
2888
- name: "Influenza",
2889
- link: "https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2024"
2890
- },
2879
+ // {
2880
+ // name: 'Adulto',
2881
+ // link: 'https://agenda.clinicaalemana.cl/examenes-y-procedimientos/vacunatorio/vacuna-adulto/disponibilidad',
2882
+ // },
2883
+ // {
2884
+ // name: 'Covid-19',
2885
+ // link: 'https://www.clinicaalemana.cl/covid-19',
2886
+ // },
2887
+ // {
2888
+ // name: 'Influenza',
2889
+ // link: 'https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2024',
2890
+ // },
2891
2891
  {
2892
2892
  name: "Viajeros",
2893
2893
  link: "https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"
@@ -22422,7 +22422,6 @@ var __publicField = (obj, key, value) => {
22422
22422
  {
22423
22423
  name: "Mesa Central",
22424
22424
  text: "+56 2 2210 1111",
22425
- isPrimary: true,
22426
22425
  icon: "flat-hospital",
22427
22426
  url: "tel:+56222101111"
22428
22427
  },
@@ -23179,12 +23178,10 @@ var __publicField = (obj, key, value) => {
23179
23178
  }
23180
23179
  });
23181
23180
  const child = (data4) => {
23182
- const { icon, name: name2, text, url, login, isPrimary } = data4;
23181
+ const { icon, name: name2, text, url, login } = data4;
23183
23182
  return n$8`
23184
- <li itemscope itemtype="http://schema.org/Organization">
23185
- <a href="${url}"
23186
- itemprop="telephone"
23187
- aria-label="${isPrimary ? "Mesa Central - Teléfono principal: +56 2 2210 1111" : ""}${name2}">
23183
+ <li>
23184
+ <a href="${url}">
23188
23185
  ${icon ? n$8`
23189
23186
  <div class="icon">
23190
23187
  <cas-icon name="${icon}" size="20"></cas-icon>
@@ -13,7 +13,7 @@ import { x as x$1, i as i$b, r as r$7, s as s$8, a as x$2, T as T$6, o as o$d, D
13
13
  document.head.appendChild(font2);
14
14
  })();
15
15
  const name = "@eloisa-ds/all-components";
16
- const version$1 = "1.3.15";
16
+ const version$1 = "1.3.18";
17
17
  const dependencies = {};
18
18
  const main = "./index.js";
19
19
  const module$1 = "./index.mjs";
@@ -2060,18 +2060,18 @@ const dataPatient = [
2060
2060
  {
2061
2061
  name: "Vacunas",
2062
2062
  items: [
2063
- {
2064
- name: "Adulto",
2065
- link: "https://agenda.clinicaalemana.cl/examenes-y-procedimientos/vacunatorio/vacuna-adulto/disponibilidad"
2066
- },
2067
- {
2068
- name: "Covid-19",
2069
- link: "https://www.clinicaalemana.cl/covid-19"
2070
- },
2071
- {
2072
- name: "Influenza",
2073
- link: "https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2024"
2074
- },
2063
+ // {
2064
+ // name: 'Adulto',
2065
+ // link: 'https://agenda.clinicaalemana.cl/examenes-y-procedimientos/vacunatorio/vacuna-adulto/disponibilidad',
2066
+ // },
2067
+ // {
2068
+ // name: 'Covid-19',
2069
+ // link: 'https://www.clinicaalemana.cl/covid-19',
2070
+ // },
2071
+ // {
2072
+ // name: 'Influenza',
2073
+ // link: 'https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2024',
2074
+ // },
2075
2075
  {
2076
2076
  name: "Viajeros",
2077
2077
  link: "https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"
@@ -21606,7 +21606,6 @@ const header = {
21606
21606
  {
21607
21607
  name: "Mesa Central",
21608
21608
  text: "+56 2 2210 1111",
21609
- isPrimary: true,
21610
21609
  icon: "flat-hospital",
21611
21610
  url: "tel:+56222101111"
21612
21611
  },
@@ -22363,12 +22362,10 @@ class Head extends s$8 {
22363
22362
  }
22364
22363
  });
22365
22364
  const child = (data4) => {
22366
- const { icon, name: name2, text, url, login, isPrimary } = data4;
22365
+ const { icon, name: name2, text, url, login } = data4;
22367
22366
  return n$8`
22368
- <li itemscope itemtype="http://schema.org/Organization">
22369
- <a href="${url}"
22370
- itemprop="telephone"
22371
- aria-label="${isPrimary ? "Mesa Central - Teléfono principal: +56 2 2210 1111" : ""}${name2}">
22367
+ <li>
22368
+ <a href="${url}">
22372
22369
  ${icon ? n$8`
22373
22370
  <div class="icon">
22374
22371
  <cas-icon name="${icon}" size="20"></cas-icon>
@@ -1069,7 +1069,7 @@
1069
1069
  * @license
1070
1070
  * Copyright 2018 Google LLC
1071
1071
  * SPDX-License-Identifier: BSD-3-Clause
1072
- */const pe=Wa(class extends _r{constructor(s){var t;if(super(s),s.type!==fr.ATTRIBUTE||s.name!=="class"||((t=s.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var e,i;if(this.it===void 0){this.it=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(h=>h!=="")));for(const h in t)t[h]&&!(!((e=this.nt)===null||e===void 0)&&e.has(h))&&this.it.add(h);return this.render(t)}const a=s.element.classList;this.it.forEach(h=>{h in t||(a.remove(h),this.it.delete(h))});for(const h in t){const o=!!t[h];o===this.it.has(h)||!((i=this.nt)===null||i===void 0)&&i.has(h)||(o?(a.add(h),this.it.add(h)):(a.remove(h),this.it.delete(h)))}return Lt}}),Mr=[{name:"Consulta médica",items:[{name:"Presencial",link:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Teleconsulta",link:"https://agenda.clinicaalemana.cl/paciente"},{name:"TeleUrgencia",link:"https://www.clinicaalemana.cl/telemedicina/teleurgencia"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Teledermatología",link:"https://teledermatologia.clinicaalemana.cl/"}]},{name:"Rehabilitación y bienestar",items:[{name:"Kinesiología",link:"https://agenda.clinicaalemana.cl/rehabilitacion-y-bienestar/seleccion-categoria"}]},{name:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}]},{name:"Vacunas",items:[{name:"Adulto",link:"https://agenda.clinicaalemana.cl/examenes-y-procedimientos/vacunatorio/vacuna-adulto/disponibilidad"},{name:"Covid-19",link:"https://www.clinicaalemana.cl/covid-19"},{name:"Influenza",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2024"},{name:"Viajeros",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"},{name:"TeleAsesoría pediátrica",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/asesoria-en-vacunacion-pediatrica"}]}],zr=[{name:"Consulta médica",link:"https://reserva.clinicaalemana.cl/alemana-integral"},{name:"Exámenes y procedimientos",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}],S1=Mr,Za=zr;class ve extends b{constructor(){super(),this.hidden=!1,this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.dataTipoDeAtencion=[],this.dataModalidad=[],this.opcionSelecionada="Paciente",this.focused=!1,this.refresh=!1,this.link=""}changeHandler(t){var i,a;const e=t.target.name;if(this[e]=t.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),e==="tipoDeAtencionIntegral"&&(this.tipoDeAtencion="",this.modalidad=""),e==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const h=((a=(i=S1.find(o=>o.name===this.tipoDeAtencion))==null?void 0:i.items)==null?void 0:a.map(o=>o.name))||[];t.target.value==="Consulta pediátrica"&&this.handleLink(),this.dataModalidad=[...h],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}e==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");e==null||e.setAttribute("active",t)}handleFocusModalidad(t){const e=this.shadowRoot.getElementById("modalidad");e==null||e.setAttribute("active",t)}handleErrorTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");t?e==null||e.setAttribute("isSelectError",!0):e==null||e.removeAttribute("isSelectError")}handleErrorModalidad(t){const e=this.shadowRoot.getElementById("modalidad");t?e==null||e.setAttribute("isSelectError",!0):e==null||e.removeAttribute("isSelectError")}handleLink(){let t="";this.tipoDeAtencionIntegral!==""&&(t=Za.find(i=>i.name===this.tipoDeAtencionIntegral).link),this.tipoDeAtencion!==""&&this.modalidad!==""&&(t=S1.find(i=>i.name===this.tipoDeAtencion).items.find(i=>i.name===this.modalidad).link),this.tipoDeAtencion==="Consulta pediátrica"&&(t="https://www.clinicaalemana.cl/consulta-pediatrica-2025"),this.link=t;const e=this.shadowRoot.querySelector(".btn-action");this.link!==""?e.setAttribute("href",this.link):e.removeAttribute("href")}submit(){this.link!==""?this.handleMark({category:"reservar_hora"}):this.tipoDeAtencion===""?(this.handleErrorTipoDeAtencion(!0),this.handleErrorModalidad(!0)):(this.handleFocusModalidad(!1),this.handleErrorModalidad(!0))}handleMark({category:t,action:e,label:i}){const a={event:"evento-interactivo","evento-interactivo-categoria":t,"evento-interactivo-accion":e||this.tipoDeAtencion||this.tipoDeAtencionIntegral||"reservar_hora","evento-interactivo-etiqueta":i||this.modalidad,opcion_seleccionada:this.opcionSelecionada};console.log("devLayer_ ",a);try{window.dataLayer.push(a)}catch{console.log("event push failed")}}eventHandler(){this.removeAttribute("hidden");let t=this.shadowRoot.getElementById("backdrop");t.style.display="flex",this.hidden=!1,this.focused=!0,this.requestUpdate()}firstUpdated(){if(this.handleParameter(),setTimeout(()=>{this.handleTab()},1e3),this.onlyView||document.addEventListener("openBookingBox",()=>{this.eventHandler()}),window.innerWidth>1023){const t=this.shadowRoot.querySelector(".booking-box");let e=this.shadowRoot.getElementById("backdrop");t.addEventListener("focusin",()=>{this.focused=!0,e.style.display="flex",this.requestUpdate()})}}handleTab(t){this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.handleLink();const e={1:"Paciente",2:"Alemana Integral"};this.opcionSelecionada=e[t]??"Paciente";const i=this.shadowRoot.querySelectorAll("[data-view]");if(t){const a=this.shadowRoot.querySelectorAll(".top .item");this.shadowRoot.querySelector(".option-box").setAttribute("current-view",t.toString()),i.forEach(o=>{o.getAttribute("data-view")===t.toString()?o.style.display="flex":o.style.display="none"}),a.forEach(o=>{o.getAttribute("data-tab")===t.toString()?o.querySelector("cas-radio").setAttribute("checked",!0):o.querySelector("cas-radio").removeAttribute("checked")})}else Array.from(i).filter(h=>h.getAttribute("data-view")==="2").forEach(h=>{h.style.display="none"})}handleParameter(){new URLSearchParams(window.location.search).get("rsv")==="true"&&this.eventHandler()}closeHandler(){let t=this.shadowRoot.getElementById("backdrop");t.style.display="none",this.hidden=!1,this.focused=!1,this.requestUpdate()}handleOverrideTime(){this.handleMark({category:"anular_hora"})}render(){const t=pe({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),e=pe({backdrop:!0,hidden:this.hidden});return f`
1072
+ */const pe=Wa(class extends _r{constructor(s){var t;if(super(s),s.type!==fr.ATTRIBUTE||s.name!=="class"||((t=s.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var e,i;if(this.it===void 0){this.it=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(h=>h!=="")));for(const h in t)t[h]&&!(!((e=this.nt)===null||e===void 0)&&e.has(h))&&this.it.add(h);return this.render(t)}const a=s.element.classList;this.it.forEach(h=>{h in t||(a.remove(h),this.it.delete(h))});for(const h in t){const o=!!t[h];o===this.it.has(h)||!((i=this.nt)===null||i===void 0)&&i.has(h)||(o?(a.add(h),this.it.add(h)):(a.remove(h),this.it.delete(h)))}return Lt}}),Mr=[{name:"Consulta médica",items:[{name:"Presencial",link:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Teleconsulta",link:"https://agenda.clinicaalemana.cl/paciente"},{name:"TeleUrgencia",link:"https://www.clinicaalemana.cl/telemedicina/teleurgencia"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Teledermatología",link:"https://teledermatologia.clinicaalemana.cl/"}]},{name:"Rehabilitación y bienestar",items:[{name:"Kinesiología",link:"https://agenda.clinicaalemana.cl/rehabilitacion-y-bienestar/seleccion-categoria"}]},{name:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}]},{name:"Vacunas",items:[{name:"Viajeros",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"},{name:"TeleAsesoría pediátrica",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/asesoria-en-vacunacion-pediatrica"}]}],zr=[{name:"Consulta médica",link:"https://reserva.clinicaalemana.cl/alemana-integral"},{name:"Exámenes y procedimientos",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}],S1=Mr,Za=zr;class ve extends b{constructor(){super(),this.hidden=!1,this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.dataTipoDeAtencion=[],this.dataModalidad=[],this.opcionSelecionada="Paciente",this.focused=!1,this.refresh=!1,this.link=""}changeHandler(t){var i,a;const e=t.target.name;if(this[e]=t.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),e==="tipoDeAtencionIntegral"&&(this.tipoDeAtencion="",this.modalidad=""),e==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const h=((a=(i=S1.find(o=>o.name===this.tipoDeAtencion))==null?void 0:i.items)==null?void 0:a.map(o=>o.name))||[];t.target.value==="Consulta pediátrica"&&this.handleLink(),this.dataModalidad=[...h],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}e==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");e==null||e.setAttribute("active",t)}handleFocusModalidad(t){const e=this.shadowRoot.getElementById("modalidad");e==null||e.setAttribute("active",t)}handleErrorTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");t?e==null||e.setAttribute("isSelectError",!0):e==null||e.removeAttribute("isSelectError")}handleErrorModalidad(t){const e=this.shadowRoot.getElementById("modalidad");t?e==null||e.setAttribute("isSelectError",!0):e==null||e.removeAttribute("isSelectError")}handleLink(){let t="";this.tipoDeAtencionIntegral!==""&&(t=Za.find(i=>i.name===this.tipoDeAtencionIntegral).link),this.tipoDeAtencion!==""&&this.modalidad!==""&&(t=S1.find(i=>i.name===this.tipoDeAtencion).items.find(i=>i.name===this.modalidad).link),this.tipoDeAtencion==="Consulta pediátrica"&&(t="https://www.clinicaalemana.cl/consulta-pediatrica-2025"),this.link=t;const e=this.shadowRoot.querySelector(".btn-action");this.link!==""?e.setAttribute("href",this.link):e.removeAttribute("href")}submit(){this.link!==""?this.handleMark({category:"reservar_hora"}):this.tipoDeAtencion===""?(this.handleErrorTipoDeAtencion(!0),this.handleErrorModalidad(!0)):(this.handleFocusModalidad(!1),this.handleErrorModalidad(!0))}handleMark({category:t,action:e,label:i}){const a={event:"evento-interactivo","evento-interactivo-categoria":t,"evento-interactivo-accion":e||this.tipoDeAtencion||this.tipoDeAtencionIntegral||"reservar_hora","evento-interactivo-etiqueta":i||this.modalidad,opcion_seleccionada:this.opcionSelecionada};console.log("devLayer_ ",a);try{window.dataLayer.push(a)}catch{console.log("event push failed")}}eventHandler(){this.removeAttribute("hidden");let t=this.shadowRoot.getElementById("backdrop");t.style.display="flex",this.hidden=!1,this.focused=!0,this.requestUpdate()}firstUpdated(){if(this.handleParameter(),setTimeout(()=>{this.handleTab()},1e3),this.onlyView||document.addEventListener("openBookingBox",()=>{this.eventHandler()}),window.innerWidth>1023){const t=this.shadowRoot.querySelector(".booking-box");let e=this.shadowRoot.getElementById("backdrop");t.addEventListener("focusin",()=>{this.focused=!0,e.style.display="flex",this.requestUpdate()})}}handleTab(t){this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.handleLink();const e={1:"Paciente",2:"Alemana Integral"};this.opcionSelecionada=e[t]??"Paciente";const i=this.shadowRoot.querySelectorAll("[data-view]");if(t){const a=this.shadowRoot.querySelectorAll(".top .item");this.shadowRoot.querySelector(".option-box").setAttribute("current-view",t.toString()),i.forEach(o=>{o.getAttribute("data-view")===t.toString()?o.style.display="flex":o.style.display="none"}),a.forEach(o=>{o.getAttribute("data-tab")===t.toString()?o.querySelector("cas-radio").setAttribute("checked",!0):o.querySelector("cas-radio").removeAttribute("checked")})}else Array.from(i).filter(h=>h.getAttribute("data-view")==="2").forEach(h=>{h.style.display="none"})}handleParameter(){new URLSearchParams(window.location.search).get("rsv")==="true"&&this.eventHandler()}closeHandler(){let t=this.shadowRoot.getElementById("backdrop");t.style.display="none",this.hidden=!1,this.focused=!1,this.requestUpdate()}handleOverrideTime(){this.handleMark({category:"anular_hora"})}render(){const t=pe({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),e=pe({backdrop:!0,hidden:this.hidden});return f`
1073
1073
  <div class="${e}" id="backdrop" @click="${this.closeHandler}"></div>
1074
1074
  <div class="booking-box-main-cont" id="booking-box-main-cont">
1075
1075
  <div class="${t}" id="booking-box" tabindex="0">
@@ -5136,11 +5136,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5136
5136
  }
5137
5137
  }
5138
5138
 
5139
- `,Ro={head:[{id:1,icon:"flat-info",name:"Centro de ayuda",url:"https://centrodeayuda.clinicaalemana.cl/?itm_source=header-cas&itm_medium=web&itm_campaign=centro-de-ayuda-header&_ga=2.163849791.1865825919.1676902332-1791707714.1661293851&_gl=1*11v0ttz*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NjkxNDIzNi44Ny4wLjE2NzY5MTQyMzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NjkxNDIzNi45Ny4wLjE2NzY5MTQyMzYuNjAuMC4w",hasChildren:!1},{id:2,icon:"flat-helpCenter",name:"Llamar",hasChildren:!0,children:[{name:"Mesa Central",text:"+56 2 2210 1111",isPrimary:!0,icon:"flat-hospital",url:"tel:+56222101111"},{name:"Reserva de horas",text:"+56 2 2910 1700",icon:"flat-calendarOn",url:"tel:+56229101700"},{name:"Rescate de emergencia",text:"+56 2 2910 9911",icon:"flat-urgency",url:"tel:+56229109911"}]},{id:3,icon:"flat-profileOff",name:"Mi Alemana Go",hasChildren:!0,children:[{name:"Iniciar sesión",login:!0,url:"https://www.clinicaalemana.cl/alemana-go-web?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-iniciar-sesion"},{name:"Crear cuenta",url:"https://miclave.clinicaalemana.cl?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-pide-tu-clave&_ga=2.98190751.1865825919.1676902332-1791707714.1661293851&_gl=1*1oaa24h*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NzA3NjU3Ni45Ny4wLjE2NzcwNzY1NzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NzA3NjU3Ni4xMDcuMC4xNjc3MDc2NTc2LjYwLjAuMA.."}]}],support:[{id:4,name:"Centro de ayuda",icon:"flat-question",url:"https://centrodeayuda.clinicaalemana.cl/"},{id:2,name:"Reserva de hora <br>+56 22210 1700",icon:"flat-calendarOn",url:"tel:+56222101700"},{id:3,name:"Rescate de emergencia <br> +56 22910 9911",icon:"flat-phone",url:"tel:+56229109911"}],legals:[{id:1,name:"Información normativa",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales"},{id:2,name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"},{id:3,name:"Términos legales",url:"https://www.clinicaalemana.cl/terminos-y-condiciones/alemana"}]},Fo=[{id:1,name:"Servicios en línea",icon:"flat-medicTool",hasChildren:!0,children:[{section:"Valores y pagos",items:[{name:"Aranceles",text:"Conoce los valores",icon:"flat-search",url:"https://www.alemana.cl/wls/arancel",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-aranceles"},{name:"Presupuesto cirugía y parto",text:"Solicita tu cotización",icon:"flat-medicTool",url:"https://www.clinicaalemana.cl/presupuesto",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-presupuesto-hospitalizacion"},{name:"Pago de cuentas",text:"Ambulatorio y hospitalización",icon:"flat-fileInvoiceDollar",url:"https://pagos.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-pago-de-cuentas"},{name:"Isapres preferentes",text:"Con cobertura en la clínica",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-isapres-preferentes"}]},{section:"Exámenes",items:[{name:"Agendar",text:"Reserva tus exámenes",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-agendar"},{name:"Simulador",text:"Simula el copago estimado",icon:"flat-fileInvoiceDollar",url:"https://simulador.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-simulador"},{name:"Indicaciones de laboratorio",text:"Revisa cómo prepararte",icon:"flat-paper",url:"https://www.clinicaalemana.cl/indicaciones-de-examenes",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-indicaciones"},{name:"Resultados",text:"Descarga informes e imágenes",icon:"flat-ticket",url:"https://exameneslab.alemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-resultados"}]},{section:"Hospitalización",items:[{name:"Información clave",text:"Conoce todo el proceso",icon:"flat-listOff",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-clave-informacion"},{name:"Proceso de alta",text:"Conócelo en detalle",icon:"flat-success",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/alta-medica",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-proceso-de-alta"},{name:"Estado de cuenta",text:"Revisa el avance y si ya puedes pagar",icon:"flat-fileInvoiceDollar",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/cuenta",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-pago-de-cuentas"}]},{section:"Reserva de hora",items:[{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-calendarOn",url:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Telemedicina",text:"Atiéndete desde cualquier lugar",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"Exámenes y procedimientos",text:"Agenda tus pruebas médicas",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]}],align:"start",cta:{visible:!1,size:"large",color:"gray",title:"¿Necesitas realizarte un examen o procedimiento?",text:"Tenemos más de 700 tipos de análisis disponibles para ti.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Reservar",url:""}}},{id:2,name:"Especialidades y servicios",icon:"flat-doctor",hasChildren:!0,children:[{section:"Atenciones",items:[{name:"Servicios clínicos",text:"Conoce los que tenemos",icon:"flat-tube",url:"https://www.clinicaalemana.cl/nuestros-servicios/servicios-clinicos",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-servicios-clinicos"},{name:"Especialidades",text:"Revisa las más de 60 disponibles ",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/nuestros-servicios/especialidades",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-especialidades"},{name:"Nuestros médicos",text:"Busca por área o especialidad",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/profesional"},{name:"Sucursales",text:"Busca la más cercana",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/sucursales"}]},{section:"Modalidad de atención",items:[{name:"Telemedicina",text:"Consulta de forma virtual",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Consulta para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-branchOffices",url:"https://reserva.alemana.cl/reserva/portal/busqueda",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-presencial"}]},{section:"Atención especializada",columns:2,items:[{name:"Maternidad integral",text:"Conoce nuestro servicio",icon:"flat-pregnant",url:"https://www.clinicaalemana.cl/especialidades/maternidad-y-familia/maternidad-integral",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-maternidad-integral"},{name:"Paciente regional",text:"Gestiona tu visita",icon:"flat-regionalPatient",url:"https://www.clinicaalemana.cl/paciente-regional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-regional"},{name:"Hospitalización",text:"Revisa todo el proceso",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-hospitalizacion"},{name:"Solicitudes",text:"Pide copia de boletas, recetas, órdenes y más.",icon:"flat-folder",url:"https://www.clinicaalemana.cl/requerimientos-medicos",tracking_type:"itm",campaign:"menu-superior-solicitudes"},{name:"Salud empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-salud-empresa"},{name:"Centros",text:"Busca el más cercano",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/centros",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-centros"},{name:"Paciente internacional",text:"Solicita tu atención",icon:"flat-interPatient",url:"https://www.clinicaalemana.cl/paciente-internacional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-internacional"},{name:"Programas y asesorías",text:"Encuentra el mejor para ti",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/programas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-programas"}]}],align:"center",cta:{visible:!1,size:"small",color:"purple",title:"¿Necesitas un presupuesto?",text:"Puedes solicitar uno para tu parto o una hospitalización.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Solicitar",url:""}}},{id:3,name:"Seguros y convenios",icon:"flat-safety",hasChildren:!0,children:[{section:"Personas",items:[{name:"Convenio de Accidentes",text:"Protege a tu familia",icon:"flat-safety",url:"https://www.clinicaalemana.cl/convenio-de-accidentes",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-convenio-de-accidentes"},{name:"Alemana Seguros",text:"Elige el mejor para ti",icon:"flat-safety",url:"https://www.alemanaseguros.cl",tracking_type:"utm",campaign:"clininicalamana_menu_superior"},{name:"Todo Alemana",text:"Contrata beneficios adicionales",icon:"flat-safety",url:"https://www.clinicaalemana.cl/todo-alemana/caracteristicas-generales",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-todo-alemana"},{name:"Isapres en convenio",text:"",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana"}]},{section:"Empresas",items:[{name:"Laboratorio",text:"Conoce nuestros servicios",icon:"flat-tube",url:"https://www.clinicaalemana.cl/especialidades/laboratorio-clinico/convenio-laboratorio",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-laboratorio"}]}],align:"center",cta:{visible:!1,size:"medium",color:"red",title:"¿Necesitas realizarte un examen?",text:"Más de 700 exámenes y procedimeintos disponibles",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Agendar ",url:""}}},{id:4,name:"Prevención y bienestar",icon:"flat-sex",hasChildren:!0,children:[{section:"Personas",items:[{name:"Salud preventiva",text:"Descubre chequeos y programas",icon:"flat-user",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar"}]},{section:"Empresas",items:[{name:"Salud Empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-empresas-salud-empresa"}]}],align:"end",cta:{visible:!1}},{id:5,name:"Educación de salud",icon:"flat-youtube",hasChildren:!0,children:[{section:"",items:[{name:"Todo sobre salud",text:"Revisa las principales noticias",icon:"flat-newspaper2",url:"https://www.clinicaalemana.cl/articulos/todas-las-noticias",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-todo-sobre-salud"},{name:"Banco de enfermedades",text:"Encuentra todo lo que necesitas",icon:"flat-textColor",url:"https://www.clinicaalemana.cl/banco-de-enfermedades",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-banco-de-enfermedades"},{name:"Alemana Podcast",text:"Escucha a nuestros expertos ",icon:"flat-spotify",url:"https://www.clinicaalemana.cl/centro-de-extension/podcast",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-alemana-podcast"},{name:"Charlas y talleres",text:"Aprende con nuestros especialistas",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/centro-de-extension/bienvenida-charlas-y-talleres",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-charlas-y-talleres"},{name:"Video educativos",text:"Mira nuestro contenido",icon:"flat-youtube",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA",tracking_type:"utm",campaign:"menu-superior-educación-de-salud-video-educativos"}]}],align:"end",cta:{visible:!1}}],l3=Ro.head;class Qe extends b{constructor(){super(),this.showSignin=!1,this.showSearch=!1,this.hideSearch=window.location.href.includes("buscar")}openBookingBox(){const t=new CustomEvent("openBookingBox");document.dispatchEvent(t)}openSignIn(){this.showSignin=!0,this.requestUpdate()}openSearch(){this.showSearch=!0,this.requestUpdate()}closeSingIn(){this.showSignin=!1,this.requestUpdate()}closeSearch(){this.showSearch=!1,this.requestUpdate()}openMenu(){const t=new CustomEvent("openMenuMobile");document.dispatchEvent(t)}initializeSearch(t,e,i=null){const a=this.shadowRoot.querySelector(t),h=this.shadowRoot.querySelector(e),o=i?this.shadowRoot.querySelector(i):null,r=()=>{a.value&&(window.location.href=`https://www.clinicaalemana.cl/buscar?searchTerm=${a.value}`)},n=()=>{const l=a.closest("li");l&&(l.classList.toggle("has-value",!!a.value),l.classList.toggle("focused",!!a.value))};h.addEventListener("click",r),a.addEventListener("keypress",l=>{l.key==="Enter"&&r()}),a.addEventListener("focus",()=>{const l=a.closest("li");l&&l.classList.add("focused")}),a.addEventListener("blur",n),a.addEventListener("input",n),o&&o.addEventListener("click",()=>{a.value="",n()}),a.value=""}initializeDesktopSearch(){this.initializeSearch("#search-input","#searchButton","#clearSearchButton")}initializeMobileSearch(){this.initializeSearch("#searchTermInput",".search-button-mobile")}firstUpdated(){this.hideSearch||this.variant!==B.HOME||(this.isMobile?this.showSearch&&this.initializeMobileSearch():this.initializeDesktopSearch())}updated(){const t=this.shadowRoot.querySelectorAll(".group > li");t.forEach(e=>{e.addEventListener("click",()=>{t.forEach(i=>{i.classList.remove("active")}),e.classList.add("active")})}),!this.hideSearch&&this.showSearch&&this.initializeMobileSearch()}render(){const{isMobile:t,isTablet:e,isMacbookAir:i}=this,a=l3,h=i?"Reservar":"Reservar hora";document.addEventListener("click",d=>{d.composedPath().includes(this)||this.shadowRoot.querySelectorAll(".group > li").forEach(p=>{p.classList.remove("active")})});const o=d=>{const{icon:c,name:p,text:v,url:g,login:m,isPrimary:A}=d;return f`
5140
- <li itemscope itemtype="http://schema.org/Organization">
5141
- <a href="${g}"
5142
- itemprop="telephone"
5143
- aria-label="${A?"Mesa Central - Teléfono principal: +56 2 2210 1111":""}${p}">
5139
+ `,Ro={head:[{id:1,icon:"flat-info",name:"Centro de ayuda",url:"https://centrodeayuda.clinicaalemana.cl/?itm_source=header-cas&itm_medium=web&itm_campaign=centro-de-ayuda-header&_ga=2.163849791.1865825919.1676902332-1791707714.1661293851&_gl=1*11v0ttz*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NjkxNDIzNi44Ny4wLjE2NzY5MTQyMzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NjkxNDIzNi45Ny4wLjE2NzY5MTQyMzYuNjAuMC4w",hasChildren:!1},{id:2,icon:"flat-helpCenter",name:"Llamar",hasChildren:!0,children:[{name:"Mesa Central",text:"+56 2 2210 1111",icon:"flat-hospital",url:"tel:+56222101111"},{name:"Reserva de horas",text:"+56 2 2910 1700",icon:"flat-calendarOn",url:"tel:+56229101700"},{name:"Rescate de emergencia",text:"+56 2 2910 9911",icon:"flat-urgency",url:"tel:+56229109911"}]},{id:3,icon:"flat-profileOff",name:"Mi Alemana Go",hasChildren:!0,children:[{name:"Iniciar sesión",login:!0,url:"https://www.clinicaalemana.cl/alemana-go-web?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-iniciar-sesion"},{name:"Crear cuenta",url:"https://miclave.clinicaalemana.cl?itm_source=header-cas&itm_medium=web&itm_campaign=home-cas-pide-tu-clave&_ga=2.98190751.1865825919.1676902332-1791707714.1661293851&_gl=1*1oaa24h*_ga*MTc5MTcwNzcxNC4xNjYxMjkzODUx*_ga_PR6Y9MEXR6*MTY3NzA3NjU3Ni45Ny4wLjE2NzcwNzY1NzYuMC4wLjA.*_ga_VL9DKPYXQE*MTY3NzA3NjU3Ni4xMDcuMC4xNjc3MDc2NTc2LjYwLjAuMA.."}]}],support:[{id:4,name:"Centro de ayuda",icon:"flat-question",url:"https://centrodeayuda.clinicaalemana.cl/"},{id:2,name:"Reserva de hora <br>+56 22210 1700",icon:"flat-calendarOn",url:"tel:+56222101700"},{id:3,name:"Rescate de emergencia <br> +56 22910 9911",icon:"flat-phone",url:"tel:+56229109911"}],legals:[{id:1,name:"Información normativa",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales"},{id:2,name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"},{id:3,name:"Términos legales",url:"https://www.clinicaalemana.cl/terminos-y-condiciones/alemana"}]},Fo=[{id:1,name:"Servicios en línea",icon:"flat-medicTool",hasChildren:!0,children:[{section:"Valores y pagos",items:[{name:"Aranceles",text:"Conoce los valores",icon:"flat-search",url:"https://www.alemana.cl/wls/arancel",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-aranceles"},{name:"Presupuesto cirugía y parto",text:"Solicita tu cotización",icon:"flat-medicTool",url:"https://www.clinicaalemana.cl/presupuesto",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-presupuesto-hospitalizacion"},{name:"Pago de cuentas",text:"Ambulatorio y hospitalización",icon:"flat-fileInvoiceDollar",url:"https://pagos.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-pago-de-cuentas"},{name:"Isapres preferentes",text:"Con cobertura en la clínica",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-valores-y-pagos-isapres-preferentes"}]},{section:"Exámenes",items:[{name:"Agendar",text:"Reserva tus exámenes",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-agendar"},{name:"Simulador",text:"Simula el copago estimado",icon:"flat-fileInvoiceDollar",url:"https://simulador.clinicaalemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-simulador"},{name:"Indicaciones de laboratorio",text:"Revisa cómo prepararte",icon:"flat-paper",url:"https://www.clinicaalemana.cl/indicaciones-de-examenes",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-indicaciones"},{name:"Resultados",text:"Descarga informes e imágenes",icon:"flat-ticket",url:"https://exameneslab.alemana.cl/",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-examenes-resultados"}]},{section:"Hospitalización",items:[{name:"Información clave",text:"Conoce todo el proceso",icon:"flat-listOff",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-clave-informacion"},{name:"Proceso de alta",text:"Conócelo en detalle",icon:"flat-success",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/alta-medica",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-proceso-de-alta"},{name:"Estado de cuenta",text:"Revisa el avance y si ya puedes pagar",icon:"flat-fileInvoiceDollar",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion/cuenta",tracking_type:"itm",campaign:"menu-superior-servicios-en-linea-hospitalizacion-pago-de-cuentas"}]},{section:"Reserva de hora",items:[{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-calendarOn",url:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Telemedicina",text:"Atiéndete desde cualquier lugar",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"Exámenes y procedimientos",text:"Agenda tus pruebas médicas",icon:"flat-recipe",url:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]}],align:"start",cta:{visible:!1,size:"large",color:"gray",title:"¿Necesitas realizarte un examen o procedimiento?",text:"Tenemos más de 700 tipos de análisis disponibles para ti.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Reservar",url:""}}},{id:2,name:"Especialidades y servicios",icon:"flat-doctor",hasChildren:!0,children:[{section:"Atenciones",items:[{name:"Servicios clínicos",text:"Conoce los que tenemos",icon:"flat-tube",url:"https://www.clinicaalemana.cl/nuestros-servicios/servicios-clinicos",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-servicios-clinicos"},{name:"Especialidades",text:"Revisa las más de 60 disponibles ",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/nuestros-servicios/especialidades",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atenciones-especialidades"},{name:"Nuestros médicos",text:"Busca por área o especialidad",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/profesional"},{name:"Sucursales",text:"Busca la más cercana",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/sucursales"}]},{section:"Modalidad de atención",items:[{name:"Telemedicina",text:"Consulta de forma virtual",icon:"flat-laptop",url:"https://www.clinicaalemana.cl/telemedicina",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-telemedicina"},{name:"TeleUrgencia",text:"Consulta para síntomas agudos",icon:"flat-teleUrgency",url:"https://www.clinicaalemana.cl/telemedicina/teleurgencia",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-teleurgencia"},{name:"A domicilio",text:"Atiéndete en tu hogar",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"},{name:"Presencial",text:"Dirígete a una sucursal",icon:"flat-branchOffices",url:"https://reserva.alemana.cl/reserva/portal/busqueda",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-modalidad-de-atencion-presencial"}]},{section:"Atención especializada",columns:2,items:[{name:"Maternidad integral",text:"Conoce nuestro servicio",icon:"flat-pregnant",url:"https://www.clinicaalemana.cl/especialidades/maternidad-y-familia/maternidad-integral",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-maternidad-integral"},{name:"Paciente regional",text:"Gestiona tu visita",icon:"flat-regionalPatient",url:"https://www.clinicaalemana.cl/paciente-regional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-regional"},{name:"Hospitalización",text:"Revisa todo el proceso",icon:"flat-urgency",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/todo-sobre-hospitalizacion",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-hospitalizacion"},{name:"Solicitudes",text:"Pide copia de boletas, recetas, órdenes y más.",icon:"flat-folder",url:"https://www.clinicaalemana.cl/requerimientos-medicos",tracking_type:"itm",campaign:"menu-superior-solicitudes"},{name:"Salud empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-salud-empresa"},{name:"Centros",text:"Busca el más cercano",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/centros",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-centros"},{name:"Paciente internacional",text:"Solicita tu atención",icon:"flat-interPatient",url:"https://www.clinicaalemana.cl/paciente-internacional",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-paciente-internacional"},{name:"Programas y asesorías",text:"Encuentra el mejor para ti",icon:"flat-hospital",url:"https://www.clinicaalemana.cl/nuestros-servicios/programas",tracking_type:"itm",campaign:"menu-superior-especialidades-y-servicios-atencion-especializada-programas"}]}],align:"center",cta:{visible:!1,size:"small",color:"purple",title:"¿Necesitas un presupuesto?",text:"Puedes solicitar uno para tu parto o una hospitalización.",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Solicitar",url:""}}},{id:3,name:"Seguros y convenios",icon:"flat-safety",hasChildren:!0,children:[{section:"Personas",items:[{name:"Convenio de Accidentes",text:"Protege a tu familia",icon:"flat-safety",url:"https://www.clinicaalemana.cl/convenio-de-accidentes",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-convenio-de-accidentes"},{name:"Alemana Seguros",text:"Elige el mejor para ti",icon:"flat-safety",url:"https://www.alemanaseguros.cl",tracking_type:"utm",campaign:"clininicalamana_menu_superior"},{name:"Todo Alemana",text:"Contrata beneficios adicionales",icon:"flat-safety",url:"https://www.clinicaalemana.cl/todo-alemana/caracteristicas-generales",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-todo-alemana"},{name:"Isapres en convenio",text:"",icon:"flat-plus",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/planes-de-isapres-preferentes-clinica-alemana"}]},{section:"Empresas",items:[{name:"Laboratorio",text:"Conoce nuestros servicios",icon:"flat-tube",url:"https://www.clinicaalemana.cl/especialidades/laboratorio-clinico/convenio-laboratorio",tracking_type:"itm",campaign:"menu-superior-seguros-y-convenios-laboratorio"}]}],align:"center",cta:{visible:!1,size:"medium",color:"red",title:"¿Necesitas realizarte un examen?",text:"Más de 700 exámenes y procedimeintos disponibles",image:"https://d51h1y0hva8v.cloudfront.net/images/default-source/home/cta/cta.png?sfvrsn=17005f0b_2",button:{text:"Agendar ",url:""}}},{id:4,name:"Prevención y bienestar",icon:"flat-sex",hasChildren:!0,children:[{section:"Personas",items:[{name:"Salud preventiva",text:"Descubre chequeos y programas",icon:"flat-user",url:"https://www.clinicaalemana.cl/prevencion-y-bienestar",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar"}]},{section:"Empresas",items:[{name:"Salud Empresa",text:"Cuida a tus colaboradores",icon:"flat-companyHealth",url:"https://www.clinicaalemana.cl/medicina-preventiva/salud-empresas",tracking_type:"itm",campaign:"menu-superior-prevencion-y-bienestar-empresas-salud-empresa"}]}],align:"end",cta:{visible:!1}},{id:5,name:"Educación de salud",icon:"flat-youtube",hasChildren:!0,children:[{section:"",items:[{name:"Todo sobre salud",text:"Revisa las principales noticias",icon:"flat-newspaper2",url:"https://www.clinicaalemana.cl/articulos/todas-las-noticias",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-todo-sobre-salud"},{name:"Banco de enfermedades",text:"Encuentra todo lo que necesitas",icon:"flat-textColor",url:"https://www.clinicaalemana.cl/banco-de-enfermedades",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-banco-de-enfermedades"},{name:"Alemana Podcast",text:"Escucha a nuestros expertos ",icon:"flat-spotify",url:"https://www.clinicaalemana.cl/centro-de-extension/podcast",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-alemana-podcast"},{name:"Charlas y talleres",text:"Aprende con nuestros especialistas",icon:"flat-doctor",url:"https://www.clinicaalemana.cl/centro-de-extension/bienvenida-charlas-y-talleres",tracking_type:"itm",campaign:"menu-superior-educacion-de-salud-charlas-y-talleres"},{name:"Video educativos",text:"Mira nuestro contenido",icon:"flat-youtube",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA",tracking_type:"utm",campaign:"menu-superior-educación-de-salud-video-educativos"}]}],align:"end",cta:{visible:!1}}],l3=Ro.head;class Qe extends b{constructor(){super(),this.showSignin=!1,this.showSearch=!1,this.hideSearch=window.location.href.includes("buscar")}openBookingBox(){const t=new CustomEvent("openBookingBox");document.dispatchEvent(t)}openSignIn(){this.showSignin=!0,this.requestUpdate()}openSearch(){this.showSearch=!0,this.requestUpdate()}closeSingIn(){this.showSignin=!1,this.requestUpdate()}closeSearch(){this.showSearch=!1,this.requestUpdate()}openMenu(){const t=new CustomEvent("openMenuMobile");document.dispatchEvent(t)}initializeSearch(t,e,i=null){const a=this.shadowRoot.querySelector(t),h=this.shadowRoot.querySelector(e),o=i?this.shadowRoot.querySelector(i):null,r=()=>{a.value&&(window.location.href=`https://www.clinicaalemana.cl/buscar?searchTerm=${a.value}`)},n=()=>{const l=a.closest("li");l&&(l.classList.toggle("has-value",!!a.value),l.classList.toggle("focused",!!a.value))};h.addEventListener("click",r),a.addEventListener("keypress",l=>{l.key==="Enter"&&r()}),a.addEventListener("focus",()=>{const l=a.closest("li");l&&l.classList.add("focused")}),a.addEventListener("blur",n),a.addEventListener("input",n),o&&o.addEventListener("click",()=>{a.value="",n()}),a.value=""}initializeDesktopSearch(){this.initializeSearch("#search-input","#searchButton","#clearSearchButton")}initializeMobileSearch(){this.initializeSearch("#searchTermInput",".search-button-mobile")}firstUpdated(){this.hideSearch||this.variant!==B.HOME||(this.isMobile?this.showSearch&&this.initializeMobileSearch():this.initializeDesktopSearch())}updated(){const t=this.shadowRoot.querySelectorAll(".group > li");t.forEach(e=>{e.addEventListener("click",()=>{t.forEach(i=>{i.classList.remove("active")}),e.classList.add("active")})}),!this.hideSearch&&this.showSearch&&this.initializeMobileSearch()}render(){const{isMobile:t,isTablet:e,isMacbookAir:i}=this,a=l3,h=i?"Reservar":"Reservar hora";document.addEventListener("click",d=>{d.composedPath().includes(this)||this.shadowRoot.querySelectorAll(".group > li").forEach(p=>{p.classList.remove("active")})});const o=d=>{const{icon:c,name:p,text:v,url:g,login:m}=d;return f`
5140
+ <li>
5141
+ <a href="${g}">
5144
5142
  ${c?f`
5145
5143
  <div class="icon">
5146
5144
  <cas-icon name="${c}" size="20"></cas-icon>
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.3.16",
4
+ "version": "1.3.18",
5
5
  "author": "aconejeros",
6
6
  "keywords": [
7
7
  "direflow",