5 lines
8.7 KiB
JavaScript
5 lines
8.7 KiB
JavaScript
export const id=13;export const ids=[13];export const modules={3276:(i,t,e)=>{e.d(t,{l:()=>p});var a=e(6312),o=e(8689),n=e(4653),r=e(4599),d=e(5112),l=e(8857),s=e(9600);e(4169);const c=["button","ha-list-item"],p=(i,t)=>d.qy` <div class="header_title"> <span>${t}</span> <ha-icon-button .label="${i?.localize("ui.dialogs.generic.close")??"Close"}" .path="${"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}" dialogAction="close" class="header_button"></ha-icon-button> </div> `;(0,a.A)([(0,l.EM)("ha-dialog")],(function(i,t){class e extends t{constructor(...t){super(...t),i(this)}}return{F:e,d:[{kind:"field",key:s.Xr,value:void 0},{kind:"method",key:"scrollToPos",value:function(i,t){this.contentElement?.scrollTo(i,t)}},{kind:"method",key:"renderHeading",value:function(){return d.qy`<slot name="heading"> ${(0,o.A)(e,"renderHeading",this,3)([])} </slot>`}},{kind:"method",key:"firstUpdated",value:function(){(0,o.A)(e,"firstUpdated",this,3)([]),this.suppressDefaultPressSelector=[this.suppressDefaultPressSelector,c].join(", "),this._updateScrolledAttribute(),this.contentElement?.addEventListener("scroll",this._onScroll,{passive:!0})}},{kind:"method",key:"disconnectedCallback",value:function(){(0,o.A)(e,"disconnectedCallback",this,3)([]),this.contentElement.removeEventListener("scroll",this._onScroll)}},{kind:"field",key:"_onScroll",value(){return()=>{this._updateScrolledAttribute()}}},{kind:"method",key:"_updateScrolledAttribute",value:function(){this.contentElement&&this.toggleAttribute("scrolled",0!==this.contentElement.scrollTop)}},{kind:"field",static:!0,key:"styles",value:()=>[r.R,d.AH`:host([scrolled]) ::slotted(ha-dialog-header){border-bottom:1px solid var(--mdc-dialog-scroll-divider-color,rgba(0,0,0,.12))}.mdc-dialog{--mdc-dialog-scroll-divider-color:var(
|
|
--dialog-scroll-divider-color,
|
|
var(--divider-color)
|
|
);z-index:var(--dialog-z-index,8);-webkit-backdrop-filter:var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none));backdrop-filter:var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none));--mdc-dialog-box-shadow:var(--dialog-box-shadow, none);--mdc-typography-headline6-font-weight:400;--mdc-typography-headline6-font-size:1.574rem}.mdc-dialog__actions{justify-content:var(--justify-action-buttons,flex-end);padding-bottom:max(env(safe-area-inset-bottom),24px)}.mdc-dialog__actions span:first-child{flex:var(--secondary-action-button-flex,unset)}.mdc-dialog__actions span:nth-child(2){flex:var(--primary-action-button-flex,unset)}.mdc-dialog__container{align-items:var(--vertical-align-dialog,center)}.mdc-dialog__title{padding:24px 24px 0 24px}.mdc-dialog__actions{padding:12px 24px 12px 24px}.mdc-dialog__title::before{content:unset}.mdc-dialog .mdc-dialog__content{position:var(--dialog-content-position,relative);padding:var(--dialog-content-padding,24px)}:host([hideactions]) .mdc-dialog .mdc-dialog__content{padding-bottom:max(var(--dialog-content-padding,24px),env(safe-area-inset-bottom))}.mdc-dialog .mdc-dialog__surface{position:var(--dialog-surface-position,relative);top:var(--dialog-surface-top);margin-top:var(--dialog-surface-margin-top);min-height:var(--mdc-dialog-min-height,auto);border-radius:var(--ha-dialog-border-radius,28px);-webkit-backdrop-filter:var(--ha-dialog-surface-backdrop-filter,none);backdrop-filter:var(--ha-dialog-surface-backdrop-filter,none);background:var(--ha-dialog-surface-background,var(--mdc-theme-surface,#fff))}:host([flexContent]) .mdc-dialog .mdc-dialog__content{display:flex;flex-direction:column}.header_title{position:relative;padding-right:40px;padding-inline-end:40px;padding-inline-start:initial;direction:var(--direction)}.header_title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.header_button{position:absolute;right:-12px;top:-12px;text-decoration:none;color:inherit;inset-inline-start:initial;inset-inline-end:-12px;direction:var(--direction)}.dialog-actions{inset-inline-start:initial!important;inset-inline-end:0px!important;direction:var(--direction)}`]}]}}),n.u)},3830:(i,t,e)=>{var a=e(6312),o=e(8689),n=e(116),r=e(3389),d=e(5112),l=e(8857);(0,a.A)([(0,l.EM)("ha-list-item")],(function(i,t){class e extends t{constructor(...t){super(...t),i(this)}}return{F:e,d:[{kind:"method",key:"renderRipple",value:function(){return this.noninteractive?"":(0,o.A)(e,"renderRipple",this,3)([])}},{kind:"get",static:!0,key:"styles",value:function(){return[r.R,d.AH`:host{padding-left:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-inline-start:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-right:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px));padding-inline-end:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px))}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:48px}span.material-icons:first-of-type{margin-inline-start:0px!important;margin-inline-end:var(--mdc-list-item-graphic-margin,16px)!important;direction:var(--direction)!important}span.material-icons:last-of-type{margin-inline-start:auto!important;margin-inline-end:0px!important;direction:var(--direction)!important}.mdc-deprecated-list-item__meta{display:var(--mdc-list-item-meta-display);align-items:center;flex-shrink:0}:host([graphic=icon]:not([twoline])) .mdc-deprecated-list-item__graphic{margin-inline-end:var(--mdc-list-item-graphic-margin,20px)!important}:host([multiline-secondary]){height:auto}:host([multiline-secondary]) .mdc-deprecated-list-item__text{padding:8px 0}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text{text-overflow:initial;white-space:normal;overflow:auto;display:inline-block;margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text{margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text::before{display:none}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text::before{display:none}:host([disabled]){color:var(--disabled-text-color)}:host([noninteractive]){pointer-events:unset}`,"rtl"===document.dir?d.AH`span.material-icons:first-of-type,span.material-icons:last-of-type{direction:rtl!important;--direction:rtl}`:d.AH``]}}]}}),n.J)},7013:(i,t,e)=>{e.r(t);var a=e(6312),o=(e(4955),e(5112)),n=e(8857),r=e(4897),d=e(3276);e(3830);const l="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z";(0,a.A)([(0,n.EM)("community-dialog")],(function(i,t){return{F:class extends t{constructor(...t){super(...t),i(this)}},d:[{kind:"field",decorators:[(0,n.MZ)({attribute:!1})],key:"localize",value:void 0},{kind:"method",key:"showDialog",value:async function(i){this.localize=i.localize}},{kind:"method",key:"closeDialog",value:async function(){this.localize=void 0,(0,r.r)(this,"dialog-closed",{dialog:this.localName})}},{kind:"method",key:"render",value:function(){return this.localize?o.qy`<ha-dialog open hideActions @closed="${this.closeDialog}" .heading="${(0,d.l)(void 0,this.localize("ui.panel.page-onboarding.welcome.community"))}"> <mwc-list> <a target="_blank" rel="noreferrer noopener" href="https://community.home-assistant.io/"> <ha-list-item hasMeta graphic="icon"> <img src="/static/icons/favicon-192x192.png" slot="graphic" alt="Home Assistant Logo"> ${this.localize("ui.panel.page-onboarding.welcome.forums")} <ha-svg-icon slot="meta" .path="${l}"></ha-svg-icon> </ha-list-item> </a> <a target="_blank" rel="noreferrer noopener" href="https://newsletter.openhomefoundation.org/"> <ha-list-item hasMeta graphic="icon"> <img src="/static/icons/logo_ohf.svg" slot="graphic" alt="Open Home Foundation Logo"> ${this.localize("ui.panel.page-onboarding.welcome.open_home_newsletter")} <ha-svg-icon slot="meta" .path="${l}"></ha-svg-icon> </ha-list-item> </a> <a target="_blank" rel="noreferrer noopener" href="https://www.home-assistant.io/join-chat"> <ha-list-item hasMeta graphic="icon"> <img src="/static/images/logo_discord.png" slot="graphic" alt="Discord Logo"> ${this.localize("ui.panel.page-onboarding.welcome.discord")} <ha-svg-icon slot="meta" .path="${l}"></ha-svg-icon> </ha-list-item> </a> <a target="_blank" rel="noreferrer noopener" href="https://fosstodon.org/@homeassistant"> <ha-list-item hasMeta graphic="icon"> <img src="/static/images/logo_mastodon.svg" slot="graphic" alt="Mastodon Logo"> ${this.localize("ui.panel.page-onboarding.welcome.mastodon")} <ha-svg-icon slot="meta" .path="${l}"></ha-svg-icon> </ha-list-item> </a> </mwc-list> </ha-dialog>`:o.s6}},{kind:"field",static:!0,key:"styles",value:()=>o.AH`ha-dialog{--mdc-dialog-min-width:min(400px, 90vw);--dialog-content-padding:0}ha-list-item{height:56px;--mdc-list-item-meta-size:20px}a{text-decoration:none}`}]}}),o.WF)}};
|
|
//# sourceMappingURL=13.kCH6fpMFK4w.js.map
|