cas-ds-web-components 1.2.85 → 1.2.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cas-ds-web-components.js +4 -4
- package/build/cas-footer.js +11 -11
- package/build/cas-header.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(b,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(b=typeof globalThis<"u"?globalThis:b||self,J(b["all-components"]={}))})(this,function(b){"use strict";var Sv=Object.defineProperty;var Tv=(b,J,J1)=>J in b?Sv(b,J,{enumerable:!0,configurable:!0,writable:!0,value:J1}):b[J]=J1;var g=(b,J,J1)=>(Tv(b,typeof J!="symbol"?J+"":J,J1),J1);var I3,EC;(()=>{const i=document.createElement("link");i.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),i.setAttribute("rel","stylesheet"),document.head.appendChild(i)})();const Y5={name:"@eloisa-ds/all-components",version:"1.0.
|
|
1
|
+
(function(b,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(b=typeof globalThis<"u"?globalThis:b||self,J(b["all-components"]={}))})(this,function(b){"use strict";var Sv=Object.defineProperty;var Tv=(b,J,J1)=>J in b?Sv(b,J,{enumerable:!0,configurable:!0,writable:!0,value:J1}):b[J]=J1;var g=(b,J,J1)=>(Tv(b,typeof J!="symbol"?J+"":J,J1),J1);var I3,EC;(()=>{const i=document.createElement("link");i.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),i.setAttribute("rel","stylesheet"),document.head.appendChild(i)})();const Y5={name:"@eloisa-ds/all-components",version:"1.0.89",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -11888,7 +11888,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11888
11888
|
// img {
|
|
11889
11889
|
// filter: none;
|
|
11890
11890
|
// }
|
|
11891
|
-
`,C==null||C.appendChild(t)}else{const t=document.querySelector('[data-name="eloisa-ds-dark-mode"]');t==null||t.remove()}}handleEvents(){const C=o=>{this.setAttribute("darkMode",o.detail.isDark)},t=()=>{this.handleTheme({theme:"dark"})},e=()=>{this.handleTheme({theme:"light"})};document.addEventListener("themeChange",C),document.addEventListener("onDarkMode",t),document.addEventListener("onLightMode",e),setTimeout(()=>{const o=this.disableMode==="true";this.darkMode==="true"&&!o&&t(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(l){!localStorage.getItem("theme")&&!o&&(l.matches?t():e())})},1e3)}async handleAlert(){const C={type:"getAlert",showAlert:!
|
|
11891
|
+
`,C==null||C.appendChild(t)}else{const t=document.querySelector('[data-name="eloisa-ds-dark-mode"]');t==null||t.remove()}}handleEvents(){const C=o=>{this.setAttribute("darkMode",o.detail.isDark)},t=()=>{this.handleTheme({theme:"dark"})},e=()=>{this.handleTheme({theme:"light"})};document.addEventListener("themeChange",C),document.addEventListener("onDarkMode",t),document.addEventListener("onLightMode",e),setTimeout(()=>{const o=this.disableMode==="true";this.darkMode==="true"&&!o&&t(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(l){!localStorage.getItem("theme")&&!o&&(l.matches?t():e())})},1e3)}async handleAlert(){const C={type:"getAlert",showAlert:!1,alert:{Id:"3a2c0001-f74f-4004-bab2-d71ff5948d5e",LastModified:"2024-10-18T18:36:10Z",PublicationDate:"2024-06-13T19:31:49Z",DateCreated:"2022-11-07T21:01:31Z",IncludeInSitemap:!0,SystemSourceKey:null,UrlName:"alert-home",ItemDefaultUrl:"/alert-home",enabled:!0,endDate:"2024-10-22T03:57:00Z",Title:"Alert",Icono:"4",Contenido:'<div><div role="presentation" data-qa="message_content"><div data-qa="message-text"><div data-qa="block-kit-renderer"><div dir="auto"><p><strong>¡Importante!</strong> Debido a unas mejoras en nuestro sistema, este fin de semana (hasta el 20 de octubre) <strong>no se podrá reservar exámenes de imágenes </strong>desde nuestro sitio, ni de forma presencial o telefónica. Agradecemos tu comprensión. </p></div></div></div></div></div><div role="group"><div role="group" aria-label="Acciones en torno a un mensaje" data-qa="message-actions"></div></div><a href="https://www.google.com"></a>',startDate:"2024-10-17T13:14:07Z",Provider:"dynamicProvider121"}};{const{showAlert:t,alert:e}=C;if(t){if(console.log(e),!e||!e.enabled)return!1;let o=new Date,a=new Date(e==null?void 0:e.startDate),l=new Date(e==null?void 0:e.endDate);if(o>a&&o<l)this.showAlert=t,this.alert={title:e==null?void 0:e.Titulo,text:e==null?void 0:e.Contenido,active:e==null?void 0:e.enabled},console.log("Alerta activa"),this.delay(200).then(()=>this.handleSpaces());else return!1;this.requestUpdate()}}}async delay(C){return new Promise(t=>setTimeout(t,C))}async handleSpaces(){var a,l,h;const C=this.shadowRoot.querySelector("cas-header-taxonomy"),t=(a=this.shadowRoot.querySelector("cas-header-head"))==null?void 0:a.getClientRects()[0].height,e=(l=this.shadowRoot.querySelector("cas-header-pre-head"))==null?void 0:l.getClientRects()[0].height,o=(h=this.shadowRoot.querySelector("cas-header-taxonomy"))==null?void 0:h.getClientRects()[0].height;if(this.showAlert){const n=this.shadowRoot.querySelector("cas-alert");n==null||n.addEventListener("close",()=>{this.showAlert=!1,this.spaceHeight=t+e+o,C.style.top=`${t+e}px`,this.requestUpdate()});const r=n==null?void 0:n.getClientRects()[0].height;this.type!==s1.HOME?this.spaceHeight=t+r:(this.spaceHeight=t+e+o+r,C.style.top=`${t+e+r}px`)}else this.type!==s1.HOME?this.spaceHeight=t:(this.spaceHeight=t+e+o,C.style.top=`${t+e}px`);this.requestUpdate()}async firstUpdated(){const C=this.disableMode==="true",{theme:t}=Pp(this.darkMode);this.theme=C?"light":t,this.defaultDarkMode(),this.handleEvents(),await this.handleAlert(),await this.delay(200),this.handleSpaces()}render(){const{alert:C,type:t,bookingBox:e,theme:o}=this,a=e==="true";return M`
|
|
11892
11892
|
<header class="container ${this.type}" data-theme=${o} style="height: ${this.spaceHeight}px">
|
|
11893
11893
|
${this.showAlert?M`<cas-alert
|
|
11894
11894
|
showCloseButton
|
|
@@ -12172,7 +12172,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12172
12172
|
width: 100%;
|
|
12173
12173
|
}
|
|
12174
12174
|
}
|
|
12175
|
-
`,Wp=((EC=ZC[4])==null?void 0:EC.items)??[];function Yp(i){var C=document.createElement("div");return C.innerHTML=i,C.textContent||C.innerText||""}class B3 extends f{render(){if(this.variant==="phone")return M`<div class="wrapped" data-theme=${this.theme} variant=${this.variant}>
|
|
12175
|
+
`,Wp=((EC=ZC[4])==null?void 0:EC.items)??[];function Yp(i){var C=document.createElement("div");return C.innerHTML=i,C.textContent||C.innerText||""}class B3 extends f{handleYear(){return new Date().getFullYear()}render(){if(this.variant==="phone")return M`<div class="wrapped" data-theme=${this.theme} variant=${this.variant}>
|
|
12176
12176
|
<div class="inner-wrapped">
|
|
12177
12177
|
<a
|
|
12178
12178
|
class="logo"
|
|
@@ -12212,7 +12212,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12212
12212
|
<ul class="list-social">
|
|
12213
12213
|
${C}
|
|
12214
12214
|
</ul>
|
|
12215
|
-
<cas-text variant="caption2">©
|
|
12215
|
+
<cas-text variant="caption2">© ${this.handleYear()}, Clínica Alemana</cas-text>
|
|
12216
12216
|
</div>
|
|
12217
12217
|
</div>
|
|
12218
12218
|
`}}g(B3,"formAssociated",!0),g(B3,"styles",qp),g(B3,"shadowRootOptions",{...f.shadowRootOptions,mode:"open"}),g(B3,"properties",{theme:{type:String},variant:{type:String}});const VC={light:{color:"#FFFFFF",secondColor:"#FFFFFF"},dark:{color:"#FFFFFF",secondColor:"#FFFFFF"}},xC=({color:i})=>M`
|
package/build/cas-footer.js
CHANGED
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var yt;const rt=window,V=rt.trustedTypes,Zt=V?V.createPolicy("lit-html",{createHTML:o=>o}):void 0,xt="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,qt=/"/g,
|
|
13
|
+
*/var yt;const rt=window,V=rt.trustedTypes,Zt=V?V.createPolicy("lit-html",{createHTML:o=>o}):void 0,xt="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,Dt="?"+w,Le=`<${Dt}>`,E=document,lt=()=>E.createComment(""),Y=o=>o===null||typeof o!="object"&&typeof o!="function",jt=Array.isArray,ke=o=>jt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",wt=`[
|
|
14
|
+
\f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,zt=/>/g,N=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,qt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Re=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),Ue=Re(1),K=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Jt=new WeakMap,M=E.createTreeWalker(E,129,null,!1);function Kt(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zt!==void 0?Zt.createHTML(t):t}const Ve=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=J;for(let h=0;h<e;h++){const l=o[h];let a,d,c=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===J?d[1]==="!--"?n=Bt:d[1]!==void 0?n=zt:d[2]!==void 0?(Yt.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=N):d[3]!==void 0&&(n=N):n===N?d[0]===">"?(n=s??J,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,a=d[1],n=d[3]===void 0?N:d[3]==='"'?qt:Wt):n===qt||n===Wt?n=N:n===Bt||n===zt?n=J:(n=N,s=void 0);const u=n===N&&o[h+1].startsWith("/>")?" ":"";r+=n===J?l+Le:c>=0?(i.push(a),l.slice(0,c)+xt+l.slice(c)+w+u):l+w+(c===-2?(i.push(void 0),h):u)}return[Kt(o,r+(o[e]||"<?>")+(t===2?"</svg>":"")),i]};let bt=class He{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const h=t.length-1,l=this.parts,[a,d]=Ve(t,e);if(this.el=He.createElement(a,i),M.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(s=M.nextNode())!==null&&l.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const p of s.getAttributeNames())if(p.endsWith(xt)||p.startsWith(w)){const u=d[n++];if(c.push(p),u!==void 0){const S=s.getAttribute(u.toLowerCase()+xt).split(w),A=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:A[2],strings:S,ctor:A[1]==="."?Oe:A[1]==="?"?Ie:A[1]==="@"?Ze:at})}else l.push({type:6,index:r})}for(const p of c)s.removeAttribute(p)}if(Yt.test(s.tagName)){const c=s.textContent.split(w),p=c.length-1;if(p>0){s.textContent=V?V.emptyScript:"";for(let u=0;u<p;u++)s.append(c[u],lt()),M.nextNode(),l.push({type:2,index:++r});s.append(c[p],lt())}}}else if(s.nodeType===8)if(s.data===Dt)l.push({type:2,index:r});else{let c=-1;for(;(c=s.data.indexOf(w,c+1))!==-1;)l.push({type:7,index:r}),c+=w.length-1}r++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}};function P(o,t,e=o,i){var s,r,n,h;if(t===K)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const a=Y(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==a&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(o),l._$AT(o,e,i)),i!==void 0?((n=(h=e)._$Co)!==null&&n!==void 0?n:h._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=P(o,l._$AS(o,t.values),l,i)),t}let Pe=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:E).importNode(i,!0);M.currentNode=r;let n=M.nextNode(),h=0,l=0,a=s[0];for(;a!==void 0;){if(h===a.index){let d;a.type===2?d=new Gt(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new De(n,this,t)),this._$AV.push(d),a=s[++l]}h!==(a==null?void 0:a.index)&&(n=M.nextNode(),h++)}return M.currentNode=E,r}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Gt=class Se{constructor(t,e,i,s){var r;this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),Y(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==K&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ke(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==m&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=bt.createElement(Kt(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(i);else{const n=new Pe(r,this),h=n.u(this.options);n.v(i),this.$(h),this._$AH=n}}_$AC(t){let e=Jt.get(t.strings);return e===void 0&&Jt.set(t.strings,e=new bt(t)),e}T(t){jt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new Se(this.k(lt()),this.k(lt()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},at=class{constructor(t,e,i,s,r){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=m}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=P(this,t,e,0),n=!Y(t)||t!==this._$AH&&t!==K,n&&(this._$AH=t);else{const h=t;let l,a;for(t=r[0],l=0;l<r.length-1;l++)a=P(this,h[i+l],e,l),a===K&&(a=this._$AH[l]),n||(n=!Y(a)||a!==this._$AH[l]),a===m?t=m:t!==m&&(t+=(a??"")+r[l+1]),this._$AH[l]=a}n&&!s&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Oe=class extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}};const Fe=V?V.emptyScript:"";let Ie=class extends at{constructor(){super(...arguments),this.type=4}j(t){t&&t!==m?this.element.setAttribute(this.name,Fe):this.element.removeAttribute(this.name)}},Ze=class extends at{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=P(this,t,e,0))!==null&&i!==void 0?i:m)===K)return;const s=this._$AH,r=t===m&&s!==m||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==m&&(s===m||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},De=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}};const Qt=rt.litHtmlPolyfillSupport;Qt==null||Qt(bt,Gt),((yt=rt.litHtmlVersions)!==null&&yt!==void 0?yt:rt.litHtmlVersions=[]).push("2.8.0");/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/var Ht;const ct=window,O=ct.trustedTypes,Xt=O?O.createPolicy("lit-html",{createHTML:o=>o}):void 0,St="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,te="?"+b,
|
|
19
|
+
*/var Ht;const ct=window,O=ct.trustedTypes,Xt=O?O.createPolicy("lit-html",{createHTML:o=>o}):void 0,St="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,te="?"+b,je=`<${te}>`,T=document,G=()=>T.createComment(""),Q=o=>o===null||typeof o!="object"&&typeof o!="function",ee=Array.isArray,Be=o=>ee(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Et=`[
|
|
20
20
|
\f\r]`,X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ie=/-->/g,se=/>/g,L=RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
|
|
21
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ne=/'/g,oe=/"/g,re=/^(?:script|style|textarea|title)$/i,F=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),le=new WeakMap,k=T.createTreeWalker(T,129,null,!1);function ae(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xt!==void 0?Xt.createHTML(t):t}const ze=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=X;for(let h=0;h<e;h++){const l=o[h];let a,d,c=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===X?d[1]==="!--"?n=ie:d[1]!==void 0?n=se:d[2]!==void 0?(re.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=L):d[3]!==void 0&&(n=L):n===L?d[0]===">"?(n=s??X,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,a=d[1],n=d[3]===void 0?L:d[3]==='"'?oe:ne):n===oe||n===ne?n=L:n===ie||n===se?n=X:(n=L,s=void 0);const u=n===L&&o[h+1].startsWith("/>")?" ":"";r+=n===X?l+
|
|
21
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ne=/'/g,oe=/"/g,re=/^(?:script|style|textarea|title)$/i,F=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),le=new WeakMap,k=T.createTreeWalker(T,129,null,!1);function ae(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xt!==void 0?Xt.createHTML(t):t}const ze=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=X;for(let h=0;h<e;h++){const l=o[h];let a,d,c=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===X?d[1]==="!--"?n=ie:d[1]!==void 0?n=se:d[2]!==void 0?(re.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=L):d[3]!==void 0&&(n=L):n===L?d[0]===">"?(n=s??X,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,a=d[1],n=d[3]===void 0?L:d[3]==='"'?oe:ne):n===oe||n===ne?n=L:n===ie||n===se?n=X:(n=L,s=void 0);const u=n===L&&o[h+1].startsWith("/>")?" ":"";r+=n===X?l+je:c>=0?(i.push(a),l.slice(0,c)+St+l.slice(c)+b+u):l+b+(c===-2?(i.push(void 0),h):u)}return[ae(o,r+(o[e]||"<?>")+(t===2?"</svg>":"")),i]};let Nt=class Ee{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const h=t.length-1,l=this.parts,[a,d]=ze(t,e);if(this.el=Ee.createElement(a,i),k.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(s=k.nextNode())!==null&&l.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const p of s.getAttributeNames())if(p.endsWith(St)||p.startsWith(b)){const u=d[n++];if(c.push(p),u!==void 0){const S=s.getAttribute(u.toLowerCase()+St).split(b),A=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:A[2],strings:S,ctor:A[1]==="."?qe:A[1]==="?"?Je:A[1]==="@"?Ke:ht})}else l.push({type:6,index:r})}for(const p of c)s.removeAttribute(p)}if(re.test(s.tagName)){const c=s.textContent.split(b),p=c.length-1;if(p>0){s.textContent=O?O.emptyScript:"";for(let u=0;u<p;u++)s.append(c[u],G()),k.nextNode(),l.push({type:2,index:++r});s.append(c[p],G())}}}else if(s.nodeType===8)if(s.data===te)l.push({type:2,index:r});else{let c=-1;for(;(c=s.data.indexOf(b,c+1))!==-1;)l.push({type:7,index:r}),c+=b.length-1}r++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}};function I(o,t,e=o,i){var s,r,n,h;if(t===F)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const a=Q(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==a&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(o),l._$AT(o,e,i)),i!==void 0?((n=(h=e)._$Co)!==null&&n!==void 0?n:h._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=I(o,l._$AS(o,t.values),l,i)),t}let We=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:T).importNode(i,!0);k.currentNode=r;let n=k.nextNode(),h=0,l=0,a=s[0];for(;a!==void 0;){if(h===a.index){let d;a.type===2?d=new Mt(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new Ge(n,this,t)),this._$AV.push(d),a=s[++l]}h!==(a==null?void 0:a.index)&&(n=k.nextNode(),h++)}return k.currentNode=T,r}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Mt=class Ne{constructor(t,e,i,s){var r;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),Q(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Be(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==v&&Q(this._$AH)?this._$AA.nextSibling.data=t:this.$(T.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Nt.createElement(ae(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(i);else{const n=new We(r,this),h=n.u(this.options);n.v(i),this.$(h),this._$AH=n}}_$AC(t){let e=le.get(t.strings);return e===void 0&&le.set(t.strings,e=new Nt(t)),e}T(t){ee(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new Ne(this.k(G()),this.k(G()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},ht=class{constructor(t,e,i,s,r){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=v}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=I(this,t,e,0),n=!Q(t)||t!==this._$AH&&t!==F,n&&(this._$AH=t);else{const h=t;let l,a;for(t=r[0],l=0;l<r.length-1;l++)a=I(this,h[i+l],e,l),a===F&&(a=this._$AH[l]),n||(n=!Q(a)||a!==this._$AH[l]),a===v?t=v:t!==v&&(t+=(a??"")+r[l+1]),this._$AH[l]=a}n&&!s&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},qe=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}};const Ye=O?O.emptyScript:"";let Je=class extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==v?this.element.setAttribute(this.name,Ye):this.element.removeAttribute(this.name)}};class Ke extends ht{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=I(this,t,e,0))!==null&&i!==void 0?i:v)===F)return;const s=this._$AH,r=t===v&&s!==v||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==v&&(s===v||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}let Ge=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}};const ce=ct.litHtmlPolyfillSupport;ce==null||ce(Nt,Mt),((Ht=ct.litHtmlVersions)!==null&&Ht!==void 0?Ht:ct.litHtmlVersions=[]).push("2.8.0");const Qe=(o,t,e)=>{var i,s;const r=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=r._$litPart$;if(n===void 0){const h=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new Mt(t.insertBefore(G(),h),h,void 0,e??{})}return n._$AI(o),n};/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/var Tt,Lt;let y=class extends U{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=
|
|
25
|
+
*/var Tt,Lt;let y=class extends U{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=Qe(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 F}};y.finalized=!0,y._$litElement$=!0,(Tt=globalThis.litElementHydrateSupport)===null||Tt===void 0||Tt.call(globalThis,{LitElement:y});const he=globalThis.litElementPolyfillSupport;he==null||he({LitElement:y}),((Lt=globalThis.litElementVersions)!==null&&Lt!==void 0?Lt:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2020 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -167,11 +167,11 @@
|
|
|
167
167
|
* @license
|
|
168
168
|
* Copyright 2017 Google LLC
|
|
169
169
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
170
|
-
*/var kt;const pt=window,Z=pt.trustedTypes,ue=Z?Z.createPolicy("lit-html",{createHTML:o=>o}):void 0,H=`lit$${(Math.random()+"").slice(9)}$`,$e="?"+H,oi=`<${$e}>`,
|
|
170
|
+
*/var kt;const pt=window,Z=pt.trustedTypes,ue=Z?Z.createPolicy("lit-html",{createHTML:o=>o}):void 0,H=`lit$${(Math.random()+"").slice(9)}$`,$e="?"+H,oi=`<${$e}>`,D=document,ut=(o="")=>D.createComment(o),tt=o=>o===null||typeof o!="object"&&typeof o!="function",me=Array.isArray,ri=o=>me(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ve=/-->/g,_e=/>/g,R=RegExp(`>|[
|
|
171
171
|
\f\r](?:([^\\s"'>=/]+)([
|
|
172
172
|
\f\r]*=[
|
|
173
173
|
\f\r]*(?:[^
|
|
174
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ae=/'/g,ge=/"/g,fe=/^(?:script|style|textarea|title)$/i,
|
|
174
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ae=/'/g,ge=/"/g,fe=/^(?:script|style|textarea|title)$/i,j=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Ce=new WeakMap,B=D.createTreeWalker(D,129,null,!1),li=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=et;for(let l=0;l<e;l++){const a=o[l];let d,c,p=-1,u=0;for(;u<a.length&&(n.lastIndex=u,c=n.exec(a),c!==null);)u=n.lastIndex,n===et?c[1]==="!--"?n=ve:c[1]!==void 0?n=_e:c[2]!==void 0?(fe.test(c[2])&&(s=RegExp("</"+c[2],"g")),n=R):c[3]!==void 0&&(n=R):n===R?c[0]===">"?(n=s??et,p=-1):c[1]===void 0?p=-2:(p=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?R:c[3]==='"'?ge:Ae):n===ge||n===Ae?n=R:n===ve||n===_e?n=et:(n=R,s=void 0);const S=n===R&&o[l+1].startsWith("/>")?" ":"";r+=n===et?a+oi:p>=0?(i.push(d),a.slice(0,p)+"$lit$"+a.slice(p)+H+S):a+H+(p===-2?(i.push(void 0),l):S)}const h=r+(o[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ue!==void 0?ue.createHTML(h):h,i]};class it{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const h=t.length-1,l=this.parts,[a,d]=li(t,e);if(this.el=it.createElement(a,i),B.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(s=B.nextNode())!==null&&l.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const p of s.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(H)){const u=d[n++];if(c.push(p),u!==void 0){const S=s.getAttribute(u.toLowerCase()+"$lit$").split(H),A=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:A[2],strings:S,ctor:A[1]==="."?ci:A[1]==="?"?di:A[1]==="@"?pi:mt})}else l.push({type:6,index:r})}for(const p of c)s.removeAttribute(p)}if(fe.test(s.tagName)){const c=s.textContent.split(H),p=c.length-1;if(p>0){s.textContent=Z?Z.emptyScript:"";for(let u=0;u<p;u++)s.append(c[u],ut()),B.nextNode(),l.push({type:2,index:++r});s.append(c[p],ut())}}}else if(s.nodeType===8)if(s.data===$e)l.push({type:2,index:r});else{let c=-1;for(;(c=s.data.indexOf(H,c+1))!==-1;)l.push({type:7,index:r}),c+=H.length-1}r++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function z(o,t,e=o,i){var s,r,n,h;if(t===j)return t;let l=i!==void 0?(s=e._$Cl)===null||s===void 0?void 0:s[i]:e._$Cu;const a=tt(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==a&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(o),l._$AT(o,e,i)),i!==void 0?((n=(h=e)._$Cl)!==null&&n!==void 0?n:h._$Cl=[])[i]=l:e._$Cu=l),l!==void 0&&(t=z(o,l._$AS(o,t.values),l,i)),t}class ai{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:D).importNode(i,!0);B.currentNode=r;let n=B.nextNode(),h=0,l=0,a=s[0];for(;a!==void 0;){if(h===a.index){let d;a.type===2?d=new $t(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new ui(n,this,t)),this.v.push(d),a=s[++l]}h!==(a==null?void 0:a.index)&&(n=B.nextNode(),h++)}return r}m(t){let e=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class $t{constructor(t,e,i,s){var r;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$C_=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=z(this,t,e),tt(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==j&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.k(t):ri(t)?this.O(t):this.$(t)}S(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==$&&tt(this._$AH)?this._$AA.nextSibling.data=t:this.k(D.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=it.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.m(i);else{const n=new ai(r,this),h=n.p(this.options);n.m(i),this.k(h),this._$AH=n}}_$AC(t){let e=Ce.get(t.strings);return e===void 0&&Ce.set(t.strings,e=new it(t)),e}O(t){me(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new $t(this.S(ut()),this.S(ut()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$C_=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class mt{constructor(t,e,i,s,r){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=z(this,t,e,0),n=!tt(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const h=t;let l,a;for(t=r[0],l=0;l<r.length-1;l++)a=z(this,h[i+l],e,l),a===j&&(a=this._$AH[l]),n||(n=!tt(a)||a!==this._$AH[l]),a===$?t=$:t!==$&&(t+=(a??"")+r[l+1]),this._$AH[l]=a}n&&!s&&this.P(t)}P(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ci extends mt{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===$?void 0:t}}const hi=Z?Z.emptyScript:"";class di extends mt{constructor(){super(...arguments),this.type=4}P(t){t&&t!==$?this.element.setAttribute(this.name,hi):this.element.removeAttribute(this.name)}}class pi extends mt{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=z(this,t,e,0))!==null&&i!==void 0?i:$)===j)return;const s=this._$AH,r=t===$&&s!==$||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==$&&(s===$||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class ui{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}}const ye=pt.litHtmlPolyfillSupport;ye==null||ye(it,$t),((kt=pt.litHtmlVersions)!==null&&kt!==void 0?kt:pt.litHtmlVersions=[]).push("2.3.1");/**
|
|
175
175
|
* @license
|
|
176
176
|
* Copyright 2017 Google LLC
|
|
177
177
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
* @license
|
|
180
180
|
* Copyright 2017 Google LLC
|
|
181
181
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
182
|
-
*/class Rt extends vi{constructor(t){if(super(t),this.it=$,t.type!==$i.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this._t=void 0,this.it=t;if(t===
|
|
182
|
+
*/class Rt extends vi{constructor(t){if(super(t),this.it=$,t.type!==$i.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this._t=void 0,this.it=t;if(t===j)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Rt.directiveName="unsafeHTML",Rt.resultType=1;const _i=mi(Rt);class st extends y{constructor(){super()}updated(){const t=this.shadowRoot.querySelectorAll("section");t.forEach(e=>{const i=e.querySelector(".top"),s=e.querySelector(".list");i.addEventListener("click",()=>{t.forEach(r=>{r.querySelector(".list").classList.remove("active"),r.querySelector("cas-icon").classList.remove("active")}),s.classList.toggle("active"),i.querySelector("cas-icon").classList.toggle("active")})})}render(){const t=e=>{const{section:i,items:s}=e;return C`<section>
|
|
183
183
|
<div class="top">
|
|
184
184
|
<cas-text variant="headline3">${i}</cas-text>
|
|
185
185
|
<cas-icon name="flat-chevronDown" size="20"></cas-icon>
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
width: 100%;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
`,gi=((be=pe[4])==null?void 0:be.items)??[];function fi(o){var t=document.createElement("div");return t.innerHTML=o,t.textContent||t.innerText||""}class nt extends y{render(){if(this.variant==="phone")return C`<div class="wrapped" data-theme=${this.theme} variant=${this.variant}>
|
|
290
|
+
`,gi=((be=pe[4])==null?void 0:be.items)??[];function fi(o){var t=document.createElement("div");return t.innerHTML=o,t.textContent||t.innerText||""}class nt extends y{handleYear(){return new Date().getFullYear()}render(){if(this.variant==="phone")return C`<div class="wrapped" data-theme=${this.theme} variant=${this.variant}>
|
|
291
291
|
<div class="inner-wrapped">
|
|
292
292
|
<a
|
|
293
293
|
class="logo"
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
<ul class="list-social">
|
|
328
328
|
${t}
|
|
329
329
|
</ul>
|
|
330
|
-
<cas-text variant="caption2">©
|
|
330
|
+
<cas-text variant="caption2">© ${this.handleYear()}, Clínica Alemana</cas-text>
|
|
331
331
|
</div>
|
|
332
332
|
</div>
|
|
333
333
|
`}}g(nt,"formAssociated",!0),g(nt,"styles",Ai),g(nt,"shadowRootOptions",{...y.shadowRootOptions,mode:"open"}),g(nt,"properties",{theme:{type:String},variant:{type:String}});const xe={light:{color:"#FFFFFF",secondColor:"#FFFFFF"},dark:{color:"#FFFFFF",secondColor:"#FFFFFF"}},we=({color:o})=>C`
|
package/build/cas-header.js
CHANGED
|
@@ -11888,7 +11888,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11888
11888
|
// img {
|
|
11889
11889
|
// filter: none;
|
|
11890
11890
|
// }
|
|
11891
|
-
`,C==null||C.appendChild(t)}else{const t=document.querySelector('[data-name="eloisa-ds-dark-mode"]');t==null||t.remove()}}handleEvents(){const C=i=>{this.setAttribute("darkMode",i.detail.isDark)},t=()=>{this.handleTheme({theme:"dark"})},e=()=>{this.handleTheme({theme:"light"})};document.addEventListener("themeChange",C),document.addEventListener("onDarkMode",t),document.addEventListener("onLightMode",e),setTimeout(()=>{const i=this.disableMode==="true";this.darkMode==="true"&&!i&&t(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(a){!localStorage.getItem("theme")&&!i&&(a.matches?t():e())})},1e3)}async handleAlert(){const C={type:"getAlert",showAlert:!
|
|
11891
|
+
`,C==null||C.appendChild(t)}else{const t=document.querySelector('[data-name="eloisa-ds-dark-mode"]');t==null||t.remove()}}handleEvents(){const C=i=>{this.setAttribute("darkMode",i.detail.isDark)},t=()=>{this.handleTheme({theme:"dark"})},e=()=>{this.handleTheme({theme:"light"})};document.addEventListener("themeChange",C),document.addEventListener("onDarkMode",t),document.addEventListener("onLightMode",e),setTimeout(()=>{const i=this.disableMode==="true";this.darkMode==="true"&&!i&&t(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(a){!localStorage.getItem("theme")&&!i&&(a.matches?t():e())})},1e3)}async handleAlert(){const C={type:"getAlert",showAlert:!1,alert:{Id:"3a2c0001-f74f-4004-bab2-d71ff5948d5e",LastModified:"2024-10-18T18:36:10Z",PublicationDate:"2024-06-13T19:31:49Z",DateCreated:"2022-11-07T21:01:31Z",IncludeInSitemap:!0,SystemSourceKey:null,UrlName:"alert-home",ItemDefaultUrl:"/alert-home",enabled:!0,endDate:"2024-10-22T03:57:00Z",Title:"Alert",Icono:"4",Contenido:'<div><div role="presentation" data-qa="message_content"><div data-qa="message-text"><div data-qa="block-kit-renderer"><div dir="auto"><p><strong>¡Importante!</strong> Debido a unas mejoras en nuestro sistema, este fin de semana (hasta el 20 de octubre) <strong>no se podrá reservar exámenes de imágenes </strong>desde nuestro sitio, ni de forma presencial o telefónica. Agradecemos tu comprensión. </p></div></div></div></div></div><div role="group"><div role="group" aria-label="Acciones en torno a un mensaje" data-qa="message-actions"></div></div><a href="https://www.google.com"></a>',startDate:"2024-10-17T13:14:07Z",Provider:"dynamicProvider121"}};{const{showAlert:t,alert:e}=C;if(t){if(console.log(e),!e||!e.enabled)return!1;let i=new Date,l=new Date(e==null?void 0:e.startDate),a=new Date(e==null?void 0:e.endDate);if(i>l&&i<a)this.showAlert=t,this.alert={title:e==null?void 0:e.Titulo,text:e==null?void 0:e.Contenido,active:e==null?void 0:e.enabled},console.log("Alerta activa"),this.delay(200).then(()=>this.handleSpaces());else return!1;this.requestUpdate()}}}async delay(C){return new Promise(t=>setTimeout(t,C))}async handleSpaces(){var l,a,n;const C=this.shadowRoot.querySelector("cas-header-taxonomy"),t=(l=this.shadowRoot.querySelector("cas-header-head"))==null?void 0:l.getClientRects()[0].height,e=(a=this.shadowRoot.querySelector("cas-header-pre-head"))==null?void 0:a.getClientRects()[0].height,i=(n=this.shadowRoot.querySelector("cas-header-taxonomy"))==null?void 0:n.getClientRects()[0].height;if(this.showAlert){const h=this.shadowRoot.querySelector("cas-alert");h==null||h.addEventListener("close",()=>{this.showAlert=!1,this.spaceHeight=t+e+i,C.style.top=`${t+e}px`,this.requestUpdate()});const r=h==null?void 0:h.getClientRects()[0].height;this.type!==G.HOME?this.spaceHeight=t+r:(this.spaceHeight=t+e+i+r,C.style.top=`${t+e+r}px`)}else this.type!==G.HOME?this.spaceHeight=t:(this.spaceHeight=t+e+i,C.style.top=`${t+e}px`);this.requestUpdate()}async firstUpdated(){const C=this.disableMode==="true",{theme:t}=jc(this.darkMode);this.theme=C?"light":t,this.defaultDarkMode(),this.handleEvents(),await this.handleAlert(),await this.delay(200),this.handleSpaces()}render(){const{alert:C,type:t,bookingBox:e,theme:i}=this,l=e==="true";return u`
|
|
11892
11892
|
<header class="container ${this.type}" data-theme=${i} style="height: ${this.spaceHeight}px">
|
|
11893
11893
|
${this.showAlert?u`<cas-alert
|
|
11894
11894
|
showCloseButton
|