Files
2026-01-30 23:31:00 -06:00

3 lines
25 KiB
JavaScript

/*! For license information please see 6426.b74667a5973a1a42.js.LICENSE.txt */
export const ids=["6426"];export const modules={84632:function(o,e,r){r.d(e,{Q2:function(){return i},ou:function(){return a}});r(39527),r(41360),r(75656),r(50100),r(18084);var t=r(13089);const i=()=>{const o={},e=new URLSearchParams(t.E.location.search);for(const[r,t]of e.entries())o[r]=t;return o},a=o=>{const e=new URLSearchParams;return Object.entries(o).forEach((([o,r])=>{e.append(o,r)})),e.toString()}},84573:function(o,e,r){var t=r(44249),i=r(74763),a=r(50778);(0,t.Z)([(0,a.Mo)("ha-chip-set")],(function(o,e){return{F:class extends e{constructor(...e){super(...e),o(this)}},d:[]}}),i.l)},1192:function(o,e,r){var t=r(44249),i=r(57243),a=r(50778);(0,t.Z)([(0,a.Mo)("ha-card")],(function(o,e){return{F:class extends e{constructor(...e){super(...e),o(this)}},d:[{kind:"field",decorators:[(0,a.Cb)()],key:"header",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Boolean,reflect:!0})],key:"raised",value:()=>!1},{kind:"get",static:!0,key:"styles",value:function(){return i.iv`:host{background:var(--ha-card-background,var(--card-background-color,#fff));-webkit-backdrop-filter:var(--ha-card-backdrop-filter,none);backdrop-filter:var(--ha-card-backdrop-filter,none);box-shadow:var(--ha-card-box-shadow,none);box-sizing:border-box;border-radius:var(--ha-card-border-radius,12px);border-width:var(--ha-card-border-width,1px);border-style:solid;border-color:var(--ha-card-border-color,var(--divider-color,#e0e0e0));color:var(--primary-text-color);display:block;transition:all .3s ease-out;position:relative}:host([raised]){border:none;box-shadow:var(--ha-card-box-shadow,0px 2px 1px -1px rgba(0,0,0,.2),0px 1px 1px 0px rgba(0,0,0,.14),0px 1px 3px 0px rgba(0,0,0,.12))}.card-header,:host ::slotted(.card-header){color:var(--ha-card-header-color,var(--primary-text-color));font-family:var(--ha-card-header-font-family, inherit);font-size:var(--ha-card-header-font-size, 24px);letter-spacing:-.012em;line-height:48px;padding:12px 16px 16px;display:block;margin-block-start:0px;margin-block-end:0px;font-weight:400}:host ::slotted(.card-content:not(:first-child)),slot:not(:first-child)::slotted(.card-content){padding-top:0px;margin-top:-8px}:host ::slotted(.card-content){padding:16px}:host ::slotted(.card-actions){border-top:1px solid var(--divider-color,#e8e8e8);padding:5px 16px}`}},{kind:"method",key:"render",value:function(){return i.dy` ${this.header?i.dy`<h1 class="card-header">${this.header}</h1>`:i.Ld} <slot></slot> `}}]}}),i.oi)},90977:function(o,e,r){var t=r(44249),i=r(72621),a=r(58795),s=r(57243),n=r(50778);(0,t.Z)([(0,n.Mo)("ha-circular-progress")],(function(o,e){class r extends e{constructor(...e){super(...e),o(this)}}return{F:r,d:[{kind:"field",decorators:[(0,n.Cb)({attribute:"aria-label",type:String})],key:"ariaLabel",value:()=>"Loading"},{kind:"field",decorators:[(0,n.Cb)()],key:"size",value:void 0},{kind:"method",key:"updated",value:function(o){if((0,i.Z)(r,"updated",this,3)([o]),o.has("size"))switch(this.size){case"tiny":this.style.setProperty("--md-circular-progress-size","16px");break;case"small":this.style.setProperty("--md-circular-progress-size","28px");break;case"medium":this.style.setProperty("--md-circular-progress-size","48px");break;case"large":this.style.setProperty("--md-circular-progress-size","68px")}}},{kind:"field",static:!0,key:"styles",value(){return[...(0,i.Z)(r,"styles",this),s.iv`:host{--md-sys-color-primary:var(--primary-color);--md-circular-progress-size:48px}`]}}]}}),a.B)},68455:function(o,e,r){r.r(e);var t=r(44249),i=r(57243),a=r(50778),s=(r(90977),r(92500),r(89654),r(66193));(0,t.Z)([(0,a.Mo)("hass-loading-screen")],(function(o,e){return{F:class extends e{constructor(...e){super(...e),o(this)}},d:[{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Boolean,attribute:"no-toolbar"})],key:"noToolbar",value:()=>!1},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"rootnav",value:()=>!1},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,a.Cb)()],key:"message",value:void 0},{kind:"method",key:"render",value:function(){return i.dy` ${this.noToolbar?"":i.dy`<div class="toolbar"> ${this.rootnav||history.state?.root?i.dy` <ha-menu-button .hass="${this.hass}" .narrow="${this.narrow}"></ha-menu-button> `:i.dy` <ha-icon-button-arrow-prev .hass="${this.hass}" @click="${this._handleBack}"></ha-icon-button-arrow-prev> `} </div>`} <div class="content"> <ha-circular-progress indeterminate></ha-circular-progress> ${this.message?i.dy`<div id="loading-text">${this.message}</div>`:i.Ld} </div> `}},{kind:"method",key:"_handleBack",value:function(){history.back()}},{kind:"get",static:!0,key:"styles",value:function(){return[s.Qx,i.iv`:host{display:block;height:100%;background-color:var(--primary-background-color)}.toolbar{display:flex;align-items:center;font-size:20px;height:var(--header-height);padding:8px 12px;pointer-events:none;background-color:var(--app-header-background-color);font-weight:400;color:var(--app-header-text-color,#fff);border-bottom:var(--app-header-border-bottom,none);box-sizing:border-box}@media (max-width:599px){.toolbar{padding:4px}}ha-icon-button-arrow-prev,ha-menu-button{pointer-events:auto}.content{height:calc(100% - var(--header-height));display:flex;flex-direction:column;align-items:center;justify-content:center}#loading-text{max-width:350px;margin-top:16px}`]}}]}}),i.oi)},84285:function(o,e,r){r.r(e),r.d(e,{HacsRepositoryDashboard:()=>m});var t=r("44249"),i=r("72621"),a=(r("92745"),r("39527"),r("67670"),r("41360"),r("13334"),r("75656"),r("50100"),r("18084"),r("57243")),s=r("50778"),n=r("27486"),c=r("13089"),d=r("84632"),l=(r("1025"),r("84573"),r("17949"),r("1192"),r("12974"),r("61158"),r("5848"),r("88002"),r("4557")),h=(r("3035"),r("68455"),r("82283")),p=(r("92500"),r("89654"),r("66193"));(0,t.Z)([(0,s.Mo)("hass-subpage")],(function(o,e){return{F:class extends e{constructor(...e){super(...e),o(this)}},d:[{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,s.Cb)()],key:"header",value:void 0},{kind:"field",decorators:[(0,s.Cb)({type:Boolean,attribute:"main-page"})],key:"mainPage",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:String,attribute:"back-path"})],key:"backPath",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"backCallback",value:void 0},{kind:"field",decorators:[(0,s.Cb)({type:Boolean,reflect:!0})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"supervisor",value:()=>!1},{kind:"field",decorators:[(0,h.i)(".content")],key:"_savedScrollPos",value:void 0},{kind:"method",key:"render",value:function(){return a.dy` <div class="toolbar"> ${this.mainPage||history.state?.root?a.dy` <ha-menu-button .hassio="${this.supervisor}" .hass="${this.hass}" .narrow="${this.narrow}"></ha-menu-button> `:this.backPath?a.dy` <a href="${this.backPath}"> <ha-icon-button-arrow-prev .hass="${this.hass}"></ha-icon-button-arrow-prev> </a> `:a.dy` <ha-icon-button-arrow-prev .hass="${this.hass}" @click="${this._backTapped}"></ha-icon-button-arrow-prev> `} <div class="main-title"><slot name="header">${this.header}</slot></div> <slot name="toolbar-icon"></slot> </div> <div class="content ha-scrollbar" @scroll="${this._saveScrollPos}"> <slot></slot> </div> <div id="fab"> <slot name="fab"></slot> </div> `}},{kind:"method",decorators:[(0,s.hO)({passive:!0})],key:"_saveScrollPos",value:function(o){this._savedScrollPos=o.target.scrollTop}},{kind:"method",key:"_backTapped",value:function(){this.backCallback?this.backCallback():history.back()}},{kind:"get",static:!0,key:"styles",value:function(){return[p.$c,a.iv`:host{display:block;height:100%;background-color:var(--primary-background-color);overflow:hidden;position:relative}:host([narrow]){width:100%;position:fixed}.toolbar{display:flex;align-items:center;font-size:20px;height:var(--header-height);padding:8px 12px;background-color:var(--app-header-background-color);font-weight:400;color:var(--app-header-text-color,#fff);border-bottom:var(--app-header-border-bottom,none);box-sizing:border-box}@media (max-width:599px){.toolbar{padding:4px}}.toolbar a{color:var(--sidebar-text-color);text-decoration:none}::slotted([slot=toolbar-icon]),ha-icon-button-arrow-prev,ha-menu-button{pointer-events:auto;color:var(--sidebar-icon-color)}.main-title{margin:var(--margin-title);line-height:20px;min-width:0;flex-grow:1;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;padding-bottom:1px}.content{position:relative;width:100%;height:calc(100% - 1px - var(--header-height));overflow-y:auto;overflow:auto;-webkit-overflow-scrolling:touch}#fab{position:absolute;right:calc(16px + env(safe-area-inset-right));inset-inline-end:calc(16px + env(safe-area-inset-right));inset-inline-start:initial;bottom:calc(16px + env(safe-area-inset-bottom));z-index:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}:host([narrow]) #fab.tabs{bottom:calc(84px + env(safe-area-inset-bottom))}#fab[is-wide]{bottom:24px;right:24px;inset-inline-end:24px;inset-inline-start:initial}`]}}]}}),a.oi);var u=r("23660"),v=r("82290"),f=r("49236"),b=r("42104"),y=r("51597");const g=o=>o.toLowerCase().includes(".md")||o.toLowerCase().includes(".markdown");let m=(0,t.Z)([(0,s.Mo)("hacs-repository-dashboard")],(function(o,e){class r extends e{constructor(...e){super(...e),o(this)}}return{F:r,d:[{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hacs",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"narrow",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"isWide",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"route",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_repository",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_error",value:void 0},{kind:"field",decorators:[(0,s.IO)("#overflow-menu")],key:"_repositoryOverflowMenu",value:void 0},{kind:"method",key:"connectedCallback",value:function(){(0,i.Z)(r,"connectedCallback",this,3)([]),document.body.addEventListener("keydown",this._generateMyLink)}},{kind:"method",key:"disconnectedCallback",value:function(){(0,i.Z)(r,"disconnectedCallback",this,3)([]),document.body.removeEventListener("keydown",this._generateMyLink)}},{kind:"field",key:"_generateMyLink",value(){return o=>{if(!(o.ctrlKey||o.shiftKey||o.metaKey||o.altKey)&&"m"===o.key&&c.E.location.pathname.startsWith("/hacs/repository/")){if(!this._repository)return;const o=new URLSearchParams({redirect:"hacs_repository",owner:this._repository.full_name.split("/")[0],repository:this._repository.full_name.split("/")[1],category:this._repository.category});window.open(`https://my.home-assistant.io/create-link/?${o.toString()}`,"_blank")}}}},{kind:"method",key:"firstUpdated",value:async function(o){(0,i.Z)(r,"firstUpdated",this,3)([o]);const e=(0,d.Q2)();if(Object.entries(e).length){let o;const r=`${e.owner}/${e.repository}`;if(o=this.hacs.repositories.find((o=>o.full_name.toLocaleLowerCase()===r.toLocaleLowerCase())),!o&&e.category){if(!await(0,l.g7)(this,{title:this.hacs.localize("my.add_repository_title"),text:this.hacs.localize("my.add_repository_description",{repository:r}),confirmText:this.hacs.localize("common.add"),dismissText:this.hacs.localize("common.cancel")}))return void(this._error=this.hacs.localize("my.repository_not_found",{repository:r}));try{await(0,b.NA)(this.hass,r,e.category),this.hacs.repositories=await(0,b.ER)(this.hass),o=this.hacs.repositories.find((o=>o.full_name.toLocaleLowerCase()===r.toLocaleLowerCase()))}catch(o){return void(this._error=o)}}o?this._fetchRepository(String(o.id)):this._error=this.hacs.localize("my.repository_not_found",{repository:r})}else{const o=this.route.path.indexOf("/",1),e=this.route.path.substr(o+1);if(!e)return void(this._error="Missing repositoryId from route");this._fetchRepository(e)}}},{kind:"method",key:"updated",value:function(o){(0,i.Z)(r,"updated",this,3)([o]),o.has("repositories")&&this._repository&&this._fetchRepository()}},{kind:"method",key:"_fetchRepository",value:async function(o){try{this._repository=await(0,f.nj)(this.hass,o||String(this._repository.id))}catch(o){this._error=o?.message}}},{kind:"field",key:"_getAuthors",value:()=>(0,n.Z)((o=>{const e=[];if(!o.authors)return e;if(o.authors.forEach((o=>e.push(o.replace("@","")))),0===e.length){const r=o.full_name.split("/")[0];if(["custom-cards","custom-components","home-assistant-community-themes"].includes(r))return e;e.push(r)}return e}))},{kind:"method",key:"render",value:function(){if(this._error)return a.dy`<hass-error-screen .error="${this._error}"></hass-error-screen>`;if(!this._repository)return a.dy`<hass-loading-screen></hass-loading-screen>`;const o=this._getAuthors(this._repository);return a.dy` <hass-subpage .hass="${this.hass}" .narrow="${this.narrow}" .route="${this.route}" .header="${this._repository.name}" hasFab> <ha-icon-button slot="toolbar-icon" .label="${this.hass.localize("ui.common.overflow_menu")||"overflow_menu"}" .path="${"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z"}" @click="${this._showOverflowRepositoryMenu}"></ha-icon-button> <div class="content"> <ha-card> <ha-chip-set> ${this._repository.installed?a.dy` <ha-assist-chip .label="${this._repository.installed_version}" title="${this.hacs.localize("dialog_info.version_installed")}"> <ha-svg-icon slot="icon" .path="${"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15Z"}"></ha-svg-icon> </ha-assist-chip> `:""} ${o?o.map((o=>a.dy`<a href="https://github.com/${o}" target="_blank" rel="noreferrer noopener"> <ha-assist-chip .label="${o}" title="${this.hacs.localize("dialog_info.author")}"> <ha-svg-icon slot="icon" .path="${"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"}"></ha-svg-icon> @${o} </ha-assist-chip> </a>`)):""} ${this._repository.downloads?a.dy` <ha-assist-chip title="${this.hacs.localize("dialog_info.downloads")}" .label="${String(this._repository.downloads)}"> <ha-svg-icon slot="icon" .path="${"M9,4H15V12H19.84L12,19.84L4.16,12H9V4Z"}"></ha-svg-icon> </ha-assist-chip>`:""} <ha-assist-chip .label="${String(this._repository.stars)}" title="${this.hacs.localize("dialog_info.stars")}"> <ha-svg-icon slot="icon" .path="${"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"}"></ha-svg-icon> ${this._repository.stars} </ha-assist-chip> <a href="https://github.com/${this._repository.full_name}/issues" target="_blank" rel="noreferrer noopener"> <ha-assist-chip .label="${String(this._repository.issues)}" title="${this.hacs.localize("dialog_info.open_issues")}"> <ha-svg-icon slot="icon" .path="${"M10 3H14V14H10V3M10 21V17H14V21H10Z"}"></ha-svg-icon> ${this._repository.issues} </ha-assist-chip> </a> </ha-chip-set> <ha-markdown .content="${e=this._repository.additional_info,r=this._repository,e=e.replace(/https:\/\/github\.com\/([^\/]+)\/([^\/]+)\/blob\/([^\s]+)/g,(function(o,e,r,t){return g(o)?o:`https://raw.githubusercontent.com/${e}/${r}/${t}`})),r&&(e=(e=(e=e.replace(/\[.*?\]\([^#](?!.*?:\/\/).*?\)/g,(function(o){const e=g(o);return o.replace("(/","(").replace("(",`(${e?"https://github.com":"https://raw.githubusercontent.com"}/${r.full_name}${e?"/blob":""}/${r.available_version||r.default_branch}/`)}))).replace(/\[.*\]\(\#.*\)/g,(function(o){return o.replace("(#",`(/hacs/repository/${r.id}#`)}))).replace(/(?:\w[\w-.]+\/\w[\w-.]+|\B)#[1-9]\d*\b/g,(o=>{const e=o.replace(/^#/,`${r.full_name}#`),[t,i]=e.split("#");return`[${o}](https://github.com/${t}/issues/${i})`}))),e||this.hacs.localize("dialog_info.no_info")}"></ha-markdown> </ha-card> </div> ${this._repository.installed_version?"":a.dy`<ha-fab .label="${this.hacs.localize("common.download")}" .extended="${!this.narrow}" @click="${this._downloadRepositoryDialog}"> <ha-svg-icon slot="icon" .path="${"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"}"></ha-svg-icon> </ha-fab>`} </hass-subpage> <ha-menu id="overflow-menu" positioning="fixed"> ${(0,v.G)(this,this._repository,this.hacs.localize).map((o=>o.divider?a.dy`<li divider role="separator"></li>`:a.dy` <ha-md-menu-item class="${o.error?"error":o.warning?"warning":""}" .clickAction="${()=>{o?.action&&o.action()}}"> <ha-svg-icon .path="${o.path}" slot="start"></ha-svg-icon> <div slot="headline">${o.label}</div> </ha-md-menu-item> `))} </ha-menu> `;var e,r}},{kind:"field",key:"_showOverflowRepositoryMenu",value(){return o=>{this._repositoryOverflowMenu.open&&o.target===this._repositoryOverflowMenu.anchorElement?this._repositoryOverflowMenu.close():(this._repositoryOverflowMenu.anchorElement=o.target,this._repositoryOverflowMenu.show())}}},{kind:"method",key:"_downloadRepositoryDialog",value:function(){(0,u.px)(this,{hacs:this.hacs,repositoryId:this._repository.id,repository:this._repository})}},{kind:"get",static:!0,key:"styles",value:function(){return[y.w,a.iv`hass-loading-screen{--app-header-background-color:var(--sidebar-background-color);--app-header-text-color:var(--sidebar-text-color);height:100vh}hass-subpage{position:absolute;width:100vw}ha-fab ha-svg-icon{color:var(--hcv-text-color-on-background)}ha-fab{position:fixed;float:right;right:calc(18px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));z-index:1}ha-fab.rtl{float:left;right:auto;left:calc(18px + env(safe-area-inset-left))}ha-card{display:block;padding:16px}.content{margin:auto;padding:8px;max-width:1536px}ha-chip-set{padding-bottom:8px}@media all and (max-width:500px){.content{margin:8px 4px 64px;max-width:none}}`]}}]}}),a.oi)},49236:function(o,e,r){r.d(e,{hZ:function(){return i},i2:function(){return a},nj:function(){return t}});const t=async(o,e)=>o.connection.sendMessagePromise({type:"hacs/repository/info",repository_id:e}),i=async(o,e,r)=>o.connection.sendMessagePromise({type:"hacs/repository/download",repository:e,version:r}),a=async(o,e)=>o.connection.sendMessagePromise({type:"hacs/repository/releases",repository_id:e})},74763:function(o,e,r){r.d(e,{l:()=>d});var t=r("9065"),i=r("50778"),a=(r("85601"),r("39527"),r("99790"),r("67670"),r("57243")),s=r("4077");class n extends a.oi{get chips(){return this.childElements.filter((o=>o instanceof s.A))}constructor(){super(),this.internals=this.attachInternals(),a.sk||(this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar")}render(){return a.dy`<slot @slotchange="${this.updateTabIndices}"></slot>`}handleKeyDown(o){const e="ArrowLeft"===o.key,r="ArrowRight"===o.key,t="Home"===o.key,i="End"===o.key;if(!(e||r||t||i))return;const{chips:a}=this;if(a.length<2)return;if(o.preventDefault(),t||i){return a[t?0:a.length-1].focus({trailing:i}),void this.updateTabIndices()}const s="rtl"===getComputedStyle(this).direction?e:r,n=a.find((o=>o.matches(":focus-within")));if(!n){return(s?a[0]:a[a.length-1]).focus({trailing:!s}),void this.updateTabIndices()}const c=a.indexOf(n);let d=s?c+1:c-1;for(;d!==c;){d>=a.length?d=0:d<0&&(d=a.length-1);const o=a[d];if(!o.disabled||o.alwaysFocusable){o.focus({trailing:!s}),this.updateTabIndices();break}s?d++:d--}}updateTabIndices(){const{chips:o}=this;let e;for(const r of o){const o=r.alwaysFocusable||!r.disabled;r.matches(":focus-within")&&o?e=r:(o&&!e&&(e=r),r.tabIndex=-1)}e&&(e.tabIndex=0)}}(0,t.gn)([(0,i.NH)()],n.prototype,"childElements",void 0);const c=a.iv`:host{display:flex;flex-wrap:wrap;gap:8px}`;let d=class extends n{};d.styles=[c],d=(0,t.gn)([(0,i.Mo)("md-chip-set")],d)},58795:function(o,e,r){r.d(e,{B:()=>h});var t=r("9065"),i=r("50778"),a=r("57243"),s=r("35359");const n=(0,r("13823").T)(a.oi);class c extends n{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){const{ariaLabel:o}=this;return a.dy` <div class="progress ${(0,s.$)(this.getRenderClasses())}" role="progressbar" aria-label="${o||a.Ld}" aria-valuemin="0" aria-valuemax="${this.max}" aria-valuenow="${this.indeterminate?a.Ld:this.value}">${this.renderIndicator()}</div> `}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}(0,t.gn)([(0,i.Cb)({type:Number})],c.prototype,"value",void 0),(0,t.gn)([(0,i.Cb)({type:Number})],c.prototype,"max",void 0),(0,t.gn)([(0,i.Cb)({type:Boolean})],c.prototype,"indeterminate",void 0),(0,t.gn)([(0,i.Cb)({type:Boolean,attribute:"four-color"})],c.prototype,"fourColor",void 0);class d extends c{renderIndicator(){return this.indeterminate?this.renderIndeterminateContainer():this.renderDeterminateContainer()}renderDeterminateContainer(){const o=100*(1-this.value/this.max);return a.dy` <svg viewBox="0 0 4800 4800"> <circle class="track" pathLength="100"></circle> <circle class="active-track" pathLength="100" stroke-dashoffset="${o}"></circle> </svg> `}renderIndeterminateContainer(){return a.dy` <div class="spinner"> <div class="left"> <div class="circle"></div> </div> <div class="right"> <div class="circle"></div> </div> </div>`}}const l=a.iv`:host{--_active-indicator-color:var(--md-circular-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-width:var(--md-circular-progress-active-indicator-width, 10);--_four-color-active-indicator-four-color:var(--md-circular-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color:var(--md-circular-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color:var(--md-circular-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color:var(--md-circular-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_size:var(--md-circular-progress-size, 48px);display:inline-flex;vertical-align:middle;width:var(--_size);height:var(--_size);position:relative;align-items:center;justify-content:center;contain:strict;content-visibility:auto}.progress{flex:1;align-self:stretch;margin:4px}.active-track,.circle,.left,.progress,.right,.spinner,.track,svg{position:absolute;inset:0}svg{transform:rotate(-90deg)}circle{cx:50%;cy:50%;r:calc(50%*(1 - var(--_active-indicator-width)/ 100));stroke-width:calc(var(--_active-indicator-width)*1%);stroke-dasharray:100;fill:rgba(0,0,0,0)}.active-track{transition:stroke-dashoffset .5s cubic-bezier(0, 0, .2, 1);stroke:var(--_active-indicator-color)}.track{stroke:rgba(0,0,0,0)}.progress.indeterminate{animation:linear infinite linear-rotate;animation-duration:1.568s}.spinner{animation:infinite both rotate-arc;animation-duration:5332ms;animation-timing-function:cubic-bezier(0.4,0,0.2,1)}.left{overflow:hidden;inset:0 50% 0 0}.right{overflow:hidden;inset:0 0 0 50%}.circle{box-sizing:border-box;border-radius:50%;border:solid calc(var(--_active-indicator-width)/ 100*(var(--_size) - 8px));border-color:var(--_active-indicator-color) var(--_active-indicator-color) transparent transparent;animation:expand-arc;animation-iteration-count:infinite;animation-fill-mode:both;animation-duration:1333ms,5332ms;animation-timing-function:cubic-bezier(0.4,0,0.2,1)}.four-color .circle{animation-name:expand-arc,four-color}.left .circle{rotate:135deg;inset:0 -100% 0 0}.right .circle{rotate:100deg;inset:0 0 0 -100%;animation-delay:-.666s,0s}@media(forced-colors:active){.active-track{stroke:CanvasText}.circle{border-color:CanvasText CanvasText Canvas Canvas}}@keyframes expand-arc{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes rotate-arc{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes linear-rotate{to{transform:rotate(360deg)}}@keyframes four-color{0%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}15%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}25%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}40%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}50%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}65%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}75%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}90%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}100%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}}`;let h=class extends d{};h.styles=[l],h=(0,t.gn)([(0,i.Mo)("md-circular-progress")],h)}};
//# sourceMappingURL=6426.b74667a5973a1a42.js.map