cas-ds-web-components 1.2.48 → 1.2.49

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.
@@ -10,11 +10,11 @@
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var L;const R=window,x=R.trustedTypes,Y=x?x.createPolicy("lit-html",{createHTML:s=>s}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,G="?"+b,bt=`<${G}>`,y=document,E=(s="")=>y.createComment(s),S=s=>s===null||typeof s!="object"&&typeof s!="function",tt=Array.isArray,ft=s=>tt(s)||typeof s?.[Symbol.iterator]=="function",C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,it=/>/g,f=RegExp(`>|[
13
+ */var L;const M=window,x=M.trustedTypes,Y=x?x.createPolicy("lit-html",{createHTML:s=>s}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,G="?"+b,bt=`<${G}>`,y=document,E=(s="")=>y.createComment(s),S=s=>s===null||typeof s!="object"&&typeof s!="function",tt=Array.isArray,ft=s=>tt(s)||typeof s?.[Symbol.iterator]=="function",C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,it=/>/g,f=RegExp(`>|[
14
14
  \f\r](?:([^\\s"'>=/]+)([
15
15
  \f\r]*=[
16
16
  \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,st=/"/g,nt=/^(?:script|style|textarea|title)$/i,$t=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),gt=$t(1),$=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),at=new WeakMap,_=y.createTreeWalker(y,129,null,!1),At=(s,t)=>{const e=s.length-1,i=[];let o,n=t===2?"<svg>":"",a=C;for(let r=0;r<e;r++){const l=s[r];let u,d,c=-1,m=0;for(;m<l.length&&(a.lastIndex=m,d=a.exec(l),d!==null);)m=a.lastIndex,a===C?d[1]==="!--"?a=et:d[1]!==void 0?a=it:d[2]!==void 0?(nt.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=f):d[3]!==void 0&&(a=f):a===f?d[0]===">"?(a=o??C,c=-1):d[1]===void 0?c=-2:(c=a.lastIndex-d[2].length,u=d[1],a=d[3]===void 0?f:d[3]==='"'?st:ot):a===st||a===ot?a=f:a===et||a===it?a=C:(a=f,o=void 0);const H=a===f&&s[r+1].startsWith("/>")?" ":"";n+=a===C?l+bt:c>=0?(i.push(u),l.slice(0,c)+"$lit$"+l.slice(c)+b+H):l+b+(c===-2?(i.push(void 0),r):H)}const h=n+(s[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Y!==void 0?Y.createHTML(h):h,i]};class T{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,a=0;const h=t.length-1,r=this.parts,[l,u]=At(t,e);if(this.el=T.createElement(l,i),_.currentNode=this.el.content,e===2){const d=this.el.content,c=d.firstChild;c.remove(),d.append(...c.childNodes)}for(;(o=_.nextNode())!==null&&r.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const c of o.getAttributeNames())if(c.endsWith("$lit$")||c.startsWith(b)){const m=u[a++];if(d.push(c),m!==void 0){const H=o.getAttribute(m.toLowerCase()+"$lit$").split(b),O=/([.?@])?(.*)/.exec(m);r.push({type:1,index:n,name:O[2],strings:H,ctor:O[1]==="."?yt:O[1]==="?"?wt:O[1]==="@"?kt:M})}else r.push({type:6,index:n})}for(const c of d)o.removeAttribute(c)}if(nt.test(o.tagName)){const d=o.textContent.split(b),c=d.length-1;if(c>0){o.textContent=x?x.emptyScript:"";for(let m=0;m<c;m++)o.append(d[m],E()),_.nextNode(),r.push({type:2,index:++n});o.append(d[c],E())}}}else if(o.nodeType===8)if(o.data===G)r.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf(b,d+1))!==-1;)r.push({type:7,index:n}),d+=b.length-1}n++}}static createElement(t,e){const i=y.createElement("template");return i.innerHTML=t,i}}function w(s,t,e=s,i){var o,n,a,h;if(t===$)return t;let r=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 r?.constructor!==l&&((n=r?._$AO)===null||n===void 0||n.call(r,!1),l===void 0?r=void 0:(r=new l(s),r._$AT(s,e,i)),i!==void 0?((a=(h=e)._$Co)!==null&&a!==void 0?a:h._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=w(s,r._$AS(s,t.values),r,i)),t}class xt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=((e=t?.creationScope)!==null&&e!==void 0?e:y).importNode(i,!0);_.currentNode=n;let a=_.nextNode(),h=0,r=0,l=o[0];for(;l!==void 0;){if(h===l.index){let u;l.type===2?u=new P(a,a.nextSibling,this,t):l.type===1?u=new l.ctor(a,l.name,l.strings,this,t):l.type===6&&(u=new Et(a,this,t)),this.u.push(u),l=o[++r]}h!==l?.index&&(a=_.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):ft(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==p&&S(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=T.createElement(o.h,this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.p(i);else{const a=new xt(n,this),h=a.v(this.options);a.p(i),this.T(h),this._$AH=a}}_$AC(t){let e=at.get(t.strings);return e===void 0&&at.set(t.strings,e=new T(t)),e}k(t){tt(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(E()),this.O(E()),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 M{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 a=!1;if(n===void 0)t=w(this,t,e,0),a=!S(t)||t!==this._$AH&&t!==$,a&&(this._$AH=t);else{const h=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=w(this,h[i+r],e,r),l===$&&(l=this._$AH[r]),a||(a=!S(l)||l!==this._$AH[r]),l===p?t=p:t!==p&&(t+=(l??"")+n[r+1]),this._$AH[r]=l}a&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class yt extends M{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}const _t=x?x.emptyScript:"";class wt extends M{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,_t):this.element.removeAttribute(this.name)}}class kt extends M{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,a=t!==p&&(o===p||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class Et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){w(this,t)}}const rt=R.litHtmlPolyfillSupport;rt?.(T,P),((L=R.litHtmlVersions)!==null&&L!==void 0?L:R.litHtmlVersions=[]).push("2.4.0");const St=(s,t,e)=>{var i,o;const n=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let a=n._$litPart$;if(a===void 0){const h=(o=e?.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=a=new P(t.insertBefore(E(),h),h,void 0,e??{})}return a._$AI(s),a};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,st=/"/g,nt=/^(?:script|style|textarea|title)$/i,$t=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),gt=$t(1),$=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),at=new WeakMap,_=y.createTreeWalker(y,129,null,!1),At=(s,t)=>{const e=s.length-1,i=[];let o,n=t===2?"<svg>":"",a=C;for(let r=0;r<e;r++){const l=s[r];let u,d,c=-1,m=0;for(;m<l.length&&(a.lastIndex=m,d=a.exec(l),d!==null);)m=a.lastIndex,a===C?d[1]==="!--"?a=et:d[1]!==void 0?a=it:d[2]!==void 0?(nt.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=f):d[3]!==void 0&&(a=f):a===f?d[0]===">"?(a=o??C,c=-1):d[1]===void 0?c=-2:(c=a.lastIndex-d[2].length,u=d[1],a=d[3]===void 0?f:d[3]==='"'?st:ot):a===st||a===ot?a=f:a===et||a===it?a=C:(a=f,o=void 0);const H=a===f&&s[r+1].startsWith("/>")?" ":"";n+=a===C?l+bt:c>=0?(i.push(u),l.slice(0,c)+"$lit$"+l.slice(c)+b+H):l+b+(c===-2?(i.push(void 0),r):H)}const h=n+(s[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Y!==void 0?Y.createHTML(h):h,i]};class T{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,a=0;const h=t.length-1,r=this.parts,[l,u]=At(t,e);if(this.el=T.createElement(l,i),_.currentNode=this.el.content,e===2){const d=this.el.content,c=d.firstChild;c.remove(),d.append(...c.childNodes)}for(;(o=_.nextNode())!==null&&r.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const c of o.getAttributeNames())if(c.endsWith("$lit$")||c.startsWith(b)){const m=u[a++];if(d.push(c),m!==void 0){const H=o.getAttribute(m.toLowerCase()+"$lit$").split(b),O=/([.?@])?(.*)/.exec(m);r.push({type:1,index:n,name:O[2],strings:H,ctor:O[1]==="."?yt:O[1]==="?"?wt:O[1]==="@"?kt:R})}else r.push({type:6,index:n})}for(const c of d)o.removeAttribute(c)}if(nt.test(o.tagName)){const d=o.textContent.split(b),c=d.length-1;if(c>0){o.textContent=x?x.emptyScript:"";for(let m=0;m<c;m++)o.append(d[m],E()),_.nextNode(),r.push({type:2,index:++n});o.append(d[c],E())}}}else if(o.nodeType===8)if(o.data===G)r.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf(b,d+1))!==-1;)r.push({type:7,index:n}),d+=b.length-1}n++}}static createElement(t,e){const i=y.createElement("template");return i.innerHTML=t,i}}function w(s,t,e=s,i){var o,n,a,h;if(t===$)return t;let r=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 r?.constructor!==l&&((n=r?._$AO)===null||n===void 0||n.call(r,!1),l===void 0?r=void 0:(r=new l(s),r._$AT(s,e,i)),i!==void 0?((a=(h=e)._$Co)!==null&&a!==void 0?a:h._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=w(s,r._$AS(s,t.values),r,i)),t}class xt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=((e=t?.creationScope)!==null&&e!==void 0?e:y).importNode(i,!0);_.currentNode=n;let a=_.nextNode(),h=0,r=0,l=o[0];for(;l!==void 0;){if(h===l.index){let u;l.type===2?u=new P(a,a.nextSibling,this,t):l.type===1?u=new l.ctor(a,l.name,l.strings,this,t):l.type===6&&(u=new Et(a,this,t)),this.u.push(u),l=o[++r]}h!==l?.index&&(a=_.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):ft(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==p&&S(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=T.createElement(o.h,this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.p(i);else{const a=new xt(n,this),h=a.v(this.options);a.p(i),this.T(h),this._$AH=a}}_$AC(t){let e=at.get(t.strings);return e===void 0&&at.set(t.strings,e=new T(t)),e}k(t){tt(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(E()),this.O(E()),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 a=!1;if(n===void 0)t=w(this,t,e,0),a=!S(t)||t!==this._$AH&&t!==$,a&&(this._$AH=t);else{const h=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=w(this,h[i+r],e,r),l===$&&(l=this._$AH[r]),a||(a=!S(l)||l!==this._$AH[r]),l===p?t=p:t!==p&&(t+=(l??"")+n[r+1]),this._$AH[r]=l}a&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class yt extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}const _t=x?x.emptyScript:"";class wt 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 kt 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,a=t!==p&&(o===p||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class Et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){w(this,t)}}const rt=M.litHtmlPolyfillSupport;rt?.(T,P),((L=M.litHtmlVersions)!==null&&L!==void 0?L:M.litHtmlVersions=[]).push("2.4.0");const St=(s,t,e)=>{var i,o;const n=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let a=n._$litPart$;if(a===void 0){const h=(o=e?.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=a=new P(t.insertBefore(E(),h),h,void 0,e??{})}return a._$AI(s),a};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -260,11 +260,11 @@
260
260
  * @license
261
261
  * Copyright 2017 Google LLC
262
262
  * SPDX-License-Identifier: BSD-3-Clause
263
- */const Rt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Mt=s=>(...t)=>({_$litDirective$:s,values:t});class Ht{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
263
+ */const Mt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Rt=s=>(...t)=>({_$litDirective$:s,values:t});class Ht{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
264
264
  * @license
265
265
  * Copyright 2018 Google LLC
266
266
  * SPDX-License-Identifier: BSD-3-Clause
267
- */const ht=Mt(class extends Ht{constructor(s){var t;if(super(s),s.type!==Rt.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 a=!!t[n];a===this.nt.has(n)||((i=this.st)===null||i===void 0?void 0:i.has(n))||(a?(o.add(n),this.nt.add(n)):(o.remove(n),this.nt.delete(n)))}return $}});var q=[{name:"Consulta m\xE9dica",items:[{name:"Presencial",link:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Teleconsulta",link:"https://agenda.clinicaalemana.cl/paciente"},{name:"TeleUrgencia",link:"https://www.clinicaalemana.cl/telemedicina/teleurgencia"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]},{name:"Ex\xE1menes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio/examenes-laboratorio-domicilio"}]},{name:"Vacunas",items:[{name:"Pedi\xE1trica",link:"https://www.alemana.cl/ReservaDeHoras/resultado-busqueda-area.aspx?idEmp=2&horario=todas&su=-1&idioma=todas&valorArea=Vacunas&Am=203,0&Ai=-1&CentrosSalud=-1&centroNombre=&CenAm=-1&CenAi=-1&d=19-12-2023&idAgenda=undefined&fp=19-12-2023&rp=&ipac=0&idreserva=&buscar-nombre=&dispositivo=2&cal=1&linkPortal="},{name:"Adulto",link:"https://www.alemana.cl/ReservaDeHoras/resultado-busqueda-area.aspx?idEmp=2&horario=todas&su=-1&idioma=todas&valorArea=Vacunas+Adulto&Am=229,0&Ai=-1&CentrosSalud=-1&centroNombre=&CenAm=-1&CenAi=-1&d=20-12-2023&idAgenda=undefined&fp=20-12-2023&rp=&ipac=0&idreserva=&buscar-nombre=&dispositivo=2&cal=1&linkPortal="},{name:"Covid-19",link:"https://www.clinicaalemana.cl/covid-19"},{name:"Influenza",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2023"},{name:"Viajeros",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"},{name:"TeleAsesor\xEDa pedi\xE1trica",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/asesoria-en-vacunacion-pediatrica"}]}];class ct extends k{static styles=Ut;static shadowRootOptions={...k.shadowRootOptions,mode:"open"};static properties={theme:{type:String},hidden:{type:Boolean},title:{type:String},tipoDeAtencion:{type:String},modalidad:{type:String},dataTipoDeAtencion:{type:Array},dataModalidad:{type:Array},focused:{type:Boolean},home:{type:Boolean},onlyView:{type:Boolean}};constructor(){super(),this.hidden=!1,this.tipoDeAtencion="",this.modalidad="",this.dataTipoDeAtencion=[],this.dataModalidad=[],this.focused=!1,this.refresh=!1,this.link=""}changeHandler(t){const e=t.target.name;if(this[e]=t.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),e==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const i=q.find(o=>o.name===this.tipoDeAtencion).items.map(o=>o.name);this.dataModalidad=[...i],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}e==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(t){this.shadowRoot.getElementById("tipoDeAtencion")?.setAttribute("active",t)}handleFocusModalidad(t){this.shadowRoot.getElementById("modalidad")?.setAttribute("active",t)}handleErrorTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");t?e?.setAttribute("isSelectError",!0):e?.removeAttribute("isSelectError")}handleErrorModalidad(t){const e=this.shadowRoot.getElementById("modalidad");t?e?.setAttribute("isSelectError",!0):e?.removeAttribute("isSelectError")}handleLink(){let t="";this.tipoDeAtencion!==""&&this.modalidad!==""&&(t=q.find(i=>i.name===this.tipoDeAtencion).items.find(i=>i.name===this.modalidad).link),this.link=t;const e=this.shadowRoot.querySelector(".btn-action");this.link!==""?e.setAttribute("href",this.link):e.removeAttribute("href")}submit(){this.link!==""?this.handleMark({category:"reservar_hora"}):this.tipoDeAtencion===""?(this.handleErrorTipoDeAtencion(!0),this.handleErrorModalidad(!0)):(this.handleFocusModalidad(!1),this.handleErrorModalidad(!0))}handleMark({category:t,action:e,label:i}){try{window.dataLayer.push({event:"evento-interactivo","evento-interactivo-categoria":t,"evento-interactivo-accion":e??this.tipoDeAtencion,"evento-interactivo-etiqueta":i??this.modalidad})}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=ht({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),e=ht({backdrop:!0,hidden:this.hidden});return F`
267
+ */const ht=Rt(class extends Ht{constructor(s){var t;if(super(s),s.type!==Mt.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 a=!!t[n];a===this.nt.has(n)||((i=this.st)===null||i===void 0?void 0:i.has(n))||(a?(o.add(n),this.nt.add(n)):(o.remove(n),this.nt.delete(n)))}return $}});var q=[{name:"Consulta m\xE9dica",items:[{name:"Presencial",link:"https://reserva.alemana.cl/reserva/portal/busqueda"},{name:"Teleconsulta",link:"https://agenda.clinicaalemana.cl/paciente"},{name:"TeleUrgencia",link:"https://www.clinicaalemana.cl/telemedicina/teleurgencia"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio"}]},{name:"Ex\xE1menes y procedimientos",items:[{name:"Presencial",link:"https://www.clinicaalemana.cl/examenes-y-procedimientos"},{name:"A domicilio",link:"https://www.clinicaalemana.cl/servicios-clinicos/servicios-a-domicilio/examenes-laboratorio-domicilio"}]},{name:"Vacunas",items:[{name:"Pedi\xE1trica",link:"https://www.alemana.cl/ReservaDeHoras/resultado-busqueda-area.aspx?idEmp=2&horario=todas&su=-1&idioma=todas&valorArea=Vacunas&Am=203,0&Ai=-1&CentrosSalud=-1&centroNombre=&CenAm=-1&CenAi=-1&d=19-12-2023&idAgenda=undefined&fp=19-12-2023&rp=&ipac=0&idreserva=&buscar-nombre=&dispositivo=2&cal=1&linkPortal="},{name:"Adulto",link:"https://www.alemana.cl/ReservaDeHoras/resultado-busqueda-area.aspx?idEmp=2&horario=todas&su=-1&idioma=todas&valorArea=Vacunas+Adulto&Am=229,0&Ai=-1&CentrosSalud=-1&centroNombre=&CenAm=-1&CenAi=-1&d=20-12-2023&idAgenda=undefined&fp=20-12-2023&rp=&ipac=0&idreserva=&buscar-nombre=&dispositivo=2&cal=1&linkPortal="},{name:"Covid-19",link:"https://www.clinicaalemana.cl/covid-19"},{name:"Influenza",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/influenza-2023"},{name:"Viajeros",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/reserva-vacuna-fiebre-amarilla"},{name:"TeleAsesor\xEDa pedi\xE1trica",link:"https://www.clinicaalemana.cl/especialidades/vacunatorio/asesoria-en-vacunacion-pediatrica"}]}];class ct extends k{static styles=Ut;static shadowRootOptions={...k.shadowRootOptions,mode:"open"};static properties={theme:{type:String},hidden:{type:Boolean},title:{type:String},tipoDeAtencion:{type:String},modalidad:{type:String},dataTipoDeAtencion:{type:Array},dataModalidad:{type:Array},focused:{type:Boolean},home:{type:Boolean},onlyView:{type:Boolean}};constructor(){super(),this.hidden=!1,this.tipoDeAtencion="",this.modalidad="",this.dataTipoDeAtencion=[],this.dataModalidad=[],this.focused=!1,this.refresh=!1,this.link=""}changeHandler(t){const e=t.target.name;if(this[e]=t.composedPath()[0].value,this.handleErrorTipoDeAtencion(!1),this.handleErrorModalidad(!1),e==="tipoDeAtencion"){this.modalidad="",this.refresh=!0,this.handleFocusModalidad(!0),this.handleFocusTipoDeAtencion(!1);const i=q.find(o=>o.name===this.tipoDeAtencion).items.map(o=>o.name);this.dataModalidad=[...i],this.requestUpdate(),setTimeout(()=>{this.refresh=!1,this.requestUpdate()},100)}e==="modalidad"&&this.handleFocusModalidad(!1),this.handleLink()}handleFocusTipoDeAtencion(t){this.shadowRoot.getElementById("tipoDeAtencion")?.setAttribute("active",t)}handleFocusModalidad(t){this.shadowRoot.getElementById("modalidad")?.setAttribute("active",t)}handleErrorTipoDeAtencion(t){const e=this.shadowRoot.getElementById("tipoDeAtencion");t?e?.setAttribute("isSelectError",!0):e?.removeAttribute("isSelectError")}handleErrorModalidad(t){const e=this.shadowRoot.getElementById("modalidad");t?e?.setAttribute("isSelectError",!0):e?.removeAttribute("isSelectError")}handleLink(){let t="";this.tipoDeAtencion!==""&&this.modalidad!==""&&(t=q.find(i=>i.name===this.tipoDeAtencion).items.find(i=>i.name===this.modalidad).link),this.link=t;const e=this.shadowRoot.querySelector(".btn-action");this.link!==""?e.setAttribute("href",this.link):e.removeAttribute("href")}submit(){this.link!==""?this.handleMark({category:"reservar_hora"}):this.tipoDeAtencion===""?(this.handleErrorTipoDeAtencion(!0),this.handleErrorModalidad(!0)):(this.handleFocusModalidad(!1),this.handleErrorModalidad(!0))}handleMark({category:t,action:e,label:i}){try{window.dataLayer.push({event:"evento-interactivo","evento-interactivo-categoria":t,"evento-interactivo-accion":e??this.tipoDeAtencion,"evento-interactivo-etiqueta":i??this.modalidad})}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=ht({"booking-box":!0,hidden:this.hidden,home:this.home,focused:this.focused}),e=ht({backdrop:!0,hidden:this.hidden});return F`
268
268
  <div class="${e}" id="backdrop" @click="${this.closeHandler}"></div>
269
269
  <div class="booking-box-main-cont" id="booking-box-main-cont">
270
270
  <div class="${t}" id="booking-box" tabindex="0">
@@ -272,7 +272,7 @@
272
272
  <div class="booking-box-tab">
273
273
  <cas-text variant="headline3">¿Qué necesitas agendar?</cas-text>
274
274
  </div>
275
- <a href="https://www.alemana.cl/ReservaDeHoras/resultado-modificar-anular.aspx"
275
+ <a href="https://reserva.alemana.cl/reserva/portal/anular/buscar"
276
276
  @click="${this.handleOverrideTime}" class="booking-box-tab-2">
277
277
  <cas-text variant="headline5">Anular hora</cas-text>
278
278
  </a>
@@ -1,4 +1,4 @@
1
- (function(y,c2){typeof exports=="object"&&typeof module<"u"?c2(exports):typeof define=="function"&&define.amd?define(["exports"],c2):(y=typeof globalThis<"u"?globalThis:y||self,c2(y["all-components"]={}))})(this,function(y){"use strict";(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();var q7={name:"@eloisa-ds/all-components",version:"1.0.52",main:"./all-components.umd.js",module:"./all-components.es.js",exports:{".":{import:"./all-components.es.js",require:"./all-components.umd.js"}}};/**
1
+ (function(y,c2){typeof exports=="object"&&typeof module<"u"?c2(exports):typeof define=="function"&&define.amd?define(["exports"],c2):(y=typeof globalThis<"u"?globalThis:y||self,c2(y["all-components"]={}))})(this,function(y){"use strict";(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();var q7={name:"@eloisa-ds/all-components",version:"1.0.53",main:"./all-components.umd.js",module:"./all-components.es.js",exports:{".":{import:"./all-components.es.js",require:"./all-components.umd.js"}}};/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -7058,7 +7058,7 @@
7058
7058
  <div class="booking-box-tab">
7059
7059
  <cas-text variant="headline3">¿Qué necesitas agendar?</cas-text>
7060
7060
  </div>
7061
- <a href="https://www.alemana.cl/ReservaDeHoras/resultado-modificar-anular.aspx"
7061
+ <a href="https://reserva.alemana.cl/reserva/portal/anular/buscar"
7062
7062
  @click="${this.handleOverrideTime}" class="booking-box-tab-2">
7063
7063
  <cas-text variant="headline5">Anular hora</cas-text>
7064
7064
  </a>
@@ -7058,7 +7058,7 @@
7058
7058
  <div class="booking-box-tab">
7059
7059
  <cas-text variant="headline3">¿Qué necesitas agendar?</cas-text>
7060
7060
  </div>
7061
- <a href="https://www.alemana.cl/ReservaDeHoras/resultado-modificar-anular.aspx"
7061
+ <a href="https://reserva.alemana.cl/reserva/portal/anular/buscar"
7062
7062
  @click="${this.handleOverrideTime}" class="booking-box-tab-2">
7063
7063
  <cas-text variant="headline5">Anular hora</cas-text>
7064
7064
  </a>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cas-ds-web-components",
3
3
  "description": "Web Components based on CAS DS",
4
- "version": "1.2.48",
4
+ "version": "1.2.49",
5
5
  "author": "aconejeros",
6
6
  "keywords": [
7
7
  "direflow",