2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[13],{3276:function(t,i,e){"use strict";e.d(i,{l:function(){return x}});var n,a,o,r=e(35806),l=e(71008),d=e(62193),s=e(2816),c=e(34441),p=e(35890),h=e(64599),m=(e(49141),e(81027),e(79243),e(54653)),g=e(34599),u=e(70663),v=e(15224),f=e(9600),b=(e(4169),["button","ha-list-item"]),x=function(t,i){var e;return(0,u.qy)(n||(n=(0,h.A)([' <div class="header_title"> <span>','</span> <ha-icon-button .label="','" .path="','" dialogAction="close" class="header_button"></ha-icon-button> </div> '])),i,null!==(e=null==t?void 0:t.localize("ui.dialogs.generic.close"))&&void 0!==e?e:"Close","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")};(0,c.A)([(0,v.EM)("ha-dialog")],(function(t,i){var e=function(i){function e(){var i;(0,l.A)(this,e);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return i=(0,d.A)(this,e,[].concat(a)),t(i),i}return(0,s.A)(e,i),(0,r.A)(e)}(i);return{F:e,d:[{kind:"field",key:f.Xr,value:void 0},{kind:"method",key:"scrollToPos",value:function(t,i){var e;null===(e=this.contentElement)||void 0===e||e.scrollTo(t,i)}},{kind:"method",key:"renderHeading",value:function(){return(0,u.qy)(a||(a=(0,h.A)(['<slot name="heading"> '," </slot>"])),(0,p.A)(e,"renderHeading",this,3)([]))}},{kind:"method",key:"firstUpdated",value:function(){var t;(0,p.A)(e,"firstUpdated",this,3)([]),this.suppressDefaultPressSelector=[this.suppressDefaultPressSelector,b].join(", "),this._updateScrolledAttribute(),null===(t=this.contentElement)||void 0===t||t.addEventListener("scroll",this._onScroll,{passive:!0})}},{kind:"method",key:"disconnectedCallback",value:function(){(0,p.A)(e,"disconnectedCallback",this,3)([]),this.contentElement.removeEventListener("scroll",this._onScroll)}},{kind:"field",key:"_onScroll",value:function(){var t=this;return function(){t._updateScrolledAttribute()}}},{kind:"method",key:"_updateScrolledAttribute",value:function(){this.contentElement&&this.toggleAttribute("scrolled",0!==this.contentElement.scrollTop)}},{kind:"field",static:!0,key:"styles",value:function(){return[g.R,(0,u.AH)(o||(o=(0,h.A)([":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(\n --dialog-scroll-divider-color,\n var(--divider-color)\n );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)}"])))]}}]}}),m.u)},13830:function(t,i,e){"use strict";var n,a,o,r=e(64599),l=e(35806),d=e(71008),s=e(62193),c=e(2816),p=e(34441),h=e(35890),m=(e(81027),e(30116)),g=e(43389),u=e(70663),v=e(15224);(0,p.A)([(0,v.EM)("ha-list-item")],(function(t,i){var e=function(i){function e(){var i;(0,d.A)(this,e);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return i=(0,s.A)(this,e,[].concat(a)),t(i),i}return(0,c.A)(e,i),(0,l.A)(e)}(i);return{F:e,d:[{kind:"method",key:"renderRipple",value:function(){return this.noninteractive?"":(0,h.A)(e,"renderRipple",this,3)([])}},{kind:"get",static:!0,key:"styles",value:function(){return[g.R,(0,u.AH)(n||(n=(0,r.A)([":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?(0,u.AH)(a||(a=(0,r.A)(["span.material-icons:first-of-type,span.material-icons:last-of-type{direction:rtl!important;--direction:rtl}"]))):(0,u.AH)(o||(o=(0,r.A)([""])))]}}]}}),m.J)},87013:function(t,i,e){"use strict";e.r(i);var n,a,o=e(64599),r=e(33994),l=e(22858),d=e(35806),s=e(71008),c=e(62193),p=e(2816),h=e(34441),m=(e(81027),e(84955),e(70663)),g=e(15224),u=e(34897),v=e(3276),f=(e(13830),"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,h.A)([(0,g.EM)("community-dialog")],(function(t,i){var e,h,b=function(i){function e(){var i;(0,s.A)(this,e);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return i=(0,c.A)(this,e,[].concat(a)),t(i),i}return(0,p.A)(e,i),(0,d.A)(e)}(i);return{F:b,d:[{kind:"field",decorators:[(0,g.MZ)({attribute:!1})],key:"localize",value:void 0},{kind:"method",key:"showDialog",value:(h=(0,l.A)((0,r.A)().mark((function t(i){return(0,r.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.localize=i.localize;case 1:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{kind:"method",key:"closeDialog",value:(e=(0,l.A)((0,r.A)().mark((function t(){return(0,r.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.localize=void 0,(0,u.r)(this,"dialog-closed",{dialog:this.localName});case 2:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{kind:"method",key:"render",value:function(){return this.localize?(0,m.qy)(n||(n=(0,o.A)(['<ha-dialog open hideActions @closed="','" .heading="','"> <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"> ',' <ha-svg-icon slot="meta" .path="','"></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"> ',' <ha-svg-icon slot="meta" .path="','"></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"> ',' <ha-svg-icon slot="meta" .path="','"></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"> ',' <ha-svg-icon slot="meta" .path="','"></ha-svg-icon> </ha-list-item> </a> </mwc-list> </ha-dialog>'])),this.closeDialog,(0,v.l)(void 0,this.localize("ui.panel.page-onboarding.welcome.community")),this.localize("ui.panel.page-onboarding.welcome.forums"),f,this.localize("ui.panel.page-onboarding.welcome.open_home_newsletter"),f,this.localize("ui.panel.page-onboarding.welcome.discord"),f,this.localize("ui.panel.page-onboarding.welcome.mastodon"),f):m.s6}},{kind:"field",static:!0,key:"styles",value:function(){return(0,m.AH)(a||(a=(0,o.A)(["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}"])))}}]}}),m.WF)},49141:function(){Element.prototype.toggleAttribute||(Element.prototype.toggleAttribute=function(t,i){return void 0!==i&&(i=!!i),this.hasAttribute(t)?!!i||(this.removeAttribute(t),!1):!1!==i&&(this.setAttribute(t,""),!0)})}}]);
|
|
//# sourceMappingURL=13.FVg-bJ7UPN8.js.map
|