cas-ds-web-components 1.2.91 → 1.2.92
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 +100 -59
- package/build/cas-ds-web-components.js +625 -584
- package/build/cas-header.js +584 -543
- package/package.json +1 -1
package/build/cas-booking-box.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
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
|
|
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 m=window,
|
|
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,s,a)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+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"),s=m.litNonce;s!==void 0&&i.setAttribute("nonce",s),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
|
|
9
|
+
*/var G;const q=window,ft=q.trustedTypes,Gt=ft?ft.emptyScript:"",gt=q.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 s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),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,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const a=this[t];this[e]=s,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 s of i)this.createProperty(s,e[s])}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 s of i)e.unshift(mt(s))}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 s;const a=this.constructor._$Ep(t,i);if(a!==void 0&&i.reflect===!0){const o=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Q).toAttribute(e,i.type);this._$El=t,o==null?this.removeAttribute(a):this.setAttribute(a,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,a=s._$Ev.get(t);if(a!==void 0&&this._$El!==a){const o=s.getPropertyOptions(a),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:Q;this._$El=a,this[a]=c.fromAttribute(e,o.type),this._$El=null}}requestUpdate(t,e,i){let s=!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))):s=!1),!this.isUpdatePending&&s&&(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((s,a)=>this[a]=s),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(s=>{var a;return(a=s.hostUpdate)===null||a===void 0?void 0:a.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.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=q.reactiveElementVersions)!==null&&G!==void 0?G:q.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 W=window,
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Et=/'/g,kt=/"/g,St=/^(?:script|style|textarea|title)$/i,
|
|
13
|
+
*/var it;const W=window,T=W.trustedTypes,_t=T?T.createPolicy("lit-html",{createHTML:n=>n}):void 0,st="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,bt="?"+_,Qt=`<${bt}>`,y=document,F=()=>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",ot=`[
|
|
14
|
+
\f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xt=/-->/g,wt=/>/g,x=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Et=/'/g,kt=/"/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 _t!==void 0?_t.createHTML(t):t}const se=(n,t)=>{const e=n.length-1,i=[];let s,a=t===2?"<svg>":"",o=D;for(let c=0;c<e;c++){const r=n[c];let l,h,d=-1,p=0;for(;p<r.length&&(o.lastIndex=p,h=o.exec(r),h!==null);)p=o.lastIndex,o===D?h[1]==="!--"?o=xt:h[1]!==void 0?o=wt:h[2]!==void 0?(St.test(h[2])&&(s=RegExp("</"+h[2],"g")),o=x):h[3]!==void 0&&(o=x):o===x?h[0]===">"?(o=s??D,d=-1):h[1]===void 0?d=-2:(d=o.lastIndex-h[2].length,l=h[1],o=h[3]===void 0?x:h[3]==='"'?kt:Et):o===kt||o===Et?o=x:o===xt||o===wt?o=D:(o=x,s=void 0);const u=o===x&&n[c+1].startsWith("/>")?" ":"";a+=o===D?r+Qt:d>=0?(i.push(l),r.slice(0,d)+st+r.slice(d)+_+u):r+_+(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 s;this.parts=[];let a=0,o=0;const c=t.length-1,r=this.parts,[l,h]=se(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(;(s=w.nextNode())!==null&&r.length<c;){if(s.nodeType===1){if(s.hasAttributes()){const d=[];for(const p of s.getAttributeNames())if(p.endsWith(st)||p.startsWith(_)){const u=h[o++];if(d.push(p),u!==void 0){const ut=s.getAttribute(u.toLowerCase()+st).split(_),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)s.removeAttribute(p)}if(St.test(s.tagName)){const d=s.textContent.split(_),p=d.length-1;if(p>0){s.textContent=T?T.emptyScript:"";for(let u=0;u<p;u++)s.append(d[u],F()),w.nextNode(),r.push({type:2,index:++a});s.append(d[p],F())}}}else if(s.nodeType===8)if(s.data===bt)r.push({type:2,index:a});else{let d=-1;for(;(d=s.data.indexOf(_,d+1))!==-1;)r.push({type:7,index:a}),d+=_.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 s,a,o,c;if(t===H)return t;let r=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[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?((o=(c=e)._$Co)!==null&&o!==void 0?o:c._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=M(n,r._$AS(n,t.values),r,i)),t}let oe=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,a=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:y).importNode(i,!0);w.currentNode=a;let o=w.nextNode(),c=0,r=0,l=s[0];for(;l!==void 0;){if(c===l.index){let h;l.type===2?h=new Ht(o,o.nextSibling,this,t):l.type===1?h=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(h=new he(o,this,t)),this._$AV.push(h),l=s[++r]}c!==(l==null?void 0:l.index)&&(o=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,s){var a;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(a=s==null?void 0:s.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$:s}=t,a=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=nt.createElement(Tt(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===a)this._$AH.v(i);else{const o=new oe(a,this),c=o.u(this.options);o.v(i),this.$(c),this._$AH=o}}_$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,s=0;for(const a of t)s===e.length?e.push(i=new Kt(this.k(F()),this.k(F()),this,this.options)):i=e[s],i._$AI(a),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))}},Z=class{constructor(t,e,i,s,a){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,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,s){const a=this.strings;let o=!1;if(a===void 0)t=M(this,t,e,0),o=!I(t)||t!==this._$AH&&t!==H,o&&(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]),o||(o=!I(l)||l!==this._$AH[r]),l===$?t=$:t!==$&&(t+=(l??"")+a[r+1]),this._$AH[r]=l}o&&!s&&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,s,a){super(t,e,i,s,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 s=this._$AH,a=t===$&&s!==$||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==$&&(s===$||a);a&&this.element.removeEventListener(this.name,this,s),o&&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=W.litHtmlPolyfillSupport;Mt==null||Mt(nt,Ht),((it=W.litHtmlVersions)!==null&&it!==void 0?it:W.litHtmlVersions=[]).push("2.8.0");/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/var
|
|
20
|
-
\f\r]`,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,
|
|
21
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
19
|
+
*/var at;const K=window,N=K.trustedTypes,Nt=N?N.createPolicy("lit-html",{createHTML:n=>n}):void 0,rt="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,Pt="?"+b,de=`<${Pt}>`,E=document,O=()=>E.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
|
+
\f\r]`,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,It=/>/g,k=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=E.createTreeWalker(E,129,null,!1);function jt(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 s,a=t===2?"<svg>":"",o=L;for(let c=0;c<e;c++){const r=n[c];let l,h,d=-1,p=0;for(;p<r.length&&(o.lastIndex=p,h=o.exec(r),h!==null);)p=o.lastIndex,o===L?h[1]==="!--"?o=Rt:h[1]!==void 0?o=It:h[2]!==void 0?(Bt.test(h[2])&&(s=RegExp("</"+h[2],"g")),o=k):h[3]!==void 0&&(o=k):o===k?h[0]===">"?(o=s??L,d=-1):h[1]===void 0?d=-2:(d=o.lastIndex-h[2].length,l=h[1],o=h[3]===void 0?k:h[3]==='"'?Ot:Dt):o===Ot||o===Dt?o=k:o===Rt||o===It?o=L:(o=k,s=void 0);const u=o===k&&n[c+1].startsWith("/>")?" ":"";a+=o===L?r+de:d>=0?(i.push(l),r.slice(0,d)+rt+r.slice(d)+b+u):r+b+(d===-2?(i.push(void 0),c):u)}return[jt(n,a+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class j{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let a=0,o=0;const c=t.length-1,r=this.parts,[l,h]=pe(t,e);if(this.el=j.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(;(s=S.nextNode())!==null&&r.length<c;){if(s.nodeType===1){if(s.hasAttributes()){const d=[];for(const p of s.getAttributeNames())if(p.endsWith(rt)||p.startsWith(b)){const u=h[o++];if(d.push(p),u!==void 0){const ut=s.getAttribute(u.toLowerCase()+rt).split(b),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)s.removeAttribute(p)}if(Bt.test(s.tagName)){const d=s.textContent.split(b),p=d.length-1;if(p>0){s.textContent=N?N.emptyScript:"";for(let u=0;u<p;u++)s.append(d[u],O()),S.nextNode(),r.push({type:2,index:++a});s.append(d[p],O())}}}else if(s.nodeType===8)if(s.data===Pt)r.push({type:2,index:a});else{let d=-1;for(;(d=s.data.indexOf(b,d+1))!==-1;)r.push({type:7,index:a}),d+=b.length-1}a++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function U(n,t,e=n,i){var s,a,o,c;if(t===P)return t;let r=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[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?((o=(c=e)._$Co)!==null&&o!==void 0?o: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:s}=this._$AD,a=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:E).importNode(i,!0);S.currentNode=a;let o=S.nextNode(),c=0,r=0,l=s[0];for(;l!==void 0;){if(c===l.index){let h;l.type===2?h=new z(o,o.nextSibling,this,t):l.type===1?h=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(h=new ge(o,this,t)),this._$AV.push(h),l=s[++r]}c!==(l==null?void 0:l.index)&&(o=S.nextNode(),c++)}return S.currentNode=E,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 z{constructor(t,e,i,s){var a;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(a=s==null?void 0:s.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.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,a=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=j.createElement(jt(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===a)this._$AH.v(i);else{const o=new ue(a,this),c=o.u(this.options);o.v(i),this.$(c),this._$AH=o}}_$AC(t){let e=Lt.get(t.strings);return e===void 0&&Lt.set(t.strings,e=new j(t)),e}T(t){Ut(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const a of t)s===e.length?e.push(i=new z(this.k(O()),this.k(O()),this,this.options)):i=e[s],i._$AI(a),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))}}class J{constructor(t,e,i,s,a){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,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,s){const a=this.strings;let o=!1;if(a===void 0)t=U(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==P,o&&(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]),o||(o=!B(l)||l!==this._$AH[r]),l===v?t=v:t!==v&&(t+=(l??"")+a[r+1]),this._$AH[r]=l}o&&!s&&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,s,a){super(t,e,i,s,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 s=this._$AH,a=t===v&&s!==v||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==v&&(s===v||a);a&&this.element.removeEventListener(this.name,this,s),o&&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 zt=K.litHtmlPolyfillSupport;zt==null||zt(j,z),((at=K.litHtmlVersions)!==null&&at!==void 0?at:K.litHtmlVersions=[]).push("2.8.0");const Ae=(n,t,e)=>{var i,s;const a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let o=a._$litPart$;if(o===void 0){const c=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;a._$litPart$=o=new z(t.insertBefore(O(),c),c,void 0,e??{})}return o._$AI(n),o};/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
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
|
|
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 Vt=globalThis.litElementPolyfillSupport;Vt==null||Vt({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
|
|
29
|
+
*/const _e=Symbol.for(""),be=n=>{if((n==null?void 0:n.r)===_e)return n==null?void 0:n._$litStatic$},qt=new Map,ye=n=>(t,...e)=>{const i=e.length;let s,a;const o=[],c=[];let r,l=0,h=!1;for(;l<i;){for(r=t[l];l<i&&(a=e[l],(s=be(a))!==void 0);)r+=s+t[++l],h=!0;l!==i&&c.push(a),o.push(r),l++}if(l===i&&o.push(t[i]),h){const d=o.join("$$lit$$");(t=qt.get(d))===void 0&&(o.raw=o,qt.set(d,t=o)),e=c}return n(t,...e)},ct=ye(ie),xe=Xt`
|
|
30
30
|
:host {
|
|
31
31
|
position: absolute;
|
|
32
32
|
width: 100%;
|
|
@@ -81,16 +81,15 @@
|
|
|
81
81
|
z-index: 4;
|
|
82
82
|
display: flex;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
.
|
|
84
|
+
|
|
85
|
+
.top {
|
|
86
86
|
color: #364855;
|
|
87
87
|
border-radius: 20px 20px 0 0;
|
|
88
|
-
width:
|
|
89
|
-
height: 40px;
|
|
88
|
+
width: 400px;
|
|
90
89
|
background: #ffffff;
|
|
91
90
|
display: flex;
|
|
92
|
-
|
|
93
|
-
align-items:
|
|
91
|
+
gap: 24px;
|
|
92
|
+
align-items: center;
|
|
94
93
|
font-family: 'Rubik', serif;
|
|
95
94
|
border-top: 0.5px solid #d2d6d9;
|
|
96
95
|
border-left: 0.5px solid #d2d6d9;
|
|
@@ -98,16 +97,14 @@
|
|
|
98
97
|
position: relative;
|
|
99
98
|
top: 2px;
|
|
100
99
|
z-index: 1;
|
|
100
|
+
padding: 0 24px;
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
padding: 0
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
width: auto;
|
|
109
|
-
z-index: 0;
|
|
110
|
-
background: #F2F5F9;
|
|
102
|
+
.top .item {
|
|
103
|
+
display: flex;
|
|
104
|
+
gap: 4px;
|
|
105
|
+
padding: 20px 0 0;
|
|
106
|
+
pointer-events: initial;
|
|
107
|
+
cursor: pointer;
|
|
111
108
|
}
|
|
112
109
|
|
|
113
110
|
:host([theme="dark"]) .booking-box .booking-box-tab, :host([theme="dark"]) .booking-box .booking-box-tab-2 {
|
|
@@ -121,20 +118,29 @@
|
|
|
121
118
|
background-color: #ffffff;
|
|
122
119
|
display: grid;
|
|
123
120
|
gap: 16px;
|
|
124
|
-
grid-template-columns: 300px 200px 180px;
|
|
121
|
+
grid-template-columns: 300px 200px 180px 120px;
|
|
125
122
|
padding: 24px;
|
|
126
123
|
border-radius: 0 20px 20px 20px;
|
|
127
124
|
border: 0.5px solid #d2d6d9;
|
|
125
|
+
transition: all 300ms ease-in-out;
|
|
126
|
+
}
|
|
127
|
+
.booking-box .option-box[current-view="2"] {
|
|
128
|
+
grid-template-columns: 300px 180px 200px 120px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.btn-annular {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
color: #01736C;
|
|
136
|
+
text-decoration: underline;
|
|
128
137
|
}
|
|
129
138
|
|
|
130
139
|
:host([theme="dark"]) .booking-box .option-box {
|
|
131
140
|
background: #63717B;
|
|
132
141
|
border-color: #79858E;
|
|
133
142
|
}
|
|
134
|
-
|
|
135
|
-
.booking-box .option-item {
|
|
136
|
-
position: relative;
|
|
137
|
-
}
|
|
143
|
+
|
|
138
144
|
|
|
139
145
|
.booking-box .option-box cas-button,
|
|
140
146
|
.booking-box .option-box button {
|
|
@@ -177,9 +183,16 @@
|
|
|
177
183
|
.booking-box {
|
|
178
184
|
top: 30% !important;
|
|
179
185
|
}
|
|
186
|
+
|
|
187
|
+
.booking-box .top {
|
|
188
|
+
width: auto;
|
|
189
|
+
}
|
|
180
190
|
|
|
181
191
|
.booking-box .option-box {
|
|
182
|
-
grid-template-columns:
|
|
192
|
+
grid-template-columns: 1fr;
|
|
193
|
+
}
|
|
194
|
+
.booking-box .option-box[current-view="2"] {
|
|
195
|
+
grid-template-columns: 1fr;
|
|
183
196
|
}
|
|
184
197
|
|
|
185
198
|
.focused {
|
|
@@ -264,41 +277,54 @@
|
|
|
264
277
|
* @license
|
|
265
278
|
* Copyright 2017 Google LLC
|
|
266
279
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
267
|
-
*/const
|
|
280
|
+
*/const we={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ee=n=>(...t)=>({_$litDirective$:n,values:t});class ke{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)}}/**
|
|
268
281
|
* @license
|
|
269
282
|
* Copyright 2018 Google LLC
|
|
270
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
|
-
*/const Wt=
|
|
284
|
+
*/const Wt=Ee(class extends ke{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 s=n.element.classList;this.it.forEach(a=>{a in t||(s.remove(a),this.it.delete(a))});for(const a in t){const o=!!t[a];o===this.it.has(a)||!((i=this.nt)===null||i===void 0)&&i.has(a)||(o?(s.add(a),this.it.add(a)):(s.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:"Exámenes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio/examenes-laboratorio-domicilio"}]},{name:"Vacunas",items:[{name:"Adulto",link:"http://agendaclinicaalemana.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-2023"},{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:"http://www.reserva.clinicaalemana.cl/alemana-integral"},{name:"Exámenes y procedimientos",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"}],pt=Se,Ft=Ce;class V 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){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 i=pt.find(s=>s.name===this.tipoDeAtencion).items.map(s=>s.name);this.dataModalidad=[...i],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=Ft.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.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}){try{window.dataLayer.push({event:"evento-interactivo","evento-interactivo-categoria":t,"evento-interactivo-accion":e??this.tipoDeAtencion,"evento-interactivo-etiqueta":i??this.modalidad,opcion_seleccionada:this.opcionSelecionada})}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 s=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"}),s.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(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=Wt({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),e=Wt({backdrop:!0,hidden:this.hidden});return ct`
|
|
272
285
|
<div class="${e}" id="backdrop" @click="${this.closeHandler}"></div>
|
|
273
286
|
<div class="booking-box-main-cont" id="booking-box-main-cont">
|
|
274
287
|
<div class="${t}" id="booking-box" tabindex="0">
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
288
|
+
<div class="top">
|
|
289
|
+
<div class="item" data-tab="1" @click=${()=>this.handleTab(1)}>
|
|
290
|
+
<cas-radio checked></cas-radio>
|
|
291
|
+
<cas-text variant="headline3">Paciente</cas-text>
|
|
292
|
+
</div>
|
|
293
|
+
<div class="item" data-tab="2" @click=${()=>this.handleTab(2)}>
|
|
294
|
+
<cas-radio ></cas-radio>
|
|
295
|
+
<cas-text variant="headline3">Alemana Integral</cas-text>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
|
|
299
|
+
<div class="option-box" current-view="1">
|
|
286
300
|
<cas-select
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
301
|
+
data-view="1"
|
|
302
|
+
theme="${this.theme}"
|
|
303
|
+
label="Tipo de atención"
|
|
304
|
+
@change="${this.changeHandler}"
|
|
305
|
+
fullWidth="true"
|
|
306
|
+
name="tipoDeAtencion"
|
|
307
|
+
id="tipoDeAtencion"
|
|
308
|
+
secondaryIcon="flat-doctor"
|
|
309
|
+
.data="${pt.map(i=>i.name)}"
|
|
310
|
+
></cas-select>
|
|
311
|
+
|
|
312
|
+
<cas-select
|
|
313
|
+
data-view="2"
|
|
314
|
+
style="display: none"
|
|
315
|
+
theme="${this.theme}"
|
|
316
|
+
label="Tipo de atención"
|
|
317
|
+
@change="${this.changeHandler}"
|
|
318
|
+
fullWidth="true"
|
|
319
|
+
name="tipoDeAtencionIntegral"
|
|
320
|
+
id="tipoDeAtencionIntegral"
|
|
321
|
+
secondaryIcon="flat-user"
|
|
322
|
+
.data="${Ft.map(i=>i.name)}"
|
|
295
323
|
></cas-select>
|
|
296
|
-
</div>
|
|
297
324
|
|
|
298
|
-
|
|
299
|
-
<slot name="b-option-2"></slot>
|
|
300
|
-
${this.refresh?ct` <div class="skeleton-input"></div> `:ct`
|
|
325
|
+
${this.refresh?ct` <div class="skeleton-input" data-view="1"></div> `:ct`
|
|
301
326
|
<cas-select
|
|
327
|
+
data-view="1"
|
|
302
328
|
theme="${this.theme}"
|
|
303
329
|
label="${this.tipoDeAtencion==="Vacunas"?"Tipo":"Modalidad"}"
|
|
304
330
|
?disabled="${this.tipoDeAtencion===""}"
|
|
@@ -311,10 +337,10 @@
|
|
|
311
337
|
name="modalidad"
|
|
312
338
|
></cas-select>
|
|
313
339
|
`}
|
|
314
|
-
</div>
|
|
315
340
|
|
|
316
341
|
<a class="btn-action">
|
|
317
342
|
<cas-button
|
|
343
|
+
rounded="true"
|
|
318
344
|
name="submitAgendaButton"
|
|
319
345
|
@click="${this.submit}"
|
|
320
346
|
fullWidth="true"
|
|
@@ -324,7 +350,22 @@
|
|
|
324
350
|
iconSize="20"
|
|
325
351
|
></cas-button>
|
|
326
352
|
</a>
|
|
353
|
+
<a href="https://www.clinicaalemana.cl/alemana-integral" data-view="2" style="display: none">
|
|
354
|
+
<cas-button
|
|
355
|
+
rounded="true"
|
|
356
|
+
@click="${this.submit}"
|
|
357
|
+
fullWidth="true"
|
|
358
|
+
text="Más información"
|
|
359
|
+
variant="${this.theme==="dark"?"text2":"outline1"}"
|
|
360
|
+
iconName="flat-info"
|
|
361
|
+
iconSize="20"
|
|
362
|
+
></cas-button>
|
|
363
|
+
</a>
|
|
364
|
+
<a class="btn-annular" href="https://www.clinicaalemana.cl/anulacion-hora"
|
|
365
|
+
@click="${this.handleOverrideTime}" >
|
|
366
|
+
<cas-text variant="headline5">Anular hora</cas-text>
|
|
367
|
+
</a>
|
|
327
368
|
</div>
|
|
328
369
|
</div>
|
|
329
370
|
</div>
|
|
330
|
-
</div>`}}X(V,"styles",
|
|
371
|
+
</div>`}}X(V,"styles",xe),X(V,"shadowRootOptions",{...R.shadowRootOptions,mode:"open"}),X(V,"properties",{theme:{type:String},hidden:{type:Boolean},title:{type:String},tipoDeAtencion:{type:String},modalidad:{type:String},dataTipoDeAtencion:{type:Array},dataModalidad:{type:Array},focused:{type:Boolean},home:{type:Boolean},onlyView:{type:Boolean}}),customElements.get("cas-booking-box")||customElements.define("cas-booking-box",V),f.CasBookingBox=V,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
|