scb-wc-test 0.1.353 → 0.1.354

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.
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/vendor-material.js","../../vendor/vendor.js"])))=>i.map(i=>d[i]);
2
- import{_ as P}from"../../vendor/preload-helper.js";import{a as H,n as a,i as D,x as r,E as m,t as B}from"../../vendor/vendor.js";import"../../vendor/vendor-material.js";import"../scb-list/scb-list.js";import"../scb-button/scb-button.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-link/scb-link.js";import"../scb-avatar/scb-avatar.js";import"../scb-tooltip/scb-tooltip.js";import"../scb-vignette/scb-vignette.js";import"../scb-list/scb-list-item.js";(function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(n,c,o){try{customElements.get(n)||e(n,c,o)}catch(p){var d=String(p||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw p}}}}catch{}})();var N=Object.defineProperty,R=Object.getOwnPropertyDescriptor,A=t=>{throw TypeError(t)},s=(t,e,n,c)=>{for(var o=c>1?void 0:c?R(e,n):e,d=t.length-1,p;d>=0;d--)(p=t[d])&&(o=(c?p(e,n,o):p(o))||o);return c&&o&&N(e,n,o),o},W=(t,e,n)=>e.has(t)||A("Cannot "+n),I=(t,e,n)=>e.has(t)?A("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),z=(t,e,n)=>(W(t,e,"access private method"),n),x,$,S;const l={fromAttribute:t=>t??"",toAttribute:t=>typeof t!="string"||t.trim()===""?null:t};let i=class extends D{constructor(){super(...arguments),I(this,x),this.__managedSocialAttributes=new Set(["social-comments-text","social-comments","social-comments-href","social-likes-text","social-likes","social-likes-hover-content","social-has-liked","social-likes-interactive","social-author","social-author-text","social-author-href"]),this.__isSyncingManagedSocialAttributes=!1,this.type="standard",this.variant="standard",this.direction="dynamic",this.size="large",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.href="",this.title="",this.subtitle="",this.vignette="",this.supportingText="",this.commentsText="",this.commentsDisabled=!1,this.commentsHref="",this.likesText="",this.likesDisabled=!1,this.likesHoverContent="",this.hasLiked=!1,this.likesInteractive=!0,this.author=!1,this.authorText="",this.authorHref="",this.replyEnabled=!1,this.editEnabled=!1,this.deleteEnabled=!1,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.innerPadding=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.__onImgLoad=t=>{const e=t.currentTarget.closest(".media");e&&e.classList.add("is-loaded")},this.__onKeyDown=t=>{const e=this.__effectiveHref();(t.key==="Enter"||t.key===" ")&&e&&(t.preventDefault(),this.__navigate(e,t))},this.__handleHrefNavigation=t=>{const e=this.__effectiveHref();e&&(t.target.closest("a")||this.__navigate(e,t))}}attributeChangedCallback(t,e,n){this.__isSyncingManagedSocialAttributes&&this.__managedSocialAttributes.has(t)||super.attributeChangedCallback(t,e,n)}get likeButton(){return this.type!=="social"?null:this.renderRoot.querySelector(".likes scb-icon-button")}__calcAspectWH(t){const e=(t||"").trim();if(!e)return{w:600,h:400};const n=e.includes("/")?e.split("/"):e.includes(":")?e.split(":"):e.includes("x")?e.split("x"):null;if(n&&n.length===2){const o=Number(n[0]),d=Number(n[1]);if(o>0&&d>0)return{w:o,h:d}}const c=Number(e);return isFinite(c)&&c>0?{w:1e3,h:Math.round(1e3/c)}:{w:600,h:400}}__noWrapText(t){return(t??"").replace(/ /g," ").replace(/-/g,"‑")}__dispatchLikeEvent(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e})),this.dispatchEvent(new CustomEvent(t.replace("-",""),{bubbles:!0,composed:!0,detail:e}))}__dispatchSocialActionEvent(t,e){this.dispatchEvent(new CustomEvent(`social-${t}`,{bubbles:!0,composed:!0,detail:{action:t,originalEvent:e}}))}__dispatchCardNavigate(t,e){const n={href:t,originalEvent:e},c=new CustomEvent("card-navigate",{bubbles:!0,composed:!0,cancelable:!0,detail:n});if(this.dispatchEvent(c),c.defaultPrevented)return!1;const o=new CustomEvent("cardnavigate",{bubbles:!0,composed:!0,cancelable:!0,detail:n});return this.dispatchEvent(o),!o.defaultPrevented}__effectiveHref(){return this.cardHref||this.href}__navigate(t,e){t&&this.__dispatchCardNavigate(t,e)&&window.open(t,"_self")}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return r`
2
+ import{_ as P}from"../../vendor/preload-helper.js";import{a as H,n as a,i as D,x as r,E as m,t as B}from"../../vendor/vendor.js";import"../../vendor/vendor-material.js";import"../scb-list/scb-list.js";import"../scb-button/scb-button.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-link/scb-link.js";import"../scb-avatar/scb-avatar.js";import"../scb-tooltip/scb-tooltip.js";import"../scb-vignette/scb-vignette.js";import"../scb-list/scb-list-item.js";(function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(n,c,o){try{customElements.get(n)||e(n,c,o)}catch(p){var d=String(p||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw p}}}}catch{}})();var N=Object.defineProperty,R=Object.getOwnPropertyDescriptor,A=t=>{throw TypeError(t)},s=(t,e,n,c)=>{for(var o=c>1?void 0:c?R(e,n):e,d=t.length-1,p;d>=0;d--)(p=t[d])&&(o=(c?p(e,n,o):p(o))||o);return c&&o&&N(e,n,o),o},W=(t,e,n)=>e.has(t)||A("Cannot "+n),I=(t,e,n)=>e.has(t)?A("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),z=(t,e,n)=>(W(t,e,"access private method"),n),x,$,S;const l={fromAttribute:t=>t??"",toAttribute:t=>typeof t!="string"||t.trim()===""?null:t};let i=class extends D{constructor(){super(...arguments),I(this,x),this.__managedSocialAttributes=new Set(["social-comments-text","social-comments","social-comments-href","social-likes-text","social-likes","social-likes-hover-content","social-has-liked","social-likes-interactive","social-author","social-author-text","social-author-href"]),this.__isSyncingManagedSocialAttributes=!1,this.type="standard",this.variant="standard",this.direction="dynamic",this.size="large",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.href="",this.title="",this.subtitle="",this.vignette="",this.vignetteVariant="filled",this.supportingText="",this.commentsText="",this.commentsDisabled=!1,this.commentsHref="",this.likesText="",this.likesDisabled=!1,this.likesHoverContent="",this.hasLiked=!1,this.likesInteractive=!0,this.author=!1,this.authorText="",this.authorHref="",this.replyEnabled=!1,this.editEnabled=!1,this.deleteEnabled=!1,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.innerPadding=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.__onImgLoad=t=>{const e=t.currentTarget.closest(".media");e&&e.classList.add("is-loaded")},this.__onKeyDown=t=>{const e=this.__effectiveHref();(t.key==="Enter"||t.key===" ")&&e&&(t.preventDefault(),this.__navigate(e,t))},this.__handleHrefNavigation=t=>{const e=this.__effectiveHref();e&&(t.target.closest("a")||this.__navigate(e,t))}}attributeChangedCallback(t,e,n){this.__isSyncingManagedSocialAttributes&&this.__managedSocialAttributes.has(t)||super.attributeChangedCallback(t,e,n)}get likeButton(){return this.type!=="social"?null:this.renderRoot.querySelector(".likes scb-icon-button")}__calcAspectWH(t){const e=(t||"").trim();if(!e)return{w:600,h:400};const n=e.includes("/")?e.split("/"):e.includes(":")?e.split(":"):e.includes("x")?e.split("x"):null;if(n&&n.length===2){const o=Number(n[0]),d=Number(n[1]);if(o>0&&d>0)return{w:o,h:d}}const c=Number(e);return isFinite(c)&&c>0?{w:1e3,h:Math.round(1e3/c)}:{w:600,h:400}}__noWrapText(t){return(t??"").replace(/ /g," ").replace(/-/g,"‑")}__dispatchLikeEvent(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e})),this.dispatchEvent(new CustomEvent(t.replace("-",""),{bubbles:!0,composed:!0,detail:e}))}__dispatchSocialActionEvent(t,e){this.dispatchEvent(new CustomEvent(`social-${t}`,{bubbles:!0,composed:!0,detail:{action:t,originalEvent:e}}))}__dispatchCardNavigate(t,e){const n={href:t,originalEvent:e},c=new CustomEvent("card-navigate",{bubbles:!0,composed:!0,cancelable:!0,detail:n});if(this.dispatchEvent(c),c.defaultPrevented)return!1;const o=new CustomEvent("cardnavigate",{bubbles:!0,composed:!0,cancelable:!0,detail:n});return this.dispatchEvent(o),!o.defaultPrevented}__effectiveHref(){return this.cardHref||this.href}__navigate(t,e){t&&this.__dispatchCardNavigate(t,e)&&window.open(t,"_self")}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return r`
3
3
  <div class="media">
4
4
  <slot name="media">
5
5
  <scb-avatar variant="icon" label="${this.title}" icon-name="person"></scb-avatar>
@@ -23,7 +23,7 @@ import{_ as P}from"../../vendor/preload-helper.js";import{a as H,n as a,i as D,x
23
23
  </div>
24
24
  `}return null}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}__syncStringAttribute(t,e){this.__isSyncingManagedSocialAttributes=!0;try{typeof e=="string"&&e.trim()!==""?this.setAttribute(t,e):this.removeAttribute(t)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncNumberAttribute(t,e){this.__isSyncingManagedSocialAttributes=!0;try{typeof e=="number"&&Number.isFinite(e)?this.setAttribute(t,String(e)):this.removeAttribute(t)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncBooleanAttribute(t,e){this.__isSyncingManagedSocialAttributes=!0;try{e?this.setAttribute(t,""):this.removeAttribute(t)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncSocialAttributes(){this.type==="social"&&(this.__syncStringAttribute("social-comments-text",this.commentsText),this.__syncNumberAttribute("social-comments",this.comments),this.__syncStringAttribute("social-comments-href",this.commentsHref),this.__syncStringAttribute("social-likes-text",this.likesText),this.__syncNumberAttribute("social-likes",this.likes),this.__syncStringAttribute("social-likes-hover-content",this.likesHoverContent),this.__syncBooleanAttribute("social-has-liked",this.hasLiked),this.__syncBooleanAttribute("social-likes-interactive",this.likesInteractive),this.__syncBooleanAttribute("social-author",this.author),this.__syncStringAttribute("social-author-text",this.authorText),this.__syncStringAttribute("social-author-href",this.authorHref))}render(){const t=this.variant?`${this.variant.toLowerCase()}`:"",e=(this.direction||"dynamic").toLowerCase(),c=this.type!=="list"&&this.type!=="container"&&e!=="vertical"&&e!=="horizontal"?"dynamic-direction":"",o=this.type==="list"||this.type==="container"?"vertical":e==="horizontal"?"horizontal":"vertical",d=this.__effectiveHref(),p=(this.type==="standard"||this.type==="social")&&!!d,L=p?"clickable":"",b=this.date instanceof Date?this.date.toISOString().slice(0,10):this.date||"",k=(u=!1)=>u?r`<a class="title" href="${d}" tabindex="-1"
25
25
  >${this.title}</a
26
- ><md-icon>arrow_forward</md-icon>`:r`<span class="title">${this.title}</span>`,E=()=>this.__mediaTemplate(),g=()=>this.vignette&&this.vignette.trim()?r`<scb-vignette class="content-vignette" variant="filled" label="${this.vignette}"></scb-vignette>`:m,v=u=>r`
26
+ ><md-icon>arrow_forward</md-icon>`:r`<span class="title">${this.title}</span>`,E=()=>this.__mediaTemplate(),g=()=>this.vignette&&this.vignette.trim()?r`<scb-vignette class="content-vignette" variant="${this.vignetteVariant}" label="${this.vignette}"></scb-vignette>`:m,v=u=>r`
27
27
  <div
28
28
  class="scb-card ${t} ${o} ${c} ${L}"
29
29
  @click=${p?this.__handleHrefNavigation:null}
@@ -752,4 +752,4 @@ import{_ as P}from"../../vendor/preload-helper.js";import{a as H,n as a,i as D,x
752
752
  .scb-card.filled-alternative .content.list ::slotted(scb-list) {
753
753
  --scb-list-bg: var(--md-sys-color-surface-container, #EEF3FF);
754
754
  }
755
- `;s([a({type:String,reflect:!0,converter:l})],i.prototype,"type",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"variant",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"direction",2);s([a({type:String,reflect:!0})],i.prototype,"size",2);s([a({type:String,attribute:"media-type"})],i.prototype,"mediaType",2);s([a({type:String,attribute:"media-href"})],i.prototype,"mediaHref",2);s([a({type:String,attribute:"media-alt"})],i.prototype,"mediaAlt",2);s([a({type:String,attribute:"media-srcset"})],i.prototype,"mediaSrcset",2);s([a({type:String,attribute:"media-sizes"})],i.prototype,"mediaSizes",2);s([a({type:String,attribute:"media-loading"})],i.prototype,"mediaLoading",2);s([a({type:String,attribute:"media-decoding"})],i.prototype,"mediaDecoding",2);s([a({type:String,attribute:"media-fetchpriority"})],i.prototype,"mediaFetchPriority",2);s([a({type:String,attribute:"media-fit"})],i.prototype,"mediaFit",2);s([a({type:String,attribute:"media-position"})],i.prototype,"mediaPosition",2);s([a({type:String,attribute:"media-width"})],i.prototype,"mediaWidth",2);s([a({type:String,attribute:"media-height"})],i.prototype,"mediaHeight",2);s([a({type:String,attribute:"media-aspect"})],i.prototype,"mediaAspect",2);s([a({type:Boolean,attribute:"media-placeholder"})],i.prototype,"mediaPlaceholder",2);s([a({type:String,attribute:"card-href",reflect:!0,converter:l})],i.prototype,"cardHref",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"href",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"title",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"subtitle",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"vignette",2);s([a({type:String,attribute:"supporting-text",reflect:!0,converter:l})],i.prototype,"supportingText",2);s([a({type:Date,reflect:!0})],i.prototype,"date",2);s([a({type:String,attribute:"social-comments-text"})],i.prototype,"commentsText",2);s([a({type:Number,attribute:"social-comments"})],i.prototype,"comments",2);s([a({type:Boolean,attribute:"social-comments-disabled"})],i.prototype,"commentsDisabled",2);s([a({type:String,attribute:"social-comments-href"})],i.prototype,"commentsHref",2);s([a({type:String,attribute:"social-likes-text"})],i.prototype,"likesText",2);s([a({type:Number,attribute:"social-likes"})],i.prototype,"likes",2);s([a({type:Boolean,attribute:"social-likes-disabled"})],i.prototype,"likesDisabled",2);s([a({type:String,attribute:"social-likes-hover-content"})],i.prototype,"likesHoverContent",2);s([a({type:Boolean,attribute:"social-has-liked"})],i.prototype,"hasLiked",2);s([a({type:Boolean,attribute:"social-likes-interactive"})],i.prototype,"likesInteractive",2);s([a({type:Boolean,attribute:"social-author"})],i.prototype,"author",2);s([a({type:String,attribute:"social-author-text"})],i.prototype,"authorText",2);s([a({type:String,attribute:"social-author-href"})],i.prototype,"authorHref",2);s([a({type:Boolean,attribute:"social-reply-enabled"})],i.prototype,"replyEnabled",2);s([a({type:Boolean,attribute:"social-edit-enabled"})],i.prototype,"editEnabled",2);s([a({type:Boolean,attribute:"social-delete-enabled"})],i.prototype,"deleteEnabled",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"sizing",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"width",2);s([a({type:String,reflect:!0,attribute:"max-width",converter:l})],i.prototype,"maxWidth",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"height",2);s([a({type:String,reflect:!0,attribute:"max-height",converter:l})],i.prototype,"maxHeight",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"spacing",2);s([a({type:String,attribute:"spacing-top",reflect:!0,converter:l})],i.prototype,"spacingTop",2);s([a({type:String,attribute:"spacing-bottom",reflect:!0,converter:l})],i.prototype,"spacingBottom",2);s([a({type:String,attribute:"spacing-left",reflect:!0,converter:l})],i.prototype,"spacingLeft",2);s([a({type:String,attribute:"spacing-right",reflect:!0,converter:l})],i.prototype,"spacingRight",2);s([a({type:String,attribute:"padding",reflect:!0,converter:l})],i.prototype,"innerPadding",2);s([a({type:String,attribute:"padding-top",reflect:!0,converter:l})],i.prototype,"paddingTop",2);s([a({type:String,attribute:"padding-bottom",reflect:!0,converter:l})],i.prototype,"paddingBottom",2);s([a({type:String,attribute:"padding-left",reflect:!0,converter:l})],i.prototype,"paddingLeft",2);s([a({type:String,attribute:"padding-right",reflect:!0,converter:l})],i.prototype,"paddingRight",2);i=s([B("scb-card")],i);
755
+ `;s([a({type:String,reflect:!0,converter:l})],i.prototype,"type",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"variant",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"direction",2);s([a({type:String,reflect:!0})],i.prototype,"size",2);s([a({type:String,attribute:"media-type"})],i.prototype,"mediaType",2);s([a({type:String,attribute:"media-href"})],i.prototype,"mediaHref",2);s([a({type:String,attribute:"media-alt"})],i.prototype,"mediaAlt",2);s([a({type:String,attribute:"media-srcset"})],i.prototype,"mediaSrcset",2);s([a({type:String,attribute:"media-sizes"})],i.prototype,"mediaSizes",2);s([a({type:String,attribute:"media-loading"})],i.prototype,"mediaLoading",2);s([a({type:String,attribute:"media-decoding"})],i.prototype,"mediaDecoding",2);s([a({type:String,attribute:"media-fetchpriority"})],i.prototype,"mediaFetchPriority",2);s([a({type:String,attribute:"media-fit"})],i.prototype,"mediaFit",2);s([a({type:String,attribute:"media-position"})],i.prototype,"mediaPosition",2);s([a({type:String,attribute:"media-width"})],i.prototype,"mediaWidth",2);s([a({type:String,attribute:"media-height"})],i.prototype,"mediaHeight",2);s([a({type:String,attribute:"media-aspect"})],i.prototype,"mediaAspect",2);s([a({type:Boolean,attribute:"media-placeholder"})],i.prototype,"mediaPlaceholder",2);s([a({type:String,attribute:"card-href",reflect:!0,converter:l})],i.prototype,"cardHref",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"href",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"title",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"subtitle",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"vignette",2);s([a({type:String,attribute:"vignette-variant",reflect:!0,converter:l})],i.prototype,"vignetteVariant",2);s([a({type:String,attribute:"supporting-text",reflect:!0,converter:l})],i.prototype,"supportingText",2);s([a({type:Date,reflect:!0})],i.prototype,"date",2);s([a({type:String,attribute:"social-comments-text"})],i.prototype,"commentsText",2);s([a({type:Number,attribute:"social-comments"})],i.prototype,"comments",2);s([a({type:Boolean,attribute:"social-comments-disabled"})],i.prototype,"commentsDisabled",2);s([a({type:String,attribute:"social-comments-href"})],i.prototype,"commentsHref",2);s([a({type:String,attribute:"social-likes-text"})],i.prototype,"likesText",2);s([a({type:Number,attribute:"social-likes"})],i.prototype,"likes",2);s([a({type:Boolean,attribute:"social-likes-disabled"})],i.prototype,"likesDisabled",2);s([a({type:String,attribute:"social-likes-hover-content"})],i.prototype,"likesHoverContent",2);s([a({type:Boolean,attribute:"social-has-liked"})],i.prototype,"hasLiked",2);s([a({type:Boolean,attribute:"social-likes-interactive"})],i.prototype,"likesInteractive",2);s([a({type:Boolean,attribute:"social-author"})],i.prototype,"author",2);s([a({type:String,attribute:"social-author-text"})],i.prototype,"authorText",2);s([a({type:String,attribute:"social-author-href"})],i.prototype,"authorHref",2);s([a({type:Boolean,attribute:"social-reply-enabled"})],i.prototype,"replyEnabled",2);s([a({type:Boolean,attribute:"social-edit-enabled"})],i.prototype,"editEnabled",2);s([a({type:Boolean,attribute:"social-delete-enabled"})],i.prototype,"deleteEnabled",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"sizing",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"width",2);s([a({type:String,reflect:!0,attribute:"max-width",converter:l})],i.prototype,"maxWidth",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"height",2);s([a({type:String,reflect:!0,attribute:"max-height",converter:l})],i.prototype,"maxHeight",2);s([a({type:String,reflect:!0,converter:l})],i.prototype,"spacing",2);s([a({type:String,attribute:"spacing-top",reflect:!0,converter:l})],i.prototype,"spacingTop",2);s([a({type:String,attribute:"spacing-bottom",reflect:!0,converter:l})],i.prototype,"spacingBottom",2);s([a({type:String,attribute:"spacing-left",reflect:!0,converter:l})],i.prototype,"spacingLeft",2);s([a({type:String,attribute:"spacing-right",reflect:!0,converter:l})],i.prototype,"spacingRight",2);s([a({type:String,attribute:"padding",reflect:!0,converter:l})],i.prototype,"innerPadding",2);s([a({type:String,attribute:"padding-top",reflect:!0,converter:l})],i.prototype,"paddingTop",2);s([a({type:String,attribute:"padding-bottom",reflect:!0,converter:l})],i.prototype,"paddingBottom",2);s([a({type:String,attribute:"padding-left",reflect:!0,converter:l})],i.prototype,"paddingLeft",2);s([a({type:String,attribute:"padding-right",reflect:!0,converter:l})],i.prototype,"paddingRight",2);i=s([B("scb-card")],i);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scb-wc-test",
3
- "version": "0.1.353",
3
+ "version": "0.1.354",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -426,5 +426,5 @@
426
426
  },
427
427
  "./mvc/*": "./mvc/*"
428
428
  },
429
- "buildHash": "3F5C7F0271727813E85216F384A55CFC9400E1A6A30AC102D1FCE94C0A470281"
429
+ "buildHash": "65FE11B96840C77A685BA94CD375C3BCF1688264E99750D8B8A1D9B277D33B41"
430
430
  }
@@ -28,6 +28,7 @@ export declare class ScbCard extends LitElement {
28
28
  title: string;
29
29
  subtitle: string;
30
30
  vignette: string;
31
+ vignetteVariant: 'outline' | 'filled';
31
32
  supportingText: string;
32
33
  date?: Date;
33
34
  commentsText: string;
@@ -33,7 +33,7 @@ let i = class extends D {
33
33
  "social-author",
34
34
  "social-author-text",
35
35
  "social-author-href"
36
- ]), this.__isSyncingManagedSocialAttributes = !1, this.type = "standard", this.variant = "standard", this.direction = "dynamic", this.size = "large", this.mediaType = "", this.mediaHref = "", this.mediaAlt = "", this.mediaSrcset = "", this.mediaSizes = "", this.mediaLoading = "auto", this.mediaDecoding = "async", this.mediaFetchPriority = "auto", this.mediaFit = "cover", this.mediaPosition = "center", this.mediaWidth = "", this.mediaHeight = "", this.mediaAspect = "", this.mediaPlaceholder = !1, this.cardHref = "", this.href = "", this.title = "", this.subtitle = "", this.vignette = "", this.supportingText = "", this.commentsText = "", this.commentsDisabled = !1, this.commentsHref = "", this.likesText = "", this.likesDisabled = !1, this.likesHoverContent = "", this.hasLiked = !1, this.likesInteractive = !0, this.author = !1, this.authorText = "", this.authorHref = "", this.replyEnabled = !1, this.editEnabled = !1, this.deleteEnabled = !1, this.sizing = "stretch", this.width = "", this.maxWidth = "", this.height = "", this.maxHeight = "", this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this.innerPadding = void 0, this.paddingTop = void 0, this.paddingBottom = void 0, this.paddingLeft = void 0, this.paddingRight = void 0, this.__onImgLoad = (t) => {
36
+ ]), this.__isSyncingManagedSocialAttributes = !1, this.type = "standard", this.variant = "standard", this.direction = "dynamic", this.size = "large", this.mediaType = "", this.mediaHref = "", this.mediaAlt = "", this.mediaSrcset = "", this.mediaSizes = "", this.mediaLoading = "auto", this.mediaDecoding = "async", this.mediaFetchPriority = "auto", this.mediaFit = "cover", this.mediaPosition = "center", this.mediaWidth = "", this.mediaHeight = "", this.mediaAspect = "", this.mediaPlaceholder = !1, this.cardHref = "", this.href = "", this.title = "", this.subtitle = "", this.vignette = "", this.vignetteVariant = "filled", this.supportingText = "", this.commentsText = "", this.commentsDisabled = !1, this.commentsHref = "", this.likesText = "", this.likesDisabled = !1, this.likesHoverContent = "", this.hasLiked = !1, this.likesInteractive = !0, this.author = !1, this.authorText = "", this.authorHref = "", this.replyEnabled = !1, this.editEnabled = !1, this.deleteEnabled = !1, this.sizing = "stretch", this.width = "", this.maxWidth = "", this.height = "", this.maxHeight = "", this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this.innerPadding = void 0, this.paddingTop = void 0, this.paddingBottom = void 0, this.paddingLeft = void 0, this.paddingRight = void 0, this.__onImgLoad = (t) => {
37
37
  const e = t.currentTarget.closest(".media");
38
38
  e && e.classList.add("is-loaded");
39
39
  }, this.__onKeyDown = (t) => {
@@ -175,7 +175,7 @@ let i = class extends D {
175
175
  render() {
176
176
  const t = this.variant ? `${this.variant.toLowerCase()}` : "", e = (this.direction || "dynamic").toLowerCase(), o = this.type !== "list" && this.type !== "container" && e !== "vertical" && e !== "horizontal" ? "dynamic-direction" : "", l = this.type === "list" || this.type === "container" ? "vertical" : e === "horizontal" ? "horizontal" : "vertical", p = this.__effectiveHref(), h = (this.type === "standard" || this.type === "social") && !!p, L = h ? "clickable" : "", b = this.date instanceof Date ? this.date.toISOString().slice(0, 10) : this.date || "", k = (u = !1) => u ? r`<a class="title" href="${p}" tabindex="-1"
177
177
  >${this.title}</a
178
- ><md-icon>arrow_forward</md-icon>` : r`<span class="title">${this.title}</span>`, C = () => this.__mediaTemplate(), g = () => this.vignette && this.vignette.trim() ? r`<scb-vignette class="content-vignette" variant="filled" label="${this.vignette}"></scb-vignette>` : m, v = (u) => r`
178
+ ><md-icon>arrow_forward</md-icon>` : r`<span class="title">${this.title}</span>`, C = () => this.__mediaTemplate(), g = () => this.vignette && this.vignette.trim() ? r`<scb-vignette class="content-vignette" variant="${this.vignetteVariant}" label="${this.vignette}"></scb-vignette>` : m, v = (u) => r`
179
179
  <div
180
180
  class="scb-card ${t} ${l} ${o} ${L}"
181
181
  @click=${h ? this.__handleHrefNavigation : null}
@@ -1039,6 +1039,14 @@ s([
1039
1039
  s([
1040
1040
  a({ type: String, reflect: !0, converter: c })
1041
1041
  ], i.prototype, "vignette", 2);
1042
+ s([
1043
+ a({
1044
+ type: String,
1045
+ attribute: "vignette-variant",
1046
+ reflect: !0,
1047
+ converter: c
1048
+ })
1049
+ ], i.prototype, "vignetteVariant", 2);
1042
1050
  s([
1043
1051
  a({
1044
1052
  type: String,
@@ -90,7 +90,7 @@
90
90
  * @license
91
91
  * Copyright 2018 Google LLC
92
92
  * SPDX-License-Identifier: BSD-3-Clause
93
- */const le=Qr(class extends ja{constructor(e){var t;if(super(e),e.type!==Di.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?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(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var s,r;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in t)t[a]&&!((s=this.nt)!=null&&s.has(a))&&this.st.add(a);return this.render(t)}const i=e.element.classList;for(const a of this.st)a in t||(i.remove(a),this.st.delete(a));for(const a in t){const o=!!t[a];o===this.st.has(a)||(r=this.nt)!=null&&r.has(a)||(o?(i.add(a),this.st.add(a)):(i.remove(a),this.st.delete(a)))}return At}});/**
93
+ */const ce=Qr(class extends ja{constructor(e){var t;if(super(e),e.type!==Di.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?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(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var s,r;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in t)t[a]&&!((s=this.nt)!=null&&s.has(a))&&this.st.add(a);return this.render(t)}const i=e.element.classList;for(const a of this.st)a in t||(i.remove(a),this.st.delete(a));for(const a in t){const o=!!t[a];o===this.st.has(a)||(r=this.nt)!=null&&r.has(a)||(o?(i.add(a),this.st.add(a)):(i.remove(a),this.st.delete(a)))}return At}});/**
94
94
  * @license
95
95
  * Copyright 2021 Google LLC
96
96
  * SPDX-License-Identifier: Apache-2.0
@@ -98,7 +98,7 @@
98
98
  * @license
99
99
  * Copyright 2022 Google LLC
100
100
  * SPDX-License-Identifier: Apache-2.0
101
- */const Qu=450,Ld=225,eb=.2,tb=10,ib=75,sb=.35,rb="::after",ab="forwards";var Qe;(function(e){e[e.INACTIVE=0]="INACTIVE",e[e.TOUCH_DELAY=1]="TOUCH_DELAY",e[e.HOLDING=2]="HOLDING",e[e.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(Qe||(Qe={}));const ob=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],nb=150,Un=window.matchMedia("(forced-colors: active)");class ea extends x{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Qe.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Ad(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return c`<div class="surface ${le(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==Qe.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state===Qe.HOLDING){this.state=Qe.WAITING_FOR_CLICK;return}if(this.state===Qe.TOUCH_DELAY){this.state=Qe.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t)){this.state=Qe.WAITING_FOR_CLICK,this.startPressAnimation(t);return}this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=Qe.TOUCH_DELAY,await new Promise(i=>{setTimeout(i,nb)}),this.state===Qe.TOUCH_DELAY&&(this.state=Qe.HOLDING,this.startPressAnimation(t)))}}handleClick(){if(!this.disabled){if(this.state===Qe.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===Qe.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:i}=this.getBoundingClientRect(),s=Math.max(t,i),r=Math.max(sb*s,ib),a=Math.floor(s*eb),l=Math.sqrt(i**2+t**2)+tb;this.initialSize=a,this.rippleScale=`${(l+r)/a}`,this.rippleSize=`${a}px`}getNormalizedPointerEventCoords(t){const{scrollX:i,scrollY:s}=window,{left:r,top:a}=this.getBoundingClientRect(),o=i+r,l=s+a,{pageX:d,pageY:p}=t;return{x:d-o,y:p-l}}getTranslationCoordinates(t){const{height:i,width:s}=this.getBoundingClientRect(),r={x:(s-this.initialSize)/2,y:(i-this.initialSize)/2};let a;return t instanceof PointerEvent?a=this.getNormalizedPointerEventCoords(t):a={x:s/2,y:i/2},a={x:a.x-this.initialSize/2,y:a.y-this.initialSize/2},{startPoint:a,endPoint:r}}startPressAnimation(t){var o;if(!this.mdRoot)return;this.pressed=!0,(o=this.growAnimation)==null||o.cancel(),this.determineRippleSize();const{startPoint:i,endPoint:s}=this.getTranslationCoordinates(t),r=`${i.x}px, ${i.y}px`,a=`${s.x}px, ${s.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${a}) scale(${this.rippleScale})`]},{pseudoElement:rb,duration:Qu,easing:ri.STANDARD,fill:ab})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Qe.INACTIVE;const t=this.growAnimation;let i=1/0;if(typeof(t==null?void 0:t.currentTime)=="number"?i=t.currentTime:t!=null&&t.currentTime&&(i=t.currentTime.to("ms").value),i>=Ld){this.pressed=!1;return}await new Promise(s=>{setTimeout(s,Ld-i)}),this.growAnimation===t&&(this.pressed=!1)}shouldReactToEvent(t){if(this.disabled||!t.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if(t.type==="pointerenter"||t.type==="pointerleave")return!this.isTouch(t);const i=t.buttons===1;return this.isTouch(t)||i}inBounds({x:t,y:i}){const{top:s,left:r,bottom:a,right:o}=this.getBoundingClientRect();return t>=r&&t<=o&&i>=s&&i<=a}isTouch({pointerType:t}){return t==="touch"}async handleEvent(t){if(!(Un!=null&&Un.matches))switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t);break}}onControlChange(t,i){for(const s of ob)t==null||t.removeEventListener(s,this),i==null||i.addEventListener(s,this)}}h([n({type:Boolean,reflect:!0})],ea.prototype,"disabled",void 0),h([C()],ea.prototype,"hovered",void 0),h([C()],ea.prototype,"pressed",void 0),h([F(".surface")],ea.prototype,"mdRoot",void 0);/**
101
+ */const Qu=450,Ld=225,eb=.2,tb=10,ib=75,sb=.35,rb="::after",ab="forwards";var Qe;(function(e){e[e.INACTIVE=0]="INACTIVE",e[e.TOUCH_DELAY=1]="TOUCH_DELAY",e[e.HOLDING=2]="HOLDING",e[e.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(Qe||(Qe={}));const ob=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],nb=150,Un=window.matchMedia("(forced-colors: active)");class ea extends x{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Qe.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Ad(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return c`<div class="surface ${ce(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==Qe.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state===Qe.HOLDING){this.state=Qe.WAITING_FOR_CLICK;return}if(this.state===Qe.TOUCH_DELAY){this.state=Qe.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t)){this.state=Qe.WAITING_FOR_CLICK,this.startPressAnimation(t);return}this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=Qe.TOUCH_DELAY,await new Promise(i=>{setTimeout(i,nb)}),this.state===Qe.TOUCH_DELAY&&(this.state=Qe.HOLDING,this.startPressAnimation(t)))}}handleClick(){if(!this.disabled){if(this.state===Qe.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===Qe.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:i}=this.getBoundingClientRect(),s=Math.max(t,i),r=Math.max(sb*s,ib),a=Math.floor(s*eb),l=Math.sqrt(i**2+t**2)+tb;this.initialSize=a,this.rippleScale=`${(l+r)/a}`,this.rippleSize=`${a}px`}getNormalizedPointerEventCoords(t){const{scrollX:i,scrollY:s}=window,{left:r,top:a}=this.getBoundingClientRect(),o=i+r,l=s+a,{pageX:d,pageY:p}=t;return{x:d-o,y:p-l}}getTranslationCoordinates(t){const{height:i,width:s}=this.getBoundingClientRect(),r={x:(s-this.initialSize)/2,y:(i-this.initialSize)/2};let a;return t instanceof PointerEvent?a=this.getNormalizedPointerEventCoords(t):a={x:s/2,y:i/2},a={x:a.x-this.initialSize/2,y:a.y-this.initialSize/2},{startPoint:a,endPoint:r}}startPressAnimation(t){var o;if(!this.mdRoot)return;this.pressed=!0,(o=this.growAnimation)==null||o.cancel(),this.determineRippleSize();const{startPoint:i,endPoint:s}=this.getTranslationCoordinates(t),r=`${i.x}px, ${i.y}px`,a=`${s.x}px, ${s.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${a}) scale(${this.rippleScale})`]},{pseudoElement:rb,duration:Qu,easing:ri.STANDARD,fill:ab})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Qe.INACTIVE;const t=this.growAnimation;let i=1/0;if(typeof(t==null?void 0:t.currentTime)=="number"?i=t.currentTime:t!=null&&t.currentTime&&(i=t.currentTime.to("ms").value),i>=Ld){this.pressed=!1;return}await new Promise(s=>{setTimeout(s,Ld-i)}),this.growAnimation===t&&(this.pressed=!1)}shouldReactToEvent(t){if(this.disabled||!t.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if(t.type==="pointerenter"||t.type==="pointerleave")return!this.isTouch(t);const i=t.buttons===1;return this.isTouch(t)||i}inBounds({x:t,y:i}){const{top:s,left:r,bottom:a,right:o}=this.getBoundingClientRect();return t>=r&&t<=o&&i>=s&&i<=a}isTouch({pointerType:t}){return t==="touch"}async handleEvent(t){if(!(Un!=null&&Un.matches))switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t);break}}onControlChange(t,i){for(const s of ob)t==null||t.removeEventListener(s,this),i==null||i.addEventListener(s,this)}}h([n({type:Boolean,reflect:!0})],ea.prototype,"disabled",void 0),h([C()],ea.prototype,"hovered",void 0),h([C()],ea.prototype,"pressed",void 0),h([F(".surface")],ea.prototype,"mdRoot",void 0);/**
102
102
  * @license
103
103
  * Copyright 2024 Google LLC
104
104
  * SPDX-License-Identifier: Apache-2.0
@@ -263,7 +263,7 @@
263
263
  * @license
264
264
  * Copyright 2019 Google LLC
265
265
  * SPDX-License-Identifier: Apache-2.0
266
- */const wb=sa(ir(ds(x)));class ai extends wb{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",t=>{!ta(t)||!this.input||(this.focus(),Ya(this.input))})}update(t){(t.has("checked")||t.has("disabled")||t.has("indeterminate"))&&(this.prevChecked=t.get("checked")??this.checked,this.prevDisabled=t.get("disabled")??this.disabled,this.prevIndeterminate=t.get("indeterminate")??this.indeterminate),super.update(t)}render(){const t=!this.prevChecked&&!this.prevIndeterminate,i=this.prevChecked&&!this.prevIndeterminate,s=this.prevIndeterminate,r=this.checked&&!this.indeterminate,a=this.indeterminate,o=le({disabled:this.disabled,selected:r||a,unselected:!r&&!a,checked:r,indeterminate:a,"prev-unselected":t,"prev-checked":i,"prev-indeterminate":s,"prev-disabled":this.prevDisabled}),{ariaLabel:l,ariaInvalid:d}=this;return c`
266
+ */const wb=sa(ir(ds(x)));class ai extends wb{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",t=>{!ta(t)||!this.input||(this.focus(),Ya(this.input))})}update(t){(t.has("checked")||t.has("disabled")||t.has("indeterminate"))&&(this.prevChecked=t.get("checked")??this.checked,this.prevDisabled=t.get("disabled")??this.disabled,this.prevIndeterminate=t.get("indeterminate")??this.indeterminate),super.update(t)}render(){const t=!this.prevChecked&&!this.prevIndeterminate,i=this.prevChecked&&!this.prevIndeterminate,s=this.prevIndeterminate,r=this.checked&&!this.indeterminate,a=this.indeterminate,o=ce({disabled:this.disabled,selected:r||a,unselected:!r&&!a,checked:r,indeterminate:a,"prev-unselected":t,"prev-checked":i,"prev-indeterminate":s,"prev-disabled":this.prevDisabled}),{ariaLabel:l,ariaInvalid:d}=this;return c`
267
267
  <div class="container ${o}">
268
268
  <input
269
269
  type="checkbox"
@@ -301,7 +301,7 @@
301
301
  * Copyright 2023 Google LLC
302
302
  * SPDX-License-Identifier: Apache-2.0
303
303
  */class Bi extends x{constructor(){super(...arguments),this.disabled=!1,this.alwaysFocusable=!1,this.label="",this.hasIcon=!1}get rippleDisabled(){return this.disabled}focus(t){this.disabled&&!this.alwaysFocusable||super.focus(t)}render(){return c`
304
- <div class="container ${le(this.getContainerClasses())}">
304
+ <div class="container ${ce(this.getContainerClasses())}">
305
305
  ${this.renderContainerContent()}
306
306
  </div>
307
307
  `}updated(t){t.has("disabled")&&t.get("disabled")!==void 0&&this.dispatchEvent(new Event("update-focus",{bubbles:!0}))}getContainerClasses(){return{disabled:this.disabled,"has-icon":this.hasIcon}}renderContainerContent(){return c`
@@ -519,7 +519,7 @@
519
519
  `,{ariaLabel:a}=this;return c`
520
520
  <div class="scrim"></div>
521
521
  <dialog
522
- class=${le(i)}
522
+ class=${ce(i)}
523
523
  aria-label=${a||m}
524
524
  aria-labelledby=${this.hasHeadline?"headline":m}
525
525
  role=${this.type==="alert"?"alertdialog":m}
@@ -570,7 +570,7 @@
570
570
  * SPDX-License-Identifier: Apache-2.0
571
571
  */class sr extends x{constructor(){super(...arguments),this.size="medium",this.label="",this.lowered=!1}render(){const{ariaLabel:t}=this;return c`
572
572
  <button
573
- class="fab ${le(this.getRenderClasses())}"
573
+ class="fab ${ce(this.getRenderClasses())}"
574
574
  aria-label=${t||m}>
575
575
  <md-elevation part="elevation"></md-elevation>
576
576
  <md-focus-ring part="focus-ring"></md-focus-ring>
@@ -620,7 +620,7 @@
620
620
  * Copyright 2021 Google LLC
621
621
  * SPDX-License-Identifier: Apache-2.0
622
622
  */class de extends x{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const t=this.count??-1,i=this.max??-1;return t<0||i<=0?"":`${t} / ${i}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(t){t.has("disabled")&&t.get("disabled")!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(t.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:t.get("focused"),wasPopulated:t.get("populated")}),super.update(t)}render(){var a,o,l;const t=this.renderLabel(!0),i=this.renderLabel(!1),s=(a=this.renderOutline)==null?void 0:a.call(this,t),r={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return c`
623
- <div class="field ${le(r)}">
623
+ <div class="field ${ce(r)}">
624
624
  <div class="container-overflow">
625
625
  ${(o=this.renderBackground)==null?void 0:o.call(this)} ${(l=this.renderIndicator)==null?void 0:l.call(this)} ${s}
626
626
  <div class="container">
@@ -648,7 +648,7 @@
648
648
  name="aria-describedby"
649
649
  @slotchange=${this.updateSlottedAriaDescribedBy}></slot>
650
650
  `}updateSlottedAriaDescribedBy(){for(const t of this.slottedAriaDescribedBy)Hn(c`${this.supportingOrErrorText} ${this.counterText}`,t),t.setAttribute("hidden","")}renderLabel(t){if(!this.label)return m;let i;t?i=this.focused||this.populated||this.isAnimating:i=!this.focused&&!this.populated&&!this.isAnimating;const s={hidden:!i,floating:t,resting:!t},r=`${this.label}${this.required&&!this.noAsterisk?"*":""}`;return c`
651
- <span class="label ${le(s)}" aria-hidden=${!i}
651
+ <span class="label ${ce(s)}" aria-hidden=${!i}
652
652
  >${r}</span
653
653
  >
654
654
  `}animateLabelIfNeeded({wasFocused:t,wasPopulated:i}){var a,o,l;if(!this.label)return;t??(t=this.focused),i??(i=this.populated);const s=t||i,r=this.focused||this.populated;s!==r&&(this.isAnimating=!0,(a=this.labelAnimation)==null||a.cancel(),this.labelAnimation=(o=this.floatingLabelEl)==null?void 0:o.animate(this.getLabelKeyframes(),{duration:150,easing:ri.STANDARD}),(l=this.labelAnimation)==null||l.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:t,restingLabelEl:i}=this;if(!t||!i)return[];const{x:s,y:r,height:a}=t.getBoundingClientRect(),{x:o,y:l,height:d}=i.getBoundingClientRect(),p=t.scrollWidth,b=i.scrollWidth,u=b/p,v=o-s,f=l-r+Math.round((d-a*u)/2),w=`translateX(${v}px) translateY(${f}px) scale(${u})`,k="translateX(0) translateY(0) scale(1)",z=i.clientWidth,S=b>z?`${z/u}px`:"";return this.focused||this.populated?[{transform:w,width:S},{transform:k,width:S}]:[{transform:k,width:S},{transform:w,width:S}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}h([n({type:Boolean})],de.prototype,"disabled",void 0),h([n({type:Boolean})],de.prototype,"error",void 0),h([n({type:Boolean})],de.prototype,"focused",void 0),h([n()],de.prototype,"label",void 0),h([n({type:Boolean,attribute:"no-asterisk"})],de.prototype,"noAsterisk",void 0),h([n({type:Boolean})],de.prototype,"populated",void 0),h([n({type:Boolean})],de.prototype,"required",void 0),h([n({type:Boolean})],de.prototype,"resizable",void 0),h([n({attribute:"supporting-text"})],de.prototype,"supportingText",void 0),h([n({attribute:"error-text"})],de.prototype,"errorText",void 0),h([n({type:Number})],de.prototype,"count",void 0),h([n({type:Number})],de.prototype,"max",void 0),h([n({type:Boolean,attribute:"has-start"})],de.prototype,"hasStart",void 0),h([n({type:Boolean,attribute:"has-end"})],de.prototype,"hasEnd",void 0),h([Ge({slot:"aria-describedby"})],de.prototype,"slottedAriaDescribedBy",void 0),h([C()],de.prototype,"isAnimating",void 0),h([C()],de.prototype,"refreshErrorAlert",void 0),h([C()],de.prototype,"disableTransitions",void 0),h([F(".label.floating")],de.prototype,"floatingLabelEl",void 0),h([F(".label.resting")],de.prototype,"restingLabelEl",void 0),h([F(".container")],de.prototype,"containerEl",void 0);/**
@@ -727,7 +727,7 @@
727
727
  * Copyright 2018 Google LLC
728
728
  * SPDX-License-Identifier: Apache-2.0
729
729
  */const Xb=ds(x);class Re extends Xb{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=Kd(this,this.flipIconInRtl)}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get form(){return this[Fe].form}get labels(){return this[Fe].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const t=this.href?mt`div`:mt`button`,{ariaLabel:i,ariaHasPopup:s,ariaExpanded:r}=this,a=i&&this.ariaLabelSelected,o=this.toggle?this.selected:m;let l=m;return this.href||(l=a&&this.selected?this.ariaLabelSelected:i),oa`<${t}
730
- class="icon-button ${le(this.getRenderClasses())}"
730
+ class="icon-button ${ce(this.getRenderClasses())}"
731
731
  id="button"
732
732
  aria-label="${l||m}"
733
733
  aria-haspopup="${!this.href&&s||m}"
@@ -868,7 +868,7 @@
868
868
  aria-checked=${this.ariaChecked||m}
869
869
  aria-expanded=${this.ariaExpanded||m}
870
870
  aria-haspopup=${this.ariaHasPopup||m}
871
- class="list-item ${le(this.getRenderClasses())}"
871
+ class="list-item ${ce(this.getRenderClasses())}"
872
872
  href=${this.href||m}
873
873
  target=${a}
874
874
  @focus=${this.onFocus}
@@ -919,7 +919,7 @@
919
919
  * SPDX-License-Identifier: Apache-2.0
920
920
  */const ap=200,op=new Set([Be.ArrowDown,Be.ArrowUp,Be.Home,Be.End]),ym=new Set([Be.ArrowLeft,Be.ArrowRight,...op]);function _m(e=document){var i;let t=e.activeElement;for(;t&&((i=t==null?void 0:t.shadowRoot)!=null&&i.activeElement);)t=t.shadowRoot.activeElement;return t}class xe extends x{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(t){this.currentAnchorElement=t,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=ap,this.anchorCorner=bo.END_START,this.menuCorner=bo.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=oi.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=Zu(),this.listController=new ep({isItem:t=>t.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:t=>{t.selected=!1,t.tabIndex=-1},activateItem:t=>{t.selected=!0,t.tabIndex=0},isNavigableKey:t=>{if(!this.isSubmenu)return ym.has(t);const s=getComputedStyle(this).direction==="rtl"?Be.ArrowLeft:Be.ArrowRight;return t===s?!0:op.has(t)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new gm(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new fm(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async t=>{const i=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(i))return;if(t.relatedTarget){if(gl(t.relatedTarget,this)||this.pointerPath.length!==0&&gl(t.relatedTarget,i))return}else if(this.pointerPath.includes(this))return;const s=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=s},this.onOpened=async()=>{this.lastFocusedElement=_m();const t=this.items,i=rr(t);i&&this.defaultFocus!==oi.NONE&&(i.item.tabIndex=-1);let s=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):s=!!await this.animateOpen(),this.defaultFocus){case oi.FIRST_ITEM:const r=po(t);r&&(r.tabIndex=0,r.focus(),await r.updateComplete);break;case oi.LAST_ITEM:const a=Xd(t);a&&(a.tabIndex=0,a.focus(),await a.updateComplete);break;case oi.LIST_ROOT:this.focus();break;default:case oi.NONE:break}s||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var t,i;this.open=!1,this.skipRestoreFocus||(i=(t=this.lastFocusedElement)==null?void 0:t.focus)==null||i.call(t),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=t=>{this.pointerPath=t.composedPath()},this.onDocumentClick=t=>{if(!this.open)return;const i=t.composedPath();!this.stayOpenOnOutsideClick&&!i.includes(this)&&!i.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(t){if(t.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(t){t.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),t.has("positioning")&&this.positioning==="popover"&&!this.showPopover&&(this.positioning="fixed"),super.update(t)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return c`
921
921
  <div
922
- class="menu ${le(this.getSurfaceClasses())}"
922
+ class="menu ${ce(this.getSurfaceClasses())}"
923
923
  style=${Fs(this.menuPositionController.surfaceStyles)}
924
924
  popover=${this.positioning==="popover"?"manual":m}>
925
925
  ${this.renderElevation()}
@@ -971,7 +971,7 @@
971
971
  aria-checked=${this.ariaChecked||m}
972
972
  aria-expanded=${this.ariaExpanded||m}
973
973
  aria-haspopup=${this.ariaHasPopup||m}
974
- class="list-item ${le(this.getRenderClasses())}"
974
+ class="list-item ${ce(this.getRenderClasses())}"
975
975
  href=${this.href||m}
976
976
  target=${r}
977
977
  @click=${this.menuItemController.onClick}
@@ -1032,7 +1032,7 @@
1032
1032
  * SPDX-License-Identifier: Apache-2.0
1033
1033
  */class Bs extends x{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){const{ariaLabel:t}=this;return c`
1034
1034
  <div
1035
- class="progress ${le(this.getRenderClasses())}"
1035
+ class="progress ${ce(this.getRenderClasses())}"
1036
1036
  role="progressbar"
1037
1037
  aria-label="${t||m}"
1038
1038
  aria-valuemin="0"
@@ -1107,7 +1107,7 @@
1107
1107
  * Copyright 2018 Google LLC
1108
1108
  * SPDX-License-Identifier: Apache-2.0
1109
1109
  */var pp;const $l=Symbol("checked");let Em=0;const Tm=sa(ir(ds(dp(x))));class na extends Tm{get checked(){return this[$l]}set checked(t){const i=this.checked;i!==t&&(this[$l]=t,this.requestUpdate("checked",i),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId=`cutout${++Em}`,this[pp]=!1,this.required=!1,this.value="on",this.selectionController=new Cm(this),this.addController(this.selectionController),this[Fe].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const t={checked:this.checked};return c`
1110
- <div class="container ${le(t)}" aria-hidden="true">
1110
+ <div class="container ${ce(t)}" aria-hidden="true">
1111
1111
  <md-ripple
1112
1112
  part="ripple"
1113
1113
  .control=${this}
@@ -1162,7 +1162,7 @@
1162
1162
  * SPDX-License-Identifier: Apache-2.0
1163
1163
  */var up;const So=Symbol("value"),Dm=hp(sa(ir(ds(x))));class Q extends Dm{get value(){return this[So]}set value(t){this.lastUserSetValue=t,this.select(t)}get options(){var t;return((t=this.menu)==null?void 0:t.items)??[]}get selectedIndex(){const[t,i]=(this.getSelectedOptions()??[])[0]??[];return i??-1}set selectedIndex(t){this.lastUserSetSelectedIndex=t,this.selectIndex(t)}get selectedOptions(){return(this.getSelectedOptions()??[]).map(([t])=>t)}get hasError(){return this.error||this.nativeError}constructor(){super(),this.quick=!1,this.required=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.supportingText="",this.error=!1,this.menuPositioning="popover",this.clampMenuWidth=!1,this.typeaheadDelay=ap,this.hasLeadingIcon=!1,this.displayText="",this.menuAlign="start",this[up]="",this.lastUserSetValue=null,this.lastUserSetSelectedIndex=null,this.lastSelectedOption=null,this.lastSelectedOptionRecords=[],this.nativeError=!1,this.nativeErrorText="",this.focused=!1,this.open=!1,this.defaultFocus=oi.NONE,this.prevOpen=this.open,this.selectWidth=0,this.addEventListener("focus",this.handleFocus.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}select(t){const i=this.options.find(s=>s.value===t);i&&this.selectItem(i)}selectIndex(t){const i=this.options[t];i&&this.selectItem(i)}reset(){for(const t of this.options)t.selected=t.hasAttribute("selected");this.updateValueAndDisplayText(),this.nativeError=!1,this.nativeErrorText=""}[(up=So,yo)](t){var s;t==null||t.preventDefault();const i=this.getErrorText();this.nativeError=!!t,this.nativeErrorText=this.validationMessage,i===this.getErrorText()&&((s=this.field)==null||s.reannounceError())}update(t){if(this.hasUpdated||this.initUserSelection(),this.prevOpen!==this.open&&this.open){const i=this.getBoundingClientRect();this.selectWidth=i.width}this.prevOpen=this.open,super.update(t)}render(){return c`
1164
1164
  <span
1165
- class="select ${le(this.getRenderClasses())}"
1165
+ class="select ${ce(this.getRenderClasses())}"
1166
1166
  @focusout=${this.handleFocusout}>
1167
1167
  ${this.renderField()} ${this.renderMenu()}
1168
1168
  </span>
@@ -1300,7 +1300,7 @@
1300
1300
  aria-checked=${this.ariaChecked||m}
1301
1301
  aria-expanded=${this.ariaExpanded||m}
1302
1302
  aria-haspopup=${this.ariaHasPopup||m}
1303
- class="list-item ${le(this.getRenderClasses())}"
1303
+ class="list-item ${ce(this.getRenderClasses())}"
1304
1304
  @click=${this.selectOptionController.onClick}
1305
1305
  @keydown=${this.selectOptionController.onKeydown}
1306
1306
  >${t}</li
@@ -1337,13 +1337,13 @@
1337
1337
  * Copyright 2023 Google LLC
1338
1338
  * SPDX-License-Identifier: Apache-2.0
1339
1339
  */const Um=ir(ds(x));class Y extends Um{get nameStart(){return this.getAttribute("name-start")??this.name}set nameStart(t){this.setAttribute("name-start",t)}get nameEnd(){return this.getAttribute("name-end")??this.nameStart}set nameEnd(t){this.setAttribute("name-end",t)}get renderAriaLabelStart(){const{ariaLabel:t}=this;return this.ariaLabelStart||t&&`${t} start`||this.valueLabelStart||String(this.valueStart)}get renderAriaValueTextStart(){return this.ariaValueTextStart||this.valueLabelStart||String(this.valueStart)}get renderAriaLabelEnd(){const{ariaLabel:t}=this;return this.range?this.ariaLabelEnd||t&&`${t} end`||this.valueLabelEnd||String(this.valueEnd):t||this.valueLabel||String(this.value)}get renderAriaValueTextEnd(){if(this.range)return this.ariaValueTextEnd||this.valueLabelEnd||String(this.valueEnd);const{ariaValueText:t}=this;return t||this.valueLabel||String(this.value)}constructor(){super(),this.min=0,this.max=100,this.valueLabel="",this.valueLabelStart="",this.valueLabelEnd="",this.ariaLabelStart="",this.ariaValueTextStart="",this.ariaLabelEnd="",this.ariaValueTextEnd="",this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1,this.handleStartHover=!1,this.handleEndHover=!1,this.startOnTop=!1,this.handlesOverlapping=!1,this.ripplePointerId=1,this.isRedispatchingEvent=!1,this.addEventListener("click",t=>{!ta(t)||!this.inputEnd||(this.focus(),Ya(this.inputEnd))})}focus(){var t;(t=this.inputEnd)==null||t.focus()}willUpdate(t){var s,r;this.renderValueStart=t.has("valueStart")?this.valueStart:(s=this.inputStart)==null?void 0:s.valueAsNumber;const i=t.has("valueEnd")&&this.range||t.has("value");this.renderValueEnd=i?this.range?this.valueEnd:this.value:(r=this.inputEnd)==null?void 0:r.valueAsNumber,t.get("handleStartHover")!==void 0?this.toggleRippleHover(this.rippleStart,this.handleStartHover):t.get("handleEndHover")!==void 0&&this.toggleRippleHover(this.rippleEnd,this.handleEndHover)}updated(t){var i,s;if(this.range&&(this.renderValueStart=this.inputStart.valueAsNumber),this.renderValueEnd=this.inputEnd.valueAsNumber,this.range){const r=(this.max-this.min)/3;if(this.valueStart===void 0){this.inputStart.valueAsNumber=this.min+r;const a=this.inputStart.valueAsNumber;this.valueStart=this.renderValueStart=a}if(this.valueEnd===void 0){this.inputEnd.valueAsNumber=this.min+2*r;const a=this.inputEnd.valueAsNumber;this.valueEnd=this.renderValueEnd=a}}else this.value??(this.value=this.renderValueEnd);if(t.has("range")||t.has("renderValueStart")||t.has("renderValueEnd")||this.isUpdatePending){const r=(i=this.handleStart)==null?void 0:i.querySelector(".handleNub"),a=(s=this.handleEnd)==null?void 0:s.querySelector(".handleNub");this.handlesOverlapping=jm(r,a)}this.performUpdate()}render(){const t=this.step===0?1:this.step,i=Math.max(this.max-this.min,t),s=this.range?((this.renderValueStart??this.min)-this.min)/i:0,r=((this.renderValueEnd??this.min)-this.min)/i,a={"--_start-fraction":String(s),"--_end-fraction":String(r),"--_tick-count":String(i/t)},o={ranged:this.range},l=this.valueLabelStart||String(this.renderValueStart),d=(this.range?this.valueLabelEnd:this.valueLabel)||String(this.renderValueEnd),p={start:!0,value:this.renderValueStart,ariaLabel:this.renderAriaLabelStart,ariaValueText:this.renderAriaValueTextStart,ariaMin:this.min,ariaMax:this.valueEnd??this.max},b={start:!1,value:this.renderValueEnd,ariaLabel:this.renderAriaLabelEnd,ariaValueText:this.renderAriaValueTextEnd,ariaMin:this.range?this.valueStart??this.min:this.min,ariaMax:this.max},u={start:!0,hover:this.handleStartHover,label:l},v={start:!1,hover:this.handleEndHover,label:d},f={hover:this.handleStartHover||this.handleEndHover};return c` <div
1340
- class="container ${le(o)}"
1340
+ class="container ${ce(o)}"
1341
1341
  style=${Fs(a)}>
1342
1342
  ${Pl(this.range,()=>this.renderInput(p))}
1343
1343
  ${this.renderInput(b)} ${this.renderTrack()}
1344
1344
  <div class="handleContainerPadded">
1345
1345
  <div class="handleContainerBlock">
1346
- <div class="handleContainer ${le(f)}">
1346
+ <div class="handleContainer ${ce(f)}">
1347
1347
  ${Pl(this.range,()=>this.renderHandle(u))}
1348
1348
  ${this.renderHandle(v)}
1349
1349
  </div>
@@ -1355,7 +1355,7 @@
1355
1355
  `}renderLabel(t){return c`<div class="label" aria-hidden="true">
1356
1356
  <span class="labelContent" part="label">${t}</span>
1357
1357
  </div>`}renderHandle({start:t,hover:i,label:s}){const r=!this.disabled&&t===this.startOnTop,a=!this.disabled&&this.handlesOverlapping,o=t?"start":"end";return c`<div
1358
- class="handle ${le({[o]:!0,hover:i,onTop:r,isOverlapping:a})}">
1358
+ class="handle ${ce({[o]:!0,hover:i,onTop:r,isOverlapping:a})}">
1359
1359
  <md-focus-ring part="focus-ring" for=${o}></md-focus-ring>
1360
1360
  <md-ripple
1361
1361
  for=${o}
@@ -1367,7 +1367,7 @@
1367
1367
  ${Pl(this.labeled,()=>this.renderLabel(s))}
1368
1368
  </div>`}renderInput({start:t,value:i,ariaLabel:s,ariaValueText:r,ariaMin:a,ariaMax:o}){const l=t?"start":"end";return c`<input
1369
1369
  type="range"
1370
- class="${le({start:t,end:!t})}"
1370
+ class="${ce({start:t,end:!t})}"
1371
1371
  @focus=${this.handleFocus}
1372
1372
  @pointerdown=${this.handleDown}
1373
1373
  @pointerup=${this.handleUp}
@@ -1406,7 +1406,7 @@
1406
1406
  * Copyright 2021 Google LLC
1407
1407
  * SPDX-License-Identifier: Apache-2.0
1408
1408
  */const Xm=sa(ir(ds(x)));class Hi extends Xm{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",t=>{!ta(t)||!this.input||(this.focus(),Ya(this.input))}),Ym(this,"keydown"),this.addEventListener("keydown",t=>{Gm(t,()=>{t.defaultPrevented||t.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return c`
1409
- <div class="switch ${le(this.getRenderClasses())}">
1409
+ <div class="switch ${ce(this.getRenderClasses())}">
1410
1410
  <input
1411
1411
  id="switch"
1412
1412
  class="touch"
@@ -1426,7 +1426,7 @@
1426
1426
  ${this.renderTouchTarget()}
1427
1427
  <span class="handle-container">
1428
1428
  <md-ripple for="switch" ?disabled="${this.disabled}"></md-ripple>
1429
- <span class="handle ${le(t)}">
1429
+ <span class="handle ${ce(t)}">
1430
1430
  ${this.shouldShowIcons()?this.renderIcons():c``}
1431
1431
  </span>
1432
1432
  </span>
@@ -1470,7 +1470,7 @@
1470
1470
  <md-elevation part="elevation"></md-elevation>
1471
1471
  <md-ripple .control=${this}></md-ripple>
1472
1472
  <div
1473
- class="content ${le(this.getContentClasses())}"
1473
+ class="content ${ce(this.getContentClasses())}"
1474
1474
  role="presentation">
1475
1475
  <slot name="icon" @slotchange=${this.handleIconSlotChange}></slot>
1476
1476
  <slot @slotchange=${this.handleSlotChange}></slot>
@@ -1554,7 +1554,7 @@
1554
1554
  * Copyright 2021 Google LLC
1555
1555
  * SPDX-License-Identifier: Apache-2.0
1556
1556
  */const pv=hp(sa(ir(ds(x))));class H extends pv{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(t){this.getInputOrTextarea().selectionDirection=t}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(t){this.getInputOrTextarea().selectionEnd=t}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(t){this.getInputOrTextarea().selectionStart=t}get valueAsNumber(){const t=this.getInput();return t?t.valueAsNumber:NaN}set valueAsNumber(t){const i=this.getInput();i&&(i.valueAsNumber=t,this.value=i.value)}get valueAsDate(){const t=this.getInput();return t?t.valueAsDate:null}set valueAsDate(t){const i=this.getInput();i&&(i.valueAsDate=t,this.value=i.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...t){this.getInputOrTextarea().setRangeText(...t),this.value=this.getInputOrTextarea().value}setSelectionRange(t,i,s){this.getInputOrTextarea().setSelectionRange(t,i,s)}stepDown(t){const i=this.getInput();i&&(i.stepDown(t),this.value=i.value)}stepUp(t){const i=this.getInput();i&&(i.stepUp(t),this.value=i.value)}reset(){this.dirty=!1,this.value=this.getAttribute("value")??"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(t,i,s){t==="value"&&this.dirty||super.attributeChangedCallback(t,i,s)}render(){const t={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type==="textarea","no-spinner":this.noSpinner};return c`
1557
- <span class="text-field ${le(t)}">
1557
+ <span class="text-field ${ce(t)}">
1558
1558
  ${this.renderField()}
1559
1559
  </span>
1560
1560
  `}updated(t){const i=this.getInputOrTextarea().value;this.value!==i&&(this.value=i)}renderField(){return oa`<${this.fieldTag}
@@ -1641,7 +1641,7 @@
1641
1641
  @select=${this.redispatchEvent} />
1642
1642
  ${l}
1643
1643
  </div>
1644
- `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(t,i){return t?c`<span class="${le({suffix:i,prefix:!i})}">${t}</span>`:m}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var t;this.focused=((t=this.inputOrTextarea)==null?void 0:t.matches(":focus"))??!1}handleInput(t){this.dirty=!0,this.value=t.target.value}redispatchEvent(t){ps(this,t)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type==="textarea"?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[Fi](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(t){this.value=t}focus(){this.getInputOrTextarea().focus()}[Ms](){return new dv(()=>({state:this,renderedControl:this.inputOrTextarea}))}[Rs](){return this.inputOrTextarea}[yo](t){var s;t==null||t.preventDefault();const i=this.getErrorText();this.nativeError=!!t,this.nativeErrorText=this.validationMessage,i===this.getErrorText()&&((s=this.field)==null||s.reannounceError())}}bt(H),H.shadowRootOptions={...x.shadowRootOptions,delegatesFocus:!0},h([n({type:Boolean,reflect:!0})],H.prototype,"error",void 0),h([n({attribute:"error-text"})],H.prototype,"errorText",void 0),h([n()],H.prototype,"label",void 0),h([n({type:Boolean,attribute:"no-asterisk"})],H.prototype,"noAsterisk",void 0),h([n({type:Boolean,reflect:!0})],H.prototype,"required",void 0),h([n()],H.prototype,"value",void 0),h([n({attribute:"prefix-text"})],H.prototype,"prefixText",void 0),h([n({attribute:"suffix-text"})],H.prototype,"suffixText",void 0),h([n({type:Boolean,attribute:"has-leading-icon"})],H.prototype,"hasLeadingIcon",void 0),h([n({type:Boolean,attribute:"has-trailing-icon"})],H.prototype,"hasTrailingIcon",void 0),h([n({attribute:"supporting-text"})],H.prototype,"supportingText",void 0),h([n({attribute:"text-direction"})],H.prototype,"textDirection",void 0),h([n({type:Number})],H.prototype,"rows",void 0),h([n({type:Number})],H.prototype,"cols",void 0),h([n({reflect:!0})],H.prototype,"inputMode",void 0),h([n()],H.prototype,"max",void 0),h([n({type:Number})],H.prototype,"maxLength",void 0),h([n()],H.prototype,"min",void 0),h([n({type:Number})],H.prototype,"minLength",void 0),h([n({type:Boolean,attribute:"no-spinner"})],H.prototype,"noSpinner",void 0),h([n()],H.prototype,"pattern",void 0),h([n({reflect:!0,converter:cv})],H.prototype,"placeholder",void 0),h([n({type:Boolean,reflect:!0})],H.prototype,"readOnly",void 0),h([n({type:Boolean,reflect:!0})],H.prototype,"multiple",void 0),h([n()],H.prototype,"step",void 0),h([n({reflect:!0})],H.prototype,"type",void 0),h([n({reflect:!0})],H.prototype,"autocomplete",void 0),h([C()],H.prototype,"dirty",void 0),h([C()],H.prototype,"focused",void 0),h([C()],H.prototype,"nativeError",void 0),h([C()],H.prototype,"nativeErrorText",void 0),h([F(".input")],H.prototype,"inputOrTextarea",void 0),h([F(".field")],H.prototype,"field",void 0),h([Ge({slot:"leading-icon"})],H.prototype,"leadingIcons",void 0),h([Ge({slot:"trailing-icon"})],H.prototype,"trailingIcons",void 0);/**
1644
+ `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(t,i){return t?c`<span class="${ce({suffix:i,prefix:!i})}">${t}</span>`:m}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var t;this.focused=((t=this.inputOrTextarea)==null?void 0:t.matches(":focus"))??!1}handleInput(t){this.dirty=!0,this.value=t.target.value}redispatchEvent(t){ps(this,t)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type==="textarea"?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[Fi](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(t){this.value=t}focus(){this.getInputOrTextarea().focus()}[Ms](){return new dv(()=>({state:this,renderedControl:this.inputOrTextarea}))}[Rs](){return this.inputOrTextarea}[yo](t){var s;t==null||t.preventDefault();const i=this.getErrorText();this.nativeError=!!t,this.nativeErrorText=this.validationMessage,i===this.getErrorText()&&((s=this.field)==null||s.reannounceError())}}bt(H),H.shadowRootOptions={...x.shadowRootOptions,delegatesFocus:!0},h([n({type:Boolean,reflect:!0})],H.prototype,"error",void 0),h([n({attribute:"error-text"})],H.prototype,"errorText",void 0),h([n()],H.prototype,"label",void 0),h([n({type:Boolean,attribute:"no-asterisk"})],H.prototype,"noAsterisk",void 0),h([n({type:Boolean,reflect:!0})],H.prototype,"required",void 0),h([n()],H.prototype,"value",void 0),h([n({attribute:"prefix-text"})],H.prototype,"prefixText",void 0),h([n({attribute:"suffix-text"})],H.prototype,"suffixText",void 0),h([n({type:Boolean,attribute:"has-leading-icon"})],H.prototype,"hasLeadingIcon",void 0),h([n({type:Boolean,attribute:"has-trailing-icon"})],H.prototype,"hasTrailingIcon",void 0),h([n({attribute:"supporting-text"})],H.prototype,"supportingText",void 0),h([n({attribute:"text-direction"})],H.prototype,"textDirection",void 0),h([n({type:Number})],H.prototype,"rows",void 0),h([n({type:Number})],H.prototype,"cols",void 0),h([n({reflect:!0})],H.prototype,"inputMode",void 0),h([n()],H.prototype,"max",void 0),h([n({type:Number})],H.prototype,"maxLength",void 0),h([n()],H.prototype,"min",void 0),h([n({type:Number})],H.prototype,"minLength",void 0),h([n({type:Boolean,attribute:"no-spinner"})],H.prototype,"noSpinner",void 0),h([n()],H.prototype,"pattern",void 0),h([n({reflect:!0,converter:cv})],H.prototype,"placeholder",void 0),h([n({type:Boolean,reflect:!0})],H.prototype,"readOnly",void 0),h([n({type:Boolean,reflect:!0})],H.prototype,"multiple",void 0),h([n()],H.prototype,"step",void 0),h([n({reflect:!0})],H.prototype,"type",void 0),h([n({reflect:!0})],H.prototype,"autocomplete",void 0),h([C()],H.prototype,"dirty",void 0),h([C()],H.prototype,"focused",void 0),h([C()],H.prototype,"nativeError",void 0),h([C()],H.prototype,"nativeErrorText",void 0),h([F(".input")],H.prototype,"inputOrTextarea",void 0),h([F(".field")],H.prototype,"field",void 0),h([Ge({slot:"leading-icon"})],H.prototype,"leadingIcons",void 0),h([Ge({slot:"trailing-icon"})],H.prototype,"trailingIcons",void 0);/**
1645
1645
  * @license
1646
1646
  * Copyright 2021 Google LLC
1647
1647
  * SPDX-License-Identifier: Apache-2.0
@@ -5917,7 +5917,7 @@
5917
5917
  margin: 0;
5918
5918
  color: var(--md-sys-color-on-surface);
5919
5919
  }
5920
- `,fs([n({type:String})],Ei.prototype,"label",2),fs([n({type:String,reflect:!0})],Ei.prototype,"variant",2),fs([n({type:String,reflect:!0})],Ei.prototype,"spacing",2),fs([n({type:String,attribute:"spacing-top",reflect:!0})],Ei.prototype,"spacingTop",2),fs([n({type:String,attribute:"spacing-bottom",reflect:!0})],Ei.prototype,"spacingBottom",2),fs([n({type:String,attribute:"spacing-left",reflect:!0})],Ei.prototype,"spacingLeft",2),fs([n({type:String,attribute:"spacing-right",reflect:!0})],Ei.prototype,"spacingRight",2),Ei=fs([y("scb-vignette")],Ei);var ig=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,uh=e=>{throw TypeError(e)},A=(e,t,i,s)=>{for(var r=s>1?void 0:s?sg(t,i):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&ig(t,i,r),r},rg=(e,t,i)=>t.has(e)||uh("Cannot "+i),ag=(e,t,i)=>t.has(e)?uh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),tn=(e,t,i)=>(rg(e,t,"access private method"),i),$r,gc,yc;const ce={fromAttribute:e=>e??"",toAttribute:e=>typeof e!="string"||e.trim()===""?null:e};let E=class extends x{constructor(){super(...arguments),ag(this,$r),this.__managedSocialAttributes=new Set(["social-comments-text","social-comments","social-comments-href","social-likes-text","social-likes","social-likes-hover-content","social-has-liked","social-likes-interactive","social-author","social-author-text","social-author-href"]),this.__isSyncingManagedSocialAttributes=!1,this.type="standard",this.variant="standard",this.direction="dynamic",this.size="large",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.href="",this.title="",this.subtitle="",this.vignette="",this.supportingText="",this.commentsText="",this.commentsDisabled=!1,this.commentsHref="",this.likesText="",this.likesDisabled=!1,this.likesHoverContent="",this.hasLiked=!1,this.likesInteractive=!0,this.author=!1,this.authorText="",this.authorHref="",this.replyEnabled=!1,this.editEnabled=!1,this.deleteEnabled=!1,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.innerPadding=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.__onImgLoad=e=>{const t=e.currentTarget.closest(".media");t&&t.classList.add("is-loaded")},this.__onKeyDown=e=>{const t=this.__effectiveHref();(e.key==="Enter"||e.key===" ")&&t&&(e.preventDefault(),this.__navigate(t,e))},this.__handleHrefNavigation=e=>{const t=this.__effectiveHref();t&&(e.target.closest("a")||this.__navigate(t,e))}}attributeChangedCallback(e,t,i){this.__isSyncingManagedSocialAttributes&&this.__managedSocialAttributes.has(e)||super.attributeChangedCallback(e,t,i)}get likeButton(){return this.type!=="social"?null:this.renderRoot.querySelector(".likes scb-icon-button")}__calcAspectWH(e){const t=(e||"").trim();if(!t)return{w:600,h:400};const i=t.includes("/")?t.split("/"):t.includes(":")?t.split(":"):t.includes("x")?t.split("x"):null;if(i&&i.length===2){const r=Number(i[0]),a=Number(i[1]);if(r>0&&a>0)return{w:r,h:a}}const s=Number(t);return isFinite(s)&&s>0?{w:1e3,h:Math.round(1e3/s)}:{w:600,h:400}}__noWrapText(e){return(e??"").replace(/ /g," ").replace(/-/g,"‑")}__dispatchLikeEvent(e,t){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:t})),this.dispatchEvent(new CustomEvent(e.replace("-",""),{bubbles:!0,composed:!0,detail:t}))}__dispatchSocialActionEvent(e,t){this.dispatchEvent(new CustomEvent(`social-${e}`,{bubbles:!0,composed:!0,detail:{action:e,originalEvent:t}}))}__dispatchCardNavigate(e,t){const i={href:e,originalEvent:t},s=new CustomEvent("card-navigate",{bubbles:!0,composed:!0,cancelable:!0,detail:i});if(this.dispatchEvent(s),s.defaultPrevented)return!1;const r=new CustomEvent("cardnavigate",{bubbles:!0,composed:!0,cancelable:!0,detail:i});return this.dispatchEvent(r),!r.defaultPrevented}__effectiveHref(){return this.cardHref||this.href}__navigate(e,t){e&&this.__dispatchCardNavigate(e,t)&&window.open(e,"_self")}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return c`
5920
+ `,fs([n({type:String})],Ei.prototype,"label",2),fs([n({type:String,reflect:!0})],Ei.prototype,"variant",2),fs([n({type:String,reflect:!0})],Ei.prototype,"spacing",2),fs([n({type:String,attribute:"spacing-top",reflect:!0})],Ei.prototype,"spacingTop",2),fs([n({type:String,attribute:"spacing-bottom",reflect:!0})],Ei.prototype,"spacingBottom",2),fs([n({type:String,attribute:"spacing-left",reflect:!0})],Ei.prototype,"spacingLeft",2),fs([n({type:String,attribute:"spacing-right",reflect:!0})],Ei.prototype,"spacingRight",2),Ei=fs([y("scb-vignette")],Ei);var ig=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,uh=e=>{throw TypeError(e)},A=(e,t,i,s)=>{for(var r=s>1?void 0:s?sg(t,i):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&ig(t,i,r),r},rg=(e,t,i)=>t.has(e)||uh("Cannot "+i),ag=(e,t,i)=>t.has(e)?uh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),tn=(e,t,i)=>(rg(e,t,"access private method"),i),$r,gc,yc;const ne={fromAttribute:e=>e??"",toAttribute:e=>typeof e!="string"||e.trim()===""?null:e};let E=class extends x{constructor(){super(...arguments),ag(this,$r),this.__managedSocialAttributes=new Set(["social-comments-text","social-comments","social-comments-href","social-likes-text","social-likes","social-likes-hover-content","social-has-liked","social-likes-interactive","social-author","social-author-text","social-author-href"]),this.__isSyncingManagedSocialAttributes=!1,this.type="standard",this.variant="standard",this.direction="dynamic",this.size="large",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.href="",this.title="",this.subtitle="",this.vignette="",this.vignetteVariant="filled",this.supportingText="",this.commentsText="",this.commentsDisabled=!1,this.commentsHref="",this.likesText="",this.likesDisabled=!1,this.likesHoverContent="",this.hasLiked=!1,this.likesInteractive=!0,this.author=!1,this.authorText="",this.authorHref="",this.replyEnabled=!1,this.editEnabled=!1,this.deleteEnabled=!1,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.innerPadding=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.__onImgLoad=e=>{const t=e.currentTarget.closest(".media");t&&t.classList.add("is-loaded")},this.__onKeyDown=e=>{const t=this.__effectiveHref();(e.key==="Enter"||e.key===" ")&&t&&(e.preventDefault(),this.__navigate(t,e))},this.__handleHrefNavigation=e=>{const t=this.__effectiveHref();t&&(e.target.closest("a")||this.__navigate(t,e))}}attributeChangedCallback(e,t,i){this.__isSyncingManagedSocialAttributes&&this.__managedSocialAttributes.has(e)||super.attributeChangedCallback(e,t,i)}get likeButton(){return this.type!=="social"?null:this.renderRoot.querySelector(".likes scb-icon-button")}__calcAspectWH(e){const t=(e||"").trim();if(!t)return{w:600,h:400};const i=t.includes("/")?t.split("/"):t.includes(":")?t.split(":"):t.includes("x")?t.split("x"):null;if(i&&i.length===2){const r=Number(i[0]),a=Number(i[1]);if(r>0&&a>0)return{w:r,h:a}}const s=Number(t);return isFinite(s)&&s>0?{w:1e3,h:Math.round(1e3/s)}:{w:600,h:400}}__noWrapText(e){return(e??"").replace(/ /g," ").replace(/-/g,"‑")}__dispatchLikeEvent(e,t){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:t})),this.dispatchEvent(new CustomEvent(e.replace("-",""),{bubbles:!0,composed:!0,detail:t}))}__dispatchSocialActionEvent(e,t){this.dispatchEvent(new CustomEvent(`social-${e}`,{bubbles:!0,composed:!0,detail:{action:e,originalEvent:t}}))}__dispatchCardNavigate(e,t){const i={href:e,originalEvent:t},s=new CustomEvent("card-navigate",{bubbles:!0,composed:!0,cancelable:!0,detail:i});if(this.dispatchEvent(s),s.defaultPrevented)return!1;const r=new CustomEvent("cardnavigate",{bubbles:!0,composed:!0,cancelable:!0,detail:i});return this.dispatchEvent(r),!r.defaultPrevented}__effectiveHref(){return this.cardHref||this.href}__navigate(e,t){e&&this.__dispatchCardNavigate(e,t)&&window.open(e,"_self")}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return c`
5921
5921
  <div class="media">
5922
5922
  <slot name="media">
5923
5923
  <scb-avatar variant="icon" label="${this.title}" icon-name="person"></scb-avatar>
@@ -5941,7 +5941,7 @@
5941
5941
  </div>
5942
5942
  `}return null}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}__syncStringAttribute(e,t){this.__isSyncingManagedSocialAttributes=!0;try{typeof t=="string"&&t.trim()!==""?this.setAttribute(e,t):this.removeAttribute(e)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncNumberAttribute(e,t){this.__isSyncingManagedSocialAttributes=!0;try{typeof t=="number"&&Number.isFinite(t)?this.setAttribute(e,String(t)):this.removeAttribute(e)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncBooleanAttribute(e,t){this.__isSyncingManagedSocialAttributes=!0;try{t?this.setAttribute(e,""):this.removeAttribute(e)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncSocialAttributes(){this.type==="social"&&(this.__syncStringAttribute("social-comments-text",this.commentsText),this.__syncNumberAttribute("social-comments",this.comments),this.__syncStringAttribute("social-comments-href",this.commentsHref),this.__syncStringAttribute("social-likes-text",this.likesText),this.__syncNumberAttribute("social-likes",this.likes),this.__syncStringAttribute("social-likes-hover-content",this.likesHoverContent),this.__syncBooleanAttribute("social-has-liked",this.hasLiked),this.__syncBooleanAttribute("social-likes-interactive",this.likesInteractive),this.__syncBooleanAttribute("social-author",this.author),this.__syncStringAttribute("social-author-text",this.authorText),this.__syncStringAttribute("social-author-href",this.authorHref))}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=(this.direction||"dynamic").toLowerCase(),s=this.type!=="list"&&this.type!=="container"&&t!=="vertical"&&t!=="horizontal"?"dynamic-direction":"",r=this.type==="list"||this.type==="container"?"vertical":t==="horizontal"?"horizontal":"vertical",a=this.__effectiveHref(),o=(this.type==="standard"||this.type==="social")&&!!a,l=o?"clickable":"",d=this.date instanceof Date?this.date.toISOString().slice(0,10):this.date||"",p=(f=!1)=>f?c`<a class="title" href="${a}" tabindex="-1"
5943
5943
  >${this.title}</a
5944
- ><md-icon>arrow_forward</md-icon>`:c`<span class="title">${this.title}</span>`,b=()=>this.__mediaTemplate(),u=()=>this.vignette&&this.vignette.trim()?c`<scb-vignette class="content-vignette" variant="filled" label="${this.vignette}"></scb-vignette>`:m,v=f=>c`
5944
+ ><md-icon>arrow_forward</md-icon>`:c`<span class="title">${this.title}</span>`,b=()=>this.__mediaTemplate(),u=()=>this.vignette&&this.vignette.trim()?c`<scb-vignette class="content-vignette" variant="${this.vignetteVariant}" label="${this.vignette}"></scb-vignette>`:m,v=f=>c`
5945
5945
  <div
5946
5946
  class="scb-card ${e} ${r} ${s} ${l}"
5947
5947
  @click=${o?this.__handleHrefNavigation:null}
@@ -6670,7 +6670,7 @@
6670
6670
  .scb-card.filled-alternative .content.list ::slotted(scb-list) {
6671
6671
  --scb-list-bg: var(--md-sys-color-surface-container, #EEF3FF);
6672
6672
  }
6673
- `,A([n({type:String,reflect:!0,converter:ce})],E.prototype,"type",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"variant",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"direction",2),A([n({type:String,reflect:!0})],E.prototype,"size",2),A([n({type:String,attribute:"media-type"})],E.prototype,"mediaType",2),A([n({type:String,attribute:"media-href"})],E.prototype,"mediaHref",2),A([n({type:String,attribute:"media-alt"})],E.prototype,"mediaAlt",2),A([n({type:String,attribute:"media-srcset"})],E.prototype,"mediaSrcset",2),A([n({type:String,attribute:"media-sizes"})],E.prototype,"mediaSizes",2),A([n({type:String,attribute:"media-loading"})],E.prototype,"mediaLoading",2),A([n({type:String,attribute:"media-decoding"})],E.prototype,"mediaDecoding",2),A([n({type:String,attribute:"media-fetchpriority"})],E.prototype,"mediaFetchPriority",2),A([n({type:String,attribute:"media-fit"})],E.prototype,"mediaFit",2),A([n({type:String,attribute:"media-position"})],E.prototype,"mediaPosition",2),A([n({type:String,attribute:"media-width"})],E.prototype,"mediaWidth",2),A([n({type:String,attribute:"media-height"})],E.prototype,"mediaHeight",2),A([n({type:String,attribute:"media-aspect"})],E.prototype,"mediaAspect",2),A([n({type:Boolean,attribute:"media-placeholder"})],E.prototype,"mediaPlaceholder",2),A([n({type:String,attribute:"card-href",reflect:!0,converter:ce})],E.prototype,"cardHref",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"href",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"title",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"subtitle",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"vignette",2),A([n({type:String,attribute:"supporting-text",reflect:!0,converter:ce})],E.prototype,"supportingText",2),A([n({type:Date,reflect:!0})],E.prototype,"date",2),A([n({type:String,attribute:"social-comments-text"})],E.prototype,"commentsText",2),A([n({type:Number,attribute:"social-comments"})],E.prototype,"comments",2),A([n({type:Boolean,attribute:"social-comments-disabled"})],E.prototype,"commentsDisabled",2),A([n({type:String,attribute:"social-comments-href"})],E.prototype,"commentsHref",2),A([n({type:String,attribute:"social-likes-text"})],E.prototype,"likesText",2),A([n({type:Number,attribute:"social-likes"})],E.prototype,"likes",2),A([n({type:Boolean,attribute:"social-likes-disabled"})],E.prototype,"likesDisabled",2),A([n({type:String,attribute:"social-likes-hover-content"})],E.prototype,"likesHoverContent",2),A([n({type:Boolean,attribute:"social-has-liked"})],E.prototype,"hasLiked",2),A([n({type:Boolean,attribute:"social-likes-interactive"})],E.prototype,"likesInteractive",2),A([n({type:Boolean,attribute:"social-author"})],E.prototype,"author",2),A([n({type:String,attribute:"social-author-text"})],E.prototype,"authorText",2),A([n({type:String,attribute:"social-author-href"})],E.prototype,"authorHref",2),A([n({type:Boolean,attribute:"social-reply-enabled"})],E.prototype,"replyEnabled",2),A([n({type:Boolean,attribute:"social-edit-enabled"})],E.prototype,"editEnabled",2),A([n({type:Boolean,attribute:"social-delete-enabled"})],E.prototype,"deleteEnabled",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"sizing",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"width",2),A([n({type:String,reflect:!0,attribute:"max-width",converter:ce})],E.prototype,"maxWidth",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"height",2),A([n({type:String,reflect:!0,attribute:"max-height",converter:ce})],E.prototype,"maxHeight",2),A([n({type:String,reflect:!0,converter:ce})],E.prototype,"spacing",2),A([n({type:String,attribute:"spacing-top",reflect:!0,converter:ce})],E.prototype,"spacingTop",2),A([n({type:String,attribute:"spacing-bottom",reflect:!0,converter:ce})],E.prototype,"spacingBottom",2),A([n({type:String,attribute:"spacing-left",reflect:!0,converter:ce})],E.prototype,"spacingLeft",2),A([n({type:String,attribute:"spacing-right",reflect:!0,converter:ce})],E.prototype,"spacingRight",2),A([n({type:String,attribute:"padding",reflect:!0,converter:ce})],E.prototype,"innerPadding",2),A([n({type:String,attribute:"padding-top",reflect:!0,converter:ce})],E.prototype,"paddingTop",2),A([n({type:String,attribute:"padding-bottom",reflect:!0,converter:ce})],E.prototype,"paddingBottom",2),A([n({type:String,attribute:"padding-left",reflect:!0,converter:ce})],E.prototype,"paddingLeft",2),A([n({type:String,attribute:"padding-right",reflect:!0,converter:ce})],E.prototype,"paddingRight",2),E=A([y("scb-card")],E);var og=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,bh=e=>{throw TypeError(e)},It=(e,t,i,s)=>{for(var r=s>1?void 0:s?ng(t,i):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&og(t,i,r),r},lg=(e,t,i)=>t.has(e)||bh("Cannot "+i),cg=(e,t,i)=>t.has(e)?bh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),zr=(e,t,i)=>(lg(e,t,"access private method"),i),gs,_c,ka;let at=class extends x{constructor(){super(...arguments),cg(this,gs),this._contentId=`scb-collapse-content-${Math.random().toString(36).substr(2,9)}`,this.variant="elements",this.collapsedHeight=40,this.visibleElements=1,this.expanded=!1,this._elementCount=0,this.expandButtonLabel="Mer",this.collapseButtonLabel="Mindre",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.itemsGap=void 0,this._contentHeight=0}get _regionLabel(){return`${this.expanded?this.collapseButtonLabel:this.expandButtonLabel} – ${this._contentId}`}toggle(){this.expanded=!this.expanded}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}willUpdate(e){e.has("variant")&&(this._measureContent(!1),this._countElements(!1))}firstUpdated(){var t;requestAnimationFrame(()=>{this._measureContent(),this._countElements()});const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",()=>{requestAnimationFrame(()=>{this._measureContent(),this._countElements(),zr(this,gs,ka).call(this)})}),zr(this,gs,_c).call(this),zr(this,gs,ka).call(this)}updated(e){(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&zr(this,gs,_c).call(this),e.has("itemsGap")&&(zr(this,gs,ka).call(this),this._measureContent()),e.has("expanded")&&(zr(this,gs,ka).call(this),this.dispatchEvent(new CustomEvent("expandedchange",{detail:{expanded:this.expanded},bubbles:!0,composed:!0})))}_measureContent(e=!0){var t;if(this.variant==="height"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(i){const s=i.assignedNodes({flatten:!0});let r=0;s.forEach(o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o;r+=l.offsetHeight||l.scrollHeight||0}});const a=r;a!==this._contentHeight&&(this._contentHeight=a,e&&this.requestUpdate())}}}_countElements(e=!0){var t;if(this.variant==="elements"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(i){const r=i.assignedNodes({flatten:!0}).filter(a=>a.nodeType===Node.ELEMENT_NODE).length;r!==this._elementCount&&(this._elementCount=r,e&&this.requestUpdate())}}}render(){if(this.variant==="height"){const e=this.expanded?`${this._contentHeight}px`:`${this.collapsedHeight}px`,t=this._contentHeight>this.collapsedHeight;return c`
6673
+ `,A([n({type:String,reflect:!0,converter:ne})],E.prototype,"type",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"variant",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"direction",2),A([n({type:String,reflect:!0})],E.prototype,"size",2),A([n({type:String,attribute:"media-type"})],E.prototype,"mediaType",2),A([n({type:String,attribute:"media-href"})],E.prototype,"mediaHref",2),A([n({type:String,attribute:"media-alt"})],E.prototype,"mediaAlt",2),A([n({type:String,attribute:"media-srcset"})],E.prototype,"mediaSrcset",2),A([n({type:String,attribute:"media-sizes"})],E.prototype,"mediaSizes",2),A([n({type:String,attribute:"media-loading"})],E.prototype,"mediaLoading",2),A([n({type:String,attribute:"media-decoding"})],E.prototype,"mediaDecoding",2),A([n({type:String,attribute:"media-fetchpriority"})],E.prototype,"mediaFetchPriority",2),A([n({type:String,attribute:"media-fit"})],E.prototype,"mediaFit",2),A([n({type:String,attribute:"media-position"})],E.prototype,"mediaPosition",2),A([n({type:String,attribute:"media-width"})],E.prototype,"mediaWidth",2),A([n({type:String,attribute:"media-height"})],E.prototype,"mediaHeight",2),A([n({type:String,attribute:"media-aspect"})],E.prototype,"mediaAspect",2),A([n({type:Boolean,attribute:"media-placeholder"})],E.prototype,"mediaPlaceholder",2),A([n({type:String,attribute:"card-href",reflect:!0,converter:ne})],E.prototype,"cardHref",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"href",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"title",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"subtitle",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"vignette",2),A([n({type:String,attribute:"vignette-variant",reflect:!0,converter:ne})],E.prototype,"vignetteVariant",2),A([n({type:String,attribute:"supporting-text",reflect:!0,converter:ne})],E.prototype,"supportingText",2),A([n({type:Date,reflect:!0})],E.prototype,"date",2),A([n({type:String,attribute:"social-comments-text"})],E.prototype,"commentsText",2),A([n({type:Number,attribute:"social-comments"})],E.prototype,"comments",2),A([n({type:Boolean,attribute:"social-comments-disabled"})],E.prototype,"commentsDisabled",2),A([n({type:String,attribute:"social-comments-href"})],E.prototype,"commentsHref",2),A([n({type:String,attribute:"social-likes-text"})],E.prototype,"likesText",2),A([n({type:Number,attribute:"social-likes"})],E.prototype,"likes",2),A([n({type:Boolean,attribute:"social-likes-disabled"})],E.prototype,"likesDisabled",2),A([n({type:String,attribute:"social-likes-hover-content"})],E.prototype,"likesHoverContent",2),A([n({type:Boolean,attribute:"social-has-liked"})],E.prototype,"hasLiked",2),A([n({type:Boolean,attribute:"social-likes-interactive"})],E.prototype,"likesInteractive",2),A([n({type:Boolean,attribute:"social-author"})],E.prototype,"author",2),A([n({type:String,attribute:"social-author-text"})],E.prototype,"authorText",2),A([n({type:String,attribute:"social-author-href"})],E.prototype,"authorHref",2),A([n({type:Boolean,attribute:"social-reply-enabled"})],E.prototype,"replyEnabled",2),A([n({type:Boolean,attribute:"social-edit-enabled"})],E.prototype,"editEnabled",2),A([n({type:Boolean,attribute:"social-delete-enabled"})],E.prototype,"deleteEnabled",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"sizing",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"width",2),A([n({type:String,reflect:!0,attribute:"max-width",converter:ne})],E.prototype,"maxWidth",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"height",2),A([n({type:String,reflect:!0,attribute:"max-height",converter:ne})],E.prototype,"maxHeight",2),A([n({type:String,reflect:!0,converter:ne})],E.prototype,"spacing",2),A([n({type:String,attribute:"spacing-top",reflect:!0,converter:ne})],E.prototype,"spacingTop",2),A([n({type:String,attribute:"spacing-bottom",reflect:!0,converter:ne})],E.prototype,"spacingBottom",2),A([n({type:String,attribute:"spacing-left",reflect:!0,converter:ne})],E.prototype,"spacingLeft",2),A([n({type:String,attribute:"spacing-right",reflect:!0,converter:ne})],E.prototype,"spacingRight",2),A([n({type:String,attribute:"padding",reflect:!0,converter:ne})],E.prototype,"innerPadding",2),A([n({type:String,attribute:"padding-top",reflect:!0,converter:ne})],E.prototype,"paddingTop",2),A([n({type:String,attribute:"padding-bottom",reflect:!0,converter:ne})],E.prototype,"paddingBottom",2),A([n({type:String,attribute:"padding-left",reflect:!0,converter:ne})],E.prototype,"paddingLeft",2),A([n({type:String,attribute:"padding-right",reflect:!0,converter:ne})],E.prototype,"paddingRight",2),E=A([y("scb-card")],E);var og=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,bh=e=>{throw TypeError(e)},It=(e,t,i,s)=>{for(var r=s>1?void 0:s?ng(t,i):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&og(t,i,r),r},lg=(e,t,i)=>t.has(e)||bh("Cannot "+i),cg=(e,t,i)=>t.has(e)?bh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),zr=(e,t,i)=>(lg(e,t,"access private method"),i),gs,_c,ka;let at=class extends x{constructor(){super(...arguments),cg(this,gs),this._contentId=`scb-collapse-content-${Math.random().toString(36).substr(2,9)}`,this.variant="elements",this.collapsedHeight=40,this.visibleElements=1,this.expanded=!1,this._elementCount=0,this.expandButtonLabel="Mer",this.collapseButtonLabel="Mindre",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.itemsGap=void 0,this._contentHeight=0}get _regionLabel(){return`${this.expanded?this.collapseButtonLabel:this.expandButtonLabel} – ${this._contentId}`}toggle(){this.expanded=!this.expanded}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}willUpdate(e){e.has("variant")&&(this._measureContent(!1),this._countElements(!1))}firstUpdated(){var t;requestAnimationFrame(()=>{this._measureContent(),this._countElements()});const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",()=>{requestAnimationFrame(()=>{this._measureContent(),this._countElements(),zr(this,gs,ka).call(this)})}),zr(this,gs,_c).call(this),zr(this,gs,ka).call(this)}updated(e){(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&zr(this,gs,_c).call(this),e.has("itemsGap")&&(zr(this,gs,ka).call(this),this._measureContent()),e.has("expanded")&&(zr(this,gs,ka).call(this),this.dispatchEvent(new CustomEvent("expandedchange",{detail:{expanded:this.expanded},bubbles:!0,composed:!0})))}_measureContent(e=!0){var t;if(this.variant==="height"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(i){const s=i.assignedNodes({flatten:!0});let r=0;s.forEach(o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o;r+=l.offsetHeight||l.scrollHeight||0}});const a=r;a!==this._contentHeight&&(this._contentHeight=a,e&&this.requestUpdate())}}}_countElements(e=!0){var t;if(this.variant==="elements"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(i){const r=i.assignedNodes({flatten:!0}).filter(a=>a.nodeType===Node.ELEMENT_NODE).length;r!==this._elementCount&&(this._elementCount=r,e&&this.requestUpdate())}}}render(){if(this.variant==="height"){const e=this.expanded?`${this._contentHeight}px`:`${this.collapsedHeight}px`,t=this._contentHeight>this.collapsedHeight;return c`
6674
6674
  <div
6675
6675
  class="collapse-content"
6676
6676
  id="${this._contentId}"
@@ -10495,7 +10495,7 @@
10495
10495
  color: var(--md-sys-color-on-secondary-container);
10496
10496
  font-weight: 600;
10497
10497
  }
10498
- `,Ot([n({type:String})],lt.prototype,"label",2),Ot([n({type:String,attribute:"active-href"})],lt.prototype,"activeHref",2),Ot([n({type:Boolean,attribute:"activate-on-click"})],lt.prototype,"activateOnClick",2),Ot([n({type:Boolean,reflect:!0})],lt.prototype,"sticky",2),Ot([n({type:String,attribute:"sticky-top"})],lt.prototype,"stickyTop",2),Ot([n({type:Number,attribute:"sticky-z-index"})],lt.prototype,"stickyZIndex",2),Ot([n({type:String,attribute:"sticky-background"})],lt.prototype,"stickyBackground",2),Ot([n({type:String,reflect:!0})],lt.prototype,"spacing",2),Ot([n({type:String,attribute:"spacing-top",reflect:!0})],lt.prototype,"spacingTop",2),Ot([n({type:String,attribute:"spacing-bottom",reflect:!0})],lt.prototype,"spacingBottom",2),Ot([n({type:String,attribute:"spacing-left",reflect:!0})],lt.prototype,"spacingLeft",2),Ot([n({type:String,attribute:"spacing-right",reflect:!0})],lt.prototype,"spacingRight",2),lt=Ot([y("scb-nav")],lt);var Iy=Object.defineProperty,My=Object.getOwnPropertyDescriptor,ne=(e,t,i,s)=>{for(var r=s>1?void 0:s?My(t,i):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&Iy(t,i,r),r};let ie=class extends x{constructor(){super(...arguments),this.variant="success",this.direction="horizontal",this.size="large",this.title="",this.subtitle="",this.supportingText="",this.open=!1,this.linkText="",this.linkHref="#",this.href="",this.showIcon=!1,this.showCloseButton=!1,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.fullHeight=!1,this.fullWidth=!1,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._closeNotification=()=>{this.open=!1;const e=new CustomEvent("close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(e);const t=new CustomEvent("Close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(t)}}_iconForVariant(){switch(this.variant){case"success":return"check_circle";case"error":return"error";case"warning":return"warning";case"info":default:return"info"}}__resolveSpacingToken(e){const t=(e??"").trim();return t?/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t:""}__applySpacing(){const e=this.__resolveSpacingToken(this.spacingTop||this.spacing),t=this.__resolveSpacingToken(this.spacingBottom||this.spacing),i=this.__resolveSpacingToken(this.spacingLeft||this.spacing),s=this.__resolveSpacingToken(this.spacingRight||this.spacing);e?this.style.marginBlockStart=e:this.style.removeProperty("margin-block-start"),t?this.style.marginBlockEnd=t:this.style.removeProperty("margin-block-end"),i?this.style.marginInlineStart=i:this.style.removeProperty("margin-inline-start"),s?this.style.marginInlineEnd=s:this.style.removeProperty("margin-inline-end")}updated(e){super.updated(e),e.has("width")&&(this.width&&this.width.trim()!==""?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth&&this.maxWidth.trim()!==""?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height&&this.height.trim()!==""?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight&&this.maxHeight.trim()!==""?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&this.__applySpacing()}render(){const e=this.direction==="vertical"?"vertical":"horizontal",t=!!(this.title||this.subtitle),i=!!(this.supportingText&&!this.title&&!this.subtitle&&!this.linkText),s=this.variant==="success"?"--_icon-color: var(--md-sys-color-on-success-container, #007041);":this.variant==="error"?"--_icon-color: var(--md-sys-color-on-error-container, #942500);":this.variant==="warning"?"--_icon-color: var(--md-sys-color-on-warning-container, #6B5600);":"--_icon-color: var(--md-sys-color-on-info-container, #1E00BE);",r=this.linkHref&&this.linkHref!=="#"?this.linkHref:this.href||this.linkHref;return c`
10498
+ `,Ot([n({type:String})],lt.prototype,"label",2),Ot([n({type:String,attribute:"active-href"})],lt.prototype,"activeHref",2),Ot([n({type:Boolean,attribute:"activate-on-click"})],lt.prototype,"activateOnClick",2),Ot([n({type:Boolean,reflect:!0})],lt.prototype,"sticky",2),Ot([n({type:String,attribute:"sticky-top"})],lt.prototype,"stickyTop",2),Ot([n({type:Number,attribute:"sticky-z-index"})],lt.prototype,"stickyZIndex",2),Ot([n({type:String,attribute:"sticky-background"})],lt.prototype,"stickyBackground",2),Ot([n({type:String,reflect:!0})],lt.prototype,"spacing",2),Ot([n({type:String,attribute:"spacing-top",reflect:!0})],lt.prototype,"spacingTop",2),Ot([n({type:String,attribute:"spacing-bottom",reflect:!0})],lt.prototype,"spacingBottom",2),Ot([n({type:String,attribute:"spacing-left",reflect:!0})],lt.prototype,"spacingLeft",2),Ot([n({type:String,attribute:"spacing-right",reflect:!0})],lt.prototype,"spacingRight",2),lt=Ot([y("scb-nav")],lt);var Iy=Object.defineProperty,My=Object.getOwnPropertyDescriptor,le=(e,t,i,s)=>{for(var r=s>1?void 0:s?My(t,i):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&Iy(t,i,r),r};let ie=class extends x{constructor(){super(...arguments),this.variant="success",this.direction="horizontal",this.size="large",this.title="",this.subtitle="",this.supportingText="",this.open=!1,this.linkText="",this.linkHref="#",this.href="",this.showIcon=!1,this.showCloseButton=!1,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.fullHeight=!1,this.fullWidth=!1,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._closeNotification=()=>{this.open=!1;const e=new CustomEvent("close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(e);const t=new CustomEvent("Close",{detail:{open:this.open},bubbles:!0,composed:!0});this.dispatchEvent(t)}}_iconForVariant(){switch(this.variant){case"success":return"check_circle";case"error":return"error";case"warning":return"warning";case"info":default:return"info"}}__resolveSpacingToken(e){const t=(e??"").trim();return t?/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t:""}__applySpacing(){const e=this.__resolveSpacingToken(this.spacingTop||this.spacing),t=this.__resolveSpacingToken(this.spacingBottom||this.spacing),i=this.__resolveSpacingToken(this.spacingLeft||this.spacing),s=this.__resolveSpacingToken(this.spacingRight||this.spacing);e?this.style.marginBlockStart=e:this.style.removeProperty("margin-block-start"),t?this.style.marginBlockEnd=t:this.style.removeProperty("margin-block-end"),i?this.style.marginInlineStart=i:this.style.removeProperty("margin-inline-start"),s?this.style.marginInlineEnd=s:this.style.removeProperty("margin-inline-end")}updated(e){super.updated(e),e.has("width")&&(this.width&&this.width.trim()!==""?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth&&this.maxWidth.trim()!==""?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height&&this.height.trim()!==""?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight&&this.maxHeight.trim()!==""?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&this.__applySpacing()}render(){const e=this.direction==="vertical"?"vertical":"horizontal",t=!!(this.title||this.subtitle),i=!!(this.supportingText&&!this.title&&!this.subtitle&&!this.linkText),s=this.variant==="success"?"--_icon-color: var(--md-sys-color-on-success-container, #007041);":this.variant==="error"?"--_icon-color: var(--md-sys-color-on-error-container, #942500);":this.variant==="warning"?"--_icon-color: var(--md-sys-color-on-warning-container, #6B5600);":"--_icon-color: var(--md-sys-color-on-info-container, #1E00BE);",r=this.linkHref&&this.linkHref!=="#"?this.linkHref:this.href||this.linkHref;return c`
10499
10499
  <div class="notification" type=${this.variant} role="alert" aria-live="assertive" aria-atomic="true">
10500
10500
  <div class="notification-main ${e}">
10501
10501
  ${this.showIcon?c`
@@ -10852,7 +10852,7 @@
10852
10852
  box-shadow: 0 0 0 2px var(--md-sys-color-primary, #1976d2);
10853
10853
  }
10854
10854
  }
10855
- `],ne([n({type:String})],ie.prototype,"variant",2),ne([n({type:String,reflect:!0})],ie.prototype,"direction",2),ne([n({type:String,reflect:!0})],ie.prototype,"size",2),ne([n({type:String})],ie.prototype,"title",2),ne([n({type:String})],ie.prototype,"subtitle",2),ne([n({type:String,attribute:"supporting-text"})],ie.prototype,"supportingText",2),ne([n({type:Boolean,reflect:!0})],ie.prototype,"open",2),ne([n({type:String,attribute:"link-text"})],ie.prototype,"linkText",2),ne([n({type:String,attribute:"link-href"})],ie.prototype,"linkHref",2),ne([n({type:String})],ie.prototype,"href",2),ne([n({type:Boolean,attribute:"show-icon"})],ie.prototype,"showIcon",2),ne([n({type:Boolean,attribute:"show-close-button"})],ie.prototype,"showCloseButton",2),ne([n({type:String,reflect:!0})],ie.prototype,"sizing",2),ne([n({type:String,reflect:!0})],ie.prototype,"width",2),ne([n({type:String,reflect:!0,attribute:"max-width"})],ie.prototype,"maxWidth",2),ne([n({type:String,reflect:!0})],ie.prototype,"height",2),ne([n({type:String,reflect:!0,attribute:"max-height"})],ie.prototype,"maxHeight",2),ne([n({type:Boolean,reflect:!0,attribute:"full-height"})],ie.prototype,"fullHeight",2),ne([n({type:Boolean,reflect:!0,attribute:"full-width"})],ie.prototype,"fullWidth",2),ne([n({type:String})],ie.prototype,"spacing",2),ne([n({type:String,attribute:"spacing-top"})],ie.prototype,"spacingTop",2),ne([n({type:String,attribute:"spacing-bottom"})],ie.prototype,"spacingBottom",2),ne([n({type:String,attribute:"spacing-left"})],ie.prototype,"spacingLeft",2),ne([n({type:String,attribute:"spacing-right"})],ie.prototype,"spacingRight",2),ie=ne([y("scb-notification-card")],ie);var Ry=Object.defineProperty,Dy=Object.getOwnPropertyDescriptor,ct=(e,t,i,s)=>{for(var r=s>1?void 0:s?Dy(t,i):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&Ry(t,i,r),r};let Ue=class extends x{constructor(){super(...arguments),this.variant="icon-text",this.page=1,this.totalPages=0,this.pagingHref="",this.baseUri="",this.paginationAriaLabel="Paginering",this.currentAriaLabel="Nuvarande sida, ",this.pagingNumberAriaLabel="Gå till sida ",this.isNarrow=window.innerWidth<=768,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._onResize=()=>{this.isNarrow=window.innerWidth<=768}}_emitPageChange(e){const t={page:e};this.dispatchEvent(new CustomEvent("page-change",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("pagechange",{detail:t,bubbles:!0,composed:!0}))}_getPagingHref(e){if(!this.pagingHref)return;const t=(this.baseUri||"").trim(),i=t||window.location.href,s=new URL(i,window.location.href),a=this.pagingHref.trim().replace(/^[?&]/,"").split("=")[0];if(a)return s.searchParams.delete(a),s.searchParams.set(a,String(e)),/^https?:\/\//i.test(t)?s.toString():`${s.pathname}${s.search}${s.hash}`}_handlePageSelection(e,t){!this.pagingHref&&t&&t.preventDefault(),this.page=e,this._emitPageChange(e)}_prevPage(e){if(this.page<=1){!this.pagingHref&&e&&e.preventDefault();return}this._handlePageSelection(this.page-1,e)}_nextPage(e){if(this.page>=this.totalPages){!this.pagingHref&&e&&e.preventDefault();return}this._handlePageSelection(this.page+1,e)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._onResize),this._onResize()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._onResize)}mapSpacingToken(e){if(e==null)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}__applySpacing(){const e=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??e,i=this.mapSpacingToken(this.spacingBottom)??e,s=this.mapSpacingToken(this.spacingLeft),r=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-pagination-spacing-block-start",t):this.style.removeProperty("--scb-pagination-spacing-block-start"),i?this.style.setProperty("--scb-pagination-spacing-block-end",i):this.style.removeProperty("--scb-pagination-spacing-block-end"),s?this.style.setProperty("--scb-pagination-spacing-inline-start",s):this.style.removeProperty("--scb-pagination-spacing-inline-start"),r?this.style.setProperty("--scb-pagination-spacing-inline-end",r):this.style.removeProperty("--scb-pagination-spacing-inline-end")}firstUpdated(){this.__applySpacing()}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&this.__applySpacing()}render(){if(this.totalPages===0)return null;const e=this.variant?`${this.variant.toLowerCase()}`:"",t=[],{page:i,totalPages:s}=this,r=window.innerWidth<=768,a=r?1:2,o=this._getPagingHref(Math.max(1,this.page-1)),l=this._getPagingHref(Math.min(this.totalPages,this.page+1)),d=this.pagingHref?this.variant==="icon"?c`<a
10855
+ `],le([n({type:String})],ie.prototype,"variant",2),le([n({type:String,reflect:!0})],ie.prototype,"direction",2),le([n({type:String,reflect:!0})],ie.prototype,"size",2),le([n({type:String})],ie.prototype,"title",2),le([n({type:String})],ie.prototype,"subtitle",2),le([n({type:String,attribute:"supporting-text"})],ie.prototype,"supportingText",2),le([n({type:Boolean,reflect:!0})],ie.prototype,"open",2),le([n({type:String,attribute:"link-text"})],ie.prototype,"linkText",2),le([n({type:String,attribute:"link-href"})],ie.prototype,"linkHref",2),le([n({type:String})],ie.prototype,"href",2),le([n({type:Boolean,attribute:"show-icon"})],ie.prototype,"showIcon",2),le([n({type:Boolean,attribute:"show-close-button"})],ie.prototype,"showCloseButton",2),le([n({type:String,reflect:!0})],ie.prototype,"sizing",2),le([n({type:String,reflect:!0})],ie.prototype,"width",2),le([n({type:String,reflect:!0,attribute:"max-width"})],ie.prototype,"maxWidth",2),le([n({type:String,reflect:!0})],ie.prototype,"height",2),le([n({type:String,reflect:!0,attribute:"max-height"})],ie.prototype,"maxHeight",2),le([n({type:Boolean,reflect:!0,attribute:"full-height"})],ie.prototype,"fullHeight",2),le([n({type:Boolean,reflect:!0,attribute:"full-width"})],ie.prototype,"fullWidth",2),le([n({type:String})],ie.prototype,"spacing",2),le([n({type:String,attribute:"spacing-top"})],ie.prototype,"spacingTop",2),le([n({type:String,attribute:"spacing-bottom"})],ie.prototype,"spacingBottom",2),le([n({type:String,attribute:"spacing-left"})],ie.prototype,"spacingLeft",2),le([n({type:String,attribute:"spacing-right"})],ie.prototype,"spacingRight",2),ie=le([y("scb-notification-card")],ie);var Ry=Object.defineProperty,Dy=Object.getOwnPropertyDescriptor,ct=(e,t,i,s)=>{for(var r=s>1?void 0:s?Dy(t,i):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&Ry(t,i,r),r};let Ue=class extends x{constructor(){super(...arguments),this.variant="icon-text",this.page=1,this.totalPages=0,this.pagingHref="",this.baseUri="",this.paginationAriaLabel="Paginering",this.currentAriaLabel="Nuvarande sida, ",this.pagingNumberAriaLabel="Gå till sida ",this.isNarrow=window.innerWidth<=768,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._onResize=()=>{this.isNarrow=window.innerWidth<=768}}_emitPageChange(e){const t={page:e};this.dispatchEvent(new CustomEvent("page-change",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("pagechange",{detail:t,bubbles:!0,composed:!0}))}_getPagingHref(e){if(!this.pagingHref)return;const t=(this.baseUri||"").trim(),i=t||window.location.href,s=new URL(i,window.location.href),a=this.pagingHref.trim().replace(/^[?&]/,"").split("=")[0];if(a)return s.searchParams.delete(a),s.searchParams.set(a,String(e)),/^https?:\/\//i.test(t)?s.toString():`${s.pathname}${s.search}${s.hash}`}_handlePageSelection(e,t){!this.pagingHref&&t&&t.preventDefault(),this.page=e,this._emitPageChange(e)}_prevPage(e){if(this.page<=1){!this.pagingHref&&e&&e.preventDefault();return}this._handlePageSelection(this.page-1,e)}_nextPage(e){if(this.page>=this.totalPages){!this.pagingHref&&e&&e.preventDefault();return}this._handlePageSelection(this.page+1,e)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._onResize),this._onResize()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._onResize)}mapSpacingToken(e){if(e==null)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}__applySpacing(){const e=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??e,i=this.mapSpacingToken(this.spacingBottom)??e,s=this.mapSpacingToken(this.spacingLeft),r=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-pagination-spacing-block-start",t):this.style.removeProperty("--scb-pagination-spacing-block-start"),i?this.style.setProperty("--scb-pagination-spacing-block-end",i):this.style.removeProperty("--scb-pagination-spacing-block-end"),s?this.style.setProperty("--scb-pagination-spacing-inline-start",s):this.style.removeProperty("--scb-pagination-spacing-inline-start"),r?this.style.setProperty("--scb-pagination-spacing-inline-end",r):this.style.removeProperty("--scb-pagination-spacing-inline-end")}firstUpdated(){this.__applySpacing()}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&this.__applySpacing()}render(){if(this.totalPages===0)return null;const e=this.variant?`${this.variant.toLowerCase()}`:"",t=[],{page:i,totalPages:s}=this,r=window.innerWidth<=768,a=r?1:2,o=this._getPagingHref(Math.max(1,this.page-1)),l=this._getPagingHref(Math.min(this.totalPages,this.page+1)),d=this.pagingHref?this.variant==="icon"?c`<a
10856
10856
  class="paging-action-link"
10857
10857
  href=${o}
10858
10858
  @click=${this._prevPage}