cas-ds-web-components 1.2.166 → 1.2.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/cas-booking-box.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(f,
|
|
1
|
+
(function(f,m){typeof exports=="object"&&typeof module<"u"?m(exports):typeof define=="function"&&define.amd?define(["exports"],m):(f=typeof globalThis<"u"?globalThis:f||self,m(f["cas-booking-box"]={}))})(this,function(f){"use strict";var Te=Object.defineProperty;var He=(f,m,g)=>m in f?Te(f,m,{enumerable:!0,configurable:!0,writable:!0,value:g}):f[m]=g;var X=(f,m,g)=>(He(f,typeof m!="symbol"?m+"":m,g),g);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const
|
|
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(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(
|
|
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
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
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="?"+_,he=`<${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"),
|
|
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,d,h=-1,p=0;for(;p<r.length&&(s.lastIndex=p,d=s.exec(r),d!==null);)p=s.lastIndex,s===L?d[1]==="!--"?s=Rt:d[1]!==void 0?s=It:d[2]!==void 0?(Bt.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=E):d[3]!==void 0&&(s=E):s===E?d[0]===">"?(s=o??L,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,l=d[1],s=d[3]===void 0?E:d[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+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(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,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[s++];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(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 d;l.type===2?d=new V(s,s.nextSibling,this,t):l.type===1?d=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(d=new ge(s,this,t)),this._$AV.push(d),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
|
|
@@ -306,7 +306,7 @@
|
|
|
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(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:"Consulta pediátrica",link:"https://www.clinicaalemana.cl/consulta-pediatrica-2025"},{name:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}
|
|
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:"Consulta pediátrica",link:"https://www.clinicaalemana.cl/consulta-pediatrica-2025"},{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(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">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(I,b1){typeof exports=="object"&&typeof module<"u"?b1(exports):typeof define=="function"&&define.amd?define(["exports"],b1):(I=typeof globalThis<"u"?globalThis:I||self,b1(I["all-components"]={}))})(this,function(I){"use strict";var Wm=Object.defineProperty;var qm=(I,b1,J2)=>b1 in I?Wm(I,b1,{enumerable:!0,configurable:!0,writable:!0,value:J2}):I[b1]=J2;var m=(I,b1,J2)=>(qm(I,typeof b1!="symbol"?b1+"":b1,J2),J2);var l6,il;(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();const T4={name:"@eloisa-ds/all-components",version:"1.0.
|
|
1
|
+
(function(I,b1){typeof exports=="object"&&typeof module<"u"?b1(exports):typeof define=="function"&&define.amd?define(["exports"],b1):(I=typeof globalThis<"u"?globalThis:I||self,b1(I["all-components"]={}))})(this,function(I){"use strict";var Wm=Object.defineProperty;var qm=(I,b1,J2)=>b1 in I?Wm(I,b1,{enumerable:!0,configurable:!0,writable:!0,value:J2}):I[b1]=J2;var m=(I,b1,J2)=>(qm(I,typeof b1!="symbol"?b1+"":b1,J2),J2);var l6,il;(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();const T4={name:"@eloisa-ds/all-components",version:"1.0.168",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -16663,7 +16663,7 @@
|
|
|
16663
16663
|
border-radius: 8px; /* rounded */
|
|
16664
16664
|
background-color: rgba(229, 231, 235, 0.5); /* bg-gray-100 */
|
|
16665
16665
|
}
|
|
16666
|
-
`,Rc=[{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:"Consulta pediátrica",link:"https://www.clinicaalemana.cl/consulta-pediatrica-2025"},{name:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}
|
|
16666
|
+
`,Rc=[{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:"Consulta pediátrica",link:"https://www.clinicaalemana.cl/consulta-pediatrica-2025"},{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"}]}],Uc=[{name:"Consulta médica",link:"https://reserva.clinicaalemana.cl/alemana-integral"},{name:"Exámenes y procedimientos",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}],g8=Rc,q0=Uc;class w6 extends _{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(C){var i,l;const t=C.target.name;if(this[t]=C.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),t==="tipoDeAtencionIntegral"&&(this.tipoDeAtencion="",this.modalidad=""),t==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const s=((l=(i=g8.find(o=>o.name===this.tipoDeAtencion))==null?void 0:i.items)==null?void 0:l.map(o=>o.name))||[];C.target.value==="Consulta pediátrica"&&this.handleLink(),this.dataModalidad=[...s],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}t==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(C){const t=this.shadowRoot.getElementById("tipoDeAtencion");t==null||t.setAttribute("active",C)}handleFocusModalidad(C){const t=this.shadowRoot.getElementById("modalidad");t==null||t.setAttribute("active",C)}handleErrorTipoDeAtencion(C){const t=this.shadowRoot.getElementById("tipoDeAtencion");C?t==null||t.setAttribute("isSelectError",!0):t==null||t.removeAttribute("isSelectError")}handleErrorModalidad(C){const t=this.shadowRoot.getElementById("modalidad");C?t==null||t.setAttribute("isSelectError",!0):t==null||t.removeAttribute("isSelectError")}handleLink(){let C="";this.tipoDeAtencionIntegral!==""&&(C=q0.find(i=>i.name===this.tipoDeAtencionIntegral).link),this.tipoDeAtencion!==""&&this.modalidad!==""&&(C=g8.find(i=>i.name===this.tipoDeAtencion).items.find(i=>i.name===this.modalidad).link),this.tipoDeAtencion==="Consulta pediátrica"&&(C="https://www.clinicaalemana.cl/consulta-pediatrica-2025"),this.link=C;const t=this.shadowRoot.querySelector(".btn-action");this.link!==""?t.setAttribute("href",this.link):t.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:C,action:t,label:i}){const l={event:"evento-interactivo","evento-interactivo-categoria":C,"evento-interactivo-accion":t||this.tipoDeAtencion||this.tipoDeAtencionIntegral||"reservar_hora","evento-interactivo-etiqueta":i||this.modalidad,opcion_seleccionada:this.opcionSelecionada};console.log("devLayer_ ",l);try{window.dataLayer.push(l)}catch{console.log("event push failed")}}eventHandler(){this.removeAttribute("hidden");let C=this.shadowRoot.getElementById("backdrop");C.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 C=this.shadowRoot.querySelector(".booking-box");let t=this.shadowRoot.getElementById("backdrop");C.addEventListener("focusin",()=>{this.focused=!0,t.style.display="flex",this.requestUpdate()})}}handleTab(C){this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.handleLink();const t={1:"Paciente",2:"Alemana Integral"};this.opcionSelecionada=t[C]??"Paciente";const i=this.shadowRoot.querySelectorAll("[data-view]");if(C){const l=this.shadowRoot.querySelectorAll(".top .item");this.shadowRoot.querySelector(".option-box").setAttribute("current-view",C.toString()),i.forEach(o=>{o.getAttribute("data-view")===C.toString()?o.style.display="flex":o.style.display="none"}),l.forEach(o=>{o.getAttribute("data-tab")===C.toString()?o.querySelector("cas-radio").setAttribute("checked",!0):o.querySelector("cas-radio").removeAttribute("checked")})}else Array.from(i).filter(s=>s.getAttribute("data-view")==="2").forEach(s=>{s.style.display="none"})}handleParameter(){new URLSearchParams(window.location.search).get("rsv")==="true"&&this.eventHandler()}closeHandler(){let C=this.shadowRoot.getElementById("backdrop");C.style.display="none",this.hidden=!1,this.focused=!1,this.requestUpdate()}handleOverrideTime(){this.handleMark({category:"anular_hora"})}render(){const C=a3({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),t=a3({backdrop:!0,hidden:this.hidden});return u`
|
|
16667
16667
|
<div class="${t}" id="backdrop" @click="${this.closeHandler}"></div>
|
|
16668
16668
|
<div class="booking-box-main-cont" id="booking-box-main-cont">
|
|
16669
16669
|
<div class="${C}" id="booking-box" tabindex="0">
|
|
@@ -22177,7 +22177,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
22177
22177
|
text-decoration: none;
|
|
22178
22178
|
}
|
|
22179
22179
|
}
|
|
22180
|
-
`,je=[{section:"Nosotros",items:[{name:"Nuestra clínica",url:"https://www.clinicaalemana.cl/nuestra-clinica/bienvenida"},{name:"Indicadores clínicos",url:"https://www.clinicaalemana.cl/nuestra-clinica/indicadores-clinicos"},{name:"Sostenibilidad",url:"https://www.clinicaalemana.cl/sostenibilidad/home"},{name:"Sitios relacionados",url:"https://www.clinicaalemana.cl/nuestra-clinica/sitios-web-relacionados"}]},{section:"Información legal",items:[{name:"Política de privacidad",url:"https://www.clinicaalemana.cl/privacidad-y-terminos/politica-de-privacidad"},{name:"Términos y condiciones",url:"https://www.clinicaalemana.cl/privacidad-y-terminos/alemana"},{name:"Reglamento interno de funcionamiento",url:"https://www.clinicaalemana.cl/reglamento-interno-de-funcionamiento"},{name:"Leyes y normativas",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Leyes_y_normativas"},{name:"Registro nacional de sanciones a profesionales <br>emisores de licencias médicas",url:"https://www.suseso.cl/609/w3-propertyvalue-799701.html"}]},{section:"Información de interés",items:[{name:"Pago y cuentas",url:"https://centrodeayuda.clinicaalemana.cl/pagos_y_cuentas"},{name:"Documentos de salud",url:"https://centrodeayuda.clinicaalemana.cl/documentos_de_salud"},{name:"Salud digital",url:"https://www.clinicaalemana.cl/salud-digital"},{name:"Servicios y atenciones",url:"https://centrodeayuda.clinicaalemana.cl/servicios_y_atenciones"},{name:"Información para pacientes",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/documentos-de-descarga"}]},{section:"Dónde estamos",items:[{name:"Clínicas",url:"https://www.clinicaalemana.cl/sucursales/clinicas"},{name:"Centros médicos",url:"https://www.clinicaalemana.cl/sucursales/centros-medicos"},{name:"Tomas de muestras",url:"https://www.clinicaalemana.cl/sucursales/toma-de-muestras"}]},{section:"Te ayudamos",items:[{name:"Mesa Central <br>+56 2 2210 1111",url:"tel:+56222101111",icon:"flat-phone"},{name:"Reserva de hora <br>+56 2 2910 1700",url:"tel:+56229101700",icon:"flat-phone"},{name:"Rescate de emergencia <br>+56 2 2910 9911",url:"tel:+56229109911",icon:"flat-phone"},{name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"}]}],tg=[{name:"instagram",icon:"flat-instagram",url:"https://www.instagram.com/clinicaalemanadesantiago/"},{name:"linkedin",icon:"flat-linkedin",url:"https://www.linkedin.com/company/clinica-alemana-de-santiago"},{name:"x",icon:"flat-x",url:"https://twitter.com/clinicaalemana"},{name:"facebook",icon:"flat-facebook",url:"https://www.facebook.com/Clinicaalemanadesantiago/"},{name:"spotify",icon:"flat-spotifySolid",url:"https://open.spotify.com/user/8001v856hnvkpq7ytrik14qlg"},{name:"youtube",icon:"flat-youtubeSolid",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA"}];class D5 extends _{constructor(){super()}updated(){const C=this.shadowRoot.querySelectorAll("section");C.forEach(t=>{const i=t.querySelector(".top"),l=t.querySelector(".list");i.addEventListener("click",()=>{C.forEach(s=>{s.querySelector(".list").classList.remove("active"),s.querySelector("cas-icon").classList.remove("active")}),l.classList.toggle("active"),i.querySelector("cas-icon").classList.toggle("active")})})}render(){const C=t=>{const{section:i,items:l}=t;return u`<section>
|
|
22180
|
+
`,je=[{section:"Nosotros",items:[{name:"Nuestra clínica",url:"https://www.clinicaalemana.cl/nuestra-clinica/bienvenida"},{name:"Indicadores clínicos",url:"https://www.clinicaalemana.cl/nuestra-clinica/indicadores-clinicos"},{name:"Sostenibilidad",url:"https://www.clinicaalemana.cl/sostenibilidad/home"},{name:"Sitios relacionados",url:"https://www.clinicaalemana.cl/nuestra-clinica/sitios-web-relacionados"}]},{section:"Información legal",items:[{name:"Política de privacidad",url:"https://www.clinicaalemana.cl/privacidad-y-terminos/politica-de-privacidad"},{name:"Términos y condiciones",url:"https://www.clinicaalemana.cl/privacidad-y-terminos/alemana"},{name:"Reglamento interno de funcionamiento",url:"https://www.clinicaalemana.cl/reglamento-interno-de-funcionamiento"},{name:"Leyes y normativas",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Leyes_y_normativas"},{name:"Solicitudes ARCO+P",url:"https://www.clinicaalemana.cl/telemedicina/solicitud-arcop"},{name:"Registro nacional de sanciones a profesionales <br>emisores de licencias médicas",url:"https://www.suseso.cl/609/w3-propertyvalue-799701.html"}]},{section:"Información de interés",items:[{name:"Pago y cuentas",url:"https://centrodeayuda.clinicaalemana.cl/pagos_y_cuentas"},{name:"Documentos de salud",url:"https://centrodeayuda.clinicaalemana.cl/documentos_de_salud"},{name:"Salud digital",url:"https://www.clinicaalemana.cl/salud-digital"},{name:"Servicios y atenciones",url:"https://centrodeayuda.clinicaalemana.cl/servicios_y_atenciones"},{name:"Información para pacientes",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/documentos-de-descarga"}]},{section:"Dónde estamos",items:[{name:"Clínicas",url:"https://www.clinicaalemana.cl/sucursales/clinicas"},{name:"Centros médicos",url:"https://www.clinicaalemana.cl/sucursales/centros-medicos"},{name:"Tomas de muestras",url:"https://www.clinicaalemana.cl/sucursales/toma-de-muestras"}]},{section:"Te ayudamos",items:[{name:"Mesa Central <br>+56 2 2210 1111",url:"tel:+56222101111",icon:"flat-phone"},{name:"Reserva de hora <br>+56 2 2910 1700",url:"tel:+56229101700",icon:"flat-phone"},{name:"Rescate de emergencia <br>+56 2 2910 9911",url:"tel:+56229109911",icon:"flat-phone"},{name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"}]}],tg=[{name:"instagram",icon:"flat-instagram",url:"https://www.instagram.com/clinicaalemanadesantiago/"},{name:"linkedin",icon:"flat-linkedin",url:"https://www.linkedin.com/company/clinica-alemana-de-santiago"},{name:"x",icon:"flat-x",url:"https://twitter.com/clinicaalemana"},{name:"facebook",icon:"flat-facebook",url:"https://www.facebook.com/Clinicaalemanadesantiago/"},{name:"spotify",icon:"flat-spotifySolid",url:"https://open.spotify.com/user/8001v856hnvkpq7ytrik14qlg"},{name:"youtube",icon:"flat-youtubeSolid",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA"}];class D5 extends _{constructor(){super()}updated(){const C=this.shadowRoot.querySelectorAll("section");C.forEach(t=>{const i=t.querySelector(".top"),l=t.querySelector(".list");i.addEventListener("click",()=>{C.forEach(s=>{s.querySelector(".list").classList.remove("active"),s.querySelector("cas-icon").classList.remove("active")}),l.classList.toggle("active"),i.querySelector("cas-icon").classList.toggle("active")})})}render(){const C=t=>{const{section:i,items:l}=t;return u`<section>
|
|
22181
22181
|
<div class="top">
|
|
22182
22182
|
<cas-text variant="headline3">${i}</cas-text>
|
|
22183
22183
|
<cas-icon name="flat-chevronDown" size="20"></cas-icon>
|
package/build/cas-footer.js
CHANGED
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var yt;const rt=window,U=rt.trustedTypes,Zt=U?U.createPolicy("lit-html",{createHTML:o=>o}):void 0,xt="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,jt="?"+w,ke=`<${jt}>`,E=document,lt=()=>E.createComment(""),Y=o=>o===null||typeof o!="object"&&typeof o!="function",Dt=Array.isArray,
|
|
13
|
+
*/var yt;const rt=window,U=rt.trustedTypes,Zt=U?U.createPolicy("lit-html",{createHTML:o=>o}):void 0,xt="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,jt="?"+w,ke=`<${jt}>`,E=document,lt=()=>E.createComment(""),Y=o=>o===null||typeof o!="object"&&typeof o!="function",Dt=Array.isArray,Re=o=>Dt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",wt=`[
|
|
14
14
|
\f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,zt=/>/g,N=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,qt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,qt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Le=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),Ve=Le(1),K=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Jt=new WeakMap,M=E.createTreeWalker(E,129,null,!1);function Kt(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zt!==void 0?Zt.createHTML(t):t}const Ue=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=J;for(let h=0;h<e;h++){const l=o[h];let a,d,c=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===J?d[1]==="!--"?n=Bt:d[1]!==void 0?n=zt:d[2]!==void 0?(Yt.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=N):d[3]!==void 0&&(n=N):n===N?d[0]===">"?(n=s??J,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,a=d[1],n=d[3]===void 0?N:d[3]==='"'?qt:Wt):n===qt||n===Wt?n=N:n===Bt||n===zt?n=J:(n=N,s=void 0);const u=n===N&&o[h+1].startsWith("/>")?" ":"";r+=n===J?l+ke:c>=0?(i.push(a),l.slice(0,c)+xt+l.slice(c)+w+u):l+w+(c===-2?(i.push(void 0),h):u)}return[Kt(o,r+(o[e]||"<?>")+(t===2?"</svg>":"")),i]};let bt=class He{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const h=t.length-1,l=this.parts,[a,d]=Ue(t,e);if(this.el=He.createElement(a,i),M.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(s=M.nextNode())!==null&&l.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const p of s.getAttributeNames())if(p.endsWith(xt)||p.startsWith(w)){const u=d[n++];if(c.push(p),u!==void 0){const S=s.getAttribute(u.toLowerCase()+xt).split(w),A=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:A[2],strings:S,ctor:A[1]==="."?Oe:A[1]==="?"?Ie:A[1]==="@"?Ze:at})}else l.push({type:6,index:r})}for(const p of c)s.removeAttribute(p)}if(Yt.test(s.tagName)){const c=s.textContent.split(w),p=c.length-1;if(p>0){s.textContent=U?U.emptyScript:"";for(let u=0;u<p;u++)s.append(c[u],lt()),M.nextNode(),l.push({type:2,index:++r});s.append(c[p],lt())}}}else if(s.nodeType===8)if(s.data===jt)l.push({type:2,index:r});else{let c=-1;for(;(c=s.data.indexOf(w,c+1))!==-1;)l.push({type:7,index:r}),c+=w.length-1}r++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}};function P(o,t,e=o,i){var s,r,n,h;if(t===K)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const a=Y(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==a&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(o),l._$AT(o,e,i)),i!==void 0?((n=(h=e)._$Co)!==null&&n!==void 0?n:h._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=P(o,l._$AS(o,t.values),l,i)),t}let Pe=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:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:E).importNode(i,!0);M.currentNode=r;let n=M.nextNode(),h=0,l=0,a=s[0];for(;a!==void 0;){if(h===a.index){let d;a.type===2?d=new Qt(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new je(n,this,t)),this._$AV.push(d),a=s[++l]}h!==(a==null?void 0:a.index)&&(n=M.nextNode(),h++)}return M.currentNode=E,r}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++}},Qt=class Se{constructor(t,e,i,s){var r;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}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=P(this,t,e),Y(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==K&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Re(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&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=bt.createElement(Kt(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(i);else{const n=new Pe(r,this),h=n.u(this.options);n.v(i),this.$(h),this._$AH=n}}_$AC(t){let e=Jt.get(t.strings);return e===void 0&&Jt.set(t.strings,e=new bt(t)),e}T(t){Dt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new Se(this.k(lt()),this.k(lt()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$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 s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},at=class{constructor(t,e,i,s,r){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,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,s){const r=this.strings;let n=!1;if(r===void 0)t=P(this,t,e,0),n=!Y(t)||t!==this._$AH&&t!==K,n&&(this._$AH=t);else{const h=t;let l,a;for(t=r[0],l=0;l<r.length-1;l++)a=P(this,h[i+l],e,l),a===K&&(a=this._$AH[l]),n||(n=!Y(a)||a!==this._$AH[l]),a===v?t=v:t!==v&&(t+=(a??"")+r[l+1]),this._$AH[l]=a}n&&!s&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Oe=class extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}};const Fe=U?U.emptyScript:"";let Ie=class extends at{constructor(){super(...arguments),this.type=4}j(t){t&&t!==v?this.element.setAttribute(this.name,Fe):this.element.removeAttribute(this.name)}},Ze=class extends at{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=P(this,t,e,0))!==null&&i!==void 0?i:v)===K)return;const s=this._$AH,r=t===v&&s!==v||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==v&&(s===v||r);r&&this.element.removeEventListener(this.name,this,s),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)}},je=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){P(this,t)}};const Gt=rt.litHtmlPolyfillSupport;Gt==null||Gt(bt,Qt),((yt=rt.litHtmlVersions)!==null&&yt!==void 0?yt:rt.litHtmlVersions=[]).push("2.8.0");/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
19
|
*/var Ht;const ct=window,O=ct.trustedTypes,Xt=O?O.createPolicy("lit-html",{createHTML:o=>o}):void 0,St="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,te="?"+b,De=`<${te}>`,T=document,Q=()=>T.createComment(""),G=o=>o===null||typeof o!="object"&&typeof o!="function",ee=Array.isArray,Be=o=>ee(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Et=`[
|
|
20
20
|
\f\r]`,X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ie=/-->/g,se=/>/g,k=RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
|
|
21
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ne=/'/g,oe=/"/g,re=/^(?:script|style|textarea|title)$/i,F=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),le=new WeakMap,
|
|
21
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ne=/'/g,oe=/"/g,re=/^(?:script|style|textarea|title)$/i,F=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),le=new WeakMap,R=T.createTreeWalker(T,129,null,!1);function ae(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xt!==void 0?Xt.createHTML(t):t}const ze=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=X;for(let h=0;h<e;h++){const l=o[h];let a,d,c=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===X?d[1]==="!--"?n=ie:d[1]!==void 0?n=se:d[2]!==void 0?(re.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=k):d[3]!==void 0&&(n=k):n===k?d[0]===">"?(n=s??X,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,a=d[1],n=d[3]===void 0?k:d[3]==='"'?oe:ne):n===oe||n===ne?n=k:n===ie||n===se?n=X:(n=k,s=void 0);const u=n===k&&o[h+1].startsWith("/>")?" ":"";r+=n===X?l+De:c>=0?(i.push(a),l.slice(0,c)+St+l.slice(c)+b+u):l+b+(c===-2?(i.push(void 0),h):u)}return[ae(o,r+(o[e]||"<?>")+(t===2?"</svg>":"")),i]};let Nt=class Ee{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const h=t.length-1,l=this.parts,[a,d]=ze(t,e);if(this.el=Ee.createElement(a,i),R.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(s=R.nextNode())!==null&&l.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const p of s.getAttributeNames())if(p.endsWith(St)||p.startsWith(b)){const u=d[n++];if(c.push(p),u!==void 0){const S=s.getAttribute(u.toLowerCase()+St).split(b),A=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:A[2],strings:S,ctor:A[1]==="."?qe:A[1]==="?"?Je:A[1]==="@"?Ke:ht})}else l.push({type:6,index:r})}for(const p of c)s.removeAttribute(p)}if(re.test(s.tagName)){const c=s.textContent.split(b),p=c.length-1;if(p>0){s.textContent=O?O.emptyScript:"";for(let u=0;u<p;u++)s.append(c[u],Q()),R.nextNode(),l.push({type:2,index:++r});s.append(c[p],Q())}}}else if(s.nodeType===8)if(s.data===te)l.push({type:2,index:r});else{let c=-1;for(;(c=s.data.indexOf(b,c+1))!==-1;)l.push({type:7,index:r}),c+=b.length-1}r++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}};function I(o,t,e=o,i){var s,r,n,h;if(t===F)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const a=G(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==a&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(o),l._$AT(o,e,i)),i!==void 0?((n=(h=e)._$Co)!==null&&n!==void 0?n:h._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=I(o,l._$AS(o,t.values),l,i)),t}let We=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:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:T).importNode(i,!0);R.currentNode=r;let n=R.nextNode(),h=0,l=0,a=s[0];for(;a!==void 0;){if(h===a.index){let d;a.type===2?d=new Mt(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new Qe(n,this,t)),this._$AV.push(d),a=s[++l]}h!==(a==null?void 0:a.index)&&(n=R.nextNode(),h++)}return R.currentNode=T,r}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++}},Mt=class Ne{constructor(t,e,i,s){var r;this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}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=I(this,t,e),G(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Be(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!==m&&G(this._$AH)?this._$AA.nextSibling.data=t:this.$(T.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Nt.createElement(ae(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(i);else{const n=new We(r,this),h=n.u(this.options);n.v(i),this.$(h),this._$AH=n}}_$AC(t){let e=le.get(t.strings);return e===void 0&&le.set(t.strings,e=new Nt(t)),e}T(t){ee(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new Ne(this.k(Q()),this.k(Q()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$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 s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},ht=class{constructor(t,e,i,s,r){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=m}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=I(this,t,e,0),n=!G(t)||t!==this._$AH&&t!==F,n&&(this._$AH=t);else{const h=t;let l,a;for(t=r[0],l=0;l<r.length-1;l++)a=I(this,h[i+l],e,l),a===F&&(a=this._$AH[l]),n||(n=!G(a)||a!==this._$AH[l]),a===m?t=m:t!==m&&(t+=(a??"")+r[l+1]),this._$AH[l]=a}n&&!s&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},qe=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}};const Ye=O?O.emptyScript:"";let Je=class extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==m?this.element.setAttribute(this.name,Ye):this.element.removeAttribute(this.name)}};class Ke extends ht{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=I(this,t,e,0))!==null&&i!==void 0?i:m)===F)return;const s=this._$AH,r=t===m&&s!==m||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==m&&(s===m||r);r&&this.element.removeEventListener(this.name,this,s),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)}}let Qe=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){I(this,t)}};const ce=ct.litHtmlPolyfillSupport;ce==null||ce(Nt,Mt),((Ht=ct.litHtmlVersions)!==null&&Ht!==void 0?Ht:ct.litHtmlVersions=[]).push("2.8.0");const Ge=(o,t,e)=>{var i,s;const r=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=r._$litPart$;if(n===void 0){const h=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new Mt(t.insertBefore(Q(),h),h,void 0,e??{})}return n._$AI(o),n};/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -163,15 +163,15 @@
|
|
|
163
163
|
text-decoration: none;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
`,pe=[{section:"Nosotros",items:[{name:"Nuestra clínica",url:"https://www.clinicaalemana.cl/nuestra-clinica/bienvenida"},{name:"Indicadores clínicos",url:"https://www.clinicaalemana.cl/nuestra-clinica/indicadores-clinicos"},{name:"Sostenibilidad",url:"https://www.clinicaalemana.cl/sostenibilidad/home"},{name:"Sitios relacionados",url:"https://www.clinicaalemana.cl/nuestra-clinica/sitios-web-relacionados"}]},{section:"Información legal",items:[{name:"Política de privacidad",url:"https://www.clinicaalemana.cl/privacidad-y-terminos/politica-de-privacidad"},{name:"Términos y condiciones",url:"https://www.clinicaalemana.cl/privacidad-y-terminos/alemana"},{name:"Reglamento interno de funcionamiento",url:"https://www.clinicaalemana.cl/reglamento-interno-de-funcionamiento"},{name:"Leyes y normativas",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Leyes_y_normativas"},{name:"Registro nacional de sanciones a profesionales <br>emisores de licencias médicas",url:"https://www.suseso.cl/609/w3-propertyvalue-799701.html"}]},{section:"Información de interés",items:[{name:"Pago y cuentas",url:"https://centrodeayuda.clinicaalemana.cl/pagos_y_cuentas"},{name:"Documentos de salud",url:"https://centrodeayuda.clinicaalemana.cl/documentos_de_salud"},{name:"Salud digital",url:"https://www.clinicaalemana.cl/salud-digital"},{name:"Servicios y atenciones",url:"https://centrodeayuda.clinicaalemana.cl/servicios_y_atenciones"},{name:"Información para pacientes",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/documentos-de-descarga"}]},{section:"Dónde estamos",items:[{name:"Clínicas",url:"https://www.clinicaalemana.cl/sucursales/clinicas"},{name:"Centros médicos",url:"https://www.clinicaalemana.cl/sucursales/centros-medicos"},{name:"Tomas de muestras",url:"https://www.clinicaalemana.cl/sucursales/toma-de-muestras"}]},{section:"Te ayudamos",items:[{name:"Mesa Central <br>+56 2 2210 1111",url:"tel:+56222101111",icon:"flat-phone"},{name:"Reserva de hora <br>+56 2 2910 1700",url:"tel:+56229101700",icon:"flat-phone"},{name:"Rescate de emergencia <br>+56 2 2910 9911",url:"tel:+56229109911",icon:"flat-phone"},{name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"}]}],ni=[{name:"instagram",icon:"flat-instagram",url:"https://www.instagram.com/clinicaalemanadesantiago/"},{name:"linkedin",icon:"flat-linkedin",url:"https://www.linkedin.com/company/clinica-alemana-de-santiago"},{name:"x",icon:"flat-x",url:"https://twitter.com/clinicaalemana"},{name:"facebook",icon:"flat-facebook",url:"https://www.facebook.com/Clinicaalemanadesantiago/"},{name:"spotify",icon:"flat-spotifySolid",url:"https://open.spotify.com/user/8001v856hnvkpq7ytrik14qlg"},{name:"youtube",icon:"flat-youtubeSolid",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA"}];/**
|
|
166
|
+
`,pe=[{section:"Nosotros",items:[{name:"Nuestra clínica",url:"https://www.clinicaalemana.cl/nuestra-clinica/bienvenida"},{name:"Indicadores clínicos",url:"https://www.clinicaalemana.cl/nuestra-clinica/indicadores-clinicos"},{name:"Sostenibilidad",url:"https://www.clinicaalemana.cl/sostenibilidad/home"},{name:"Sitios relacionados",url:"https://www.clinicaalemana.cl/nuestra-clinica/sitios-web-relacionados"}]},{section:"Información legal",items:[{name:"Política de privacidad",url:"https://www.clinicaalemana.cl/privacidad-y-terminos/politica-de-privacidad"},{name:"Términos y condiciones",url:"https://www.clinicaalemana.cl/privacidad-y-terminos/alemana"},{name:"Reglamento interno de funcionamiento",url:"https://www.clinicaalemana.cl/reglamento-interno-de-funcionamiento"},{name:"Leyes y normativas",url:"https://centrodeayuda.clinicaalemana.cl/terminos_legales/Leyes_y_normativas"},{name:"Solicitudes ARCO+P",url:"https://www.clinicaalemana.cl/telemedicina/solicitud-arcop"},{name:"Registro nacional de sanciones a profesionales <br>emisores de licencias médicas",url:"https://www.suseso.cl/609/w3-propertyvalue-799701.html"}]},{section:"Información de interés",items:[{name:"Pago y cuentas",url:"https://centrodeayuda.clinicaalemana.cl/pagos_y_cuentas"},{name:"Documentos de salud",url:"https://centrodeayuda.clinicaalemana.cl/documentos_de_salud"},{name:"Salud digital",url:"https://www.clinicaalemana.cl/salud-digital"},{name:"Servicios y atenciones",url:"https://centrodeayuda.clinicaalemana.cl/servicios_y_atenciones"},{name:"Información para pacientes",url:"https://www.clinicaalemana.cl/informacion-para-pacientes/documentos-de-descarga"}]},{section:"Dónde estamos",items:[{name:"Clínicas",url:"https://www.clinicaalemana.cl/sucursales/clinicas"},{name:"Centros médicos",url:"https://www.clinicaalemana.cl/sucursales/centros-medicos"},{name:"Tomas de muestras",url:"https://www.clinicaalemana.cl/sucursales/toma-de-muestras"}]},{section:"Te ayudamos",items:[{name:"Mesa Central <br>+56 2 2210 1111",url:"tel:+56222101111",icon:"flat-phone"},{name:"Reserva de hora <br>+56 2 2910 1700",url:"tel:+56229101700",icon:"flat-phone"},{name:"Rescate de emergencia <br>+56 2 2910 9911",url:"tel:+56229109911",icon:"flat-phone"},{name:"Reclamos y denuncias",url:"https://centrodeayuda.clinicaalemana.cl/reclamos_y_denuncias"}]}],ni=[{name:"instagram",icon:"flat-instagram",url:"https://www.instagram.com/clinicaalemanadesantiago/"},{name:"linkedin",icon:"flat-linkedin",url:"https://www.linkedin.com/company/clinica-alemana-de-santiago"},{name:"x",icon:"flat-x",url:"https://twitter.com/clinicaalemana"},{name:"facebook",icon:"flat-facebook",url:"https://www.facebook.com/Clinicaalemanadesantiago/"},{name:"spotify",icon:"flat-spotifySolid",url:"https://open.spotify.com/user/8001v856hnvkpq7ytrik14qlg"},{name:"youtube",icon:"flat-youtubeSolid",url:"https://www.youtube.com/channel/UCVTx7AHcRM8auQ68PLDwrjA"}];/**
|
|
167
167
|
* @license
|
|
168
168
|
* Copyright 2017 Google LLC
|
|
169
169
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
170
|
-
*/var
|
|
170
|
+
*/var Rt;const pt=window,Z=pt.trustedTypes,ue=Z?Z.createPolicy("lit-html",{createHTML:o=>o}):void 0,H=`lit$${(Math.random()+"").slice(9)}$`,$e="?"+H,oi=`<${$e}>`,j=document,ut=(o="")=>j.createComment(o),tt=o=>o===null||typeof o!="object"&&typeof o!="function",ve=Array.isArray,ri=o=>ve(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,me=/-->/g,_e=/>/g,L=RegExp(`>|[
|
|
171
171
|
\f\r](?:([^\\s"'>=/]+)([
|
|
172
172
|
\f\r]*=[
|
|
173
173
|
\f\r]*(?:[^
|
|
174
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ae=/'/g,fe=/"/g,ge=/^(?:script|style|textarea|title)$/i,D=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Ce=new WeakMap,B=j.createTreeWalker(j,129,null,!1),li=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=et;for(let l=0;l<e;l++){const a=o[l];let d,c,p=-1,u=0;for(;u<a.length&&(n.lastIndex=u,c=n.exec(a),c!==null);)u=n.lastIndex,n===et?c[1]==="!--"?n=me:c[1]!==void 0?n=_e:c[2]!==void 0?(ge.test(c[2])&&(s=RegExp("</"+c[2],"g")),n=
|
|
174
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ae=/'/g,fe=/"/g,ge=/^(?:script|style|textarea|title)$/i,D=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Ce=new WeakMap,B=j.createTreeWalker(j,129,null,!1),li=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=et;for(let l=0;l<e;l++){const a=o[l];let d,c,p=-1,u=0;for(;u<a.length&&(n.lastIndex=u,c=n.exec(a),c!==null);)u=n.lastIndex,n===et?c[1]==="!--"?n=me:c[1]!==void 0?n=_e:c[2]!==void 0?(ge.test(c[2])&&(s=RegExp("</"+c[2],"g")),n=L):c[3]!==void 0&&(n=L):n===L?c[0]===">"?(n=s??et,p=-1):c[1]===void 0?p=-2:(p=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?L:c[3]==='"'?fe:Ae):n===fe||n===Ae?n=L:n===me||n===_e?n=et:(n=L,s=void 0);const S=n===L&&o[l+1].startsWith("/>")?" ":"";r+=n===et?a+oi:p>=0?(i.push(d),a.slice(0,p)+"$lit$"+a.slice(p)+H+S):a+H+(p===-2?(i.push(void 0),l):S)}const h=r+(o[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ue!==void 0?ue.createHTML(h):h,i]};class it{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const h=t.length-1,l=this.parts,[a,d]=li(t,e);if(this.el=it.createElement(a,i),B.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(s=B.nextNode())!==null&&l.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const p of s.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(H)){const u=d[n++];if(c.push(p),u!==void 0){const S=s.getAttribute(u.toLowerCase()+"$lit$").split(H),A=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:A[2],strings:S,ctor:A[1]==="."?ci:A[1]==="?"?di:A[1]==="@"?pi:vt})}else l.push({type:6,index:r})}for(const p of c)s.removeAttribute(p)}if(ge.test(s.tagName)){const c=s.textContent.split(H),p=c.length-1;if(p>0){s.textContent=Z?Z.emptyScript:"";for(let u=0;u<p;u++)s.append(c[u],ut()),B.nextNode(),l.push({type:2,index:++r});s.append(c[p],ut())}}}else if(s.nodeType===8)if(s.data===$e)l.push({type:2,index:r});else{let c=-1;for(;(c=s.data.indexOf(H,c+1))!==-1;)l.push({type:7,index:r}),c+=H.length-1}r++}}static createElement(t,e){const i=j.createElement("template");return i.innerHTML=t,i}}function z(o,t,e=o,i){var s,r,n,h;if(t===D)return t;let l=i!==void 0?(s=e._$Cl)===null||s===void 0?void 0:s[i]:e._$Cu;const a=tt(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==a&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(o),l._$AT(o,e,i)),i!==void 0?((n=(h=e)._$Cl)!==null&&n!==void 0?n:h._$Cl=[])[i]=l:e._$Cu=l),l!==void 0&&(t=z(o,l._$AS(o,t.values),l,i)),t}class ai{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:j).importNode(i,!0);B.currentNode=r;let n=B.nextNode(),h=0,l=0,a=s[0];for(;a!==void 0;){if(h===a.index){let d;a.type===2?d=new $t(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new ui(n,this,t)),this.v.push(d),a=s[++l]}h!==(a==null?void 0:a.index)&&(n=B.nextNode(),h++)}return r}m(t){let e=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class $t{constructor(t,e,i,s){var r;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$C_=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=z(this,t,e),tt(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==D&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.k(t):ri(t)?this.O(t):this.$(t)}S(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==$&&tt(this._$AH)?this._$AA.nextSibling.data=t:this.k(j.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=it.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.m(i);else{const n=new ai(r,this),h=n.p(this.options);n.m(i),this.k(h),this._$AH=n}}_$AC(t){let e=Ce.get(t.strings);return e===void 0&&Ce.set(t.strings,e=new it(t)),e}O(t){ve(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new $t(this.S(ut()),this.S(ut()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$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 s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$C_=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class vt{constructor(t,e,i,s,r){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,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,s){const r=this.strings;let n=!1;if(r===void 0)t=z(this,t,e,0),n=!tt(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{const h=t;let l,a;for(t=r[0],l=0;l<r.length-1;l++)a=z(this,h[i+l],e,l),a===D&&(a=this._$AH[l]),n||(n=!tt(a)||a!==this._$AH[l]),a===$?t=$:t!==$&&(t+=(a??"")+r[l+1]),this._$AH[l]=a}n&&!s&&this.P(t)}P(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ci extends vt{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===$?void 0:t}}const hi=Z?Z.emptyScript:"";class di extends vt{constructor(){super(...arguments),this.type=4}P(t){t&&t!==$?this.element.setAttribute(this.name,hi):this.element.removeAttribute(this.name)}}class pi extends vt{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=z(this,t,e,0))!==null&&i!==void 0?i:$)===D)return;const s=this._$AH,r=t===$&&s!==$||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==$&&(s===$||r);r&&this.element.removeEventListener(this.name,this,s),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 ui{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){z(this,t)}}const ye=pt.litHtmlPolyfillSupport;ye==null||ye(it,$t),((Rt=pt.litHtmlVersions)!==null&&Rt!==void 0?Rt:pt.litHtmlVersions=[]).push("2.3.1");/**
|
|
175
175
|
* @license
|
|
176
176
|
* Copyright 2017 Google LLC
|
|
177
177
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
* @license
|
|
180
180
|
* Copyright 2017 Google LLC
|
|
181
181
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
182
|
-
*/class
|
|
182
|
+
*/class Lt extends mi{constructor(t){if(super(t),this.it=$,t.type!==$i.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this._t=void 0,this.it=t;if(t===D)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Lt.directiveName="unsafeHTML",Lt.resultType=1;const _i=vi(Lt);class st extends y{constructor(){super()}updated(){const t=this.shadowRoot.querySelectorAll("section");t.forEach(e=>{const i=e.querySelector(".top"),s=e.querySelector(".list");i.addEventListener("click",()=>{t.forEach(r=>{r.querySelector(".list").classList.remove("active"),r.querySelector("cas-icon").classList.remove("active")}),s.classList.toggle("active"),i.querySelector("cas-icon").classList.toggle("active")})})}render(){const t=e=>{const{section:i,items:s}=e;return C`<section>
|
|
183
183
|
<div class="top">
|
|
184
184
|
<cas-text variant="headline3">${i}</cas-text>
|
|
185
185
|
<cas-icon name="flat-chevronDown" size="20"></cas-icon>
|
package/build/cas-header.js
CHANGED
|
@@ -16663,7 +16663,7 @@
|
|
|
16663
16663
|
border-radius: 8px; /* rounded */
|
|
16664
16664
|
background-color: rgba(229, 231, 235, 0.5); /* bg-gray-100 */
|
|
16665
16665
|
}
|
|
16666
|
-
`,Vh=[{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:"Consulta pediátrica",link:"https://www.clinicaalemana.cl/consulta-pediatrica-2025"},{name:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}
|
|
16666
|
+
`,Vh=[{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:"Consulta pediátrica",link:"https://www.clinicaalemana.cl/consulta-pediatrica-2025"},{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"}]}],mh=[{name:"Consulta médica",link:"https://reserva.clinicaalemana.cl/alemana-integral"},{name:"Exámenes y procedimientos",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}],J5=Vh,U8=mh;class _3 extends V{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(C){var e,l;const t=C.target.name;if(this[t]=C.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),t==="tipoDeAtencionIntegral"&&(this.tipoDeAtencion="",this.modalidad=""),t==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const s=((l=(e=J5.find(o=>o.name===this.tipoDeAtencion))==null?void 0:e.items)==null?void 0:l.map(o=>o.name))||[];C.target.value==="Consulta pediátrica"&&this.handleLink(),this.dataModalidad=[...s],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}t==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(C){const t=this.shadowRoot.getElementById("tipoDeAtencion");t==null||t.setAttribute("active",C)}handleFocusModalidad(C){const t=this.shadowRoot.getElementById("modalidad");t==null||t.setAttribute("active",C)}handleErrorTipoDeAtencion(C){const t=this.shadowRoot.getElementById("tipoDeAtencion");C?t==null||t.setAttribute("isSelectError",!0):t==null||t.removeAttribute("isSelectError")}handleErrorModalidad(C){const t=this.shadowRoot.getElementById("modalidad");C?t==null||t.setAttribute("isSelectError",!0):t==null||t.removeAttribute("isSelectError")}handleLink(){let C="";this.tipoDeAtencionIntegral!==""&&(C=U8.find(e=>e.name===this.tipoDeAtencionIntegral).link),this.tipoDeAtencion!==""&&this.modalidad!==""&&(C=J5.find(e=>e.name===this.tipoDeAtencion).items.find(e=>e.name===this.modalidad).link),this.tipoDeAtencion==="Consulta pediátrica"&&(C="https://www.clinicaalemana.cl/consulta-pediatrica-2025"),this.link=C;const t=this.shadowRoot.querySelector(".btn-action");this.link!==""?t.setAttribute("href",this.link):t.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:C,action:t,label:e}){const l={event:"evento-interactivo","evento-interactivo-categoria":C,"evento-interactivo-accion":t||this.tipoDeAtencion||this.tipoDeAtencionIntegral||"reservar_hora","evento-interactivo-etiqueta":e||this.modalidad,opcion_seleccionada:this.opcionSelecionada};console.log("devLayer_ ",l);try{window.dataLayer.push(l)}catch{console.log("event push failed")}}eventHandler(){this.removeAttribute("hidden");let C=this.shadowRoot.getElementById("backdrop");C.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 C=this.shadowRoot.querySelector(".booking-box");let t=this.shadowRoot.getElementById("backdrop");C.addEventListener("focusin",()=>{this.focused=!0,t.style.display="flex",this.requestUpdate()})}}handleTab(C){this.tipoDeAtencion="",this.tipoDeAtencionIntegral="",this.modalidad="",this.handleLink();const t={1:"Paciente",2:"Alemana Integral"};this.opcionSelecionada=t[C]??"Paciente";const e=this.shadowRoot.querySelectorAll("[data-view]");if(C){const l=this.shadowRoot.querySelectorAll(".top .item");this.shadowRoot.querySelector(".option-box").setAttribute("current-view",C.toString()),e.forEach(o=>{o.getAttribute("data-view")===C.toString()?o.style.display="flex":o.style.display="none"}),l.forEach(o=>{o.getAttribute("data-tab")===C.toString()?o.querySelector("cas-radio").setAttribute("checked",!0):o.querySelector("cas-radio").removeAttribute("checked")})}else Array.from(e).filter(s=>s.getAttribute("data-view")==="2").forEach(s=>{s.style.display="none"})}handleParameter(){new URLSearchParams(window.location.search).get("rsv")==="true"&&this.eventHandler()}closeHandler(){let C=this.shadowRoot.getElementById("backdrop");C.style.display="none",this.hidden=!1,this.focused=!1,this.requestUpdate()}handleOverrideTime(){this.handleMark({category:"anular_hora"})}render(){const C=z2({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),t=z2({backdrop:!0,hidden:this.hidden});return g`
|
|
16667
16667
|
<div class="${t}" id="backdrop" @click="${this.closeHandler}"></div>
|
|
16668
16668
|
<div class="booking-box-main-cont" id="booking-box-main-cont">
|
|
16669
16669
|
<div class="${C}" id="booking-box" tabindex="0">
|