cas-ds-web-components 1.2.23 → 1.2.24

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/README.md CHANGED
@@ -1,2 +1,2 @@
1
- # CAS DS Web-Components
2
- > This project is created using Direflow
1
+ # web-components
2
+ web components for Clínica Alemana
@@ -228,7 +228,7 @@
228
228
  <div class="inner-container">
229
229
  <div class="icon-container">
230
230
  <div class="icon">
231
- <cas-icon name=${u} size=${v}></cas-icon>
231
+ <cas-icon disabled name=${u} size=${v}></cas-icon>
232
232
  </div>
233
233
  </div>
234
234
  <div class="text-container">
@@ -0,0 +1,120 @@
1
+ (function(g,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(g=typeof globalThis<"u"?globalThis:g||self,v(g["cas-banners-cta"]={}))})(this,function(g){"use strict";/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const v=window,M=v.ShadowRoot&&(v.ShadyCSS===void 0||v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,j=Symbol(),V=new WeakMap;class W{constructor(t,e,i){if(this._$cssResult$=!0,i!==j)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(M&&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=o=>new W(typeof o=="string"?o:o+"",void 0,j),ct=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new W(e,o,j)},pt=(o,t)=>{M?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=v.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)})},q=M?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return ht(e)})(o):o;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */var L;const O=window,Z=O.trustedTypes,ut=Z?Z.emptyScript:"",J=O.reactiveElementPolyfillSupport,z={toAttribute(o,t){switch(t){case Boolean:o=o?ut:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},K=(o,t)=>t!==o&&(t==t||o==o),B={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:K};class f 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 s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=B){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 r=this[t];this[e]=s,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||B}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 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(q(s))}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=B){var s;const r=this.constructor._$Ep(t,i);if(r!==void 0&&i.reflect===!0){const n=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:z).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,r=s._$Ev.get(t);if(r!==void 0&&this._$El!==r){const n=s.getPropertyOptions(r),h=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:z;this._$El=r,this[r]=h.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){let s=!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))):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,r)=>this[r]=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 r;return(r=s.hostUpdate)===null||r===void 0?void 0:r.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){}}f.finalized=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},J?.({ReactiveElement:f}),((L=O.reactiveElementVersions)!==null&&L!==void 0?L:O.reactiveElementVersions=[]).push("1.4.2");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */var I;const T=window,y=T.trustedTypes,G=y?y.createPolicy("lit-html",{createHTML:o=>o}):void 0,_=`lit$${(Math.random()+"").slice(9)}$`,Q="?"+_,$t=`<${Q}>`,A=document,C=(o="")=>A.createComment(o),w=o=>o===null||typeof o!="object"&&typeof o!="function",X=Array.isArray,vt=o=>X(o)||typeof o?.[Symbol.iterator]=="function",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,tt=/>/g,m=RegExp(`>|[
14
+ \f\r](?:([^\\s"'>=/]+)([
15
+ \f\r]*=[
16
+ \f\r]*(?:[^
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),et=/'/g,it=/"/g,st=/^(?:script|style|textarea|title)$/i,_t=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),mt=_t(1),x=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),ot=new WeakMap,b=A.createTreeWalker(A,129,null,!1),gt=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=P;for(let a=0;a<e;a++){const l=o[a];let u,d,c=-1,$=0;for(;$<l.length&&(n.lastIndex=$,d=n.exec(l),d!==null);)$=n.lastIndex,n===P?d[1]==="!--"?n=Y:d[1]!==void 0?n=tt:d[2]!==void 0?(st.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=m):d[3]!==void 0&&(n=m):n===m?d[0]===">"?(n=s??P,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,u=d[1],n=d[3]===void 0?m:d[3]==='"'?it:et):n===it||n===et?n=m:n===Y||n===tt?n=P:(n=m,s=void 0);const N=n===m&&o[a+1].startsWith("/>")?" ":"";r+=n===P?l+$t:c>=0?(i.push(u),l.slice(0,c)+"$lit$"+l.slice(c)+_+N):l+_+(c===-2?(i.push(void 0),a):N)}const h=r+(o[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return[G!==void 0?G.createHTML(h):h,i]};class U{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const h=t.length-1,a=this.parts,[l,u]=gt(t,e);if(this.el=U.createElement(l,i),b.currentNode=this.el.content,e===2){const d=this.el.content,c=d.firstChild;c.remove(),d.append(...c.childNodes)}for(;(s=b.nextNode())!==null&&a.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const d=[];for(const c of s.getAttributeNames())if(c.endsWith("$lit$")||c.startsWith(_)){const $=u[n++];if(d.push(c),$!==void 0){const N=s.getAttribute($.toLowerCase()+"$lit$").split(_),R=/([.?@])?(.*)/.exec($);a.push({type:1,index:r,name:R[2],strings:N,ctor:R[1]==="."?yt:R[1]==="?"?xt:R[1]==="@"?bt:k})}else a.push({type:6,index:r})}for(const c of d)s.removeAttribute(c)}if(st.test(s.tagName)){const d=s.textContent.split(_),c=d.length-1;if(c>0){s.textContent=y?y.emptyScript:"";for(let $=0;$<c;$++)s.append(d[$],C()),b.nextNode(),a.push({type:2,index:++r});s.append(d[c],C())}}}else if(s.nodeType===8)if(s.data===Q)a.push({type:2,index:r});else{let d=-1;for(;(d=s.data.indexOf(_,d+1))!==-1;)a.push({type:7,index:r}),d+=_.length-1}r++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function S(o,t,e=o,i){var s,r,n,h;if(t===x)return t;let a=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const l=w(t)?void 0:t._$litDirective$;return a?.constructor!==l&&((r=a?._$AO)===null||r===void 0||r.call(a,!1),l===void 0?a=void 0:(a=new l(o),a._$AT(o,e,i)),i!==void 0?((n=(h=e)._$Co)!==null&&n!==void 0?n:h._$Co=[])[i]=a:e._$Cl=a),a!==void 0&&(t=S(o,a._$AS(o,t.values),a,i)),t}class ft{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:s}=this._$AD,r=((e=t?.creationScope)!==null&&e!==void 0?e:A).importNode(i,!0);b.currentNode=r;let n=b.nextNode(),h=0,a=0,l=s[0];for(;l!==void 0;){if(h===l.index){let u;l.type===2?u=new H(n,n.nextSibling,this,t):l.type===1?u=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(u=new St(n,this,t)),this.u.push(u),l=s[++a]}h!==l?.index&&(n=b.nextNode(),h++)}return r}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 H{constructor(t,e,i,s){var r;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cm=(r=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._$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=S(this,t,e),w(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==x&&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&&w(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=U.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.p(i);else{const n=new ft(r,this),h=n.v(this.options);n.p(i),this.T(h),this._$AH=n}}_$AC(t){let e=ot.get(t.strings);return e===void 0&&ot.set(t.strings,e=new U(t)),e}k(t){X(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 H(this.O(C()),this.O(C()),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._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class k{constructor(t,e,i,s,r){this.type=1,this._$AH=p,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=p}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=S(this,t,e,0),n=!w(t)||t!==this._$AH&&t!==x,n&&(this._$AH=t);else{const h=t;let a,l;for(t=r[0],a=0;a<r.length-1;a++)l=S(this,h[i+a],e,a),l===x&&(l=this._$AH[a]),n||(n=!w(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+r[a+1]),this._$AH[a]=l}n&&!s&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class yt extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}const At=y?y.emptyScript:"";class xt extends k{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,At):this.element.removeAttribute(this.name)}}class bt extends k{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=S(this,t,e,0))!==null&&i!==void 0?i:p)===x)return;const s=this._$AH,r=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==p&&(s===p||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 St{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){S(this,t)}}const nt=T.litHtmlPolyfillSupport;nt?.(U,H),((I=T.litHtmlVersions)!==null&&I!==void 0?I:T.litHtmlVersions=[]).push("2.4.0");const Et=(o,t,e)=>{var i,s;const r=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let n=r._$litPart$;if(n===void 0){const h=(s=e?.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new H(t.insertBefore(C(),h),h,void 0,e??{})}return n._$AI(o),n};/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */var D,F;class E extends f{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=Et(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 x}}E.finalized=!0,E._$litElement$=!0,(D=globalThis.litElementHydrateSupport)===null||D===void 0||D.call(globalThis,{LitElement:E});const rt=globalThis.litElementPolyfillSupport;rt?.({LitElement:E}),((F=globalThis.litElementVersions)!==null&&F!==void 0?F:globalThis.litElementVersions=[]).push("3.2.2");/**
22
+ * @license
23
+ * Copyright 2020 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */const Ct=Symbol.for(""),wt=o=>{if(o?.r===Ct)return o?._$litStatic$},lt=new Map,Pt=o=>(t,...e)=>{const i=e.length;let s,r;const n=[],h=[];let a,l=0,u=!1;for(;l<i;){for(a=t[l];l<i&&(r=e[l],(s=wt(r))!==void 0);)a+=s+t[++l],u=!0;h.push(r),n.push(a),l++}if(l===i&&n.push(t[i]),u){const d=n.join("$$lit$$");(t=lt.get(d))===void 0&&(n.raw=n,lt.set(d,t=n)),e=h}return o(t,...e)},at=Pt(mt);var Ut=ct`
26
+ .card {
27
+ display: grid;
28
+ grid-template-columns: 177px 1fr;
29
+ border-radius: 20px;
30
+ width: 487px;
31
+ min-width: 487px;
32
+ border: 1px solid var(--background-background-2, #F2F5F9);
33
+ background: var(--background-background, #FFF);
34
+ box-shadow: 0px 30px 40px 0px rgba(200, 200, 200, 0.25);
35
+ }
36
+ .card__image {
37
+ position: relative;
38
+ border-radius: 20px 0 0 20px;
39
+ height: 248px;
40
+ overflow: hidden;
41
+ }
42
+ .card__image img {
43
+ width: 100%;
44
+ height: 100%;
45
+ object-fit: cover;
46
+ }
47
+ .card__content {
48
+ display: flex;
49
+ flex-direction: column;
50
+ gap: 4px;
51
+ padding: 32px 24px;
52
+ color: #364855;
53
+ }
54
+ .card__link {
55
+ margin-top: 8px;
56
+ display: flex;
57
+ justify-content: start;
58
+ }
59
+ .card__link .button {
60
+ display: flex;
61
+ border-radius: 20px;
62
+ border: 1px solid var(--tertiary-tertiary-1, #203442);
63
+ background: var(--background-background, #FFF);
64
+ padding: 4px 16px;
65
+ }
66
+ a {
67
+ text-decoration: none;
68
+ color: currentColor;
69
+ }
70
+ .list {
71
+ display: flex;
72
+ overflow-x: auto;
73
+ gap: 16px;
74
+ padding: 64px 32px;
75
+ }
76
+
77
+ @media (max-width: 768px) {
78
+ .list {
79
+ padding: 32px 16px;
80
+ }
81
+ .card {
82
+ display: flex;
83
+ width: 315px;
84
+ min-width: 315px;
85
+ flex-direction: column;
86
+ }
87
+ .card__image {
88
+ border-radius: 20px 20px 0 0;
89
+ height: 149px;
90
+ }
91
+ .card__content {
92
+ padding: 16px 16px 32px 16px;
93
+ }
94
+ }
95
+ `;class dt extends E{static styles=Ut;static shadowRootOptions={...E.shadowRootOptions,mode:"open"};static properties={name:{type:String},value:{type:String}};constructor(){super(),this.name="",this.value=""}render(){const t=({subtitle:i,title:s,description:r,image:n,name_button:h="Ver m\xE1s",link_button:a})=>{const l=({text:u,length:d=100})=>u.length>d?`${u.substring(0,d)}...`:u;return at`
96
+ <article class="card">
97
+ <div class="card__image">
98
+ <img src="${n}" alt="${s}" />
99
+ </div>
100
+ <div class="card__content">
101
+ <cas-text variant="body2">${l({text:i,length:38})}</cas-text>
102
+ <cas-text variant="headline2">${l({text:s,length:38})}</cas-text>
103
+ <cas-text variant="caption2">${l({text:r,length:83})}</cas-text>
104
+ <div class="card__link">
105
+ <a href="${a}" class="button">
106
+ <cas-text variant="footnote1">${h}</cas-text>
107
+ </a>
108
+ </div>
109
+ </div>
110
+ </article>
111
+ `};return at`
112
+ <section class="container">
113
+ <div class="list">
114
+ ${[{subtitle:"Cuidado de la piel",title:"Cuidado de la piel Cuidado de la piel",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, diam, sed. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, diam, sed. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, diam, sed.",image:"https://images.pexels.com/photos/13203904/pexels-photo-13203904.jpeg?auto=compress&cs=tinysrgb&w=400&lazy=load",link:"#"},{subtitle:"Cuidado de la piel",title:"Cuidado de la piel",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, diam, sed.",image:"https://images.pexels.com/photos/13203904/pexels-photo-13203904.jpeg?auto=compress&cs=tinysrgb&w=400&lazy=load",link:"#"},{subtitle:"Cuidado de la piel",title:"Cuidado de la piel",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, diam, sed.",image:"https://images.pexels.com/photos/13203904/pexels-photo-13203904.jpeg?auto=compress&cs=tinysrgb&w=400&lazy=load",link:"#"},{subtitle:"Cuidado de la piel",title:"Cuidado de la piel",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, diam, sed.",image:"https://images.pexels.com/photos/13203904/pexels-photo-13203904.jpeg?auto=compress&cs=tinysrgb&w=400&lazy=load",link:"#"}].map(i=>t(i))}
115
+ </div>
116
+ <div class="actions">
117
+ buttons
118
+ </div>
119
+ </section>
120
+ `}}customElements.get("cas-banners-cta")||customElements.define("cas-banners-cta",dt),g.CasBannersCta=dt,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,279 @@
1
+ (function(g,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(g=typeof globalThis<"u"?globalThis:g||self,v(g["cas-booking-box"]={}))})(this,function(g){"use strict";/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const v=window,D=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(D&&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)=>{D?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=D?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return ht(e)})(s):s;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
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");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */var L;const H=window,_=H.trustedTypes,Q=_?_.createPolicy("lit-html",{createHTML:s=>s}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,Y="?"+f,mt=`<${Y}>`,A=document,k=(s="")=>A.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(`>|[
14
+ \f\r](?:([^\\s"'>=/]+)([
15
+ \f\r]*=[
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=A.createTreeWalker(A,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 O=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+O):l+f+(c===-2?(i.push(void 0),a):O)}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 O=o.getAttribute(m.toLowerCase()+"$lit$").split(f),M=/([.?@])?(.*)/.exec(m);a.push({type:1,index:n,name:M[2],strings:O,ctor:M[1]==="."?xt:M[1]==="?"?At:M[1]==="@"?yt:R})}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=_?_.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=A.createElement("template");return i.innerHTML=t,i}}function w(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=w(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:A).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 wt(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=w(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(A.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 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=w(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=w(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 _t=_?_.emptyScript:"";class At extends R{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,_t):this.element.removeAttribute(this.name)}}class yt 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=w(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){w(this,t)}}const nt=H.litHtmlPolyfillSupport;nt?.(T,P),((L=H.litHtmlVersions)!==null&&L!==void 0?L:H.litHtmlVersions=[]).push("2.4.0");const Et=(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};/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */var j,F;class E 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=Et(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 $}}E.finalized=!0,E._$litElement$=!0,(j=globalThis.litElementHydrateSupport)===null||j===void 0||j.call(globalThis,{LitElement:E});const rt=globalThis.litElementPolyfillSupport;rt?.({LitElement:E}),((F=globalThis.litElementVersions)!==null&&F!==void 0?F:globalThis.litElementVersions=[]).push("3.2.2");/**
22
+ * @license
23
+ * Copyright 2020 Google LLC
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`
26
+ :host {
27
+ position: absolute;
28
+ width: 100%;
29
+ }
30
+
31
+ .hidden {
32
+ zoom: 2;
33
+ }
34
+ .home {
35
+ position: absolute;
36
+ top: 506px; //562px
37
+ left: 50%;
38
+ transform: translate(-50%, 0);
39
+ z-index: 1;
40
+ display: flex !important;
41
+ }
42
+ :host([showAlert="true"]) .home {
43
+ top: 562px;
44
+ }
45
+
46
+ .focused {
47
+ position: fixed;
48
+ display: flex;
49
+ top: 50% !important;
50
+ left: 50%;
51
+ transform: translate(-50%, -50%);
52
+ animation: fadeIn 0.3s;
53
+ }
54
+
55
+ .booking-box,
56
+ .booking-box-main-cont {
57
+ max-width: max-content;
58
+ width: 100%;
59
+ height: 144px;
60
+ display: none;
61
+ left: 50%;
62
+ z-index: 2;
63
+ flex-direction: column;
64
+ }
65
+
66
+ .booking-box.focused,
67
+ .booking-box-main-cont {
68
+ z-index: 4;
69
+ display: flex;
70
+ }
71
+
72
+ .booking-box .booking-box-tab, .booking-box .booking-box-tab-2 {
73
+ color: #364855;
74
+ border-radius: 20px 20px 0 0;
75
+ width: 271px;
76
+ height: 40px;
77
+ background: #ffffff;
78
+ display: flex;
79
+ justify-content: center;
80
+ align-items: flex-end;
81
+ font-family: 'Rubik', serif;
82
+ border-top: 0.5px solid #d2d6d9;
83
+ border-left: 0.5px solid #d2d6d9;
84
+ border-right: 0.5px solid #d2d6d9;
85
+ position: relative;
86
+ top: 2px;
87
+ z-index: 1;
88
+ }
89
+ .booking-box .booking-box-tab-2 {
90
+ position: absolute;
91
+ padding: 0 24px 0 56px;
92
+ left: 240px;
93
+ height: 35px;
94
+ width: auto;
95
+ z-index: 0;
96
+ background: #F2F5F9;
97
+ text-decoration: none;
98
+ }
99
+ :host([theme="dark"]) .booking-box .booking-box-tab, :host([theme="dark"]) .booking-box .booking-box-tab-2 {
100
+ background: #63717B;
101
+ border-color: #79858E;
102
+ color: #FFFFFF;
103
+ }
104
+
105
+ .booking-box .option-box {
106
+ width: auto;
107
+ background-color: #ffffff;
108
+ display: grid;
109
+ gap: 16px;
110
+ grid-template-columns: 300px 200px 180px;
111
+ padding: 24px;
112
+ border-radius: 0 20px 20px 20px;
113
+ border: 0.5px solid #d2d6d9;
114
+ }
115
+ :host([theme="dark"]) .booking-box .option-box {
116
+ background: #63717B;
117
+ border-color: #79858E;
118
+ }
119
+ .booking-box .option-item {
120
+ position: relative;
121
+ }
122
+
123
+ .booking-box .option-box cas-button,
124
+ .booking-box .option-box button {
125
+ height: 56px;
126
+ }
127
+
128
+ @keyframes fadeIn {
129
+ 0% {
130
+ opacity: 0;
131
+ }
132
+ 100% {
133
+ opacity: 1;
134
+ }
135
+ }
136
+
137
+ .backdrop {
138
+ animation: fadeIn 0.3s;
139
+ display: none;
140
+ height: 100vh;
141
+ width: 100vw;
142
+ background: rgba(32, 52, 66, 0.5);
143
+ position: fixed;
144
+ top: 0;
145
+ left: 0;
146
+ z-index: 4;
147
+ }
148
+
149
+ @media (max-width: 1023px) {
150
+ .booking-box {
151
+ position: fixed;
152
+ display: none !important;
153
+ top: initial;
154
+ left: 50%;
155
+ transform: translate(-50%, 0);
156
+ width: 90%;
157
+ height: initial;
158
+ }
159
+ .booking-box {
160
+ top: 30% !important;
161
+ }
162
+ .booking-box .option-box {
163
+ grid-template-columns: 220px 190px 170px;
164
+ }
165
+ .focused {
166
+ display: flex !important;
167
+ }
168
+
169
+ :host([onlyView="true"]) {
170
+ position: relative !important;
171
+ }
172
+ :host([onlyView="true"]) .booking-box-main-cont {
173
+ height: initial;
174
+ max-width: initial;
175
+ }
176
+ :host([onlyView="true"]) .booking-box {
177
+ display: flex !important;
178
+ position: relative !important;
179
+ width: 100%;
180
+ top: initial !important;
181
+ }
182
+ }
183
+ @media (max-width: 768px) {
184
+ .booking-box {
185
+ min-width: 300px;
186
+ max-width: 90%;
187
+ }
188
+ .booking-box .booking-box-tab {
189
+ width: initial;
190
+ height: initial;
191
+ display: flex;
192
+ justify-content: center;
193
+ align-items: center;
194
+ padding: 20px 20px 0;
195
+ }
196
+ .booking-box .booking-box-tab-2 {
197
+ display: none;
198
+ }
199
+ .booking-box .option-box {
200
+ width: initial;
201
+ height: auto;
202
+ grid-template-columns: 1fr;
203
+ border-top-right-radius: 0 !important;
204
+ gap: 12px !important;
205
+ padding-bottom: 20px;
206
+ }
207
+
208
+ .booking-box .option-box cas-select,
209
+ .booking-box .option-box select,
210
+ .booking-box .option-box .select-container {
211
+ width: 100% !important;
212
+ }
213
+
214
+ .booking-box .option-box cas-button,
215
+ .booking-box .option-box button {
216
+ width: 100% !important;
217
+ }
218
+ }
219
+ `;/**
220
+ * @license
221
+ * Copyright 2017 Google LLC
222
+ * SPDX-License-Identifier: BSD-3-Clause
223
+ */const Ut={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ht=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)}}/**
224
+ * @license
225
+ * Copyright 2018 Google LLC
226
+ * SPDX-License-Identifier: BSD-3-Clause
227
+ */const lt=Ht(class extends Rt{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 E{static styles=Pt;static shadowRootOptions={...E.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,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)}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.handleFocusTipoDeAtencion(!0),this.handleFocusModalidad(!0)):this.handleFocusModalidad(!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`
228
+ <div class=${e} id="backdrop" @click=${this.closeHandler}></div>
229
+ <div class="booking-box-main-cont" id="booking-box-main-cont">
230
+ <div class=${t} id="booking-box" tabindex="0">
231
+ <slot name="b-content"></slot>
232
+ <div class="booking-box-tab">
233
+ <cas-text variant="headline3">¿Qué necesitas agendar?</cas-text>
234
+ </div>
235
+ <a href="https://www.alemana.cl/ReservaDeHoras/resultado-modificar-anular.aspx" @click=${this.handleOverrideTime} class="booking-box-tab-2">
236
+ <cas-text variant="headline5">Anular hora</cas-text>
237
+ </a>
238
+ <div class="option-box">
239
+ <div class="option-item">
240
+ <slot name="b-option"></slot>
241
+ <cas-select
242
+ theme="${this.theme}"
243
+ label="Tipo de atención"
244
+ @change=${this.changeHandler}
245
+ fullWidth="true"
246
+ name="tipoDeAtencion"
247
+ id="tipoDeAtencion"
248
+ secondaryIcon="flat-doctor"
249
+ data='["Consulta médica", "Exámenes y procedimientos"]'
250
+ ></cas-select>
251
+ </div>
252
+ <div class="option-item">
253
+ <slot name="b-option-2"></slot>
254
+ <cas-select
255
+ theme="${this.theme}"
256
+ label="Modalidad"
257
+ ?disabled=${this.tipoDeAtencion===""||this.tipoDeAtencion==="Consulta pedi\xE1trica"}
258
+ data=${this.tipoDeAtencion==="Consulta m\xE9dica"?'["Presencial", "Teleconsulta", "TeleUrgencia", "A domicilio"]':'["Presencial", "A domicilio"]'}
259
+ id="modalidad"
260
+ @change=${this.changeHandler}
261
+ fullWidth="true"
262
+ value=${this.modalidad}
263
+ secondaryIcon="flat-hospital"
264
+ name="modalidad"
265
+ ></cas-select>
266
+ </div>
267
+
268
+ <cas-button
269
+ name="submitAgendaButton"
270
+ @click=${this.submit}
271
+ fullWidth="true"
272
+ text="Reservar hora"
273
+ variant="${this.theme==="dark"?"text2":"primary1"}"
274
+ iconName="flat-calendarOn"
275
+ iconSize="20"
276
+ ></cas-button>
277
+ </div>
278
+ </div>
279
+ </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"}})});
@@ -0,0 +1,75 @@
1
+ (function(A,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(A=typeof globalThis<"u"?globalThis:A||self,v(A["cas-checkbox"]={}))})(this,function(A){"use strict";/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const v=window,M=v.ShadowRoot&&(v.ShadyCSS===void 0||v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,z=Symbol(),W=new WeakMap;class q{constructor(t,e,s){if(this._$cssResult$=!0,s!==z)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(M&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=W.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&W.set(e,t))}return t}toString(){return this.cssText}}const ct=n=>new q(typeof n=="string"?n:n+"",void 0,z),dt=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((s,i,o)=>s+(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.")})(i)+n[o+1],n[0]);return new q(e,n,z)},ut=(n,t)=>{M?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),i=v.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,n.appendChild(s)})},Z=M?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return ct(e)})(n):n;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */var j;const O=window,J=O.trustedTypes,pt=J?J.emptyScript:"",K=O.reactiveElementPolyfillSupport,B={toAttribute(n,t){switch(t){case Boolean:n=n?pt: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}},G=(n,t)=>t!==n&&(t==t||n==n),I={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:G};class m 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,s)=>{const i=this._$Ep(s,e);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,e=I){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const o=this[t];this[e]=i,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||I}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,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of s)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(Z(i))}else t!==void 0&&e.push(Z(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.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 s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=I){var i;const o=this.constructor._$Ep(t,s);if(o!==void 0&&s.reflect===!0){const r=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:B).toAttribute(e,s.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,o=i._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=i.getPropertyOptions(o),c=typeof r.converter=="function"?{fromAttribute:r.converter}:((s=r.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?r.converter:B;this._$El=o,this[o]=c.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||G)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(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((i,o)=>this[o]=i),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(s)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),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,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},K?.({ReactiveElement:m}),((j=O.reactiveElementVersions)!==null&&j!==void 0?j:O.reactiveElementVersions=[]).push("1.4.2");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */var L;const H=window,g=H.trustedTypes,Q=g?g.createPolicy("lit-html",{createHTML:n=>n}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,X="?"+f,$t=`<${X}>`,y=document,C=(n="")=>y.createComment(n),w=n=>n===null||typeof n!="object"&&typeof n!="function",Y=Array.isArray,vt=n=>Y(n)||typeof n?.[Symbol.iterator]=="function",k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,_=RegExp(`>|[
14
+ \f\r](?:([^\\s"'>=/]+)([
15
+ \f\r]*=[
16
+ \f\r]*(?:[^
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,it=/"/g,nt=/^(?:script|style|textarea|title)$/i,ft=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),D=ft(1),b=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ot=new WeakMap,E=y.createTreeWalker(y,129,null,!1),_t=(n,t)=>{const e=n.length-1,s=[];let i,o=t===2?"<svg>":"",r=k;for(let l=0;l<e;l++){const h=n[l];let $,a,d=-1,p=0;for(;p<h.length&&(r.lastIndex=p,a=r.exec(h),a!==null);)p=r.lastIndex,r===k?a[1]==="!--"?r=tt:a[1]!==void 0?r=et:a[2]!==void 0?(nt.test(a[2])&&(i=RegExp("</"+a[2],"g")),r=_):a[3]!==void 0&&(r=_):r===_?a[0]===">"?(r=i??k,d=-1):a[1]===void 0?d=-2:(d=r.lastIndex-a[2].length,$=a[1],r=a[3]===void 0?_:a[3]==='"'?it:st):r===it||r===st?r=_:r===tt||r===et?r=k:(r=_,i=void 0);const T=r===_&&n[l+1].startsWith("/>")?" ":"";o+=r===k?h+$t:d>=0?(s.push($),h.slice(0,d)+"$lit$"+h.slice(d)+f+T):h+f+(d===-2?(s.push(void 0),l):T)}const c=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Q!==void 0?Q.createHTML(c):c,s]};class P{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const c=t.length-1,l=this.parts,[h,$]=_t(t,e);if(this.el=P.createElement(h,s),E.currentNode=this.el.content,e===2){const a=this.el.content,d=a.firstChild;d.remove(),a.append(...d.childNodes)}for(;(i=E.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes()){const a=[];for(const d of i.getAttributeNames())if(d.endsWith("$lit$")||d.startsWith(f)){const p=$[r++];if(a.push(d),p!==void 0){const T=i.getAttribute(p.toLowerCase()+"$lit$").split(f),R=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:R[2],strings:T,ctor:R[1]==="."?mt:R[1]==="?"?yt:R[1]==="@"?bt:N})}else l.push({type:6,index:o})}for(const d of a)i.removeAttribute(d)}if(nt.test(i.tagName)){const a=i.textContent.split(f),d=a.length-1;if(d>0){i.textContent=g?g.emptyScript:"";for(let p=0;p<d;p++)i.append(a[p],C()),E.nextNode(),l.push({type:2,index:++o});i.append(a[d],C())}}}else if(i.nodeType===8)if(i.data===X)l.push({type:2,index:o});else{let a=-1;for(;(a=i.data.indexOf(f,a+1))!==-1;)l.push({type:7,index:o}),a+=f.length-1}o++}}static createElement(t,e){const s=y.createElement("template");return s.innerHTML=t,s}}function S(n,t,e=n,s){var i,o,r,c;if(t===b)return t;let l=s!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[s]:e._$Cl;const h=w(t)?void 0:t._$litDirective$;return l?.constructor!==h&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),h===void 0?l=void 0:(l=new h(n),l._$AT(n,e,s)),s!==void 0?((r=(c=e)._$Co)!==null&&r!==void 0?r:c._$Co=[])[s]=l:e._$Cl=l),l!==void 0&&(t=S(n,l._$AS(n,t.values),l,s)),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:s},parts:i}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:y).importNode(s,!0);E.currentNode=o;let r=E.nextNode(),c=0,l=0,h=i[0];for(;h!==void 0;){if(c===h.index){let $;h.type===2?$=new U(r,r.nextSibling,this,t):h.type===1?$=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&($=new Et(r,this,t)),this.u.push($),h=i[++l]}c!==h?.index&&(r=E.nextNode(),c++)}return o}p(t){let e=0;for(const s of this.u)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class U{constructor(t,e,s,i){var o;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cm=(o=i?.isConnected)===null||o===void 0||o}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=S(this,t,e),w(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==b&&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!==u&&w(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=P.createElement(i.h,this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.p(s);else{const r=new At(o,this),c=r.v(this.options);r.p(s),this.T(c),this._$AH=r}}_$AC(t){let e=ot.get(t.strings);return e===void 0&&ot.set(t.strings,e=new P(t)),e}k(t){Y(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new U(this.O(C()),this.O(C()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class N{constructor(t,e,s,i,o){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(o===void 0)t=S(this,t,e,0),r=!w(t)||t!==this._$AH&&t!==b,r&&(this._$AH=t);else{const c=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=S(this,c[s+l],e,l),h===b&&(h=this._$AH[l]),r||(r=!w(h)||h!==this._$AH[l]),h===u?t=u:t!==u&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}r&&!i&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class mt extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}}const gt=g?g.emptyScript:"";class yt extends N{constructor(){super(...arguments),this.type=4}j(t){t&&t!==u?this.element.setAttribute(this.name,gt):this.element.removeAttribute(this.name)}}class bt extends N{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){var s;if((t=(s=S(this,t,e,0))!==null&&s!==void 0?s:u)===b)return;const i=this._$AH,o=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==u&&(i===u||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class Et{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const rt=H.litHtmlPolyfillSupport;rt?.(P,U),((L=H.litHtmlVersions)!==null&&L!==void 0?L:H.litHtmlVersions=[]).push("2.4.0");const St=(n,t,e)=>{var s,i;const o=(s=e?.renderBefore)!==null&&s!==void 0?s:t;let r=o._$litPart$;if(r===void 0){const c=(i=e?.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=r=new U(t.insertBefore(C(),c),c,void 0,e??{})}return r._$AI(n),r};/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */var V,F;class x extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=St(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 b}}x.finalized=!0,x._$litElement$=!0,(V=globalThis.litElementHydrateSupport)===null||V===void 0||V.call(globalThis,{LitElement:x});const lt=globalThis.litElementPolyfillSupport;lt?.({LitElement:x}),((F=globalThis.litElementVersions)!==null&&F!==void 0?F:globalThis.litElementVersions=[]).push("3.2.2");var xt=dt`
22
+ .checkbox-container {
23
+ cursor: pointer;
24
+ display: flex;
25
+ justify-content: center;
26
+ align-items: center;
27
+ width: 20px;
28
+ height: 20px;
29
+ background: #FFFFFF;
30
+ border: 2px solid #BCC2C6;
31
+ box-sizing: border-box;
32
+ border-radius: 4px;
33
+ color: #fff;
34
+ }
35
+ .checkbox-container:hover {
36
+ border-color: #857BE2;
37
+ }
38
+ .checked {
39
+ background: #857BE2;
40
+ border-color: transparent;
41
+ }
42
+ :host([disabled]) .checkbox-container {
43
+ background: #E9EBEC;
44
+ border: 2px solid #BCC2C6;
45
+ cursor: not-allowed;
46
+ }
47
+ :host([disabled]):host([checked]) .checkbox-container {
48
+ background: #909AA1;
49
+ border-color: transparent;
50
+ }
51
+ .size-24 {
52
+ width: 24px;
53
+ height: 24px;
54
+ }
55
+ cas-icon {
56
+ pointer-events: none;
57
+ }
58
+ :host([text]) {
59
+ display: flex;
60
+ align-items: center;
61
+ gap: 8px;
62
+ }
63
+ :host([disabled]) {
64
+ color: #79858E;
65
+ }
66
+ `,ht={exports:{}};/*!
67
+ Copyright (c) 2018 Jed Watson.
68
+ Licensed under the MIT License (MIT), see
69
+ http://jedwatson.github.io/classnames
70
+ */(function(n){(function(){var t={}.hasOwnProperty;function e(){for(var s=[],i=0;i<arguments.length;i++){var o=arguments[i];if(!!o){var r=typeof o;if(r==="string"||r==="number")s.push(o);else if(Array.isArray(o)){if(o.length){var c=e.apply(null,o);c&&s.push(c)}}else if(r==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){s.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&s.push(l)}}}return s.join(" ")}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(ht);var Ct=ht.exports;function wt({size:n,checked:t}){const e=Ct({"checkbox-container":!0,[`size-${n}`]:!0,checked:t}),i={20:"12",24:"16"}[n];return{checkboxStyles:e,iconSize:i}}class at extends x{static formAssociated=!0;static styles=xt;static shadowRootOptions={...x.shadowRootOptions,mode:"open"};static properties={name:{type:String},value:{type:String},size:{type:String},checked:{type:Boolean},text:{type:String}};constructor(){super(),this.name="",this.value="",this.size="20",this.checked=!1,this.text=""}onChange(){this.checked=!this.checked,this.value=this.checked,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}))}render(){const{size:t,checked:e}=this,{checkboxStyles:s,iconSize:i}=wt({size:t,checked:e}),o=this.disabled?()=>{}:this.onChange.bind(this);return D`
71
+ <div class="${s}" @click=${o} >
72
+ ${this.checked?D`<cas-icon name="flat-check" size=${i} ></cas-icon>`:""}
73
+ </div>
74
+ ${this.text?D`<cas-text variant="body1">${this.text}</cas-text>`:""}
75
+ `}}customElements.get("cas-checkbox")||customElements.define("cas-checkbox",at),A.CasCheckbox=at,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});