cas-ds-web-components 1.2.43 → 1.2.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,36 +2,42 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const v=window,O=v.ShadowRoot&&(v.ShadyCSS===void 0||v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,B=Symbol(),V=new WeakMap;class W{constructor(t,e,i){if(this._$cssResult$=!0,i!==B)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(O&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=V.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&V.set(e,t))}return t}toString(){return this.cssText}}const ht=s=>new W(typeof s=="string"?s:s+"",void 0,B),ct=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,n)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[n+1],s[0]);return new W(e,s,B)},pt=(s,t)=>{O?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),o=v.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)})},q=O?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return ht(e)})(s):s;/**
5
+ */const v=window,O=v.ShadowRoot&&(v.ShadyCSS===void 0||v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,B=Symbol(),q=new WeakMap;class W{constructor(t,e,i){if(this._$cssResult$=!0,i!==B)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(O&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=q.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&q.set(e,t))}return t}toString(){return this.cssText}}const ct=s=>new W(typeof s=="string"?s:s+"",void 0,B),pt=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,n)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[n+1],s[0]);return new W(e,s,B)},ut=(s,t)=>{O?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),o=v.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)})},K=O?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return ct(e)})(s):s;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var N;const U=window,Z=U.trustedTypes,ut=Z?Z.emptyScript:"",J=U.reactiveElementPolyfillSupport,I={toAttribute(s,t){switch(t){case Boolean:s=s?ut:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},K=(s,t)=>t!==s&&(t==t||s==s),z={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:K};class x extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}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=z){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 n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||z}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const 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(q(o))}else t!==void 0&&e.push(q(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}u(){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 pt(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=z){var o;const n=this.constructor._$Ep(t,i);if(n!==void 0&&i.reflect===!0){const r=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:I).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(n!==void 0&&this._$El!==n){const r=o.getPropertyOptions(n),h=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:I;this._$El=n,this[n]=h.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||K)(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,n)=>this[n]=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 n;return(n=o.hostUpdate)===null||n===void 0?void 0:n.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){}}x.finalized=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:"open"},J?.({ReactiveElement:x}),((N=U.reactiveElementVersions)!==null&&N!==void 0?N:U.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var N;const P=window,Z=P.trustedTypes,mt=Z?Z.emptyScript:"",J=P.reactiveElementPolyfillSupport,I={toAttribute(s,t){switch(t){case Boolean:s=s?mt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},X=(s,t)=>t!==s&&(t==t||s==s),L={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:X};class A extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}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=L){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 n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||L}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const 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(K(o))}else t!==void 0&&e.push(K(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}u(){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 ut(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=L){var o;const n=this.constructor._$Ep(t,i);if(n!==void 0&&i.reflect===!0){const r=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:I).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(n!==void 0&&this._$El!==n){const r=o.getPropertyOptions(n),h=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:I;this._$El=n,this[n]=h.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||X)(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,n)=>this[n]=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 n;return(n=o.hostUpdate)===null||n===void 0?void 0:n.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){}}A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},J?.({ReactiveElement:A}),((N=P.reactiveElementVersions)!==null&&N!==void 0?N:P.reactiveElementVersions=[]).push("1.4.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var L;const R=window,A=R.trustedTypes,Q=A?A.createPolicy("lit-html",{createHTML:s=>s}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,Y="?"+f,mt=`<${Y}>`,_=document,k=(s="")=>_.createComment(s),S=s=>s===null||typeof s!="object"&&typeof s!="function",G=Array.isArray,vt=s=>G(s)||typeof s?.[Symbol.iterator]=="function",C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,tt=/>/g,b=RegExp(`>|[
13
+ */var z;const M=window,x=M.trustedTypes,Q=x?x.createPolicy("lit-html",{createHTML:s=>s}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,Y="?"+f,vt=`<${Y}>`,y=document,k=(s="")=>y.createComment(s),S=s=>s===null||typeof s!="object"&&typeof s!="function",G=Array.isArray,ft=s=>G(s)||typeof s?.[Symbol.iterator]=="function",C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,b=RegExp(`>|[
14
14
  \f\r](?:([^\\s"'>=/]+)([
15
15
  \f\r]*=[
16
16
  \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),et=/'/g,it=/"/g,ot=/^(?:script|style|textarea|title)$/i,ft=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),bt=ft(1),$=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),st=new WeakMap,y=_.createTreeWalker(_,129,null,!1),$t=(s,t)=>{const e=s.length-1,i=[];let o,n=t===2?"<svg>":"",r=C;for(let a=0;a<e;a++){const l=s[a];let u,d,c=-1,m=0;for(;m<l.length&&(r.lastIndex=m,d=r.exec(l),d!==null);)m=r.lastIndex,r===C?d[1]==="!--"?r=X:d[1]!==void 0?r=tt:d[2]!==void 0?(ot.test(d[2])&&(o=RegExp("</"+d[2],"g")),r=b):d[3]!==void 0&&(r=b):r===b?d[0]===">"?(r=o??C,c=-1):d[1]===void 0?c=-2:(c=r.lastIndex-d[2].length,u=d[1],r=d[3]===void 0?b:d[3]==='"'?it:et):r===it||r===et?r=b:r===X||r===tt?r=C:(r=b,o=void 0);const M=r===b&&s[a+1].startsWith("/>")?" ":"";n+=r===C?l+mt:c>=0?(i.push(u),l.slice(0,c)+"$lit$"+l.slice(c)+f+M):l+f+(c===-2?(i.push(void 0),a):M)}const h=n+(s[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Q!==void 0?Q.createHTML(h):h,i]};class T{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const h=t.length-1,a=this.parts,[l,u]=$t(t,e);if(this.el=T.createElement(l,i),y.currentNode=this.el.content,e===2){const d=this.el.content,c=d.firstChild;c.remove(),d.append(...c.childNodes)}for(;(o=y.nextNode())!==null&&a.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const c of o.getAttributeNames())if(c.endsWith("$lit$")||c.startsWith(f)){const m=u[r++];if(d.push(c),m!==void 0){const M=o.getAttribute(m.toLowerCase()+"$lit$").split(f),D=/([.?@])?(.*)/.exec(m);a.push({type:1,index:n,name:D[2],strings:M,ctor:D[1]==="."?xt:D[1]==="?"?_t:D[1]==="@"?yt:H})}else a.push({type:6,index:n})}for(const c of d)o.removeAttribute(c)}if(ot.test(o.tagName)){const d=o.textContent.split(f),c=d.length-1;if(c>0){o.textContent=A?A.emptyScript:"";for(let m=0;m<c;m++)o.append(d[m],k()),y.nextNode(),a.push({type:2,index:++n});o.append(d[c],k())}}}else if(o.nodeType===8)if(o.data===Y)a.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf(f,d+1))!==-1;)a.push({type:7,index:n}),d+=f.length-1}n++}}static createElement(t,e){const i=_.createElement("template");return i.innerHTML=t,i}}function E(s,t,e=s,i){var o,n,r,h;if(t===$)return t;let a=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const l=S(t)?void 0:t._$litDirective$;return a?.constructor!==l&&((n=a?._$AO)===null||n===void 0||n.call(a,!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,e,i)),i!==void 0?((r=(h=e)._$Co)!==null&&r!==void 0?r:h._$Co=[])[i]=a:e._$Cl=a),a!==void 0&&(t=E(s,a._$AS(s,t.values),a,i)),t}class gt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=((e=t?.creationScope)!==null&&e!==void 0?e:_).importNode(i,!0);y.currentNode=n;let r=y.nextNode(),h=0,a=0,l=o[0];for(;l!==void 0;){if(h===l.index){let u;l.type===2?u=new P(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new Et(r,this,t)),this.u.push(u),l=o[++a]}h!==l?.index&&(r=y.nextNode(),h++)}return n}p(t){let e=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class P{constructor(t,e,i,o){var n;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=(n=o?.isConnected)===null||n===void 0||n}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}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=E(this,t,e),S(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==$&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):vt(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==p&&S(this._$AH)?this._$AA.nextSibling.data=t:this.T(_.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=T.createElement(o.h,this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.p(i);else{const r=new gt(n,this),h=r.v(this.options);r.p(i),this.T(h),this._$AH=r}}_$AC(t){let e=st.get(t.strings);return e===void 0&&st.set(t.strings,e=new T(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new P(this.O(k()),this.O(k()),this,this.options)):i=e[o],i._$AI(n),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._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class H{constructor(t,e,i,o,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(n===void 0)t=E(this,t,e,0),r=!S(t)||t!==this._$AH&&t!==$,r&&(this._$AH=t);else{const h=t;let a,l;for(t=n[0],a=0;a<n.length-1;a++)l=E(this,h[i+a],e,a),l===$&&(l=this._$AH[a]),r||(r=!S(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}r&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xt extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}const At=A?A.emptyScript:"";class _t extends H{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,At):this.element.removeAttribute(this.name)}}class yt extends H{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=E(this,t,e,0))!==null&&i!==void 0?i:p)===$)return;const o=this._$AH,n=t===p&&o!==p||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==p&&(o===p||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 Et{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){E(this,t)}}const nt=R.litHtmlPolyfillSupport;nt?.(T,P),((L=R.litHtmlVersions)!==null&&L!==void 0?L:R.litHtmlVersions=[]).push("2.4.0");const wt=(s,t,e)=>{var i,o;const n=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let r=n._$litPart$;if(r===void 0){const h=(o=e?.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=r=new P(t.insertBefore(k(),h),h,void 0,e??{})}return r._$AI(s),r};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,ot=/"/g,st=/^(?:script|style|textarea|title)$/i,bt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),$t=bt(1),$=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),nt=new WeakMap,_=y.createTreeWalker(y,129,null,!1),gt=(s,t)=>{const e=s.length-1,i=[];let o,n=t===2?"<svg>":"",r=C;for(let a=0;a<e;a++){const l=s[a];let u,d,c=-1,m=0;for(;m<l.length&&(r.lastIndex=m,d=r.exec(l),d!==null);)m=r.lastIndex,r===C?d[1]==="!--"?r=tt:d[1]!==void 0?r=et:d[2]!==void 0?(st.test(d[2])&&(o=RegExp("</"+d[2],"g")),r=b):d[3]!==void 0&&(r=b):r===b?d[0]===">"?(r=o??C,c=-1):d[1]===void 0?c=-2:(c=r.lastIndex-d[2].length,u=d[1],r=d[3]===void 0?b:d[3]==='"'?ot:it):r===ot||r===it?r=b:r===tt||r===et?r=C:(r=b,o=void 0);const H=r===b&&s[a+1].startsWith("/>")?" ":"";n+=r===C?l+vt:c>=0?(i.push(u),l.slice(0,c)+"$lit$"+l.slice(c)+f+H):l+f+(c===-2?(i.push(void 0),a):H)}const h=n+(s[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Q!==void 0?Q.createHTML(h):h,i]};class T{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const h=t.length-1,a=this.parts,[l,u]=gt(t,e);if(this.el=T.createElement(l,i),_.currentNode=this.el.content,e===2){const d=this.el.content,c=d.firstChild;c.remove(),d.append(...c.childNodes)}for(;(o=_.nextNode())!==null&&a.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const c of o.getAttributeNames())if(c.endsWith("$lit$")||c.startsWith(f)){const m=u[r++];if(d.push(c),m!==void 0){const H=o.getAttribute(m.toLowerCase()+"$lit$").split(f),D=/([.?@])?(.*)/.exec(m);a.push({type:1,index:n,name:D[2],strings:H,ctor:D[1]==="."?xt:D[1]==="?"?_t:D[1]==="@"?Et:R})}else a.push({type:6,index:n})}for(const c of d)o.removeAttribute(c)}if(st.test(o.tagName)){const d=o.textContent.split(f),c=d.length-1;if(c>0){o.textContent=x?x.emptyScript:"";for(let m=0;m<c;m++)o.append(d[m],k()),_.nextNode(),a.push({type:2,index:++n});o.append(d[c],k())}}}else if(o.nodeType===8)if(o.data===Y)a.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf(f,d+1))!==-1;)a.push({type:7,index:n}),d+=f.length-1}n++}}static createElement(t,e){const i=y.createElement("template");return i.innerHTML=t,i}}function E(s,t,e=s,i){var o,n,r,h;if(t===$)return t;let a=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const l=S(t)?void 0:t._$litDirective$;return a?.constructor!==l&&((n=a?._$AO)===null||n===void 0||n.call(a,!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,e,i)),i!==void 0?((r=(h=e)._$Co)!==null&&r!==void 0?r:h._$Co=[])[i]=a:e._$Cl=a),a!==void 0&&(t=E(s,a._$AS(s,t.values),a,i)),t}class At{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=((e=t?.creationScope)!==null&&e!==void 0?e:y).importNode(i,!0);_.currentNode=n;let r=_.nextNode(),h=0,a=0,l=o[0];for(;l!==void 0;){if(h===l.index){let u;l.type===2?u=new U(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new wt(r,this,t)),this.u.push(u),l=o[++a]}h!==l?.index&&(r=_.nextNode(),h++)}return n}p(t){let e=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class U{constructor(t,e,i,o){var n;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=(n=o?.isConnected)===null||n===void 0||n}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}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=E(this,t,e),S(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==$&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ft(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==p&&S(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=T.createElement(o.h,this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.p(i);else{const r=new At(n,this),h=r.v(this.options);r.p(i),this.T(h),this._$AH=r}}_$AC(t){let e=nt.get(t.strings);return e===void 0&&nt.set(t.strings,e=new T(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new U(this.O(k()),this.O(k()),this,this.options)):i=e[o],i._$AI(n),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._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class R{constructor(t,e,i,o,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(n===void 0)t=E(this,t,e,0),r=!S(t)||t!==this._$AH&&t!==$,r&&(this._$AH=t);else{const h=t;let a,l;for(t=n[0],a=0;a<n.length-1;a++)l=E(this,h[i+a],e,a),l===$&&(l=this._$AH[a]),r||(r=!S(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}r&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xt extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}const yt=x?x.emptyScript:"";class _t extends R{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,yt):this.element.removeAttribute(this.name)}}class Et extends R{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=E(this,t,e,0))!==null&&i!==void 0?i:p)===$)return;const o=this._$AH,n=t===p&&o!==p||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==p&&(o===p||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 wt{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){E(this,t)}}const rt=M.litHtmlPolyfillSupport;rt?.(T,U),((z=M.litHtmlVersions)!==null&&z!==void 0?z:M.litHtmlVersions=[]).push("2.4.0");const kt=(s,t,e)=>{var i,o;const n=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let r=n._$litPart$;if(r===void 0){const h=(o=e?.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=r=new U(t.insertBefore(k(),h),h,void 0,e??{})}return r._$AI(s),r};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var j,F;class w extends x{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=wt(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 $}}w.finalized=!0,w._$litElement$=!0,(j=globalThis.litElementHydrateSupport)===null||j===void 0||j.call(globalThis,{LitElement:w});const rt=globalThis.litElementPolyfillSupport;rt?.({LitElement:w}),((F=globalThis.litElementVersions)!==null&&F!==void 0?F:globalThis.litElementVersions=[]).push("3.2.2");/**
21
+ */var j,F;class w extends A{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=kt(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 $}}w.finalized=!0,w._$litElement$=!0,(j=globalThis.litElementHydrateSupport)===null||j===void 0||j.call(globalThis,{LitElement:w});const at=globalThis.litElementPolyfillSupport;at?.({LitElement:w}),((F=globalThis.litElementVersions)!==null&&F!==void 0?F:globalThis.litElementVersions=[]).push("3.2.2");/**
22
22
  * @license
23
23
  * Copyright 2020 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const kt=Symbol.for(""),St=s=>{if(s?.r===kt)return s?._$litStatic$},at=new Map,Ct=s=>(t,...e)=>{const i=e.length;let o,n;const r=[],h=[];let a,l=0,u=!1;for(;l<i;){for(a=t[l];l<i&&(n=e[l],(o=St(n))!==void 0);)a+=o+t[++l],u=!0;h.push(n),r.push(a),l++}if(l===i&&r.push(t[i]),u){const d=r.join("$$lit$$");(t=at.get(d))===void 0&&(r.raw=r,at.set(d,t=r)),e=h}return s(t,...e)},Tt=Ct(bt);var Pt=ct`
25
+ */const St=Symbol.for(""),Ct=s=>{if(s?.r===St)return s?._$litStatic$},lt=new Map,Tt=s=>(t,...e)=>{const i=e.length;let o,n;const r=[],h=[];let a,l=0,u=!1;for(;l<i;){for(a=t[l];l<i&&(n=e[l],(o=Ct(n))!==void 0);)a+=o+t[++l],u=!0;h.push(n),r.push(a),l++}if(l===i&&r.push(t[i]),u){const d=r.join("$$lit$$");(t=lt.get(d))===void 0&&(r.raw=r,lt.set(d,t=r)),e=h}return s(t,...e)},V=Tt($t);var Ut=pt`
26
26
  :host {
27
27
  position: absolute;
28
28
  width: 100%;
29
29
  pointer-events: none;
30
30
  }
31
31
 
32
+ a {
33
+ text-decoration: none;
34
+ color: currentColor;
35
+ }
36
+
32
37
  .hidden {
33
38
  zoom: 2;
34
39
  }
40
+
35
41
  .home {
36
42
  position: absolute;
37
43
  top: 506px; //562px
@@ -40,6 +46,7 @@
40
46
  z-index: 1;
41
47
  display: flex !important;
42
48
  }
49
+
43
50
  :host([showAlert="true"]) .home {
44
51
  top: 562px;
45
52
  }
@@ -71,7 +78,7 @@
71
78
  display: flex;
72
79
  }
73
80
 
74
- .booking-box .booking-box-tab, .booking-box .booking-box-tab-2 {
81
+ .booking-box .booking-box-tab, .booking-box .booking-box-tab-2 {
75
82
  color: #364855;
76
83
  border-radius: 20px 20px 0 0;
77
84
  width: 271px;
@@ -88,6 +95,7 @@
88
95
  top: 2px;
89
96
  z-index: 1;
90
97
  }
98
+
91
99
  .booking-box .booking-box-tab-2 {
92
100
  position: absolute;
93
101
  padding: 0 24px 0 56px;
@@ -96,8 +104,8 @@
96
104
  width: auto;
97
105
  z-index: 0;
98
106
  background: #F2F5F9;
99
- text-decoration: none;
100
107
  }
108
+
101
109
  :host([theme="dark"]) .booking-box .booking-box-tab, :host([theme="dark"]) .booking-box .booking-box-tab-2 {
102
110
  background: #63717B;
103
111
  border-color: #79858E;
@@ -114,10 +122,12 @@
114
122
  border-radius: 0 20px 20px 20px;
115
123
  border: 0.5px solid #d2d6d9;
116
124
  }
125
+
117
126
  :host([theme="dark"]) .booking-box .option-box {
118
127
  background: #63717B;
119
128
  border-color: #79858E;
120
129
  }
130
+
121
131
  .booking-box .option-item {
122
132
  position: relative;
123
133
  }
@@ -159,12 +169,15 @@
159
169
  width: 90%;
160
170
  height: initial;
161
171
  }
172
+
162
173
  .booking-box {
163
174
  top: 30% !important;
164
175
  }
176
+
165
177
  .booking-box .option-box {
166
178
  grid-template-columns: 220px 190px 170px;
167
179
  }
180
+
168
181
  .focused {
169
182
  display: flex !important;
170
183
  }
@@ -172,10 +185,12 @@
172
185
  :host([onlyView="true"]) {
173
186
  position: relative !important;
174
187
  }
188
+
175
189
  :host([onlyView="true"]) .booking-box-main-cont {
176
190
  height: initial;
177
191
  max-width: initial;
178
192
  }
193
+
179
194
  :host([onlyView="true"]) .booking-box {
180
195
  display: flex !important;
181
196
  position: relative !important;
@@ -188,6 +203,7 @@
188
203
  min-width: 300px;
189
204
  max-width: 90%;
190
205
  }
206
+
191
207
  .booking-box .booking-box-tab {
192
208
  width: initial;
193
209
  height: initial;
@@ -196,9 +212,11 @@
196
212
  align-items: center;
197
213
  padding: 20px 20px 0;
198
214
  }
215
+
199
216
  .booking-box .booking-box-tab-2 {
200
217
  display: none;
201
218
  }
219
+
202
220
  .booking-box .option-box {
203
221
  width: initial;
204
222
  height: auto;
@@ -219,15 +237,34 @@
219
237
  width: 100% !important;
220
238
  }
221
239
  }
240
+
241
+ //skeleton
242
+
243
+ /* CSS Shimmer Animation Keyframes */
244
+ @keyframes shimmer {
245
+ 0% {
246
+ transform: translateX(-100%);
247
+ }
248
+ 100% {
249
+ transform: translateX(100%);
250
+ }
251
+ }
252
+
253
+ .skeleton-input {
254
+ width: 100%;
255
+ height: 100%;
256
+ border-radius: 8px; /* rounded */
257
+ background-color: rgba(229, 231, 235, 0.5); /* bg-gray-100 */
258
+ }
222
259
  `;/**
223
260
  * @license
224
261
  * Copyright 2017 Google LLC
225
262
  * SPDX-License-Identifier: BSD-3-Clause
226
- */const Ut={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Rt=s=>(...t)=>({_$litDirective$:s,values:t});class Ht{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)}}/**
263
+ */const Pt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Mt=s=>(...t)=>({_$litDirective$:s,values:t});class Rt{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)}}/**
227
264
  * @license
228
265
  * Copyright 2018 Google LLC
229
266
  * SPDX-License-Identifier: BSD-3-Clause
230
- */const lt=Rt(class extends Ht{constructor(s){var t;if(super(s),s.type!==Ut.ATTRIBUTE||s.name!=="class"||((t=s.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var e,i;if(this.nt===void 0){this.nt=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!(!((e=this.st)===null||e===void 0)&&e.has(n))&&this.nt.add(n);return this.render(t)}const o=s.element.classList;this.nt.forEach(n=>{n in t||(o.remove(n),this.nt.delete(n))});for(const n in t){const r=!!t[n];r===this.nt.has(n)||((i=this.st)===null||i===void 0?void 0:i.has(n))||(r?(o.add(n),this.nt.add(n)):(o.remove(n),this.nt.delete(n)))}return $}});class dt extends w{static styles=Pt;static shadowRootOptions={...w.shadowRootOptions,mode:"open"};constructor(){super(),this.hidden=!1,this.tipoDeAtencion="",this.modalidad="",this.focused=!1}static properties={theme:{type:String},hidden:{type:Boolean},title:{type:String},tipoDeAtencion:{type:String},modalidad:{type:String},focused:{type:Boolean},home:{type:Boolean},onlyView:{type:Boolean}};changeHandler(t){const e=t.target.name;this[e]=t.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),e==="tipoDeAtencion"&&(this.modalidad="",this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1)),e==="modalidad"&&this.handleFocusModalidad(!1)}handleFocusTipoDeAtencion(t){this.shadowRoot.getElementById("tipoDeAtencion")?.setAttribute("active",t)}handleFocusModalidad(t){this.shadowRoot.getElementById("modalidad")?.setAttribute("active",t)}handleErrorTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");t?e?.setAttribute("isSelectError",!0):e?.removeAttribute("isSelectError")}handleErrorModalidad(t){const e=this.shadowRoot.getElementById("modalidad");t?e?.setAttribute("isSelectError",!0):e?.removeAttribute("isSelectError")}submit(){let t;this.tipoDeAtencion!==""&&(this.tipoDeAtencion==="Consulta pedi\xE1trica"&&(t="https://www.clinicaalemana.cl/especialidades/pediatria/consulta-pediatrica"),this.modalidad!=="Modalidad"&&(this.tipoDeAtencion==="Consulta m\xE9dica"&&this.modalidad==="Presencial"&&(t="https://reserva.alemana.cl/reserva/portal/busqueda"),this.tipoDeAtencion==="Consulta m\xE9dica"&&this.modalidad==="Teleconsulta"&&(t="https://agenda.clinicaalemana.cl/paciente"),this.tipoDeAtencion==="Consulta m\xE9dica"&&this.modalidad==="TeleUrgencia"&&(t="https://www.clinicaalemana.cl/telemedicina/teleurgencia"),this.tipoDeAtencion==="Consulta m\xE9dica"&&this.modalidad==="A domicilio"&&(t="https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"),this.tipoDeAtencion==="Ex\xE1menes y procedimientos"&&this.modalidad==="Presencial"&&(t="https://www.clinicaalemana.cl/examenes-y-procedimientos"),this.tipoDeAtencion==="Ex\xE1menes y procedimientos"&&this.modalidad==="A domicilio"&&(t="https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio/examenes-laboratorio-domicilio"))),t!==void 0?(window.location.href=t,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})}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(),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()})}}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=lt({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),e=lt({backdrop:!0,hidden:this.hidden});return Tt`
267
+ */const dt=Mt(class extends Rt{constructor(s){var t;if(super(s),s.type!==Pt.ATTRIBUTE||s.name!=="class"||((t=s.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var e,i;if(this.nt===void 0){this.nt=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!(!((e=this.st)===null||e===void 0)&&e.has(n))&&this.nt.add(n);return this.render(t)}const o=s.element.classList;this.nt.forEach(n=>{n in t||(o.remove(n),this.nt.delete(n))});for(const n in t){const r=!!t[n];r===this.nt.has(n)||((i=this.st)===null||i===void 0?void 0:i.has(n))||(r?(o.add(n),this.nt.add(n)):(o.remove(n),this.nt.delete(n)))}return $}});class ht extends w{static styles=Ut;static shadowRootOptions={...w.shadowRootOptions,mode:"open"};constructor(){super(),this.hidden=!1,this.tipoDeAtencion="",this.modalidad="",this.dataTipoDeAtencion=[],this.dataModalidad=[],this.focused=!1,this.refresh=!1,this.link=""}static 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}};changeHandler(t){const e=t.target.name;if(this[e]=t.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),e==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const i=this.tipoDeAtencion==="Consulta m\xE9dica"?["Presencial","Teleconsulta","TeleUrgencia","A domicilio"]:["Presencial","A domicilio"];this.dataModalidad=[...i],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}e==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(t){this.shadowRoot.getElementById("tipoDeAtencion")?.setAttribute("active",t)}handleFocusModalidad(t){this.shadowRoot.getElementById("modalidad")?.setAttribute("active",t)}handleErrorTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");t?e?.setAttribute("isSelectError",!0):e?.removeAttribute("isSelectError")}handleErrorModalidad(t){const e=this.shadowRoot.getElementById("modalidad");t?e?.setAttribute("isSelectError",!0):e?.removeAttribute("isSelectError")}handleLink(){let t="";this.tipoDeAtencion!==""&&(this.tipoDeAtencion==="Consulta pedi\xE1trica"&&(t="https://www.clinicaalemana.cl/especialidades/pediatria/consulta-pediatrica"),this.modalidad!=="Modalidad"&&(this.tipoDeAtencion==="Consulta m\xE9dica"&&this.modalidad==="Presencial"&&(t="https://reserva.alemana.cl/reserva/portal/busqueda"),this.tipoDeAtencion==="Consulta m\xE9dica"&&this.modalidad==="Teleconsulta"&&(t="https://agenda.clinicaalemana.cl/paciente"),this.tipoDeAtencion==="Consulta m\xE9dica"&&this.modalidad==="TeleUrgencia"&&(t="https://www.clinicaalemana.cl/telemedicina/teleurgencia"),this.tipoDeAtencion==="Consulta m\xE9dica"&&this.modalidad==="A domicilio"&&(t="https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"),this.tipoDeAtencion==="Ex\xE1menes y procedimientos"&&this.modalidad==="Presencial"&&(t="https://www.clinicaalemana.cl/examenes-y-procedimientos"),this.tipoDeAtencion==="Ex\xE1menes y procedimientos"&&this.modalidad==="A domicilio"&&(t="https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio/examenes-laboratorio-domicilio"))),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})}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(),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()})}}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=dt({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),e=dt({backdrop:!0,hidden:this.hidden});return V`
231
268
  <div class=${e} id="backdrop" @click=${this.closeHandler}></div>
232
269
  <div class="booking-box-main-cont" id="booking-box-main-cont">
233
270
  <div class=${t} id="booking-box" tabindex="0">
@@ -252,31 +289,41 @@
252
289
  data='["Consulta médica", "Exámenes y procedimientos"]'
253
290
  ></cas-select>
254
291
  </div>
292
+
255
293
  <div class="option-item">
256
294
  <slot name="b-option-2"></slot>
257
- <cas-select
258
- theme="${this.theme}"
259
- label="Modalidad"
260
- ?disabled=${this.tipoDeAtencion===""||this.tipoDeAtencion==="Consulta pedi\xE1trica"}
261
- data=${this.tipoDeAtencion==="Consulta m\xE9dica"?'["Presencial", "Teleconsulta", "TeleUrgencia", "A domicilio"]':'["Presencial", "A domicilio"]'}
262
- id="modalidad"
263
- @change=${this.changeHandler}
264
- fullWidth="true"
265
- value=${this.modalidad}
266
- secondaryIcon="flat-hospital"
267
- name="modalidad"
268
- ></cas-select>
295
+ ${this.refresh?V`
296
+ <div class="skeleton-input">
297
+
298
+ </div>
299
+ `:V`
300
+ <cas-select
301
+ theme="${this.theme}"
302
+ label="Modalidad"
303
+ ?disabled=${this.tipoDeAtencion===""}
304
+ .data=${this.dataModalidad}
305
+ id="modalidad"
306
+ @change=${this.changeHandler}
307
+ fullWidth="true"
308
+ value=${this.modalidad}
309
+ secondaryIcon="flat-hospital"
310
+ name="modalidad"
311
+ ></cas-select>
312
+ `}
269
313
  </div>
270
314
 
271
- <cas-button
272
- name="submitAgendaButton"
273
- @click=${this.submit}
274
- fullWidth="true"
275
- text="Reservar hora"
276
- variant="${this.theme==="dark"?"text2":"primary1"}"
277
- iconName="flat-calendarOn"
278
- iconSize="20"
279
- ></cas-button>
315
+ <a class="btn-action">
316
+ <cas-button
317
+ name="submitAgendaButton"
318
+ @click=${this.submit}
319
+ fullWidth="true"
320
+ text="Reservar hora"
321
+ variant="${this.theme==="dark"?"text2":"primary1"}"
322
+ iconName="flat-calendarOn"
323
+ iconSize="20"
324
+ ></cas-button>
325
+ </a>
326
+ </div>
280
327
  </div>
281
328
  </div>
282
- </div>`}}customElements.get("cas-booking-box")||customElements.define("cas-booking-box",dt),g.CasBookingBox=dt,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
329
+ </div>`}}customElements.get("cas-booking-box")||customElements.define("cas-booking-box",ht),g.CasBookingBox=ht,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});